OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 491 |
492 void LayoutView::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumu
latedOffset) const | 492 void LayoutView::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumu
latedOffset) const |
493 { | 493 { |
494 rects.append(pixelSnappedIntRect(accumulatedOffset, LayoutSize(layer()->size
()))); | 494 rects.append(pixelSnappedIntRect(accumulatedOffset, LayoutSize(layer()->size
()))); |
495 } | 495 } |
496 | 496 |
497 void LayoutView::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const | 497 void LayoutView::absoluteQuads(Vector<FloatQuad>& quads, bool* wasFixed) const |
498 { | 498 { |
499 if (wasFixed) | 499 if (wasFixed) |
500 *wasFixed = false; | 500 *wasFixed = false; |
501 quads.append(FloatRect(FloatPoint(), layer()->size())); | 501 quads.append(FloatRect(FloatPoint(), FloatSize(layer()->size()))); |
502 } | 502 } |
503 | 503 |
504 static LayoutObject* layoutObjectAfterPosition(LayoutObject* object, unsigned of
fset) | 504 static LayoutObject* layoutObjectAfterPosition(LayoutObject* object, unsigned of
fset) |
505 { | 505 { |
506 if (!object) | 506 if (!object) |
507 return nullptr; | 507 return nullptr; |
508 | 508 |
509 LayoutObject* child = object->childAt(offset); | 509 LayoutObject* child = object->childAt(offset); |
510 return child ? child : object->nextInPreOrderAfterChildren(); | 510 return child ? child : object->nextInPreOrderAfterChildren(); |
511 } | 511 } |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 } | 965 } |
966 | 966 |
967 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) | 967 void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
) |
968 { | 968 { |
969 for (auto& media : m_mediaForPositionNotification) { | 969 for (auto& media : m_mediaForPositionNotification) { |
970 media->notifyPositionMayHaveChanged(visibleRect); | 970 media->notifyPositionMayHaveChanged(visibleRect); |
971 } | 971 } |
972 } | 972 } |
973 | 973 |
974 } // namespace blink | 974 } // namespace blink |
OLD | NEW |