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

Unified Diff: Source/core/svg/SVGElement.cpp

Issue 196173020: Remove deprecated getPresentationAttribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index d0648dccdef1c8a04f4d95ee009536bf63d10b3a..e5ce7a6c412f594d6c9bff412dddca7f1bcfe217 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -256,24 +256,6 @@ String SVGElement::title() const
return String();
}
-PassRefPtrWillBeRawPtr<CSSValue> SVGElement::getPresentationAttribute(const AtomicString& name)
-{
- if (!hasAttributesWithoutUpdate())
- return nullptr;
-
- QualifiedName attributeName(nullAtom, name, nullAtom);
- const Attribute* attr = getAttributeItem(attributeName);
- if (!attr)
- return nullptr;
-
- RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGAttributeMode);
- CSSPropertyID propertyID = SVGElement::cssPropertyIdForSVGAttributeName(attr->name());
- style->setProperty(propertyID, attr->value());
- RefPtrWillBeRawPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyID);
- return cssValue ? cssValue->cloneForCSSOM() : nullptr;
-}
-
-
bool SVGElement::instanceUpdatesBlocked() const
{
return hasSVGRareData() && svgRareData()->instanceUpdatesBlocked();
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698