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

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

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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
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, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 void SVGStyledElement::svgAttributeChanged(const QualifiedName& attrName) 324 void SVGStyledElement::svgAttributeChanged(const QualifiedName& attrName)
325 { 325 {
326 CSSPropertyID propId = SVGStyledElement::cssPropertyIdForSVGAttributeName(at trName); 326 CSSPropertyID propId = SVGStyledElement::cssPropertyIdForSVGAttributeName(at trName);
327 if (propId > 0) { 327 if (propId > 0) {
328 SVGElementInstance::invalidateAllInstancesOfElement(this); 328 SVGElementInstance::invalidateAllInstancesOfElement(this);
329 return; 329 return;
330 } 330 }
331 331
332 if (attrName == HTMLNames::classAttr) { 332 if (attrName == HTMLNames::classAttr) {
333 classAttributeChanged(className()); 333 classAttributeChanged(classNameCurrentValue());
334 SVGElementInstance::invalidateAllInstancesOfElement(this); 334 SVGElementInstance::invalidateAllInstancesOfElement(this);
335 return; 335 return;
336 } 336 }
337 337
338 if (isIdAttributeName(attrName)) { 338 if (isIdAttributeName(attrName)) {
339 RenderObject* object = renderer(); 339 RenderObject* object = renderer();
340 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions 340 // Notify resources about id changes, this is important as we cache reso urces by id in SVGDocumentExtensions
341 if (object && object->isSVGResourceContainer()) 341 if (object && object->isSVGResourceContainer())
342 object->toRenderSVGResourceContainer()->idChanged(); 342 object->toRenderSVGResourceContainer()->idChanged();
343 if (inDocument()) 343 if (inDocument())
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 Element* eventTarget = const_cast<SVGStyledElement *>(this); 476 Element* eventTarget = const_cast<SVGStyledElement *>(this);
477 return eventTarget->hasEventListeners(eventNames().focusinEvent) || eventTar get->hasEventListeners(eventNames().focusoutEvent); 477 return eventTarget->hasEventListeners(eventNames().focusinEvent) || eventTar get->hasEventListeners(eventNames().focusoutEvent);
478 } 478 }
479 479
480 bool SVGStyledElement::isKeyboardFocusable(KeyboardEvent*) const 480 bool SVGStyledElement::isKeyboardFocusable(KeyboardEvent*) const
481 { 481 {
482 return isMouseFocusable(); 482 return isMouseFocusable();
483 } 483 }
484 484
485 } 485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698