Changeset 77398 in webkit
- Timestamp:
- Feb 2, 2011 12:20:36 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r77397 r77398 1 2011-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 1 14 2011-02-02 David Hyatt <hyatt@apple.com> 2 15 -
trunk/Source/WebCore/page/FrameView.cpp
r77366 r77398 2339 2339 GraphicsContext context((PlatformGraphicsContext*)0); 2340 2340 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)); 2342 2342 root->setPrintRect(dirtyRect); 2343 2343 root->layer()->paint(&context, dirtyRect); -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r77286 r77398 103 103 bool isEmpty() const { return m_size.isEmpty(); } 104 104 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 110 105 FloatPoint center() const { return FloatPoint(x() + width() / 2, y() + height() / 2); } 111 106 … … 124 119 { return px >= x() && px <= maxX() && py >= y() && py <= maxY(); } 125 120 bool contains(const FloatPoint& point) const { return contains(point.x(), point.y()); } 126 127 121 128 122 void inflateX(float dx) { -
trunk/Source/WebCore/platform/graphics/IntRect.h
r77286 r77398 104 104 bool isEmpty() const { return m_size.isEmpty(); } 105 105 106 int right() const { return x() + width(); }107 int bottom() const { return y() + height(); }108 109 106 // NOTE: The result is rounded to integer values, and thus may be not the exact 110 107 // center point.
Note: See TracChangeset
for help on using the changeset viewer.