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

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

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 * 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 IsNotFixedPosition, 85 IsNotFixedPosition,
86 IsFixedPosition, 86 IsFixedPosition,
87 }; 87 };
88 88
89 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition ; } 89 static ViewportConstrainedPosition viewportConstrainedPosition(EPosition pos ition) { return position == FixedPosition ? IsFixedPosition : IsNotFixedPosition ; }
90 void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintIn validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali dationState*) const; 90 void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintIn validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali dationState*) const;
91 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 91 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
92 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio n) const; 92 void adjustViewportConstrainedOffset(LayoutRect&, ViewportConstrainedPositio n) const;
93 93
94 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason) const; 94 void invalidatePaintForRectangle(const LayoutRect&, PaintInvalidationReason) const;
95 LayoutRect rectForPaintInvalidation(const LayoutRect* paintInvalidationRectP tr = 0) const;
95 96
96 void invalidatePaintForViewAndCompositedLayers(); 97 void invalidatePaintForViewAndCompositedLayers();
97 98
98 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 99 virtual void paint(const PaintInfo&, const LayoutPoint&) override;
99 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) override; 100 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) override;
100 101
101 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld }; 102 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld };
102 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld); 103 void setSelection(LayoutObject* start, int startPos, LayoutObject*, int endP os, SelectionPaintInvalidationMode = PaintInvalidationNewXOROld);
103 void clearSelection(); 104 void clearSelection();
104 void setSelection(const FrameSelection&); 105 void setSelection(const FrameSelection&);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 254 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
254 } 255 }
255 private: 256 private:
256 const PaintInvalidationState* m_paintInvalidationState; 257 const PaintInvalidationState* m_paintInvalidationState;
257 bool m_didDisable; 258 bool m_didDisable;
258 }; 259 };
259 260
260 } // namespace blink 261 } // namespace blink
261 262
262 #endif // RenderView_h 263 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698