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

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

Issue 1110233003: Update list markers in notify change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 8 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
Index: Source/core/layout/TextAutosizer.cpp
diff --git a/Source/core/layout/TextAutosizer.cpp b/Source/core/layout/TextAutosizer.cpp
index 568da42a402b5e6fa9d1d1c72f169184c082d132..2ceb0ba84f6c17e9ff8418c5be4aa499af6a986b 100644
--- a/Source/core/layout/TextAutosizer.cpp
+++ b/Source/core/layout/TextAutosizer.cpp
@@ -475,6 +475,15 @@ float TextAutosizer::inflate(LayoutObject* parent, InflateBehavior behavior, flo
// multiplier of 1 (except for list items which are handled in inflateListItem).
applyMultiplier(parent, 1);
}
+
+ if (parent->isListItem()) {
ojan 2015/04/30 02:56:45 I think it'd be better to keep this code in Layout
dsinclair 2015/04/30 17:52:30 From reading the comment in the old LayoutListItem
ojan 2015/05/01 01:09:55 Yeah. I don't really understand this comment. pdr
skobes 2015/05/01 17:58:16 TextAutosizer::inflateListItem was introduced beca
+ LayoutListItem* item = toLayoutListItem(parent);
+ if (item->marker()) {
+ inflateListItem(item, item->marker());
+ item->marker()->setPreferredLogicalWidthsDirty(MarkOnlyThis);
+ }
+ }
+
return multiplier;
}
« Source/core/layout/LayoutListItem.cpp ('K') | « Source/core/layout/LayoutListItem.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698