| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // but are pointers into the enclosing inline / block (see LayoutInline's | 59 // but are pointers into the enclosing inline / block (see LayoutInline's |
| 60 // and LayoutBlock's m_lineBoxes). | 60 // and LayoutBlock's m_lineBoxes). |
| 61 // | 61 // |
| 62 // | 62 // |
| 63 // This class implements the preferred logical widths computation | 63 // This class implements the preferred logical widths computation |
| 64 // for its underlying text. The widths are stored into m_minWidth | 64 // for its underlying text. The widths are stored into m_minWidth |
| 65 // and m_maxWidth. They are computed lazily based on | 65 // and m_maxWidth. They are computed lazily based on |
| 66 // m_preferredLogicalWidthsDirty. | 66 // m_preferredLogicalWidthsDirty. |
| 67 // | 67 // |
| 68 // The previous comment applies also for painting. See e.g. | 68 // The previous comment applies also for painting. See e.g. |
| 69 // BlockPainter::paintContents in particular the use of LineBoxListPainter. | 69 // BlockFlowPainter::paintContents in particular the use of LineBoxListPainter. |
| 70 class CORE_EXPORT LayoutText : public LayoutObject { | 70 class CORE_EXPORT LayoutText : public LayoutObject { |
| 71 public: | 71 public: |
| 72 // FIXME: If the node argument is not a Text node or the string argument is | 72 // FIXME: If the node argument is not a Text node or the string argument is |
| 73 // not the content of the Text node, updating text-transform property | 73 // not the content of the Text node, updating text-transform property |
| 74 // doesn't re-transform the string. | 74 // doesn't re-transform the string. |
| 75 LayoutText(Node*, PassRefPtr<StringImpl>); | 75 LayoutText(Node*, PassRefPtr<StringImpl>); |
| 76 #if ENABLE(ASSERT) | 76 #if ENABLE(ASSERT) |
| 77 ~LayoutText() override; | 77 ~LayoutText() override; |
| 78 #endif | 78 #endif |
| 79 | 79 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 inline LayoutText* Text::layoutObject() const | 291 inline LayoutText* Text::layoutObject() const |
| 292 { | 292 { |
| 293 return toLayoutText(CharacterData::layoutObject()); | 293 return toLayoutText(CharacterData::layoutObject()); |
| 294 } | 294 } |
| 295 | 295 |
| 296 void applyTextTransform(const ComputedStyle*, String&, UChar); | 296 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 297 | 297 |
| 298 } // namespace blink | 298 } // namespace blink |
| 299 | 299 |
| 300 #endif // LayoutText_h | 300 #endif // LayoutText_h |
| OLD | NEW |