Title: [113980] trunk/Source/WebKit/blackberry
Revision
113980
Author
[email protected]
Date
2012-04-12 08:09:33 -0700 (Thu, 12 Apr 2012)

Log Message

Pattern matching for hexadecimal should include * as an allowable count.
https://bugs.webkit.org/show_bug.cgi?id=83779

Reviewed by Rob Buis.

Update pattern matching check to allow wildcard for number
of characters allowed.

PR 148907.

Reviewed Internally by Gen Mak.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/ChangeLog (113979 => 113980)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-04-12 15:07:22 UTC (rev 113979)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-04-12 15:09:33 UTC (rev 113980)
@@ -1,3 +1,20 @@
+2012-04-12  Mike Fenton  <[email protected]>
+
+        Pattern matching for hexadecimal should include * as an allowable count.
+        https://bugs.webkit.org/show_bug.cgi?id=83779
+
+        Reviewed by Rob Buis.
+
+        Update pattern matching check to allow wildcard for number
+        of characters allowed.
+
+        PR 148907.
+
+        Reviewed Internally by Gen Mak.
+
+        * WebKitSupport/DOMSupport.cpp:
+        (BlackBerry::WebKit::DOMSupport::elementPatternIndicatesHexadecimal):
+
 2012-04-11  Joe Mason  <[email protected]>
 
         [BlackBerry] Update to the thread-safe GuardedPointer API

Modified: trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp (113979 => 113980)


--- trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2012-04-12 15:07:22 UTC (rev 113979)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/DOMSupport.cpp	2012-04-12 15:09:33 UTC (rev 113980)
@@ -408,6 +408,10 @@
             if (patternAttribute.length() == 11)
                 return true;
 
+            // Check for *
+            if (patternAttribute.length() == 12 && patternAttribute[11] == '*')
+                return true;
+
             // Is the regex specifying a character count?
             if (patternAttribute[11] != '{' || !patternAttribute.endsWith("}"))
                 return false;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to