| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 void LayoutBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul
atedOffset) const | 616 void LayoutBox::absoluteRects(Vector<IntRect>& rects, const LayoutPoint& accumul
atedOffset) const |
| 617 { | 617 { |
| 618 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); | 618 rects.append(pixelSnappedIntRect(accumulatedOffset, size())); |
| 619 } | 619 } |
| 620 | 620 |
| 621 void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads) const | 621 void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads) const |
| 622 { | 622 { |
| 623 quads.append(localToAbsoluteQuad(FloatRect(0, 0, m_frameRect.width().toFloat
(), m_frameRect.height().toFloat()))); | 623 quads.append(localToAbsoluteQuad(FloatRect(0, 0, m_frameRect.width().toFloat
(), m_frameRect.height().toFloat()))); |
| 624 } | 624 } |
| 625 | 625 |
| 626 FloatRect LayoutBox::localBoundingBoxRectForAccessibility() const |
| 627 { |
| 628 return FloatRect(0, 0, m_frameRect.width().toFloat(), m_frameRect.height().t
oFloat()); |
| 629 } |
| 630 |
| 626 void LayoutBox::updateLayerTransformAfterLayout() | 631 void LayoutBox::updateLayerTransformAfterLayout() |
| 627 { | 632 { |
| 628 // Transform-origin depends on box size, so we need to update the layer tran
sform after layout. | 633 // Transform-origin depends on box size, so we need to update the layer tran
sform after layout. |
| 629 if (hasLayer()) | 634 if (hasLayer()) |
| 630 layer()->updateTransformationMatrix(); | 635 layer()->updateTransformationMatrix(); |
| 631 } | 636 } |
| 632 | 637 |
| 633 LayoutUnit LayoutBox::constrainLogicalWidthByMinMax(LayoutUnit logicalWidth, Lay
outUnit availableWidth, LayoutBlock* cb) const | 638 LayoutUnit LayoutBox::constrainLogicalWidthByMinMax(LayoutUnit logicalWidth, Lay
outUnit availableWidth, LayoutBlock* cb) const |
| 634 { | 639 { |
| 635 const ComputedStyle& styleToUse = styleRef(); | 640 const ComputedStyle& styleToUse = styleRef(); |
| (...skipping 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4845 m_rareData->m_snapAreas->remove(&snapArea); | 4850 m_rareData->m_snapAreas->remove(&snapArea); |
| 4846 } | 4851 } |
| 4847 } | 4852 } |
| 4848 | 4853 |
| 4849 SnapAreaSet* LayoutBox::snapAreas() const | 4854 SnapAreaSet* LayoutBox::snapAreas() const |
| 4850 { | 4855 { |
| 4851 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; | 4856 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; |
| 4852 } | 4857 } |
| 4853 | 4858 |
| 4854 } // namespace blink | 4859 } // namespace blink |
| OLD | NEW |