Changeset 140267 in webkit
- Timestamp:
- Jan 19, 2013 10:32:29 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140262 r140267 1 2013-01-19 Philip Rogers <pdr@google.com> 2 3 Refactor SVGSVGElement to inherit from SVGStyledTransformableElement 4 https://bugs.webkit.org/show_bug.cgi?id=107393 5 6 Reviewed by Dirk Schulze. 7 8 * svg/transforms/svgsvgelement-transform-expected.svg: Added. 9 * svg/transforms/svgsvgelement-transform.svg: Added. 10 1 11 2013-01-19 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r140265 r140267 1 2013-01-19 Philip Rogers <pdr@google.com> 2 3 Refactor SVGSVGElement to inherit from SVGStyledTransformableElement 4 https://bugs.webkit.org/show_bug.cgi?id=107393 5 6 Reviewed by Dirk Schulze. 7 8 This patch refactors SVGSVGElement to inherit from SVGStyledTransformableElement instead 9 of SVGStyledLocatableElement. In a followup patch, SVGStyledTransformableElement will 10 be refactored into SVGGraphicsElement which will match the spec: 11 https://svgwg.org/svg2-draft/single-page.html#struct-InterfaceSVGSVGElement 12 13 Tests: svg/transforms/svgsvgelement-transform-expected.svg 14 svg/transforms/svgsvgelement-transform.svg 15 16 * svg/SVGSVGElement.cpp: 17 (WebCore): 18 (WebCore::SVGSVGElement::SVGSVGElement): 19 (WebCore::SVGSVGElement::didMoveToNewDocument): 20 (WebCore::SVGSVGElement::parseAttribute): 21 (WebCore::SVGSVGElement::insertedInto): 22 (WebCore::SVGSVGElement::removedFrom): 23 * svg/SVGSVGElement.h: 24 (SVGSVGElement): 25 * svg/SVGSVGElement.idl: 26 1 27 2013-01-19 Philip Rogers <pdr@google.com> 2 28 -
trunk/Source/WebCore/svg/SVGSVGElement.cpp
r137406 r140267 79 79 REGISTER_LOCAL_ANIMATED_PROPERTY(viewBox) 80 80 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) 81 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyled LocatableElement)81 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) 82 82 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) 83 83 END_REGISTER_ANIMATED_PROPERTIES 84 84 85 85 inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document* doc) 86 : SVGStyled LocatableElement(tagName, doc)86 : SVGStyledTransformableElement(tagName, doc) 87 87 , m_x(LengthModeWidth) 88 88 , m_y(LengthModeHeight) … … 118 118 oldDocument->unregisterForPageCacheSuspensionCallbacks(this); 119 119 document()->registerForPageCacheSuspensionCallbacks(this); 120 SVGStyled LocatableElement::didMoveToNewDocument(oldDocument);120 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); 121 121 } 122 122 … … 276 276 || SVGZoomAndPan::parseAttribute(this, name, value)) { 277 277 } else 278 SVGStyled LocatableElement::parseAttribute(name, value);278 SVGStyledTransformableElement::parseAttribute(name, value); 279 279 280 280 reportAttributeParsingError(parseError, name, value); … … 511 511 timeContainer()->begin(); 512 512 } 513 return SVGStyled LocatableElement::insertedInto(rootParent);513 return SVGStyledTransformableElement::insertedInto(rootParent); 514 514 } 515 515 … … 518 518 if (rootParent->inDocument()) 519 519 document()->accessSVGExtensions()->removeTimeContainer(this); 520 SVGStyled LocatableElement::removedFrom(rootParent);520 SVGStyledTransformableElement::removedFrom(rootParent); 521 521 } 522 522 -
trunk/Source/WebCore/svg/SVGSVGElement.h
r136331 r140267 30 30 #include "SVGFitToViewBox.h" 31 31 #include "SVGLangSpace.h" 32 #include "SVGStyled LocatableElement.h"32 #include "SVGStyledTransformableElement.h" 33 33 #include "SVGTests.h" 34 34 #include "SVGZoomAndPan.h" … … 43 43 class SMILTimeContainer; 44 44 45 class SVGSVGElement : public SVGStyled LocatableElement,45 class SVGSVGElement : public SVGStyledTransformableElement, 46 46 public SVGTests, 47 47 public SVGLangSpace, … … 52 52 static PassRefPtr<SVGSVGElement> create(const QualifiedName&, Document*); 53 53 54 using SVGStyled LocatableElement::ref;55 using SVGStyled LocatableElement::deref;54 using SVGStyledTransformableElement::ref; 55 using SVGStyledTransformableElement::deref; 56 56 57 57 virtual bool isValid() const { return SVGTests::isValid(); } -
trunk/Source/WebCore/svg/SVGSVGElement.idl
r140265 r140267 30 30 SVGLangSpace, 31 31 SVGExternalResourcesRequired, 32 SVG Locatable,32 SVGTransformable, 33 33 SVGFitToViewBox, 34 34 SVGZoomAndPan {
Note: See TracChangeset
for help on using the changeset viewer.