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

Side by Side Diff: Source/core/layout/LayoutView.h

Issue 1164933003: Split-out change for https://codereview.chromium.org/1145993002/ patch set 11 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutView.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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override; 167 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const override;
168 168
169 double layoutViewportWidth() const; 169 double layoutViewportWidth() const;
170 double layoutViewportHeight() const; 170 double layoutViewportHeight() const;
171 171
172 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 172 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
173 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 173 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
174 virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final; 174 virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final;
175 175
176 protected:
177 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
178 virtual PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationSta te&, const LayoutBoxModelObject& newPaintInvalidationContainer) override;
179
176 private: 180 private:
177 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override; 181 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
178 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override; 182 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override;
179 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 183 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
180 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 184 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
181 185
182 void layoutContent(); 186 void layoutContent();
183 #if ENABLE(ASSERT) 187 #if ENABLE(ASSERT)
184 void checkLayoutState(); 188 void checkLayoutState();
185 #endif 189 #endif
(...skipping 17 matching lines...) Expand all
203 bool m_pageLogicalHeightChanged; 207 bool m_pageLogicalHeightChanged;
204 LayoutState* m_layoutState; 208 LayoutState* m_layoutState;
205 OwnPtr<DeprecatedPaintLayerCompositor> m_compositor; 209 OwnPtr<DeprecatedPaintLayerCompositor> m_compositor;
206 RefPtr<IntervalArena> m_intervalArena; 210 RefPtr<IntervalArena> m_intervalArena;
207 211
208 LayoutQuote* m_layoutQuoteHead; 212 LayoutQuote* m_layoutQuoteHead;
209 unsigned m_layoutCounterCount; 213 unsigned m_layoutCounterCount;
210 214
211 unsigned m_hitTestCount; 215 unsigned m_hitTestCount;
212 216
217 struct BackgroundPositioning {
218 TransformationMatrix transform;
219 LayoutSize borderBoxSize;
220 LayoutRect paddingBoxRect;
221 LayoutRect contentBoxRect;
222 } m_previousRootBackgroundPositioning;
223
213 OwnPtrWillBePersistent<PendingSelection> m_pendingSelection; 224 OwnPtrWillBePersistent<PendingSelection> m_pendingSelection;
214 }; 225 };
215 226
216 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 227 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
217 228
218 // Suspends the LayoutState cached offset and clipRect optimization. Used under transforms 229 // Suspends the LayoutState cached offset and clipRect optimization. Used under transforms
219 // that cannot be represented by LayoutState (common in SVG) and when manipulati ng the layout 230 // that cannot be represented by LayoutState (common in SVG) and when manipulati ng the layout
220 // tree during layout in ways that can trigger paint invalidation of a non-child (e.g. when a list item 231 // tree during layout in ways that can trigger paint invalidation of a non-child (e.g. when a list item
221 // moves its list marker around). Note that even when disabled, LayoutState is s till used to 232 // moves its list marker around). Note that even when disabled, LayoutState is s till used to
222 // store layoutDelta. 233 // store layoutDelta.
(...skipping 14 matching lines...) Expand all
237 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 248 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
238 } 249 }
239 private: 250 private:
240 const PaintInvalidationState* m_paintInvalidationState; 251 const PaintInvalidationState* m_paintInvalidationState;
241 bool m_didDisable; 252 bool m_didDisable;
242 }; 253 };
243 254
244 } // namespace blink 255 } // namespace blink
245 256
246 #endif // LayoutView_h 257 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698