| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 public: | 62 public: |
| 63 PolygonShape(PassOwnPtr<Vector<FloatPoint> > vertices, WindRule fillRule) | 63 PolygonShape(PassOwnPtr<Vector<FloatPoint> > vertices, WindRule fillRule) |
| 64 : Shape() | 64 : Shape() |
| 65 , m_polygon(vertices, fillRule) | 65 , m_polygon(vertices, fillRule) |
| 66 { | 66 { |
| 67 } | 67 } |
| 68 | 68 |
| 69 virtual LayoutRect shapeMarginLogicalBoundingBox() const OVERRIDE; | 69 virtual LayoutRect shapeMarginLogicalBoundingBox() const OVERRIDE; |
| 70 virtual bool isEmpty() const OVERRIDE { return m_polygon.isEmpty(); } | 70 virtual bool isEmpty() const OVERRIDE { return m_polygon.isEmpty(); } |
| 71 virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalH
eight, SegmentList&) const OVERRIDE; | 71 virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalH
eight, SegmentList&) const OVERRIDE; |
| 72 virtual void buildDisplayPaths(DisplayPaths&) const OVERRIDE; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 FloatPolygon m_polygon; | 75 FloatPolygon m_polygon; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace WebCore | 78 } // namespace WebCore |
| 78 | 79 |
| 79 #endif // PolygonShape_h | 80 #endif // PolygonShape_h |
| OLD | NEW |