OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void markShapeAsDirty() { m_shape.clear(); } | 89 void markShapeAsDirty() { m_shape.clear(); } |
90 bool isShapeDirty() { return !m_shape.get(); } | 90 bool isShapeDirty() { return !m_shape.get(); } |
91 const RenderType& owner() const { return m_renderer; } | 91 const RenderType& owner() const { return m_renderer; } |
92 LayoutSize shapeSize() const { return m_referenceBoxLogicalSize; } | 92 LayoutSize shapeSize() const { return m_referenceBoxLogicalSize; } |
93 | 93 |
94 protected: | 94 protected: |
95 ShapeInfo(const RenderType& renderer): m_renderer(renderer) { } | 95 ShapeInfo(const RenderType& renderer): m_renderer(renderer) { } |
96 | 96 |
97 const Shape& computedShape() const; | 97 const Shape& computedShape() const; |
98 | 98 |
99 virtual LayoutBox referenceBox() const = 0; | 99 virtual CSSBoxType referenceBox() const = 0; |
100 virtual LayoutRect computedShapeLogicalBoundingBox() const = 0; | 100 virtual LayoutRect computedShapeLogicalBoundingBox() const = 0; |
101 virtual ShapeValue* shapeValue() const = 0; | 101 virtual ShapeValue* shapeValue() const = 0; |
102 virtual void getIntervals(LayoutUnit, LayoutUnit, SegmentList&) const = 0; | 102 virtual void getIntervals(LayoutUnit, LayoutUnit, SegmentList&) const = 0; |
103 | 103 |
104 virtual const RenderStyle* styleForWritingMode() const = 0; | 104 virtual const RenderStyle* styleForWritingMode() const = 0; |
105 | 105 |
106 LayoutUnit logicalTopOffset() const; | 106 LayoutUnit logicalTopOffset() const; |
107 LayoutUnit logicalLeftOffset() const; | 107 LayoutUnit logicalLeftOffset() const; |
108 | 108 |
109 LayoutUnit m_referenceBoxLineTop; | 109 LayoutUnit m_referenceBoxLineTop; |
110 LayoutUnit m_lineHeight; | 110 LayoutUnit m_lineHeight; |
111 | 111 |
112 const RenderType& m_renderer; | 112 const RenderType& m_renderer; |
113 | 113 |
114 private: | 114 private: |
115 mutable OwnPtr<Shape> m_shape; | 115 mutable OwnPtr<Shape> m_shape; |
116 LayoutSize m_referenceBoxLogicalSize; | 116 LayoutSize m_referenceBoxLogicalSize; |
117 }; | 117 }; |
118 | 118 |
119 bool checkShapeImageOrigin(Document&, ImageResource&); | 119 bool checkShapeImageOrigin(Document&, ImageResource&); |
120 | 120 |
121 } | 121 } |
122 #endif | 122 #endif |
OLD | NEW |