[WPE][GTK] Fix a build warning because of missing to handle an enum value
authorgyuyoung.kim@webkit.org <gyuyoung.kim@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Mar 2019 09:30:47 +0000 (09:30 +0000)
committergyuyoung.kim@webkit.org <gyuyoung.kim@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Mar 2019 09:30:47 +0000 (09:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195876

Reviewed by Žan Doberšek.

When building WPE or GTK port, there is a build warning. The switch-case needs to
handle *Positioned* enum value as well in order to avoid the build warning.

* page/scrolling/nicosia/ScrollingTreeNicosia.cpp:
(WebCore::ScrollingTreeNicosia::createScrollingTreeNode): Add case ScrollingNodeType::Positioned.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243057 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/scrolling/nicosia/ScrollingTreeNicosia.cpp

index 070a2e7..15b428d 100644 (file)
@@ -1,3 +1,16 @@
+2019-03-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
+
+        [WPE][GTK] Fix a build warning because of missing to handle an enum value
+        https://bugs.webkit.org/show_bug.cgi?id=195876
+
+        Reviewed by Žan Doberšek.
+
+        When building WPE or GTK port, there is a build warning. The switch-case needs to
+        handle *Positioned* enum value as well in order to avoid the build warning.
+
+        * page/scrolling/nicosia/ScrollingTreeNicosia.cpp:
+        (WebCore::ScrollingTreeNicosia::createScrollingTreeNode): Add case ScrollingNodeType::Positioned.
+
 2019-03-17  Yusuke Suzuki  <ysuzuki@apple.com>
 
         REGRESSION: !vm.isInitializingObject() void* JSC::tryAllocateCellHelper<JSC::Structure> JSC::Structure::create
index c2a65d2..cea7146 100644 (file)
@@ -62,6 +62,8 @@ Ref<ScrollingTreeNode> ScrollingTreeNicosia::createScrollingTreeNode(ScrollingNo
         return ScrollingTreeFixedNode::create(*this, nodeID);
     case ScrollingNodeType::Sticky:
         return ScrollingTreeStickyNode::create(*this, nodeID);
+    case ScrollingNodeType::Positioned:
+        RELEASE_ASSERT_NOT_REACHED();
     }
 
     RELEASE_ASSERT_NOT_REACHED();