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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1148173003: Changing out-of-flow-ness on a multicol child may affect the need for column sets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/layout/LayoutMultiColumnFlowThread.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index ea3e8a38731fcb5579ab27e653bd98016a5963d9..72a589fbcc157b0f6ec810731cc6157286d718e9 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -1754,6 +1754,10 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style)
diff = adjustStyleDifference(diff);
+ if (m_style) {
+ if (LayoutFlowThread* flowThread = flowThreadContainingBlock())
+ flowThread->flowThreadDescendantStyleWillChange(this, diff, *style);
+ }
styleWillChange(diff, *style);
RefPtr<ComputedStyle> oldStyle = m_style.release();
@@ -1770,6 +1774,10 @@ void LayoutObject::setStyle(PassRefPtr<ComputedStyle> style)
bool doesNotNeedLayoutOrPaintInvalidation = !m_parent;
styleDidChange(diff, oldStyle.get());
+ if (oldStyle.get()) {
+ if (LayoutFlowThread* flowThread = flowThreadContainingBlock())
+ flowThread->flowThreadDescendantStyleDidChange(this, diff, *oldStyle.get());
+ }
// FIXME: |this| might be destroyed here. This can currently happen for a LayoutTextFragment when
// its first-letter block gets an update in LayoutTextFragment::styleDidChange. For LayoutTextFragment(s),
« no previous file with comments | « Source/core/layout/LayoutMultiColumnFlowThread.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698