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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.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/ScrollDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.cpp
index 77efe28d451e26c476329ed7d7ff2cbed67b6830..07f2e900b087ef12ed8ea145779cdc704618df9d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ScrollDisplayItem.cpp
@@ -11,7 +11,7 @@
namespace blink {
-void BeginScrollDisplayItem::replay(GraphicsContext& context)
+void BeginScrollDisplayItem::replay(GraphicsContext& context) const
{
context.save();
context.translate(-m_currentOffset.width(), -m_currentOffset.height());
@@ -31,7 +31,7 @@ void BeginScrollDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& str
}
#endif
-void EndScrollDisplayItem::replay(GraphicsContext& context)
+void EndScrollDisplayItem::replay(GraphicsContext& context) const
{
context.restore();
}

Powered by Google App Engine
This is Rietveld 408576698