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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 1980733002: Clear knownToHaveNoOverflow() for line boxes when recomputing overflow without layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/WebKit/LayoutTests/fast/repaint/inline-box-overflow-repaint-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 6fbbd92cb6f4ded212c91d621f5a3b97f3963136..d74195b64d1ca2383f6c5be485439b868c258d38 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -3176,6 +3176,7 @@ bool LayoutBlockFlow::recalcInlineChildrenOverflowAfterStyleChange()
GlyphOverflowAndFallbackFontsMap textBoxDataMap;
for (ListHashSet<RootInlineBox*>::const_iterator it = lineBoxes.begin(); it != lineBoxes.end(); ++it) {
RootInlineBox* box = *it;
+ box->clearKnownToHaveNoOverflow();
Xianzhu 2016/05/16 22:29:19 Shouldn't we clearKnownToHaveNoOverflow() in compu
rhogan 2016/05/17 17:38:08 No, because InlineBox::computeOverflow() consults
box->computeOverflow(box->lineTop(), box->lineBottom(), textBoxDataMap);
}
return childrenOverflowChanged;
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/repaint/inline-box-overflow-repaint-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698