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

Unified Diff: Source/core/dom/Document.cpp

Issue 686723002: Improve RAII of StyleResolverState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix assertions. Created 6 years, 2 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/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index d9973c2d86cf2b4bc9b8693edb4855524db8a4b0..9f628e1c1d9e1d7ede8cdebefc7f1c16f5c26734 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1662,8 +1662,7 @@ void Document::updateDistributionForNodeIfNeeded(Node* node)
void Document::setupFontBuilder(RenderStyle* documentStyle)
{
- FontBuilder fontBuilder(*this);
- fontBuilder.setStyle(documentStyle);
+ FontBuilder fontBuilder(*this, documentStyle);
RefPtrWillBeRawPtr<CSSFontSelector> selector = m_styleEngine->fontSelector();
fontBuilder.createFontForDocument(selector, documentStyle);
}

Powered by Google App Engine
This is Rietveld 408576698