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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 TextRun constructTextRun(const ComputedStyle&, StringView, int maximumLength
, StringBuilder* charactersWithHyphen = nullptr) const; | 93 TextRun constructTextRun(const ComputedStyle&, StringView, int maximumLength
, StringBuilder* charactersWithHyphen = nullptr) const; |
94 | 94 |
95 #ifndef NDEBUG | 95 #ifndef NDEBUG |
96 void showBox(int = 0) const override; | 96 void showBox(int = 0) const override; |
97 #endif | 97 #endif |
98 const char* boxName() const override; | 98 const char* boxName() const override; |
99 String debugName() const override; | 99 String debugName() const override; |
100 | 100 |
101 String text() const; | 101 String text() const; |
102 | 102 |
103 void transformText(); | |
104 public: | 103 public: |
105 TextRun constructTextRunForInspector(const ComputedStyle&) const; | 104 TextRun constructTextRunForInspector(const ComputedStyle&) const; |
106 LayoutRect calculateBoundaries() const override { return LayoutRect(x(), y()
, width(), height()); } | 105 LayoutRect calculateBoundaries() const override { return LayoutRect(x(), y()
, width(), height()); } |
107 | 106 |
108 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; | 107 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; |
109 bool isSelected(int startPos, int endPos) const; | 108 bool isSelected(int startPos, int endPos) const; |
110 void selectionStartEnd(int& sPos, int& ePos) const; | 109 void selectionStartEnd(int& sPos, int& ePos) const; |
111 | 110 |
112 // These functions both paint markers and update the DocumentMarker's render
edRect. | 111 // These functions both paint markers and update the DocumentMarker's render
edRect. |
113 virtual void paintDocumentMarker(GraphicsContext&, const LayoutPoint& boxOri
gin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar) const; | 112 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... |
181 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : Tex
tRun::ForbidLeadingExpansion) | 180 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : Tex
tRun::ForbidLeadingExpansion) |
182 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion
: TextRun::ForbidTrailingExpansion); | 181 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion
: TextRun::ForbidTrailingExpansion); |
183 } | 182 } |
184 }; | 183 }; |
185 | 184 |
186 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); | 185 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
187 | 186 |
188 } // namespace blink | 187 } // namespace blink |
189 | 188 |
190 #endif // InlineTextBox_h | 189 #endif // InlineTextBox_h |
OLD | NEW |