| 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, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 TextRun constructTextRun(const ComputedStyle&, StringView, int maximumLength
, StringBuilder* charactersWithHyphen = nullptr) const; | 102 TextRun constructTextRun(const ComputedStyle&, StringView, int maximumLength
, StringBuilder* charactersWithHyphen = nullptr) const; |
| 103 | 103 |
| 104 #ifndef NDEBUG | 104 #ifndef NDEBUG |
| 105 void showBox(int = 0) const override; | 105 void showBox(int = 0) const override; |
| 106 #endif | 106 #endif |
| 107 const char* boxName() const override; | 107 const char* boxName() const override; |
| 108 String debugName() const override; | 108 String debugName() const override; |
| 109 | 109 |
| 110 String text() const; | 110 String text() const; |
| 111 | 111 |
| 112 void transformText(); | |
| 113 public: | 112 public: |
| 114 TextRun constructTextRunForInspector(const ComputedStyle&) const; | 113 TextRun constructTextRunForInspector(const ComputedStyle&) const; |
| 115 LayoutRect calculateBoundaries() const override { return LayoutRect(x(), y()
, width(), height()); } | 114 LayoutRect calculateBoundaries() const override { return LayoutRect(x(), y()
, width(), height()); } |
| 116 | 115 |
| 117 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; | 116 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; |
| 118 bool isSelected(int startPos, int endPos) const; | 117 bool isSelected(int startPos, int endPos) const; |
| 119 void selectionStartEnd(int& sPos, int& ePos) const; | 118 void selectionStartEnd(int& sPos, int& ePos) const; |
| 120 | 119 |
| 121 // These functions both paint markers and update the DocumentMarker's render
edRect. | 120 // These functions both paint markers and update the DocumentMarker's render
edRect. |
| 122 virtual void paintDocumentMarker(GraphicsContext&, const LayoutPoint& boxOri
gin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar) const; | 121 virtual void paintDocumentMarker(GraphicsContext&, const LayoutPoint& boxOri
gin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar) const; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : Tex
tRun::ForbidLeadingExpansion) | 189 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : Tex
tRun::ForbidLeadingExpansion) |
| 191 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion
: TextRun::ForbidTrailingExpansion); | 190 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion
: TextRun::ForbidTrailingExpansion); |
| 192 } | 191 } |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); | 194 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
| 196 | 195 |
| 197 } // namespace blink | 196 } // namespace blink |
| 198 | 197 |
| 199 #endif // InlineTextBox_h | 198 #endif // InlineTextBox_h |
| OLD | NEW |