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

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

Issue 1714523005: WIP: backface visibility plumbing (not for review) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: still broken 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // 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
59 // 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,
60 // 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.
61 // 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
62 // 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,
63 // 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
64 // at the right painting step. 64 // at the right painting step.
65 struct LocalBorderBoxProperties { 65 struct LocalBorderBoxProperties {
66 LayoutPoint paintOffset; 66 LayoutPoint paintOffset;
67 // TODO(pdr): We should switch this to be just the paint property nodes (i.e.,
68 // 4 x RefPtr<PaintPropertyTreeNode>) because other PaintChunk-related d ata may
69 // be set at a different time than the paint property nodes.
67 PaintChunkProperties properties; 70 PaintChunkProperties properties;
68 }; 71 };
69 LocalBorderBoxProperties* localBorderBoxProperties() const { return m_localB orderBoxProperties.get(); } 72 LocalBorderBoxProperties* localBorderBoxProperties() const { return m_localB orderBoxProperties.get(); }
70 73
71 private: 74 private:
72 ObjectPaintProperties( 75 ObjectPaintProperties(
73 PassRefPtr<TransformPaintPropertyNode> paintOffsetTranslation, 76 PassRefPtr<TransformPaintPropertyNode> paintOffsetTranslation,
74 PassRefPtr<TransformPaintPropertyNode> transform, 77 PassRefPtr<TransformPaintPropertyNode> transform,
75 PassRefPtr<EffectPaintPropertyNode> effect, 78 PassRefPtr<EffectPaintPropertyNode> effect,
76 PassRefPtr<ClipPaintPropertyNode> overflowClip, 79 PassRefPtr<ClipPaintPropertyNode> overflowClip,
(...skipping 14 matching lines...) Expand all
91 RefPtr<ClipPaintPropertyNode> m_overflowClip; 94 RefPtr<ClipPaintPropertyNode> m_overflowClip;
92 RefPtr<TransformPaintPropertyNode> m_perspective; 95 RefPtr<TransformPaintPropertyNode> m_perspective;
93 RefPtr<TransformPaintPropertyNode> m_scrollTranslation; 96 RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
94 97
95 OwnPtr<LocalBorderBoxProperties> m_localBorderBoxProperties; 98 OwnPtr<LocalBorderBoxProperties> m_localBorderBoxProperties;
96 }; 99 };
97 100
98 } // namespace blink 101 } // namespace blink
99 102
100 #endif // ObjectPaintProperties_h 103 #endif // ObjectPaintProperties_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698