OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 | 1430 |
1431 InlineBox* InlineFlowBox::LastLeafChild() const { | 1431 InlineBox* InlineFlowBox::LastLeafChild() const { |
1432 InlineBox* leaf = nullptr; | 1432 InlineBox* leaf = nullptr; |
1433 for (InlineBox* child = LastChild(); child && !leaf; | 1433 for (InlineBox* child = LastChild(); child && !leaf; |
1434 child = child->PrevOnLine()) | 1434 child = child->PrevOnLine()) |
1435 leaf = child->IsLeaf() ? child : ToInlineFlowBox(child)->LastLeafChild(); | 1435 leaf = child->IsLeaf() ? child : ToInlineFlowBox(child)->LastLeafChild(); |
1436 return leaf; | 1436 return leaf; |
1437 } | 1437 } |
1438 | 1438 |
1439 SelectionState InlineFlowBox::GetSelectionState() const { | 1439 SelectionState InlineFlowBox::GetSelectionState() const { |
1440 return SelectionNone; | 1440 return SelectionState::kNone; |
1441 } | 1441 } |
1442 | 1442 |
1443 bool InlineFlowBox::CanAccommodateEllipsis(bool ltr, | 1443 bool InlineFlowBox::CanAccommodateEllipsis(bool ltr, |
1444 LayoutUnit block_edge, | 1444 LayoutUnit block_edge, |
1445 LayoutUnit ellipsis_width) const { | 1445 LayoutUnit ellipsis_width) const { |
1446 for (InlineBox* box = FirstChild(); box; box = box->NextOnLine()) { | 1446 for (InlineBox* box = FirstChild(); box; box = box->NextOnLine()) { |
1447 if (!box->CanAccommodateEllipsis(ltr, block_edge, ellipsis_width)) | 1447 if (!box->CanAccommodateEllipsis(ltr, block_edge, ellipsis_width)) |
1448 return false; | 1448 return false; |
1449 } | 1449 } |
1450 return true; | 1450 return true; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 InlineBox::ShowLineTreeAndMark(marked_box1, marked_label1, marked_box2, | 1707 InlineBox::ShowLineTreeAndMark(marked_box1, marked_label1, marked_box2, |
1708 marked_label2, obj, depth); | 1708 marked_label2, obj, depth); |
1709 for (const InlineBox* box = FirstChild(); box; box = box->NextOnLine()) | 1709 for (const InlineBox* box = FirstChild(); box; box = box->NextOnLine()) |
1710 box->ShowLineTreeAndMark(marked_box1, marked_label1, marked_box2, | 1710 box->ShowLineTreeAndMark(marked_box1, marked_label1, marked_box2, |
1711 marked_label2, obj, depth + 1); | 1711 marked_label2, obj, depth + 1); |
1712 } | 1712 } |
1713 | 1713 |
1714 #endif | 1714 #endif |
1715 | 1715 |
1716 } // namespace blink | 1716 } // namespace blink |
OLD | NEW |