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

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

Issue 1209743004: Invalidate ellipsis box when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/editing/selection/select-text-overflow-ellipsis.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutText.cpp
diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
index 4df0b5aecd0f5b4e1d4b585744dcb77d4b8d432e..d1a3209c32b01bf7cb461914b365ebea90966ea8 100644
--- a/Source/core/layout/LayoutText.cpp
+++ b/Source/core/layout/LayoutText.cpp
@@ -1857,8 +1857,13 @@ PassRefPtr<AbstractInlineTextBox> LayoutText::firstAbstractInlineTextBox()
void LayoutText::invalidateDisplayItemClients(const LayoutBoxModelObject& paintInvalidationContainer) const
{
LayoutObject::invalidateDisplayItemClients(paintInvalidationContainer);
- for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox())
+ for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*box);
+ if (box->truncation() != cNoTruncation) {
+ if (EllipsisBox* ellipsisBox = box->root().ellipsisBox())
+ paintInvalidationContainer.invalidateDisplayItemClientOnBacking(*ellipsisBox);
+ }
+ }
}
} // namespace blink
« no previous file with comments | « LayoutTests/editing/selection/select-text-overflow-ellipsis.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698