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

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

Issue 2027113002: Make SVGElement::setCursorImageValue take a const pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 { 540 {
541 SVGElementRareData* rareData = ensureSVGRareData(); 541 SVGElementRareData* rareData = ensureSVGRareData();
542 if (SVGCursorElement* oldCursorElement = rareData->cursorElement()) { 542 if (SVGCursorElement* oldCursorElement = rareData->cursorElement()) {
543 if (cursorElement == oldCursorElement) 543 if (cursorElement == oldCursorElement)
544 return; 544 return;
545 oldCursorElement->removeReferencedElement(this); 545 oldCursorElement->removeReferencedElement(this);
546 } 546 }
547 rareData->setCursorElement(cursorElement); 547 rareData->setCursorElement(cursorElement);
548 } 548 }
549 549
550 void SVGElement::setCursorImageValue(CSSCursorImageValue* cursorImageValue) 550 void SVGElement::setCursorImageValue(const CSSCursorImageValue* cursorImageValue )
551 { 551 {
552 ensureSVGRareData()->setCursorImageValue(cursorImageValue); 552 ensureSVGRareData()->setCursorImageValue(cursorImageValue);
553 } 553 }
554 554
555 SVGElement* SVGElement::correspondingElement() const 555 SVGElement* SVGElement::correspondingElement() const
556 { 556 {
557 ASSERT(!hasSVGRareData() || !svgRareData()->correspondingElement() || contai ningShadowRoot()); 557 ASSERT(!hasSVGRareData() || !svgRareData()->correspondingElement() || contai ningShadowRoot());
558 return hasSVGRareData() ? svgRareData()->correspondingElement() : 0; 558 return hasSVGRareData() ? svgRareData()->correspondingElement() : 0;
559 } 559 }
560 560
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 Element::trace(visitor); 1175 Element::trace(visitor);
1176 } 1176 }
1177 1177
1178 const AtomicString& SVGElement::eventParameterName() 1178 const AtomicString& SVGElement::eventParameterName()
1179 { 1179 {
1180 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); 1180 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt"));
1181 return evtString; 1181 return evtString;
1182 } 1182 }
1183 1183
1184 } // namespace blink 1184 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | third_party/WebKit/Source/core/svg/SVGElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698