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

Unified Diff: Source/core/dom/Element.cpp

Issue 218403009: Map width/height to style for foreignObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use |value| sent to collectStyleForPresentationAttribute as suggested in review 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
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 46a60530d0b130782ebda7e27959f8d543530c1a..bc501d5f536008106e2a2dacf2c4517bcbd06c1b 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -3304,6 +3304,11 @@ void Element::updatePresentationAttributeStyle()
{
// ShareableElementData doesn't store presentation attribute style, so make sure we have a UniqueElementData.
UniqueElementData& elementData = ensureUniqueElementData();
+ if (elementData.m_animatedSVGAttributesAreDirty) {
+ // Presentation attributes may depend on animated svg attributes.
+ ASSERT(isSVGElement());
+ toSVGElement(this)->synchronizeAnimatedSVGAttribute(anyQName());
+ }
elementData.m_presentationAttributeStyleIsDirty = false;
elementData.m_presentationAttributeStyle = computePresentationAttributeStyle(*this);
}

Powered by Google App Engine
This is Rietveld 408576698