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

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

Issue 2714153002: Remove LayoutSVGResourceContainer::m_id (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 67a9d573785143e0e21f2534f050569531a759bc..58a7d3fdf85d115f6b13db43154b8faea23afe88 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -904,8 +904,10 @@ void SVGElement::attributeChanged(const AttributeModificationParams& params) {
LayoutObject* object = layoutObject();
// Notify resources about id changes, this is important as we cache
// resources by id in SVGDocumentExtensions
- if (object && object->isSVGResourceContainer())
- toLayoutSVGResourceContainer(object)->idChanged();
+ if (object && object->isSVGResourceContainer()) {
+ toLayoutSVGResourceContainer(object)->idChanged(params.oldValue,
+ params.newValue);
+ }
if (isConnected())
buildPendingResourcesIfNeeded();
invalidateInstances();
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698