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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 bool computeCanUseSimpleFontCodePath() const; | 164 bool computeCanUseSimpleFontCodePath() const; |
165 | 165 |
166 // Make length() private so that callers that have a LayoutText* | 166 // Make length() private so that callers that have a LayoutText* |
167 // will use the more efficient textLength() instead, while | 167 // will use the more efficient textLength() instead, while |
168 // callers with a LayoutObject* can continue to use length(). | 168 // callers with a LayoutObject* can continue to use length(). |
169 virtual unsigned length() const override final { return textLength(); } | 169 virtual unsigned length() const override final { return textLength(); } |
170 | 170 |
171 virtual void paint(const PaintInfo&, const LayoutPoint&) override final { AS
SERT_NOT_REACHED(); } | 171 virtual void paint(const PaintInfo&, const LayoutPoint&) override final { AS
SERT_NOT_REACHED(); } |
172 virtual void layout() override final { ASSERT_NOT_REACHED(); } | 172 virtual void layout() override final { ASSERT_NOT_REACHED(); } |
173 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation&, const LayoutPoint&, HitTestAction) override final { ASSERT_NOT_REACH
ED(); return false; } | 173 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation&, const Layou
tPoint&, HitTestAction) override final { ASSERT_NOT_REACHED(); return false; } |
174 | 174 |
175 void deleteTextBoxes(); | 175 void deleteTextBoxes(); |
176 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 176 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
177 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 177 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
178 bool isAllASCII() const { return m_isAllASCII; } | 178 bool isAllASCII() const { return m_isAllASCII; } |
179 | 179 |
180 void secureText(UChar mask); | 180 void secureText(UChar mask); |
181 | 181 |
182 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. | 182 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. |
183 | 183 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 inline LayoutText* Text::layoutObject() const | 238 inline LayoutText* Text::layoutObject() const |
239 { | 239 { |
240 return toLayoutText(CharacterData::layoutObject()); | 240 return toLayoutText(CharacterData::layoutObject()); |
241 } | 241 } |
242 | 242 |
243 void applyTextTransform(const ComputedStyle*, String&, UChar); | 243 void applyTextTransform(const ComputedStyle*, String&, UChar); |
244 | 244 |
245 } // namespace blink | 245 } // namespace blink |
246 | 246 |
247 #endif // LayoutText_h | 247 #endif // LayoutText_h |
OLD | NEW |