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

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

Issue 1318713003: Make classes and structures in core/layout fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/layout/OrderIterator.h ('k') | Source/core/layout/PendingSelection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaintInvalidationState_h 5 #ifndef PaintInvalidationState_h
6 #define PaintInvalidationState_h 6 #define PaintInvalidationState_h
7 7
8 #include "platform/geometry/LayoutRect.h" 8 #include "platform/geometry/LayoutRect.h"
9 #include "platform/transforms/AffineTransform.h" 9 #include "platform/transforms/AffineTransform.h"
10 #include "wtf/Allocator.h"
10 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class LayoutBoxModelObject; 15 class LayoutBoxModelObject;
15 class LayoutObject; 16 class LayoutObject;
16 class LayoutSVGModelObject; 17 class LayoutSVGModelObject;
17 class LayoutView; 18 class LayoutView;
18 19
19 class PaintInvalidationState { 20 class PaintInvalidationState {
21 STACK_ALLOCATED();
20 WTF_MAKE_NONCOPYABLE(PaintInvalidationState); 22 WTF_MAKE_NONCOPYABLE(PaintInvalidationState);
21 public: 23 public:
22 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer); 24 PaintInvalidationState(PaintInvalidationState& next, LayoutBoxModelObject& l ayoutObject, const LayoutBoxModelObject& paintInvalidationContainer);
23 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj ect& layoutObject); 25 PaintInvalidationState(PaintInvalidationState& next, const LayoutSVGModelObj ect& layoutObject);
24 26
25 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>& pendingDelayedPaintInvalidations) 27 PaintInvalidationState(const LayoutView& layoutView, Vector<LayoutObject*>& pendingDelayedPaintInvalidations)
26 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n ullptr) { } 28 : PaintInvalidationState(layoutView, pendingDelayedPaintInvalidations, n ullptr) { }
27 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState& ownerPaintInvalidationState) 29 PaintInvalidationState(const LayoutView& layoutView, PaintInvalidationState& ownerPaintInvalidationState)
28 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { } 30 : PaintInvalidationState(layoutView, ownerPaintInvalidationState.m_pendi ngDelayedPaintInvalidations, &ownerPaintInvalidationState) { }
29 31
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // SVG root to the userspace _before_ the relevant element. Combining this 73 // SVG root to the userspace _before_ the relevant element. Combining this
72 // with |m_paintOffset| yields the "final" offset. 74 // with |m_paintOffset| yields the "final" offset.
73 OwnPtr<AffineTransform> m_svgTransform; 75 OwnPtr<AffineTransform> m_svgTransform;
74 76
75 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations; 77 Vector<LayoutObject*>& m_pendingDelayedPaintInvalidations;
76 }; 78 };
77 79
78 } // namespace blink 80 } // namespace blink
79 81
80 #endif // PaintInvalidationState_h 82 #endif // PaintInvalidationState_h
OLDNEW
« no previous file with comments | « Source/core/layout/OrderIterator.h ('k') | Source/core/layout/PendingSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698