LayerTreeAsTextBehavior should be in the WebCore namespace
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Apr 2014 18:53:48 +0000 (18:53 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Apr 2014 18:53:48 +0000 (18:53 +0000)
https://bugs.webkit.org/show_bug.cgi?id=131683

Reviewed by Andrei Bucur.

Move LayerTreeAsTextBehavior and the bit flags into the WebCore namespace.

* platform/graphics/GraphicsLayer.cpp:
(showGraphicsLayerTree):
* platform/graphics/GraphicsLayer.h:

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsLayer.cpp
Source/WebCore/platform/graphics/GraphicsLayer.h

index 6cf1a97..1bfee05 100644 (file)
@@ -1,3 +1,16 @@
+2014-04-15  Simon Fraser  <simon.fraser@apple.com>
+
+        LayerTreeAsTextBehavior should be in the WebCore namespace
+        https://bugs.webkit.org/show_bug.cgi?id=131683
+
+        Reviewed by Andrei Bucur.
+
+        Move LayerTreeAsTextBehavior and the bit flags into the WebCore namespace.
+
+        * platform/graphics/GraphicsLayer.cpp:
+        (showGraphicsLayerTree):
+        * platform/graphics/GraphicsLayer.h:
+
 2014-04-15  Benjamin Poulain  <bpoulain@apple.com>
 
         ViewportConfiguration handles userZoom incorrectly
index 89f11f1..b5112d4 100644 (file)
@@ -799,7 +799,7 @@ void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
     if (!layer)
         return;
 
-    String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTextIncludeVisibleRects | LayerTreeAsTextIncludeTileCaches);
+    String output = layer->layerTreeAsText(WebCore::LayerTreeAsTextDebug | WebCore::LayerTreeAsTextIncludeVisibleRects | WebCore::LayerTreeAsTextIncludeTileCaches);
     fprintf(stderr, "%s\n", output.utf8().data());
 }
 #endif
index 49a4b22..bdd4ab3 100644 (file)
@@ -47,6 +47,8 @@
 #include "GraphicsTypes.h"
 #endif
 
+namespace WebCore {
+
 enum LayerTreeAsTextBehaviorFlags {
     LayerTreeAsTextBehaviorNormal = 0,
     LayerTreeAsTextDebug = 1 << 0, // Dump extra debugging info like layer addresses.
@@ -58,8 +60,6 @@ enum LayerTreeAsTextBehaviorFlags {
 };
 typedef unsigned LayerTreeAsTextBehavior;
 
-namespace WebCore {
-
 class GraphicsContext;
 class GraphicsLayerFactory;
 class Image;