Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: sky/engine/core/rendering/RenderText.h

Issue 845873004: Delete a bunch of paint invalidation rect computing code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderReplaced.cpp ('k') | sky/engine/core/rendering/RenderText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderReplaced.cpp ('k') | sky/engine/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698