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

Unified Diff: Source/core/layout/svg/SVGTextLayoutEngine.cpp

Issue 910083002: Constify and use LayoutStyle reference in layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined again Created 5 years, 10 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 | « Source/core/layout/svg/SVGTextChunkBuilder.cpp ('k') | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextLayoutEngine.cpp
diff --git a/Source/core/layout/svg/SVGTextLayoutEngine.cpp b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
index 78e54e99ed586bda62b638fad622c35ba6bba4b0..99fd53aa177abd54869d51546ffecbd307822dd3 100644
--- a/Source/core/layout/svg/SVGTextLayoutEngine.cpp
+++ b/Source/core/layout/svg/SVGTextLayoutEngine.cpp
@@ -245,12 +245,11 @@ void SVGTextLayoutEngine::layoutInlineTextBox(SVGInlineTextBox* textBox)
ASSERT(text.parent()->node());
ASSERT(text.parent()->node()->isSVGElement());
- const LayoutStyle* style = text.style();
- ASSERT(style);
+ const LayoutStyle& style = text.styleRef();
textBox->clearTextFragments();
- m_isVerticalText = style->svgStyle().isVerticalWritingMode();
- layoutTextOnLineOrPath(textBox, text, *style);
+ m_isVerticalText = style.svgStyle().isVerticalWritingMode();
+ layoutTextOnLineOrPath(textBox, text, style);
if (m_inPathLayout) {
m_pathLayoutBoxes.append(textBox);
« no previous file with comments | « Source/core/layout/svg/SVGTextChunkBuilder.cpp ('k') | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698