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

Side by Side Diff: Source/core/svg/SVGUseElement.cpp

Issue 966923003: Make SVGLengthMode an enum class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 27 matching lines...) Expand all
38 #include "core/layout/svg/LayoutSVGTransformableContainer.h" 38 #include "core/layout/svg/LayoutSVGTransformableContainer.h"
39 #include "core/svg/SVGGElement.h" 39 #include "core/svg/SVGGElement.h"
40 #include "core/svg/SVGLengthContext.h" 40 #include "core/svg/SVGLengthContext.h"
41 #include "core/svg/SVGSVGElement.h" 41 #include "core/svg/SVGSVGElement.h"
42 #include "core/xml/parser/XMLDocumentParser.h" 42 #include "core/xml/parser/XMLDocumentParser.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 inline SVGUseElement::SVGUseElement(Document& document) 46 inline SVGUseElement::SVGUseElement(Document& document)
47 : SVGGraphicsElement(SVGNames::useTag, document) 47 : SVGGraphicsElement(SVGNames::useTag, document)
48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth), AllowNegativeLengths)) 48 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG LengthMode::Width), AllowNegativeLengths))
49 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight), AllowNegativeLengths)) 49 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG LengthMode::Height), AllowNegativeLengths))
50 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth), ForbidNegativeLengths)) 50 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(SVGLengthMode::Width), ForbidNegativeLengths))
51 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight), ForbidNegativeLengths)) 51 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(SVGLengthMode::Height), ForbidNegativeLengths))
52 , m_haveFiredLoadEvent(false) 52 , m_haveFiredLoadEvent(false)
53 , m_needsShadowTreeRecreation(false) 53 , m_needsShadowTreeRecreation(false)
54 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) 54 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired)
55 { 55 {
56 SVGURIReference::initialize(this); 56 SVGURIReference::initialize(this);
57 57
58 ASSERT(hasCustomStyleCallbacks()); 58 ASSERT(hasCustomStyleCallbacks());
59 59
60 addToPropertyMap(m_x); 60 addToPropertyMap(m_x);
61 addToPropertyMap(m_y); 61 addToPropertyMap(m_y);
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 if (m_resource) 788 if (m_resource)
789 m_resource->removeClient(this); 789 m_resource->removeClient(this);
790 790
791 m_resource = resource; 791 m_resource = resource;
792 if (m_resource) 792 if (m_resource)
793 m_resource->addClient(this); 793 m_resource->addClient(this);
794 } 794 }
795 795
796 } 796 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698