OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 | 53 |
54 virtual Type type() const = 0; | 54 virtual Type type() const = 0; |
55 virtual String cssText() const = 0; | 55 virtual String cssText() const = 0; |
56 virtual bool equals(const CSSBasicShape&) const = 0; | 56 virtual bool equals(const CSSBasicShape&) const = 0; |
57 | 57 |
58 CSSPrimitiveValue* layoutBox() const { return m_layoutBox.get(); } | 58 CSSPrimitiveValue* layoutBox() const { return m_layoutBox.get(); } |
59 void setLayoutBox(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> layoutBox) { m_l ayoutBox = layoutBox; } | 59 void setLayoutBox(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> layoutBox) { m_l ayoutBox = layoutBox; } |
60 | 60 |
61 virtual void trace(Visitor* visitor) { visitor->trace(m_layoutBox); } | 61 virtual void trace(Visitor* visitor) { visitor->trace(m_layoutBox); } |
62 | 62 |
63 #if !ENABLE(OILPAN) | |
haraken
2014/03/11 10:26:37
I'm not that happy to have a lot of ENABLE(OILPAN)
Erik Corry
2014/03/11 10:34:26
This is unfortunate, but the warning from the clan
| |
63 public: | 64 public: |
64 virtual ~CSSBasicShape() { } | 65 virtual ~CSSBasicShape() { } |
66 #endif | |
65 | 67 |
66 protected: | 68 protected: |
67 CSSBasicShape() { } | 69 CSSBasicShape() { } |
68 RefPtrWillBeMember<CSSPrimitiveValue> m_layoutBox; | 70 RefPtrWillBeMember<CSSPrimitiveValue> m_layoutBox; |
69 }; | 71 }; |
70 | 72 |
71 class CSSBasicShapeRectangle FINAL : public CSSBasicShape { | 73 class CSSBasicShapeRectangle FINAL : public CSSBasicShape { |
72 public: | 74 public: |
73 static PassRefPtrWillBeRawPtr<CSSBasicShapeRectangle> create() { return adop tRefWillBeNoop(new CSSBasicShapeRectangle); } | 75 static PassRefPtrWillBeRawPtr<CSSBasicShapeRectangle> create() { return adop tRefWillBeNoop(new CSSBasicShapeRectangle); } |
74 | 76 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
346 | 348 |
347 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; | 349 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; |
348 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; | 350 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; |
349 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; | 351 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; |
350 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; | 352 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; |
351 }; | 353 }; |
352 | 354 |
353 } // namespace WebCore | 355 } // namespace WebCore |
354 | 356 |
355 #endif // CSSBasicShapes_h | 357 #endif // CSSBasicShapes_h |
OLD | NEW |