Changeset 77398 in webkit


Ignore:
Timestamp:
Feb 2, 2011 12:20:36 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=53520

Reviewed by Darin Adler.

Remove physical accessors from IntRect and FloatRect.

  • page/FrameView.cpp:

(WebCore::FrameView::adjustPageHeightDeprecated):

  • platform/graphics/FloatRect.h:
  • platform/graphics/IntRect.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r77397 r77398  
     12011-02-02  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=53520
     6
     7        Remove physical accessors from IntRect and FloatRect.
     8
     9        * page/FrameView.cpp:
     10        (WebCore::FrameView::adjustPageHeightDeprecated):
     11        * platform/graphics/FloatRect.h:
     12        * platform/graphics/IntRect.h:
     13
    1142011-02-02  David Hyatt  <hyatt@apple.com>
    215
  • trunk/Source/WebCore/page/FrameView.cpp

    r77366 r77398  
    23392339        GraphicsContext context((PlatformGraphicsContext*)0);
    23402340        root->setTruncatedAt((int)floorf(oldBottom));
    2341         IntRect dirtyRect(0, (int)floorf(oldTop), root->rightLayoutOverflow(), (int)ceilf(oldBottom - oldTop));
     2341        IntRect dirtyRect(0, (int)floorf(oldTop), root->maxXLayoutOverflow(), (int)ceilf(oldBottom - oldTop));
    23422342        root->setPrintRect(dirtyRect);
    23432343        root->layer()->paint(&context, dirtyRect);
  • trunk/Source/WebCore/platform/graphics/FloatRect.h

    r77286 r77398  
    103103    bool isEmpty() const { return m_size.isEmpty(); }
    104104
    105     float left() const { return x(); }
    106     float right() const { return x() + width(); }
    107     float top() const { return y(); }
    108     float bottom() const { return y() + height(); }
    109 
    110105    FloatPoint center() const { return FloatPoint(x() + width() / 2, y() + height() / 2); }
    111106
     
    124119        { return px >= x() && px <= maxX() && py >= y() && py <= maxY(); }
    125120    bool contains(const FloatPoint& point) const { return contains(point.x(), point.y()); }
    126 
    127121
    128122    void inflateX(float dx) {
  • trunk/Source/WebCore/platform/graphics/IntRect.h

    r77286 r77398  
    104104    bool isEmpty() const { return m_size.isEmpty(); }
    105105
    106     int right() const { return x() + width(); }
    107     int bottom() const { return y() + height(); }
    108 
    109106    // NOTE: The result is rounded to integer values, and thus may be not the exact
    110107    // center point.
Note: See TracChangeset for help on using the changeset viewer.