| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 CSSBasicShapeEllipseType, | 45 CSSBasicShapeEllipseType, |
| 46 CSSBasicShapePolygonType, | 46 CSSBasicShapePolygonType, |
| 47 CSSBasicShapeCircleType, | 47 CSSBasicShapeCircleType, |
| 48 CSSBasicShapeInsetType | 48 CSSBasicShapeInsetType |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 virtual Type type() const = 0; | 51 virtual Type type() const = 0; |
| 52 virtual String cssText() const = 0; | 52 virtual String cssText() const = 0; |
| 53 virtual bool equals(const CSSBasicShape&) const = 0; | 53 virtual bool equals(const CSSBasicShape&) const = 0; |
| 54 | 54 |
| 55 CSSPrimitiveValue* layoutBox() const { return m_layoutBox.get(); } | 55 CSSPrimitiveValue* referenceBox() const { return m_referenceBox.get(); } |
| 56 void setLayoutBox(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> layoutBox) { m_l
ayoutBox = layoutBox; } | 56 void setReferenceBox(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> referenceBox)
{ m_referenceBox = referenceBox; } |
| 57 | 57 |
| 58 virtual void trace(Visitor* visitor) { visitor->trace(m_layoutBox); } | 58 virtual void trace(Visitor* visitor) { visitor->trace(m_referenceBox); } |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 CSSBasicShape() { } | 61 CSSBasicShape() { } |
| 62 RefPtrWillBeMember<CSSPrimitiveValue> m_layoutBox; | 62 RefPtrWillBeMember<CSSPrimitiveValue> m_referenceBox; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 class CSSBasicShapeCircle FINAL : public CSSBasicShape { | 65 class CSSBasicShapeCircle FINAL : public CSSBasicShape { |
| 66 public: | 66 public: |
| 67 static PassRefPtrWillBeRawPtr<CSSBasicShapeCircle> create() { return adoptRe
fWillBeNoop(new CSSBasicShapeCircle); } | 67 static PassRefPtrWillBeRawPtr<CSSBasicShapeCircle> create() { return adoptRe
fWillBeNoop(new CSSBasicShapeCircle); } |
| 68 | 68 |
| 69 virtual Type type() const OVERRIDE { return CSSBasicShapeCircleType; } | 69 virtual Type type() const OVERRIDE { return CSSBasicShapeCircleType; } |
| 70 virtual String cssText() const OVERRIDE; | 70 virtual String cssText() const OVERRIDE; |
| 71 virtual bool equals(const CSSBasicShape&) const OVERRIDE; | 71 virtual bool equals(const CSSBasicShape&) const OVERRIDE; |
| 72 | 72 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; | 215 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; |
| 216 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; | 216 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; |
| 217 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; | 217 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; |
| 218 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; | 218 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace WebCore | 221 } // namespace WebCore |
| 222 | 222 |
| 223 #endif // CSSBasicShapes_h | 223 #endif // CSSBasicShapes_h |
| OLD | NEW |