Title: [125584] trunk/Source/WebKit/blackberry
Revision
125584
Author
[email protected]
Date
2012-08-14 11:23:55 -0700 (Tue, 14 Aug 2012)

Log Message

[BlackBerry] Fix use of endsWith to use string instead of char.
https://bugs.webkit.org/show_bug.cgi?id=93994

Reviewed by Antonio Gomes.

Regex comparison should use string instead of char comparison.

* WebKitSupport/DOMSupport.cpp:
(BlackBerry::WebKit::DOMSupport::elementPatternMatches):

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (125583 => 125584)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-08-14 17:58:19 UTC (rev 125583)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-08-14 18:23:55 UTC (rev 125584)
@@ -1,3 +1,15 @@
+2012-08-14  Mike Fenton  <[email protected]>
+
+        [BlackBerry] Fix use of endsWith to use string instead of char.
+        https://bugs.webkit.org/show_bug.cgi?id=93994
+
+        Reviewed by Antonio Gomes.
+
+        Regex comparison should use string instead of char comparison.
+
+        * WebKitSupport/DOMSupport.cpp:
+        (BlackBerry::WebKit::DOMSupport::elementPatternMatches):
+
 2012-08-14  Jacky Jiang  <[email protected]>
 
         [BlackBerry] Double-tap zoom on blocks on cnn.com desktop page doesn't work

Modified: trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp (125583 => 125584)


--- trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2012-08-14 17:58:19 UTC (rev 125583)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2012-08-14 18:23:55 UTC (rev 125584)
@@ -427,7 +427,7 @@
                 return true;
 
             // Is the regex specifying a character count?
-            if (patternAttribute[patternString.length()] != '{' || !patternAttribute.endsWith('}'))
+            if (patternAttribute[patternString.length()] != '{' || !patternAttribute.endsWith("}"))
                 return false;
 
             // Make sure the number in the regex is actually a number.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to