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

Unified Diff: Source/core/layout/LayoutCounter.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 11 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: Source/core/layout/LayoutCounter.cpp
diff --git a/Source/core/layout/LayoutCounter.cpp b/Source/core/layout/LayoutCounter.cpp
index f7ae11ef09de65ec169a2e8641a55839ed8fa79a..875f3ef8ad9301681e2c738cf7ebc53108478eb1 100644
--- a/Source/core/layout/LayoutCounter.cpp
+++ b/Source/core/layout/LayoutCounter.cpp
@@ -111,7 +111,7 @@ static bool planCounter(RenderObject& object, const AtomicString& identifier, bo
// We must have a generating node or else we cannot have a counter.
if (!generatingNode)
return false;
- RenderStyle* style = object.style();
+ const RenderStyle* style = object.style();
ASSERT(style);
switch (style->styleType()) {

Powered by Google App Engine
This is Rietveld 408576698