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

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

Issue 1681553002: Add support for 'href' (w/o XLink NS) for various SVG elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove invalid assert. Created 4 years, 10 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 { 722 {
723 ASSERT(from); 723 ASSERT(from);
724 ASSERT(to); 724 ASSERT(to);
725 725
726 to->cloneDataFromElement(*from); 726 to->cloneDataFromElement(*from);
727 727
728 to->removeAttribute(SVGNames::xAttr); 728 to->removeAttribute(SVGNames::xAttr);
729 to->removeAttribute(SVGNames::yAttr); 729 to->removeAttribute(SVGNames::yAttr);
730 to->removeAttribute(SVGNames::widthAttr); 730 to->removeAttribute(SVGNames::widthAttr);
731 to->removeAttribute(SVGNames::heightAttr); 731 to->removeAttribute(SVGNames::heightAttr);
732 to->removeAttribute(SVGNames::hrefAttr);
732 to->removeAttribute(XLinkNames::hrefAttr); 733 to->removeAttribute(XLinkNames::hrefAttr);
733 } 734 }
734 735
735 bool SVGUseElement::selfHasRelativeLengths() const 736 bool SVGUseElement::selfHasRelativeLengths() const
736 { 737 {
737 if (m_x->currentValue()->isRelative() 738 if (m_x->currentValue()->isRelative()
738 || m_y->currentValue()->isRelative() 739 || m_y->currentValue()->isRelative()
739 || m_width->currentValue()->isRelative() 740 || m_width->currentValue()->isRelative()
740 || m_height->currentValue()->isRelative()) 741 || m_height->currentValue()->isRelative())
741 return true; 742 return true;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 817
817 if (m_resource) 818 if (m_resource)
818 m_resource->removeClient(this); 819 m_resource->removeClient(this);
819 820
820 m_resource = resource; 821 m_resource = resource;
821 if (m_resource) 822 if (m_resource)
822 m_resource->addClient(this); 823 m_resource->addClient(this);
823 } 824 }
824 825
825 } // namespace blink 826 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698