Changeset 106525 in webkit
- Timestamp:
- Feb 1, 2012 6:46:10 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106524 r106525 1 2012-02-01 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106408. 4 http://trac.webkit.org/changeset/106408 5 https://bugs.webkit.org/show_bug.cgi?id=77592 6 7 crashes in chromium mac release tests (Requested by japhet on 8 #webkit). 9 10 * platform/graphics/Region.cpp: 11 * platform/graphics/Region.h: 12 (Region): 13 (Shape): 14 1 15 2012-02-01 No'am Rosenthal <noam.rosenthal@nokia.com> 2 16 -
trunk/Source/WebCore/platform/graphics/Region.cpp
r106408 r106525 66 66 } 67 67 68 bool Region::contains(const Region& region) const69 {70 return WebCore::intersect(region, *this) == region;71 }72 73 68 Region::Shape::Shape() 74 69 { -
trunk/Source/WebCore/platform/graphics/Region.h
r106408 r106525 47 47 48 48 void translate(const IntSize&); 49 50 // Returns true if the query region is a subset of this region.51 bool contains(const Region&) const;52 49 53 50 #ifndef NDEBUG … … 108 105 bool canCoalesce(SegmentIterator begin, SegmentIterator end); 109 106 110 Vector<int, 32> m_segments; 111 Vector<Span, 16> m_spans; 112 113 friend bool operator==(const Shape&, const Shape&); 107 // FIXME: These vectors should have inline sizes. Figure out a good optimal value. 108 Vector<int> m_segments; 109 Vector<Span> m_spans; 114 110 }; 115 111 116 112 IntRect m_bounds; 117 113 Shape m_shape; 118 119 friend bool operator==(const Region&, const Region&);120 friend bool operator==(const Shape&, const Shape&);121 friend bool operator==(const Span&, const Span&);122 114 }; 123 115 … … 146 138 } 147 139 148 inline bool operator==(const Region& a, const Region& b)149 {150 return a.m_bounds == b.m_bounds && a.m_shape == b.m_shape;151 }152 153 inline bool operator==(const Region::Shape& a, const Region::Shape& b)154 {155 return a.m_spans == b.m_spans && a.m_segments == b.m_segments;156 }157 158 inline bool operator==(const Region::Span& a, const Region::Span& b)159 {160 return a.y == b.y && a.segmentIndex == b.segmentIndex;161 }162 163 140 } // namespace WebCore 164 141
Note: See TracChangeset
for help on using the changeset viewer.