Title: [133316] trunk/Source/WebCore
Revision
133316
Author
commit-qu...@webkit.org
Date
2012-11-02 10:57:43 -0700 (Fri, 02 Nov 2012)

Log Message

Fix build warning [-Wswitch]
https://bugs.webkit.org/show_bug.cgi?id=101029

Patch by Jinwoo Song <jinwoo7.s...@samsung.com> on 2012-11-02
Reviewed by Alexey Proskuryakov.

Fix build warning message: enumeration value ‘Viewport’ not handled in switch [-Wswitch]
in Source/WebCore/css/StyleSheetContents.cpp.
Add case statement for 'Viewport' with the CSS_DEVICE_ADAPTATION macro.

* css/StyleSheetContents.cpp:
(WebCore::childRulesHaveFailedOrCanceledSubresources):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (133315 => 133316)


--- trunk/Source/WebCore/ChangeLog	2012-11-02 17:54:02 UTC (rev 133315)
+++ trunk/Source/WebCore/ChangeLog	2012-11-02 17:57:43 UTC (rev 133316)
@@ -1,3 +1,17 @@
+2012-11-02  Jinwoo Song  <jinwoo7.s...@samsung.com>
+
+        Fix build warning [-Wswitch]
+        https://bugs.webkit.org/show_bug.cgi?id=101029
+
+        Reviewed by Alexey Proskuryakov.
+
+        Fix build warning message: enumeration value ‘Viewport’ not handled in switch [-Wswitch]
+        in Source/WebCore/css/StyleSheetContents.cpp.
+        Add case statement for 'Viewport' with the CSS_DEVICE_ADAPTATION macro.
+
+        * css/StyleSheetContents.cpp:
+        (WebCore::childRulesHaveFailedOrCanceledSubresources):
+
 2012-11-02  Ojan Vafai  <o...@chromium.org>
 
         Move m_element checks out of canShareStyle into locateSharedStyle

Modified: trunk/Source/WebCore/css/StyleSheetContents.cpp (133315 => 133316)


--- trunk/Source/WebCore/css/StyleSheetContents.cpp	2012-11-02 17:54:02 UTC (rev 133315)
+++ trunk/Source/WebCore/css/StyleSheetContents.cpp	2012-11-02 17:57:43 UTC (rev 133316)
@@ -446,6 +446,9 @@
         case StyleRuleBase::Unknown:
         case StyleRuleBase::Charset:
         case StyleRuleBase::Keyframe:
+#if ENABLE(CSS_DEVICE_ADAPTATION)
+        case StyleRuleBase::Viewport:
+#endif
             break;
         }
     }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to