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

Unified Diff: Source/core/css/invalidation/StyleInvalidator.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/css/SiblingTraversalStrategies.h ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/invalidation/StyleInvalidator.cpp
diff --git a/Source/core/css/invalidation/StyleInvalidator.cpp b/Source/core/css/invalidation/StyleInvalidator.cpp
index 63541a4ec0f21f02ed40dca3d82ccf785c5241b1..e194b84de6494ef4d5a1e8ce9adf50a4b94cb4ef 100644
--- a/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -176,9 +176,9 @@ bool StyleInvalidator::invalidate(Element& element, StyleInvalidator::RecursionD
ASSERT(!recursionData.wholeSubtreeInvalid());
element.setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleInvalidator));
} else if (recursionData.hasInvalidationSets() && someChildrenNeedStyleRecalc) {
- // Clone the LayoutStyle in order to preserve correct style sharing, if possible. Otherwise recalc style.
+ // Clone the ComputedStyle in order to preserve correct style sharing, if possible. Otherwise recalc style.
if (LayoutObject* renderer = element.layoutObject()) {
- renderer->setStyleInternal(LayoutStyle::clone(renderer->styleRef()));
+ renderer->setStyleInternal(ComputedStyle::clone(renderer->styleRef()));
} else {
TRACE_STYLE_INVALIDATOR_INVALIDATION_IF_ENABLED(element, PreventStyleSharingForParent);
element.setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleInvalidator));
« no previous file with comments | « Source/core/css/SiblingTraversalStrategies.h ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698