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

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

Issue 681023002: Remove a bunch of frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 { 71 {
72 return style()->isHorizontalWritingMode() ? viewWidth(ExcludeScrollbars) : viewHeight(ExcludeScrollbars); 72 return style()->isHorizontalWritingMode() ? viewWidth(ExcludeScrollbars) : viewHeight(ExcludeScrollbars);
73 } 73 }
74 int viewLogicalHeight() const; 74 int viewLogicalHeight() const;
75 LayoutUnit viewLogicalHeightForPercentages() const; 75 LayoutUnit viewLogicalHeightForPercentages() const;
76 76
77 float zoomFactor() const; 77 float zoomFactor() const;
78 78
79 FrameView* frameView() const { return m_frameView; } 79 FrameView* frameView() const { return m_frameView; }
80 80
81 enum ViewportConstrainedPosition {
82 IsNotFixedPosition,
83 IsFixedPosition,
84 };
85 void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintIn validationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvali dationState*) const;
86 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 81 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
87 82
88 void invalidatePaintForRectangle(const LayoutRect&) const; 83 void invalidatePaintForRectangle(const LayoutRect&) const;
89 84
90 void invalidatePaintForViewAndCompositedLayers(); 85 void invalidatePaintForViewAndCompositedLayers();
91 86
92 virtual void paint(PaintInfo&, const LayoutPoint&) override; 87 virtual void paint(PaintInfo&, const LayoutPoint&) override;
93 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride; 88 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&) ov erride;
94 89
95 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld, PaintInvalidationNothing }; 90 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld, PaintInvalidationNothing };
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 196 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
202 } 197 }
203 private: 198 private:
204 const PaintInvalidationState* m_paintInvalidationState; 199 const PaintInvalidationState* m_paintInvalidationState;
205 bool m_didDisable; 200 bool m_didDisable;
206 }; 201 };
207 202
208 } // namespace blink 203 } // namespace blink
209 204
210 #endif // RenderView_h 205 #endif // RenderView_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.cpp ('k') | sky/engine/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698