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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.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: New method 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 3d7b00a155cc56f05ddcf3cbe3f00a7405d4368f..546aec893b42a9d468c1a97e546b8350a89d1075 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -2065,4 +2065,12 @@ LayoutUnit LayoutBlockFlow::startAlignedOffsetForLine(LayoutUnit position, bool
return logicalLeft;
}
+void LayoutBlockFlow::invalidateDisplayItemClientsOfFirstLine()
+{
+ if (RootInlineBox* firstRootBox = this->firstRootBox())
+ firstRootBox->invalidateDisplayItemClientsOfFirstLine();
+ else if (firstChild()->isLayoutBlockFlow())
+ toLayoutBlockFlow(firstChild())->invalidateDisplayItemClientsOfFirstLine();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698