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

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

Issue 699213003: RenderTreeBuilder => RenderTreeBuilderForElement and RenderTreeBuilderForText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 2e663af766630c0cf0857f530902a5e5d913ca64..4a9f97fed16694baf569cfcb7c9d11e7239359da 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1338,7 +1338,8 @@ void Element::attach(const AttachContext& context)
data->clearComputedStyle();
}
- RenderTreeBuilder(this, context.resolvedStyle).createRendererForElementIfNeeded();
+ RefPtr<RenderStyle> style = context.resolvedStyle ? context.resolvedStyle : styleForRenderer();
+ RenderTreeBuilderForElement(this, style.release()).createRendererIfNeeded();
addCallbackSelectors();

Powered by Google App Engine
This is Rietveld 408576698