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

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

Issue 701873002: Revert "Don't invalidate scrolling container layer when scrolling contents need invalidation" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 FrameView* frameView() const { return m_frameView; } 83 FrameView* frameView() const { return m_frameView; }
84 84
85 enum ViewportConstrainedPosition { 85 enum ViewportConstrainedPosition {
86 IsNotFixedPosition, 86 IsNotFixedPosition,
87 IsFixedPosition, 87 IsFixedPosition,
88 }; 88 };
89 void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintIn validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali dationState*) const; 89 void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintIn validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali dationState*) const;
90 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 90 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
91 91
92 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason, const RenderObject& forRenderer) const; 92 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason) const;
93 93
94 void invalidatePaintForViewAndCompositedLayers(); 94 void invalidatePaintForViewAndCompositedLayers();
95 95
96 virtual void paint(PaintInfo&, const LayoutPoint&) override; 96 virtual void paint(PaintInfo&, const LayoutPoint&) override;
97 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride; 97 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride;
98 98
99 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld }; 99 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld };
100 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); 100 void setSelection(RenderObject* start, int startPos, RenderObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld);
101 void clearSelection(); 101 void clearSelection();
102 RenderObject* selectionStart() const { return m_selectionStart; } 102 RenderObject* selectionStart() const { return m_selectionStart; }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 236 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
237 } 237 }
238 private: 238 private:
239 const PaintInvalidationState* m_paintInvalidationState; 239 const PaintInvalidationState* m_paintInvalidationState;
240 bool m_didDisable; 240 bool m_didDisable;
241 }; 241 };
242 242
243 } // namespace blink 243 } // namespace blink
244 244
245 #endif // RenderView_h 245 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698