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

Unified Diff: Source/core/dom/Text.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/dom/Text.cpp
diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
index c6a2a9895ec07ce6625614f6c468152ef9bd4c69..3ece62f31fbef87514926de3a994b825484a76f5 100644
--- a/Source/core/dom/Text.cpp
+++ b/Source/core/dom/Text.cpp
@@ -315,7 +315,7 @@ static bool isSVGText(Text* text)
return parentOrShadowHostNode->isSVGElement() && !isSVGForeignObjectElement(*parentOrShadowHostNode);
}
-RenderText* Text::createTextRenderer(RenderStyle* style)
+RenderText* Text::createTextRenderer(const RenderStyle* style)
{
if (isSVGText(this))
return new RenderSVGInlineText(this, dataImpl());
@@ -383,7 +383,7 @@ void Text::recalcTextStyle(StyleRecalcChange change, Text* nextTextSibling)
bool Text::needsWhitespaceRenderer()
{
ASSERT(!renderer());
- if (RenderStyle* style = parentRenderStyle())
+ if (const RenderStyle* style = parentRenderStyle())
return style->preserveNewline();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698