Changeset 106525 in webkit


Ignore:
Timestamp:
Feb 1, 2012 6:46:10 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r106408.
http://trac.webkit.org/changeset/106408
https://bugs.webkit.org/show_bug.cgi?id=77592

crashes in chromium mac release tests (Requested by japhet on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-01

  • platform/graphics/Region.cpp:
  • platform/graphics/Region.h:

(Region):
(Shape):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106524 r106525  
     12012-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
    1152012-02-01  No'am Rosenthal  <noam.rosenthal@nokia.com>
    216
  • trunk/Source/WebCore/platform/graphics/Region.cpp

    r106408 r106525  
    6666}
    6767
    68 bool Region::contains(const Region& region) const
    69 {
    70     return WebCore::intersect(region, *this) == region;
    71 }
    72 
    7368Region::Shape::Shape()
    7469{
  • trunk/Source/WebCore/platform/graphics/Region.h

    r106408 r106525  
    4747
    4848    void translate(const IntSize&);
    49 
    50     // Returns true if the query region is a subset of this region.
    51     bool contains(const Region&) const;
    5249
    5350#ifndef NDEBUG
     
    108105        bool canCoalesce(SegmentIterator begin, SegmentIterator end);
    109106
    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;       
    114110    };
    115111
    116112    IntRect m_bounds;
    117113    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&);
    122114};
    123115
     
    146138}
    147139
    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 
    163140} // namespace WebCore
    164141
Note: See TracChangeset for help on using the changeset viewer.