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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.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/ClipDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
index 0839034a1d996f18d38653cdd6cdd14307155542..de7f052dfb2d20d89f83f2a4e6de0aa3c3b7d4a7 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.cpp
@@ -12,7 +12,7 @@
namespace blink {
-void ClipDisplayItem::replay(GraphicsContext& context)
+void ClipDisplayItem::replay(GraphicsContext& context) const
{
context.save();
context.clipRect(m_clipRect, NotAntiAliased, SkRegion::kIntersect_Op);
@@ -42,7 +42,7 @@ void ClipDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list) const
list->appendClipItem(m_clipRect, webRoundedRects);
}
-void EndClipDisplayItem::replay(GraphicsContext& context)
+void EndClipDisplayItem::replay(GraphicsContext& context) const
{
context.restore();
}

Powered by Google App Engine
This is Rietveld 408576698