Title: [92285] trunk/Source/WebCore
Revision
92285
Author
[email protected]
Date
2011-08-03 09:15:21 -0700 (Wed, 03 Aug 2011)

Log Message

[V8] V8CSSRuleCustom.cpp: not all enum values are listed in switch statement
https://bugs.webkit.org/show_bug.cgi?id=65598

Reviewed by Dimitri Glazkov.

Added UNKNOWN_RULE to the switch statement.

No new tests. (No semantic change)

* bindings/v8/custom/V8CSSRuleCustom.cpp:
(WebCore::toV8):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92284 => 92285)


--- trunk/Source/WebCore/ChangeLog	2011-08-03 16:11:21 UTC (rev 92284)
+++ trunk/Source/WebCore/ChangeLog	2011-08-03 16:15:21 UTC (rev 92285)
@@ -1,3 +1,17 @@
+2011-08-03  Roland Steiner  <[email protected]>
+
+        [V8] V8CSSRuleCustom.cpp: not all enum values are listed in switch statement
+        https://bugs.webkit.org/show_bug.cgi?id=65598
+
+        Reviewed by Dimitri Glazkov.
+
+        Added UNKNOWN_RULE to the switch statement.
+
+        No new tests. (No semantic change)
+
+        * bindings/v8/custom/V8CSSRuleCustom.cpp:
+        (WebCore::toV8):
+
 2011-08-03  Pavel Feldman  <[email protected]>
 
         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.

Modified: trunk/Source/WebCore/bindings/v8/custom/V8CSSRuleCustom.cpp (92284 => 92285)


--- trunk/Source/WebCore/bindings/v8/custom/V8CSSRuleCustom.cpp	2011-08-03 16:11:21 UTC (rev 92284)
+++ trunk/Source/WebCore/bindings/v8/custom/V8CSSRuleCustom.cpp	2011-08-03 16:15:21 UTC (rev 92285)
@@ -47,6 +47,11 @@
     if (!impl)
         return v8::Null();
     switch (impl->type()) {
+    case CSSRule::UNKNOWN_RULE:
+        // CSSUnknownRule.idl is explicitly excluded as it doesn't add anything
+        // over CSSRule.idl (see WebCore.gyp/WebCore.gyp: 'bindings_idl_files').
+        // -> Use the base class wrapper here.
+        return V8CSSRule::wrap(impl);
     case CSSRule::STYLE_RULE:
         return toV8(static_cast<CSSStyleRule*>(impl));
     case CSSRule::CHARSET_RULE:
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to