Title: [95336] trunk/Source/WebCore
Revision
95336
Author
commit-qu...@webkit.org
Date
2011-09-16 17:07:18 -0700 (Fri, 16 Sep 2011)

Log Message

Fixed const correctness on accessors in LayerChromium
https://bugs.webkit.org/show_bug.cgi?id=68210

Patch by Shawn Singh <shawnsi...@chromium.org> on 2011-09-16
Reviewed by James Robinson.

Code cleanup related to creating unit testing.

* platform/graphics/chromium/LayerChromium.h:
(WebCore::LayerChromium::preserves3D):
(WebCore::LayerChromium::replicaLayer):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (95335 => 95336)


--- trunk/Source/WebCore/ChangeLog	2011-09-17 00:00:07 UTC (rev 95335)
+++ trunk/Source/WebCore/ChangeLog	2011-09-17 00:07:18 UTC (rev 95336)
@@ -1,3 +1,16 @@
+2011-09-16  Shawn Singh  <shawnsi...@chromium.org>
+
+        Fixed const correctness on accessors in LayerChromium
+        https://bugs.webkit.org/show_bug.cgi?id=68210
+
+        Reviewed by James Robinson.
+
+        Code cleanup related to creating unit testing.
+
+        * platform/graphics/chromium/LayerChromium.h:
+        (WebCore::LayerChromium::preserves3D):
+        (WebCore::LayerChromium::replicaLayer):
+
 2011-09-14  Ryosuke Niwa  <rn...@webkit.org>
 
         Deleting line break before h1 converts h1 to span

Modified: trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.h (95335 => 95336)


--- trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.h	2011-09-17 00:00:07 UTC (rev 95335)
+++ trunk/Source/WebCore/platform/graphics/chromium/LayerChromium.h	2011-09-17 00:07:18 UTC (rev 95336)
@@ -152,7 +152,7 @@
     void setGeometryFlipped(bool flipped) { m_geometryFlipped = flipped; setNeedsCommit(); }
     bool geometryFlipped() const { return m_geometryFlipped; }
 
-    bool preserves3D() { return m_delegate && m_delegate->preserves3D(); }
+    bool preserves3D() const { return m_delegate && m_delegate->preserves3D(); }
 
     void setUsesLayerScissor(bool usesLayerScissor) { m_usesLayerScissor = usesLayerScissor; }
     bool usesLayerScissor() const { return m_usesLayerScissor; }
@@ -165,7 +165,7 @@
     void setDelegate(CCLayerDelegate* delegate) { m_delegate = delegate; }
 
     void setReplicaLayer(LayerChromium* layer) { m_replicaLayer = layer; }
-    LayerChromium* replicaLayer() { return m_replicaLayer.get(); }
+    LayerChromium* replicaLayer() const { return m_replicaLayer.get(); }
 
     // These methods typically need to be overwritten by derived classes.
     virtual bool drawsContent() const { return false; }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to