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

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

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderText.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 float zoomFactor() const; 80 float zoomFactor() const;
81 81
82 FrameView* frameView() const { return m_frameView; } 82 FrameView* frameView() const { return m_frameView; }
83 83
84 enum ViewportConstrainedPosition { 84 enum ViewportConstrainedPosition {
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 LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, ViewportConstrainedPosition, const PaintInvalida tionState*) const;
91 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 91 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride;
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 95
96 void invalidatePaintForViewAndCompositedLayers(); 96 void invalidatePaintForViewAndCompositedLayers();
97 97
98 virtual void paint(const PaintInfo&, const LayoutPoint&) override; 98 virtual void paint(const PaintInfo&, const LayoutPoint&) override;
99 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) override; 99 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) override;
100 100
101 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld }; 101 enum SelectionPaintInvalidationMode { PaintInvalidationNewXOROld, PaintInval idationNewMinusOld };
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override; 162 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;
163 163
164 double layoutViewportWidth() const; 164 double layoutViewportWidth() const;
165 double layoutViewportHeight() const; 165 double layoutViewportHeight() const;
166 166
167 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 167 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
168 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 168 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
169 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override final; 169 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override final;
170 170
171 private: 171 private:
172 virtual void mapLocalToContainer(const LayoutLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override; 172 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
173 virtual const LayoutObject* pushMappingToContainer(const LayoutLayerModelObj ect* ancestorToStopAt, LayoutGeometryMap&) const override; 173 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override;
174 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 174 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
175 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 175 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
176 176
177 void layoutContent(); 177 void layoutContent();
178 #if ENABLE(ASSERT) 178 #if ENABLE(ASSERT)
179 void checkLayoutState(); 179 void checkLayoutState();
180 #endif 180 #endif
181 181
182 friend class ForceHorriblySlowRectMapping; 182 friend class ForceHorriblySlowRectMapping;
183 183
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 253 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
254 } 254 }
255 private: 255 private:
256 const PaintInvalidationState* m_paintInvalidationState; 256 const PaintInvalidationState* m_paintInvalidationState;
257 bool m_didDisable; 257 bool m_didDisable;
258 }; 258 };
259 259
260 } // namespace blink 260 } // namespace blink
261 261
262 #endif // RenderView_h 262 #endif // RenderView_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698