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

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

Issue 15864004: Move create() methods from StylePropertySet to MutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | no next file » | 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, 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 PassRefPtr<CSSValue> SVGStyledElement::getPresentationAttribute(const String& na me) 399 PassRefPtr<CSSValue> SVGStyledElement::getPresentationAttribute(const String& na me)
400 { 400 {
401 if (!hasAttributesWithoutUpdate()) 401 if (!hasAttributesWithoutUpdate())
402 return 0; 402 return 0;
403 403
404 QualifiedName attributeName(nullAtom, name, nullAtom); 404 QualifiedName attributeName(nullAtom, name, nullAtom);
405 const Attribute* attr = getAttributeItem(attributeName); 405 const Attribute* attr = getAttributeItem(attributeName);
406 if (!attr) 406 if (!attr)
407 return 0; 407 return 0;
408 408
409 RefPtr<StylePropertySet> style = StylePropertySet::create(SVGAttributeMode); 409 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGA ttributeMode);
410 CSSPropertyID propertyID = SVGStyledElement::cssPropertyIdForSVGAttributeNam e(attr->name()); 410 CSSPropertyID propertyID = SVGStyledElement::cssPropertyIdForSVGAttributeNam e(attr->name());
411 style->setProperty(propertyID, attr->value()); 411 style->setProperty(propertyID, attr->value());
412 RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyID); 412 RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyID);
413 return cssValue ? cssValue->cloneForCSSOM() : 0; 413 return cssValue ? cssValue->cloneForCSSOM() : 0;
414 } 414 }
415 415
416 bool SVGStyledElement::instanceUpdatesBlocked() const 416 bool SVGStyledElement::instanceUpdatesBlocked() const
417 { 417 {
418 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked(); 418 return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked();
419 } 419 }
(...skipping 56 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
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698