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

Unified Diff: Source/core/css/resolver/FontBuilder.cpp

Issue 686723002: Improve RAII of StyleResolverState. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: When baseRenderStyle!=0: 1) don't inherit, and 2) use defaultStyleForElement as fallback parent. 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/css/resolver/FontBuilder.cpp
diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp
index a0cc60f30b974333e9b440d58ec892fdcb5ed2ae..2d91ad479bacad4c0565e259a7c86121e59e59cf 100644
--- a/Source/core/css/resolver/FontBuilder.cpp
+++ b/Source/core/css/resolver/FontBuilder.cpp
@@ -60,9 +60,9 @@ private:
FontDescription m_fontDescription;
};
-FontBuilder::FontBuilder(const Document& document)
+FontBuilder::FontBuilder(const Document& document, RenderStyle* style)
: m_document(document)
- , m_style(nullptr)
+ , m_style(style)
, m_fontDirty(false)
{
ASSERT(document.frame());

Powered by Google App Engine
This is Rietveld 408576698