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

Side by Side Diff: third_party/WebKit/Source/core/paint/ObjectPaintProperties.h

Issue 1657993002: [SPv2] Use pre-computed paint property context for layer painter and disable fragmentation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chunk_property_hookup_1
Patch Set: paintOffset = -m_paintLayer.layoutBoxLocation() Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ObjectPaintProperties_h 5 #ifndef ObjectPaintProperties_h
6 #define ObjectPaintProperties_h 6 #define ObjectPaintProperties_h
7 7
8 #include "platform/geometry/LayoutPoint.h" 8 #include "platform/geometry/LayoutPoint.h"
9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // | until we see, for example, transform or position:fixed. 44 // | until we see, for example, transform or position:fixed.
45 // +---[ transform ] The space created by CSS transform. 45 // +---[ transform ] The space created by CSS transform.
46 // | This is the local border box space, see: LocalBorderBoxProperties below. 46 // | This is the local border box space, see: LocalBorderBoxProperties below.
47 // +---[ perspective ] The space created by CSS perspective . 47 // +---[ perspective ] The space created by CSS perspective .
48 // +---[ scrollTranslation ] The space created by overflow clip. 48 // +---[ scrollTranslation ] The space created by overflow clip.
49 TransformPaintPropertyNode* paintOffsetTranslation() const { return m_paintO ffsetTranslation.get(); } 49 TransformPaintPropertyNode* paintOffsetTranslation() const { return m_paintO ffsetTranslation.get(); }
50 TransformPaintPropertyNode* transform() const { return m_transform.get(); } 50 TransformPaintPropertyNode* transform() const { return m_transform.get(); }
51 TransformPaintPropertyNode* perspective() const { return m_perspective.get() ; } 51 TransformPaintPropertyNode* perspective() const { return m_perspective.get() ; }
52 TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTrans lation.get(); } 52 TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTrans lation.get(); }
53 53
54 // Transform that applies to layer contents, or nullptr if this object
55 // doesn't define one.
56 TransformPaintPropertyNode* transformForLayerContents() const;
pdr. 2016/02/05 22:27:45 Oops, removing this needs an update to PaintProper
57
58 EffectPaintPropertyNode* effect() const { return m_effect.get(); } 54 EffectPaintPropertyNode* effect() const { return m_effect.get(); }
59 55
60 ClipPaintPropertyNode* overflowClip() const { return m_overflowClip.get(); } 56 ClipPaintPropertyNode* overflowClip() const { return m_overflowClip.get(); }
61 57
62 // This is a complete set of property nodes that should be used as a startin g point to paint 58 // This is a complete set of property nodes that should be used as a startin g point to paint
63 // this layout object. It is needed becauase some property inherits from the containing block, 59 // this layout object. It is needed becauase some property inherits from the containing block,
64 // not painting parent, thus can't be derived in O(1) during paint walk. 60 // not painting parent, thus can't be derived in O(1) during paint walk.
65 // Note: If this layout object has transform or stacking-context effects, th ose are already 61 // Note: If this layout object has transform or stacking-context effects, th ose are already
66 // baked into in the context here. However for properties that affects only children, 62 // baked into in the context here. However for properties that affects only children,
67 // for example, perspective and overflow clip, those should be applied by th e painter 63 // for example, perspective and overflow clip, those should be applied by th e painter
(...skipping 27 matching lines...) Expand all
95 RefPtr<ClipPaintPropertyNode> m_overflowClip; 91 RefPtr<ClipPaintPropertyNode> m_overflowClip;
96 RefPtr<TransformPaintPropertyNode> m_perspective; 92 RefPtr<TransformPaintPropertyNode> m_perspective;
97 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; 93 RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
98 94
99 OwnPtr<LocalBorderBoxProperties> m_localBorderBoxProperties; 95 OwnPtr<LocalBorderBoxProperties> m_localBorderBoxProperties;
100 }; 96 };
101 97
102 } // namespace blink 98 } // namespace blink
103 99
104 #endif // ObjectPaintProperties_h 100 #endif // ObjectPaintProperties_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698