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

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

Issue 21042009: [SVG2] Merge SVGStyledElement into SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTitleElement.idl ('k') | Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 if (xCurrentValue().isRelative() 921 if (xCurrentValue().isRelative()
922 || yCurrentValue().isRelative() 922 || yCurrentValue().isRelative()
923 || widthCurrentValue().isRelative() 923 || widthCurrentValue().isRelative()
924 || heightCurrentValue().isRelative()) 924 || heightCurrentValue().isRelative())
925 return true; 925 return true;
926 926
927 if (!m_targetElementInstance) 927 if (!m_targetElementInstance)
928 return false; 928 return false;
929 929
930 SVGElement* element = m_targetElementInstance->correspondingElement(); 930 SVGElement* element = m_targetElementInstance->correspondingElement();
931 if (!element || !element->isSVGStyledElement()) 931 if (!element)
932 return false; 932 return false;
933 933
934 return toSVGStyledElement(element)->hasRelativeLengths(); 934 return toSVGElement(element)->hasRelativeLengths();
935 } 935 }
936 936
937 void SVGUseElement::notifyFinished(Resource* resource) 937 void SVGUseElement::notifyFinished(Resource* resource)
938 { 938 {
939 if (!inDocument()) 939 if (!inDocument())
940 return; 940 return;
941 941
942 invalidateShadowTree(); 942 invalidateShadowTree();
943 if (resource->errorOccurred()) 943 if (resource->errorOccurred())
944 dispatchEvent(Event::create(eventNames().errorEvent, false, false)); 944 dispatchEvent(Event::create(eventNames().errorEvent, false, false));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 if (m_cachedDocument) 984 if (m_cachedDocument)
985 m_cachedDocument->removeClient(this); 985 m_cachedDocument->removeClient(this);
986 986
987 m_cachedDocument = cachedDocument; 987 m_cachedDocument = cachedDocument;
988 if (m_cachedDocument) 988 if (m_cachedDocument)
989 m_cachedDocument->addClient(this); 989 m_cachedDocument->addClient(this);
990 } 990 }
991 991
992 } 992 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTitleElement.idl ('k') | Source/core/svg/SVGViewElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698