Chromium Code Reviews| 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 public: | |
| 64 virtual ~CSSBasicShape() { } | |
|
kouhei (in TOK)
2014/03/05 07:05:01
Isn't this needed for RefCounted<CSSBasicType>, bu
zerny-chromium
2014/03/05 07:07:04
It is a no-op, so the default generated destructor
haraken
2014/03/05 07:09:15
Probably the default destructor is not virtual?
kouhei (in TOK)
2014/03/05 07:11:55
RefCountedBase's d-tor isn't declared virtual, and
| |
| 65 | |
| 66 protected: | 63 protected: |
| 67 CSSBasicShape() { } | 64 CSSBasicShape() { } |
| 68 RefPtrWillBeMember<CSSPrimitiveValue> m_layoutBox; | 65 RefPtrWillBeMember<CSSPrimitiveValue> m_layoutBox; |
| 69 }; | 66 }; |
| 70 | 67 |
| 71 class CSSBasicShapeRectangle FINAL : public CSSBasicShape { | 68 class CSSBasicShapeRectangle FINAL : public CSSBasicShape { |
| 72 public: | 69 public: |
| 73 static PassRefPtrWillBeRawPtr<CSSBasicShapeRectangle> create() { return adop tRefWillBeNoop(new CSSBasicShapeRectangle); } | 70 static PassRefPtrWillBeRawPtr<CSSBasicShapeRectangle> create() { return adop tRefWillBeNoop(new CSSBasicShapeRectangle); } |
| 74 | 71 |
| 75 CSSPrimitiveValue* x() const { return m_x.get(); } | 72 CSSPrimitiveValue* x() const { return m_x.get(); } |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 | 343 |
| 347 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; | 344 RefPtrWillBeMember<CSSPrimitiveValue> m_topLeftRadius; |
| 348 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; | 345 RefPtrWillBeMember<CSSPrimitiveValue> m_topRightRadius; |
| 349 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; | 346 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomRightRadius; |
| 350 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; | 347 RefPtrWillBeMember<CSSPrimitiveValue> m_bottomLeftRadius; |
| 351 }; | 348 }; |
| 352 | 349 |
| 353 } // namespace WebCore | 350 } // namespace WebCore |
| 354 | 351 |
| 355 #endif // CSSBasicShapes_h | 352 #endif // CSSBasicShapes_h |
| OLD | NEW |