Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2324603002: Move AX local bounding box calculation into LayoutObject (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698