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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGUseElement.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698