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

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

Issue 698743002: [WIP] Adding support for <iframe>s to slimming paint. (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
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #ifndef RenderView_h 22 #ifndef RenderView_h
23 #define RenderView_h 23 #define RenderView_h
24 24
25 #include "core/frame/FrameView.h" 25 #include "core/frame/FrameView.h"
26 #include "core/paint/ViewDisplayList.h"
27 #include "core/rendering/LayoutState.h" 26 #include "core/rendering/LayoutState.h"
28 #include "core/rendering/PaintInvalidationState.h" 27 #include "core/rendering/PaintInvalidationState.h"
29 #include "core/rendering/RenderBlockFlow.h" 28 #include "core/rendering/RenderBlockFlow.h"
30 #include "platform/PODFreeListArena.h" 29 #include "platform/PODFreeListArena.h"
31 #include "platform/RuntimeEnabledFeatures.h" 30 #include "platform/RuntimeEnabledFeatures.h"
32 #include "platform/scroll/ScrollableArea.h" 31 #include "platform/scroll/ScrollableArea.h"
33 #include "wtf/OwnPtr.h" 32 #include "wtf/OwnPtr.h"
34 33
35 namespace blink { 34 namespace blink {
36 35
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 157
159 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override; 158 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;
160 159
161 double layoutViewportWidth() const; 160 double layoutViewportWidth() const;
162 double layoutViewportHeight() const; 161 double layoutViewportHeight() const;
163 162
164 void pushLayoutState(LayoutState&); 163 void pushLayoutState(LayoutState&);
165 void popLayoutState(); 164 void popLayoutState();
166 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override final; 165 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) override final;
167 166
168 ViewDisplayList& viewDisplayList()
169 {
170 ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
171 if (!m_viewDisplayList)
172 m_viewDisplayList = adoptPtr(new ViewDisplayList());
173 return *m_viewDisplayList;
174 }
175
176 private: 167 private:
177 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override; 168 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override;
178 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const override; 169 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const override;
179 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 170 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
180 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 171 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
181 172
182 void layoutContent(); 173 void layoutContent();
183 #if ENABLE(ASSERT) 174 #if ENABLE(ASSERT)
184 void checkLayoutState(); 175 void checkLayoutState();
185 #endif 176 #endif
(...skipping 16 matching lines...) Expand all
202 bool m_pageLogicalHeightChanged; 193 bool m_pageLogicalHeightChanged;
203 LayoutState* m_layoutState; 194 LayoutState* m_layoutState;
204 OwnPtr<RenderLayerCompositor> m_compositor; 195 OwnPtr<RenderLayerCompositor> m_compositor;
205 OwnPtr<FlowThreadController> m_flowThreadController; 196 OwnPtr<FlowThreadController> m_flowThreadController;
206 RefPtr<IntervalArena> m_intervalArena; 197 RefPtr<IntervalArena> m_intervalArena;
207 198
208 RawPtrWillBeMember<RenderQuote> m_renderQuoteHead; 199 RawPtrWillBeMember<RenderQuote> m_renderQuoteHead;
209 unsigned m_renderCounterCount; 200 unsigned m_renderCounterCount;
210 201
211 unsigned m_hitTestCount; 202 unsigned m_hitTestCount;
212 OwnPtr<ViewDisplayList> m_viewDisplayList;
213 }; 203 };
214 204
215 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); 205 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView());
216 206
217 // Suspends the LayoutState cached offset and clipRect optimization. Used under transforms 207 // Suspends the LayoutState cached offset and clipRect optimization. Used under transforms
218 // that cannot be represented by LayoutState (common in SVG) and when manipulati ng the render 208 // that cannot be represented by LayoutState (common in SVG) and when manipulati ng the render
219 // tree during layout in ways that can trigger paint invalidation of a non-child (e.g. when a list item 209 // tree during layout in ways that can trigger paint invalidation of a non-child (e.g. when a list item
220 // moves its list marker around). Note that even when disabled, LayoutState is s till used to 210 // moves its list marker around). Note that even when disabled, LayoutState is s till used to
221 // store layoutDelta. 211 // store layoutDelta.
222 class ForceHorriblySlowRectMapping { 212 class ForceHorriblySlowRectMapping {
(...skipping 13 matching lines...) Expand all
236 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 226 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
237 } 227 }
238 private: 228 private:
239 const PaintInvalidationState* m_paintInvalidationState; 229 const PaintInvalidationState* m_paintInvalidationState;
240 bool m_didDisable; 230 bool m_didDisable;
241 }; 231 };
242 232
243 } // namespace blink 233 } // namespace blink
244 234
245 #endif // RenderView_h 235 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698