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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp

Issue 1473363003: Invalidate first line display item clients when first line style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle inherited firstline style Created 5 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: third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
index 5a94a49f17e7bf92aaec23ca80c417f461c30107..974149f37a8e8ab59cc4377097f31b4dd0d09552 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp
@@ -1280,6 +1280,20 @@ void InlineFlowBox::collectLeafBoxesInLogicalOrder(Vector<InlineBox*>& leafBoxes
}
}
+void InlineFlowBox::invalidateDisplayItemClientsOfFirstLine()
+{
+ ASSERT(isFirstLineStyle());
+ layoutObject().invalidateDisplayItemClient(*this);
+ for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
+ if (!curr->isFirstLineStyle())
+ break;
+ if (curr->isInlineFlowBox())
+ toInlineFlowBox(curr)->invalidateDisplayItemClientsOfFirstLine();
+ else
+ curr->layoutObject().invalidateDisplayItemClient(*curr);
+ }
+}
+
const char* InlineFlowBox::boxName() const
{
return "InlineFlowBox";

Powered by Google App Engine
This is Rietveld 408576698