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

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

Issue 482063005: Allow paint invalidation containers to cross frame boundaries. (re-land #2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made it work with position:fixed. Created 6 years, 4 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
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; } 149 void removeRenderCounter() { ASSERT(m_renderCounterCount > 0); m_renderCount erCount--; }
150 bool hasRenderCounters() { return m_renderCounterCount; } 150 bool hasRenderCounters() { return m_renderCounterCount; }
151 151
152 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE; 152 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE;
153 153
154 double layoutViewportWidth() const; 154 double layoutViewportWidth() const;
155 double layoutViewportHeight() const; 155 double layoutViewportHeight() const;
156 156
157 void pushLayoutState(LayoutState&); 157 void pushLayoutState(LayoutState&);
158 void popLayoutState(); 158 void popLayoutState();
159 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE FINAL;
159 160
160 private: 161 private:
161 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE; 162 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE;
162 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 163 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
163 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE; 164 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE;
164 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE; 165 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
165 166
166 virtual void invalidateTreeIfNeeded(const PaintInvalidationState&) OVERRIDE FINAL;
167 167
168 bool shouldInvalidatePaint(const LayoutRect&) const; 168 bool shouldInvalidatePaint(const LayoutRect&) const;
169 169
170 bool rootFillsViewportBackground(RenderBox* rootBox) const; 170 bool rootFillsViewportBackground(RenderBox* rootBox) const;
171 171
172 void layoutContent(); 172 void layoutContent();
173 #if ENABLE(ASSERT) 173 #if ENABLE(ASSERT)
174 void checkLayoutState(); 174 void checkLayoutState();
175 #endif 175 #endif
176 176
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 228 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
229 } 229 }
230 private: 230 private:
231 const PaintInvalidationState* m_paintInvalidationState; 231 const PaintInvalidationState* m_paintInvalidationState;
232 bool m_didDisable; 232 bool m_didDisable;
233 }; 233 };
234 234
235 } // namespace blink 235 } // namespace blink
236 236
237 #endif // RenderView_h 237 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698