Title: [91652] trunk/Source/WebCore
Revision
91652
Author
[email protected]
Date
2011-07-24 18:27:05 -0700 (Sun, 24 Jul 2011)

Log Message

Fix AtomicString vs. String usage in JSC binding
https://bugs.webkit.org/show_bug.cgi?id=65085

Reviewed by Darin Adler.

Use ustringToAtomicString instead of ustringToString where appropriate.

* bindings/js/JSHTMLAllCollectionCustom.cpp:
* bindings/js/JSHTMLCollectionCustom.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (91651 => 91652)


--- trunk/Source/WebCore/ChangeLog	2011-07-25 00:38:25 UTC (rev 91651)
+++ trunk/Source/WebCore/ChangeLog	2011-07-25 01:27:05 UTC (rev 91652)
@@ -1,3 +1,15 @@
+2011-07-24  Patrick Gansterer  <[email protected]>
+
+        Fix AtomicString vs. String usage in JSC binding
+        https://bugs.webkit.org/show_bug.cgi?id=65085
+
+        Reviewed by Darin Adler.
+
+        Use ustringToAtomicString instead of ustringToString where appropriate.
+
+        * bindings/js/JSHTMLAllCollectionCustom.cpp:
+        * bindings/js/JSHTMLCollectionCustom.cpp:
+
 2011-07-24  Luke Macpherson   <[email protected]>
 
         Implement CSSPropertyOutlineOffset in CSSStyleApplyProperty.

Modified: trunk/Source/WebCore/bindings/js/JSHTMLAllCollectionCustom.cpp (91651 => 91652)


--- trunk/Source/WebCore/bindings/js/JSHTMLAllCollectionCustom.cpp	2011-07-25 00:38:25 UTC (rev 91651)
+++ trunk/Source/WebCore/bindings/js/JSHTMLAllCollectionCustom.cpp	2011-07-25 01:27:05 UTC (rev 91652)
@@ -87,7 +87,7 @@
     UString string = exec->argument(0).toString(exec);
     unsigned index = Identifier::toUInt32(exec->argument(1).toString(exec), ok);
     if (ok) {
-        String pstr = ustringToString(string);
+        AtomicString pstr = ustringToAtomicString(string);
         Node* node = collection->namedItem(pstr);
         while (node) {
             if (!index)

Modified: trunk/Source/WebCore/bindings/js/JSHTMLCollectionCustom.cpp (91651 => 91652)


--- trunk/Source/WebCore/bindings/js/JSHTMLCollectionCustom.cpp	2011-07-25 00:38:25 UTC (rev 91651)
+++ trunk/Source/WebCore/bindings/js/JSHTMLCollectionCustom.cpp	2011-07-25 01:27:05 UTC (rev 91652)
@@ -83,7 +83,7 @@
     UString string = exec->argument(0).toString(exec);
     unsigned index = Identifier::toUInt32(exec->argument(1).toString(exec), ok);
     if (ok) {
-        String pstr = ustringToString(string);
+        AtomicString pstr = ustringToAtomicString(string);
         Node* node = collection->namedItem(pstr);
         while (node) {
             if (!index)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to