OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 } | 491 } |
492 | 492 |
493 int RenderBox::scrollTop() const | 493 int RenderBox::scrollTop() const |
494 { | 494 { |
495 return hasOverflowClip() ? layer()->scrollYOffset() : 0; | 495 return hasOverflowClip() ? layer()->scrollYOffset() : 0; |
496 } | 496 } |
497 | 497 |
498 void RenderBox::setScrollLeft(int newLeft) | 498 void RenderBox::setScrollLeft(int newLeft) |
499 { | 499 { |
500 if (hasOverflowClip()) | 500 if (hasOverflowClip()) |
501 layer()->scrollToXOffset(newLeft, RenderLayer::ScrollOffsetClamped); | 501 layer()->scrollToXOffset(newLeft, ScrollOffsetClamped); |
502 } | 502 } |
503 | 503 |
504 void RenderBox::setScrollTop(int newTop) | 504 void RenderBox::setScrollTop(int newTop) |
505 { | 505 { |
506 if (hasOverflowClip()) | 506 if (hasOverflowClip()) |
507 layer()->scrollToYOffset(newTop, RenderLayer::ScrollOffsetClamped); | 507 layer()->scrollToYOffset(newTop, ScrollOffsetClamped); |
508 } | 508 } |
509 | 509 |
510 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul
atedOffset) const | 510 void RenderBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul
atedOffset) const |
511 { | 511 { |
512 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); | 512 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); |
513 } | 513 } |
514 | 514 |
515 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const | 515 void RenderBox::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const |
516 { | 516 { |
517 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width(), height()), 0 /* mo
de */, wasFixed)); | 517 quads.append(localToAbsoluteQuad(FloatRect(0, 0, width(), height()), 0 /* mo
de */, wasFixed)); |
(...skipping 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4734 } | 4734 } |
4735 | 4735 |
4736 if (didSplitParentAnonymousBoxes) | 4736 if (didSplitParentAnonymousBoxes) |
4737 markBoxForRelayoutAfterSplit(this); | 4737 markBoxForRelayoutAfterSplit(this); |
4738 | 4738 |
4739 ASSERT(beforeChild->parent() == this); | 4739 ASSERT(beforeChild->parent() == this); |
4740 return beforeChild; | 4740 return beforeChild; |
4741 } | 4741 } |
4742 | 4742 |
4743 } // namespace WebCore | 4743 } // namespace WebCore |
OLD | NEW |