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

Side by Side Diff: Source/core/rendering/RenderView.h

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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 | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void invalidatePaintForRectangle(const LayoutRect&, InvalidationReason) cons t; 90 void invalidatePaintForRectangle(const LayoutRect&, InvalidationReason) cons t;
91 91
92 void invalidatePaintForViewAndCompositedLayers(); 92 void invalidatePaintForViewAndCompositedLayers();
93 93
94 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 94 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
95 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV ERRIDE; 95 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) OV ERRIDE;
96 96
97 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld, PaintInvalidationNothing }; 97 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld, PaintInvalidationNothing };
98 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); 98 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld);
99 void getSelection(RenderObject*& startRenderer, int& startOffset, RenderObje ct*& endRenderer, int& endOffset) const;
100 void clearSelection(); 99 void clearSelection();
101 RenderObject* selectionStart() const { return m_selectionStart; } 100 RenderObject* selectionStart() const { return m_selectionStart; }
102 RenderObject* selectionEnd() const { return m_selectionEnd; } 101 RenderObject* selectionEnd() const { return m_selectionEnd; }
103 IntRect selectionBounds() const; 102 IntRect selectionBounds() const;
104 void selectionStartEnd(int& startPos, int& endPos) const; 103 void selectionStartEnd(int& startPos, int& endPos) const;
105 void invalidatePaintForSelection() const; 104 void invalidatePaintForSelection() const;
106 105
107 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE; 106 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE;
108 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E; 107 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID E;
109 108
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void pushLayoutState(LayoutState&); 162 void pushLayoutState(LayoutState&);
164 void popLayoutState(); 163 void popLayoutState();
165 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE FINAL; 164 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE FINAL;
166 165
167 private: 166 private:
168 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE; 167 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE;
169 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 168 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
170 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE; 169 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE;
171 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE; 170 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
172 171
173 bool shouldInvalidatePaint(const LayoutRect&) const;
174
175 void layoutContent(); 172 void layoutContent();
176 #if ENABLE(ASSERT) 173 #if ENABLE(ASSERT)
177 void checkLayoutState(); 174 void checkLayoutState();
178 #endif 175 #endif
179 176
180 friend class ForceHorriblySlowRectMapping; 177 friend class ForceHorriblySlowRectMapping;
181 178
182 bool shouldUsePrintingLayout() const; 179 bool shouldUsePrintingLayout() const;
183 180
184 RenderObject* backgroundRenderer() const; 181 RenderObject* backgroundRenderer() const;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 225 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
229 } 226 }
230 private: 227 private:
231 const PaintInvalidationState* m_paintInvalidationState; 228 const PaintInvalidationState* m_paintInvalidationState;
232 bool m_didDisable; 229 bool m_didDisable;
233 }; 230 };
234 231
235 } // namespace blink 232 } // namespace blink
236 233
237 #endif // RenderView_h 234 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.h ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698