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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.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: Address mstensho's comments Created 5 years 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/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index 30937274cb933e365f62d1c3936c7e09cd96e977..8b1f43c763120428fcb585e92263065394f1108b 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -384,6 +384,15 @@ LayoutPoint InlineBox::flipForWritingMode(const LayoutPoint& point) const
return root().block().flipForWritingMode(point);
}
+void InlineBox::invalidateDisplayItemClientsRecursively()
+{
+ layoutObject().invalidateDisplayItemClient(*this);
+ if (!isInlineFlowBox())
+ return;
+ for (InlineBox* child = toInlineFlowBox(this)->firstChild(); child; child = child->nextOnLine())
+ child->invalidateDisplayItemClientsRecursively();
+}
+
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698