| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ObjectPaintProperties_h |
| 6 #define ObjectPaintProperties_h |
| 7 |
| 8 #include "platform/graphics/paint/TransformPaintProperty.h" |
| 9 #include "wtf/PassRefPtr.h" |
| 10 #include "wtf/RefPtr.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 // The minimal set of paint properties created by a |LayoutObject|. These |
| 15 // properties encode a hierachy of transforms, clips, effects, etc, both between |
| 16 // LayoutObjects (each property has a parent) and among the properties of a |
| 17 // single LayoutObject (e.g., transform and perspective with the correct parent |
| 18 // relationship to represent ordering). |
| 19 class ObjectPaintProperties { |
| 20 public: |
| 21 ObjectPaintProperties() { } |
| 22 |
| 23 bool hasTransform() const { return m_transform; } |
| 24 void setTransform(PassRefPtr<TransformPaintProperty> transform) { m_transfor
m = transform; } |
| 25 TransformPaintProperty* transform() { return m_transform.get(); } |
| 26 |
| 27 bool hasPerspective() const { return m_perspective; } |
| 28 void setPerspective(PassRefPtr<TransformPaintProperty> perspective) { m_pers
pective = perspective; } |
| 29 TransformPaintProperty* perspective() { return m_perspective.get(); } |
| 30 |
| 31 private: |
| 32 RefPtr<TransformPaintProperty> m_transform; |
| 33 RefPtr<TransformPaintProperty> m_perspective; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // ObjectPaintProperties_h |
| OLD | NEW |