Chromium Code Reviews| 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; |
| } |