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

Unified Diff: Source/core/layout/svg/SVGTextMetricsBuilder.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/SVGTextMetrics.cpp ('k') | Source/core/paint/FilterPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextMetricsBuilder.cpp
diff --git a/Source/core/layout/svg/SVGTextMetricsBuilder.cpp b/Source/core/layout/svg/SVGTextMetricsBuilder.cpp
index c243c1df20cd1fbc8123b313dbf68b6c0153fb01..9cbadf411c35862a47f84a8930920fc41b1bcf4b 100644
--- a/Source/core/layout/svg/SVGTextMetricsBuilder.cpp
+++ b/Source/core/layout/svg/SVGTextMetricsBuilder.cpp
@@ -97,9 +97,9 @@ SVGTextMetricsCalculator::~SVGTextMetricsCalculator()
void SVGTextMetricsCalculator::setupBidiRuns()
{
- LayoutStyle* style = m_text->style();
- m_textDirection = style->direction();
- if (isOverride(style->unicodeBidi()))
+ const LayoutStyle& style = m_text->styleRef();
+ m_textDirection = style.direction();
+ if (isOverride(style.unicodeBidi()))
return;
BidiStatus status(LTR, false);
« no previous file with comments | « Source/core/layout/svg/SVGTextMetrics.cpp ('k') | Source/core/paint/FilterPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698