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

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

Issue 847303003: Delete selection paint invalidation 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 FloatPoint firstRunOrigin() const; 101 FloatPoint firstRunOrigin() const;
102 float firstRunX() const; 102 float firstRunX() const;
103 float firstRunY() const; 103 float firstRunY() const;
104 104
105 virtual void setText(PassRefPtr<StringImpl>, bool force = false); 105 virtual void setText(PassRefPtr<StringImpl>, bool force = false);
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;
111 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) override; 110 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) override;
112 111
113 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin Left(), 0); } 112 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin Left(), 0); }
114 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi nRight(), 0); } 113 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi nRight(), 0); }
115 114
116 InlineTextBox* firstTextBox() const { return m_firstTextBox; } 115 InlineTextBox* firstTextBox() const { return m_firstTextBox; }
117 InlineTextBox* lastTextBox() const { return m_lastTextBox; } 116 InlineTextBox* lastTextBox() const { return m_lastTextBox; }
118 117
119 virtual int caretMinOffset() const override; 118 virtual int caretMinOffset() const override;
120 virtual int caretMaxOffset() const override; 119 virtual int caretMaxOffset() const override;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 #endif 216 #endif
218 217
219 inline RenderText* Text::renderer() const 218 inline RenderText* Text::renderer() const
220 { 219 {
221 return toRenderText(CharacterData::renderer()); 220 return toRenderText(CharacterData::renderer());
222 } 221 }
223 222
224 } // namespace blink 223 } // namespace blink
225 224
226 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_ 225 #endif // SKY_ENGINE_CORE_RENDERING_RENDERTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698