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

Unified Diff: Source/core/paint/ObjectPainter.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/paint/ObjectPainter.cpp
diff --git a/Source/core/paint/ObjectPainter.cpp b/Source/core/paint/ObjectPainter.cpp
index 9cebbde0f8ddf8b675ec195c405d5283bc9b04bf..69744cab22caa9dd9a272f8a6724a9b42bc9925f 100644
--- a/Source/core/paint/ObjectPainter.cpp
+++ b/Source/core/paint/ObjectPainter.cpp
@@ -15,7 +15,7 @@
namespace blink {
-void ObjectPainter::paintFocusRing(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, RenderStyle* style)
+void ObjectPainter::paintFocusRing(const PaintInfo& paintInfo, const LayoutPoint& paintOffset, const RenderStyle* style)
{
Vector<LayoutRect> focusRingRects;
m_renderObject.addFocusRingRects(focusRingRects, paintOffset);
@@ -28,7 +28,7 @@ void ObjectPainter::paintFocusRing(const PaintInfo& paintInfo, const LayoutPoint
void ObjectPainter::paintOutline(const PaintInfo& paintInfo, const LayoutRect& paintRect)
{
- RenderStyle* styleToUse = m_renderObject.style();
+ const RenderStyle* styleToUse = m_renderObject.style();
if (!styleToUse->hasOutline())
return;

Powered by Google App Engine
This is Rietveld 408576698