From d0825bca7fe65beaee391d30da42e937db621564 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 2 Feb 2010 14:57:50 +0000 Subject: Merge webkit.org at r54127 : Initial merge by git Change-Id: Ib661abb595522f50ea406f72d3a0ce17f7193c82 --- WebCore/svg/SVGTRefElement.cpp | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'WebCore/svg/SVGTRefElement.cpp') diff --git a/WebCore/svg/SVGTRefElement.cpp b/WebCore/svg/SVGTRefElement.cpp index 1f32e90..06ae896 100644 --- a/WebCore/svg/SVGTRefElement.cpp +++ b/WebCore/svg/SVGTRefElement.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2004, 2005 Nikolas Zimmermann + Copyright (C) 2004, 2005 Nikolas Zimmermann 2004, 2005, 2006 Rob Buis This library is free software; you can redistribute it and/or @@ -19,6 +19,7 @@ */ #include "config.h" + #if ENABLE(SVG) #include "SVGTRefElement.h" @@ -33,7 +34,6 @@ namespace WebCore { SVGTRefElement::SVGTRefElement(const QualifiedName& tagName, Document* doc) : SVGTextPositioningElement(tagName, doc) , SVGURIReference() - , m_href(this, XLinkNames::hrefAttr) { } @@ -61,6 +61,25 @@ void SVGTRefElement::parseMappedAttribute(MappedAttribute* attr) SVGTextPositioningElement::parseMappedAttribute(attr); } +void SVGTRefElement::svgAttributeChanged(const QualifiedName& attrName) +{ + SVGTextPositioningElement::svgAttributeChanged(attrName); + + if (!renderer()) + return; + + if (SVGURIReference::isKnownAttribute(attrName)) + renderer()->setNeedsLayout(true); +} + +void SVGTRefElement::synchronizeProperty(const QualifiedName& attrName) +{ + SVGTextPositioningElement::synchronizeProperty(attrName); + + if (attrName == anyQName() || SVGURIReference::isKnownAttribute(attrName)) + synchronizeHref(); +} + bool SVGTRefElement::childShouldCreateRenderer(Node* child) const { if (child->isTextNode() || child->hasTagName(SVGNames::tspanTag) || @@ -76,6 +95,4 @@ RenderObject* SVGTRefElement::createRenderer(RenderArena* arena, RenderStyle*) } -// vim:ts=4:noet #endif // ENABLE(SVG) - -- cgit v1.1