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. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
7 * All rights reserved. | 7 * All rights reserved. |
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 if (parentBox) | 696 if (parentBox) |
697 parentBox->scrollRectToVisible(newRect, alignX, alignY, scrollType, | 697 parentBox->scrollRectToVisible(newRect, alignX, alignY, scrollType, |
698 makeVisibleInVisualViewport); | 698 makeVisibleInVisualViewport); |
699 } | 699 } |
700 | 700 |
701 void LayoutBox::absoluteRects(Vector<IntRect>& rects, | 701 void LayoutBox::absoluteRects(Vector<IntRect>& rects, |
702 const LayoutPoint& accumulatedOffset) const { | 702 const LayoutPoint& accumulatedOffset) const { |
703 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); | 703 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); |
704 } | 704 } |
705 | 705 |
706 void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads) const { | 706 void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads, |
| 707 MapCoordinatesFlags mode) const { |
707 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) { | 708 if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) { |
708 flowThread->absoluteQuadsForDescendant(*this, quads); | 709 flowThread->absoluteQuadsForDescendant(*this, quads, mode); |
709 return; | 710 return; |
710 } | 711 } |
711 quads.append(localToAbsoluteQuad(FloatRect( | 712 quads.append( |
712 0, 0, m_frameRect.width().toFloat(), m_frameRect.height().toFloat()))); | 713 localToAbsoluteQuad(FloatRect(0, 0, m_frameRect.width().toFloat(), |
| 714 m_frameRect.height().toFloat()), |
| 715 mode)); |
713 } | 716 } |
714 | 717 |
715 FloatRect LayoutBox::localBoundingBoxRectForAccessibility() const { | 718 FloatRect LayoutBox::localBoundingBoxRectForAccessibility() const { |
716 return FloatRect(0, 0, m_frameRect.width().toFloat(), | 719 return FloatRect(0, 0, m_frameRect.width().toFloat(), |
717 m_frameRect.height().toFloat()); | 720 m_frameRect.height().toFloat()); |
718 } | 721 } |
719 | 722 |
720 void LayoutBox::updateLayerTransformAfterLayout() { | 723 void LayoutBox::updateLayerTransformAfterLayout() { |
721 // Transform-origin depends on box size, so we need to update the layer | 724 // Transform-origin depends on box size, so we need to update the layer |
722 // transform after layout. | 725 // transform after layout. |
(...skipping 4963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5686 block->adjustChildDebugRect(rect); | 5689 block->adjustChildDebugRect(rect); |
5687 | 5690 |
5688 return rect; | 5691 return rect; |
5689 } | 5692 } |
5690 | 5693 |
5691 bool LayoutBox::shouldClipOverflow() const { | 5694 bool LayoutBox::shouldClipOverflow() const { |
5692 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); | 5695 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); |
5693 } | 5696 } |
5694 | 5697 |
5695 } // namespace blink | 5698 } // namespace blink |
OLD | NEW |