| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); | 106 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); |
| 107 | 107 |
| 108 virtual bool canBeSelectionLeaf() const override { return true; } | 108 virtual bool canBeSelectionLeaf() const override { return true; } |
| 109 virtual void setSelectionState(SelectionState s) override final; | 109 virtual void setSelectionState(SelectionState s) override final; |
| 110 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool clipToVisibleContent = true) override; | 110 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool clipToVisibleContent = true) override; |
| 111 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 111 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
| 112 | 112 |
| 113 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin
Left(), 0); } | 113 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin
Left(), 0); } |
| 114 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi
nRight(), 0); } | 114 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi
nRight(), 0); } |
| 115 | 115 |
| 116 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override final; | |
| 117 | |
| 118 InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 116 InlineTextBox* firstTextBox() const { return m_firstTextBox; } |
| 119 InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 117 InlineTextBox* lastTextBox() const { return m_lastTextBox; } |
| 120 | 118 |
| 121 virtual int caretMinOffset() const override; | 119 virtual int caretMinOffset() const override; |
| 122 virtual int caretMaxOffset() const override; | 120 virtual int caretMaxOffset() const override; |
| 123 unsigned renderedTextLength() const; | 121 unsigned renderedTextLength() const; |
| 124 | 122 |
| 125 virtual int previousOffset(int current) const override final; | 123 virtual int previousOffset(int current) const override final; |
| 126 virtual int previousOffsetForBackwardDeletion(int current) const override fi
nal; | 124 virtual int previousOffsetForBackwardDeletion(int current) const override fi
nal; |
| 127 virtual int nextOffset(int current) const override final; | 125 virtual int nextOffset(int current) const override final; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 #endif | 217 #endif |
| 220 | 218 |
| 221 inline RenderText* Text::renderer() const | 219 inline RenderText* Text::renderer() const |
| 222 { | 220 { |
| 223 return toRenderText(CharacterData::renderer()); | 221 return toRenderText(CharacterData::renderer()); |
| 224 } | 222 } |
| 225 | 223 |
| 226 } // namespace blink | 224 } // namespace blink |
| 227 | 225 |
| 228 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_ | 226 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_ |
| OLD | NEW |