OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
6 * Copyright (C) 2012 University of Szeged | 6 * Copyright (C) 2012 University of Szeged |
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> |
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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 return true; | 664 return true; |
665 | 665 |
666 if (!m_targetElementInstance) | 666 if (!m_targetElementInstance) |
667 return false; | 667 return false; |
668 | 668 |
669 return m_targetElementInstance->hasRelativeLengths(); | 669 return m_targetElementInstance->hasRelativeLengths(); |
670 } | 670 } |
671 | 671 |
672 FloatRect SVGUseElement::getBBox() | 672 FloatRect SVGUseElement::getBBox() |
673 { | 673 { |
674 document().updateLayoutIgnorePendingStylesheets(); | 674 document().updateStyleAndLayoutIgnorePendingStylesheets(); |
675 | 675 |
676 if (!layoutObject()) | 676 if (!layoutObject()) |
677 return FloatRect(); | 677 return FloatRect(); |
678 | 678 |
679 LayoutSVGTransformableContainer& transformableContainer = toLayoutSVGTransfo
rmableContainer(*layoutObject()); | 679 LayoutSVGTransformableContainer& transformableContainer = toLayoutSVGTransfo
rmableContainer(*layoutObject()); |
680 // Don't apply the additional translation if the oBB is invalid. | 680 // Don't apply the additional translation if the oBB is invalid. |
681 if (!transformableContainer.isObjectBoundingBoxValid()) | 681 if (!transformableContainer.isObjectBoundingBoxValid()) |
682 return FloatRect(); | 682 return FloatRect(); |
683 | 683 |
684 // TODO(fs): Preferably this would just use objectBoundingBox() (and hence | 684 // TODO(fs): Preferably this would just use objectBoundingBox() (and hence |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 | 748 |
749 if (m_resource) | 749 if (m_resource) |
750 m_resource->removeClient(this); | 750 m_resource->removeClient(this); |
751 | 751 |
752 m_resource = resource; | 752 m_resource = resource; |
753 if (m_resource) | 753 if (m_resource) |
754 m_resource->addClient(this); | 754 m_resource->addClient(this); |
755 } | 755 } |
756 | 756 |
757 } // namespace blink | 757 } // namespace blink |
OLD | NEW |