Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1349)

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp

Issue 1394313002: Make DisplayItem::replay const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
index ca5b03852ba1d1e35c5e1def6e32105b15f3decb..9e89281fd1b1b82e18febd22e711d9d3002fe908 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.cpp
@@ -12,7 +12,7 @@
namespace blink {
-void BeginClipPathDisplayItem::replay(GraphicsContext& context)
+void BeginClipPathDisplayItem::replay(GraphicsContext& context) const
{
context.save();
context.clipPath(m_clipPath, AntiAliased);
@@ -23,7 +23,7 @@ void BeginClipPathDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* li
list->appendClipPathItem(m_clipPath, SkRegion::kIntersect_Op, true);
}
-void EndClipPathDisplayItem::replay(GraphicsContext& context)
+void EndClipPathDisplayItem::replay(GraphicsContext& context) const
{
context.restore();
}

Powered by Google App Engine
This is Rietveld 408576698