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

Unified Diff: sky/engine/core/dom/Text.cpp

Issue 838003008: Get rid of ensureStyleResolver(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Text.cpp
diff --git a/sky/engine/core/dom/Text.cpp b/sky/engine/core/dom/Text.cpp
index 18ee90a6c87de9ca598fce17405db084ef0c46eb..6912f83c2c10b250edfeb63095543f01644a09a7 100644
--- a/sky/engine/core/dom/Text.cpp
+++ b/sky/engine/core/dom/Text.cpp
@@ -153,7 +153,7 @@ void Text::recalcTextStyle(StyleRecalcChange change, Text* nextTextSibling)
{
if (RenderText* renderer = this->renderer()) {
if (change != NoChange || needsStyleRecalc())
- renderer->setStyle(document().ensureStyleResolver().styleForText(this));
+ renderer->setStyle(document().styleResolver().styleForText(this));
if (needsStyleRecalc())
renderer->setText(dataImpl());
clearNeedsStyleRecalc();
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698