| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 void computePreferredLogicalWidths(float leadWidth); | 147 void computePreferredLogicalWidths(float leadWidth); |
| 148 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont
Data*>& fallbackFonts, GlyphOverflow&); | 148 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont
Data*>& fallbackFonts, GlyphOverflow&); |
| 149 | 149 |
| 150 bool computeCanUseSimpleFontCodePath() const; | 150 bool computeCanUseSimpleFontCodePath() const; |
| 151 | 151 |
| 152 // Make length() private so that callers that have a RenderText* | 152 // Make length() private so that callers that have a RenderText* |
| 153 // will use the more efficient textLength() instead, while | 153 // will use the more efficient textLength() instead, while |
| 154 // callers with a RenderObject* can continue to use length(). | 154 // callers with a RenderObject* can continue to use length(). |
| 155 virtual unsigned length() const override final { return textLength(); } | 155 virtual unsigned length() const override final { return textLength(); } |
| 156 | 156 |
| 157 virtual void paint(PaintInfo&, const LayoutPoint&) override final { ASSERT_N
OT_REACHED(); } | 157 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) override final { ASSERT_NOT_REACHED(); } |
| 158 virtual void layout() override final { ASSERT_NOT_REACHED(); } | 158 virtual void layout() override final { ASSERT_NOT_REACHED(); } |
| 159 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation&, const LayoutPoint&, HitTestAction) override final { ASSERT_NOT_REACH
ED(); return false; } | 159 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation&, const LayoutPoint&, HitTestAction) override final { ASSERT_NOT_REACH
ED(); return false; } |
| 160 | 160 |
| 161 void deleteTextBoxes(); | 161 void deleteTextBoxes(); |
| 162 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 162 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 163 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 163 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
| 164 bool isAllASCII() const { return m_isAllASCII; } | 164 bool isAllASCII() const { return m_isAllASCII; } |
| 165 | 165 |
| 166 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. | 166 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. |
| 167 | 167 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 #endif | 215 #endif |
| 216 | 216 |
| 217 inline RenderText* Text::renderer() const | 217 inline RenderText* Text::renderer() const |
| 218 { | 218 { |
| 219 return toRenderText(CharacterData::renderer()); | 219 return toRenderText(CharacterData::renderer()); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace blink | 222 } // namespace blink |
| 223 | 223 |
| 224 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_ | 224 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_ |
| OLD | NEW |