| 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, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 float& beginMaxW, float& endMaxW, | 82 float& beginMaxW, float& endMaxW, |
| 83 float& minW, float& maxW, bool& stripFrontSpaces); | 83 float& minW, float& maxW, bool& stripFrontSpaces); |
| 84 | 84 |
| 85 virtual LayoutRect linesBoundingBox() const; | 85 virtual LayoutRect linesBoundingBox() const; |
| 86 LayoutRect linesVisualOverflowBoundingBox() const; | 86 LayoutRect linesVisualOverflowBoundingBox() const; |
| 87 | 87 |
| 88 FloatPoint firstRunOrigin() const; | 88 FloatPoint firstRunOrigin() const; |
| 89 float firstRunX() const; | 89 float firstRunX() const; |
| 90 float firstRunY() const; | 90 float firstRunY() const; |
| 91 | 91 |
| 92 void setText(PassRefPtr<StringImpl>, bool force = false); | 92 virtual void setText(PassRefPtr<StringImpl>, bool force = false); |
| 93 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); | 93 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); |
| 94 | 94 |
| 95 virtual void transformText(); |
| 96 |
| 95 virtual bool canBeSelectionLeaf() const { return true; } | 97 virtual bool canBeSelectionLeaf() const { return true; } |
| 96 virtual void setSelectionState(SelectionState s); | 98 virtual void setSelectionState(SelectionState s); |
| 97 virtual LayoutRect selectionRectForRepaint(RenderBoxModelObject* repaintCont
ainer, bool clipToVisibleContent = true); | 99 virtual LayoutRect selectionRectForRepaint(RenderBoxModelObject* repaintCont
ainer, bool clipToVisibleContent = true); |
| 98 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); | 100 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); |
| 99 | 101 |
| 100 virtual LayoutUnit marginLeft() const { return style()->marginLeft().calcMin
Value(0); } | 102 virtual LayoutUnit marginLeft() const { return style()->marginLeft().calcMin
Value(0); } |
| 101 virtual LayoutUnit marginRight() const { return style()->marginRight().calcM
inValue(0); } | 103 virtual LayoutUnit marginRight() const { return style()->marginRight().calcM
inValue(0); } |
| 102 | 104 |
| 103 virtual LayoutRect clippedOverflowRectForRepaint(RenderBoxModelObject* repai
ntContainer) const; | 105 virtual LayoutRect clippedOverflowRectForRepaint(RenderBoxModelObject* repai
ntContainer) const; |
| 104 | 106 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 virtual void paint(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHED(); } | 155 virtual void paint(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHED(); } |
| 154 virtual void layout() { ASSERT_NOT_REACHED(); } | 156 virtual void layout() { ASSERT_NOT_REACHED(); } |
| 155 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const Layout
Point&, const LayoutPoint&, HitTestAction) { ASSERT_NOT_REACHED(); return false;
} | 157 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const Layout
Point&, const LayoutPoint&, HitTestAction) { ASSERT_NOT_REACHED(); return false;
} |
| 156 | 158 |
| 157 void deleteTextBoxes(); | 159 void deleteTextBoxes(); |
| 158 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 160 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 159 float widthFromCache(const Font&, int start, int len, float xPos, HashSet<co
nst SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 161 float widthFromCache(const Font&, int start, int len, float xPos, HashSet<co
nst SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
| 160 bool isAllASCII() const { return m_isAllASCII; } | 162 bool isAllASCII() const { return m_isAllASCII; } |
| 161 void updateNeedsTranscoding(); | 163 void updateNeedsTranscoding(); |
| 162 | 164 |
| 163 inline void transformText(String&) const; | |
| 164 void secureText(UChar mask); | 165 void secureText(UChar mask); |
| 165 | 166 |
| 166 float m_minWidth; // here to minimize padding in 64-bit. | 167 float m_minWidth; // here to minimize padding in 64-bit. |
| 167 | 168 |
| 168 String m_text; | 169 String m_text; |
| 169 | 170 |
| 170 InlineTextBox* m_firstTextBox; | 171 InlineTextBox* m_firstTextBox; |
| 171 InlineTextBox* m_lastTextBox; | 172 InlineTextBox* m_lastTextBox; |
| 172 | 173 |
| 173 float m_maxWidth; | 174 float m_maxWidth; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 inline void RenderText::checkConsistency() const | 209 inline void RenderText::checkConsistency() const |
| 209 { | 210 { |
| 210 } | 211 } |
| 211 #endif | 212 #endif |
| 212 | 213 |
| 213 void applyTextTransform(const RenderStyle*, String&, UChar); | 214 void applyTextTransform(const RenderStyle*, String&, UChar); |
| 214 | 215 |
| 215 } // namespace WebCore | 216 } // namespace WebCore |
| 216 | 217 |
| 217 #endif // RenderText_h | 218 #endif // RenderText_h |
| OLD | NEW |