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

Unified Diff: Source/core/rendering/LayoutRepainter.h

Issue 276583002: Fix const correctness of containerForRepaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/core/rendering/LayoutRepainter.cpp » ('j') | Source/core/rendering/RenderObject.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/LayoutRepainter.h
diff --git a/Source/core/rendering/LayoutRepainter.h b/Source/core/rendering/LayoutRepainter.h
index b23d28965f9e9a2be6c02b1ca472751dfd50cb99..8fac05545165ce1604e9bcb8fb0f738b43e4d79b 100644
--- a/Source/core/rendering/LayoutRepainter.h
+++ b/Source/core/rendering/LayoutRepainter.h
@@ -35,7 +35,7 @@ class RenderObject;
class LayoutRepainter {
public:
- LayoutRepainter(RenderObject&, bool checkForRepaint);
+ LayoutRepainter(const RenderObject&, bool checkForRepaint);
bool checkForRepaint() const { return m_checkForRepaint; }
@@ -43,8 +43,8 @@ public:
bool repaintAfterLayout();
private:
- RenderObject& m_object;
- RenderLayerModelObject* m_repaintContainer;
+ const RenderObject& m_object;
+ const RenderLayerModelObject* m_repaintContainer;
// We store these values as LayoutRects, but the final invalidations will be pixel snapped
LayoutRect m_oldBounds;
LayoutPoint m_oldOffset;
« no previous file with comments | « no previous file | Source/core/rendering/LayoutRepainter.cpp » ('j') | Source/core/rendering/RenderObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698