Diff
Modified: trunk/Source/WebCore/ChangeLog (184851 => 184852)
--- trunk/Source/WebCore/ChangeLog 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/ChangeLog 2015-05-26 01:46:15 UTC (rev 184852)
@@ -1,3 +1,97 @@
+2015-05-25 Hunseop Jeong <[email protected]>
+
+ Replaced 0 with nullptr in WebCore/svg.
+ https://bugs.webkit.org/show_bug.cgi?id=145367
+
+ Reviewed by Gyuyoung Kim.
+
+ No new tests, no behavior changes.
+
+ * svg/PatternAttributes.h:
+ (WebCore::PatternAttributes::PatternAttributes):
+ * svg/SVGAnimatedType.h:
+ * svg/SVGElement.cpp:
+ (WebCore::SVGElement::cursorElementRemoved):
+ (WebCore::SVGElement::cursorImageValueRemoved):
+ (WebCore::SVGElement::getPresentationAttribute):
+ * svg/SVGException.cpp:
+ (WebCore::SVGException::initializeDescription):
+ * svg/SVGFEImageElement.cpp:
+ (WebCore::SVGFEImageElement::clearResourceReferences):
+ * svg/SVGFontFaceElement.cpp:
+ (WebCore::SVGFontFaceElement::SVGFontFaceElement):
+ (WebCore::SVGFontFaceElement::removedFrom):
+ * svg/SVGFontFaceUriElement.cpp:
+ (WebCore::SVGFontFaceUriElement::loadFont):
+ * svg/SVGLength.h:
+ (WebCore::SVGLength::blend):
+ * svg/SVGPathBlender.cpp:
+ (WebCore::SVGPathBlender::SVGPathBlender):
+ (WebCore::SVGPathBlender::cleanup):
+ * svg/SVGPathBuilder.cpp:
+ (WebCore::SVGPathBuilder::SVGPathBuilder):
+ * svg/SVGPathBuilder.h:
+ * svg/SVGPathByteStreamBuilder.cpp:
+ (WebCore::SVGPathByteStreamBuilder::SVGPathByteStreamBuilder):
+ * svg/SVGPathByteStreamBuilder.h:
+ * svg/SVGPathElement.cpp:
+ (WebCore::SVGPathElement::dPropertyInfo):
+ * svg/SVGPathParser.cpp:
+ (WebCore::SVGPathParser::SVGPathParser):
+ (WebCore::SVGPathParser::cleanup):
+ * svg/SVGPathSegListBuilder.cpp:
+ (WebCore::SVGPathSegListBuilder::SVGPathSegListBuilder):
+ * svg/SVGPathSegListBuilder.h:
+ * svg/SVGPathTraversalStateBuilder.cpp:
+ (WebCore::SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder):
+ * svg/SVGPathUtilities.cpp:
+ (WebCore::globalSVGPathBuilder):
+ (WebCore::globalSVGPathSegListBuilder):
+ (WebCore::globalSVGPathByteStreamBuilder):
+ (WebCore::globalSVGPathStringBuilder):
+ (WebCore::globalSVGPathTraversalStateBuilder):
+ (WebCore::globalSVGPathParser):
+ (WebCore::globalSVGPathBlender):
+ * svg/SVGPolyElement.cpp:
+ (WebCore::SVGPolyElement::pointsPropertyInfo):
+ * svg/SVGTRefElement.cpp:
+ (WebCore::SVGTRefTargetEventListener::cast):
+ (WebCore::SVGTRefTargetEventListener::SVGTRefTargetEventListener):
+ * svg/SVGTextContentElement.cpp:
+ (WebCore::SVGTextContentElement::textLengthPropertyInfo):
+ * svg/SVGURIReference.h:
+ * svg/SVGViewSpec.cpp:
+ (WebCore::SVGViewSpec::viewBoxPropertyInfo):
+ (WebCore::SVGViewSpec::preserveAspectRatioPropertyInfo):
+ (WebCore::SVGViewSpec::transformPropertyInfo):
+ * svg/SVGViewSpec.h:
+ (WebCore::SVGViewSpec::resetContextElement):
+ * svg/animation/SMILTimeContainer.cpp:
+ (WebCore::SMILTimeContainer::updateAnimations):
+ * svg/animation/SVGSMILElement.cpp:
+ (WebCore::ConditionEventListener::cast):
+ (WebCore::ConditionEventListener::disconnectAnimation):
+ (WebCore::SVGSMILElement::SVGSMILElement):
+ (WebCore::SVGSMILElement::removedFrom):
+ * svg/graphics/SVGImage.cpp:
+ (WebCore::SVGImage::drawForContainer):
+ * svg/graphics/filters/SVGFEImage.cpp:
+ (WebCore::FEImage::FEImage):
+ * svg/graphics/filters/SVGFilterBuilder.cpp:
+ (WebCore::SVGFilterBuilder::clearEffects):
+ * svg/properties/SVGAnimatedPathSegListPropertyTearOff.h:
+ (WebCore::SVGAnimatedPathSegListPropertyTearOff::animationEnded):
+ (WebCore::SVGAnimatedPathSegListPropertyTearOff::SVGAnimatedPathSegListPropertyTearOff):
+ * svg/properties/SVGAnimatedPropertyDescription.h:
+ (WebCore::SVGAnimatedPropertyDescription::SVGAnimatedPropertyDescription):
+ * svg/properties/SVGAnimatedPropertyTearOff.h:
+ (WebCore::SVGAnimatedPropertyTearOff::~SVGAnimatedPropertyTearOff):
+ * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
+ (WebCore::SVGAnimatedStaticPropertyTearOff::animationEnded):
+ (WebCore::SVGAnimatedStaticPropertyTearOff::SVGAnimatedStaticPropertyTearOff):
+ * svg/properties/SVGPropertyTearOff.h:
+ (WebCore::SVGPropertyTearOff::SVGPropertyTearOff):
+
2015-05-24 Sam Weinig <[email protected]>
Crash when using a removed ScriptMessageHandler
Modified: trunk/Source/WebCore/svg/PatternAttributes.h (184851 => 184852)
--- trunk/Source/WebCore/svg/PatternAttributes.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/PatternAttributes.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -37,7 +37,7 @@
, m_preserveAspectRatio()
, m_patternUnits(SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX)
, m_patternContentUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)
- , m_patternContentElement(0)
+ , m_patternContentElement(nullptr)
, m_xSet(false)
, m_ySet(false)
, m_widthSet(false)
Modified: trunk/Source/WebCore/svg/SVGAnimatedType.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGAnimatedType.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGAnimatedType.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -276,7 +276,7 @@
union DataUnion {
DataUnion()
- : length(0)
+ : length(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/SVGElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -458,7 +458,7 @@
void SVGElement::cursorElementRemoved()
{
ASSERT(m_svgRareData);
- m_svgRareData->setCursorElement(0);
+ m_svgRareData->setCursorElement(nullptr);
}
void SVGElement::setCursorImageValue(CSSCursorImageValue* cursorImageValue)
@@ -475,7 +475,7 @@
void SVGElement::cursorImageValueRemoved()
{
ASSERT(m_svgRareData);
- m_svgRareData->setCursorImageValue(0);
+ m_svgRareData->setCursorImageValue(nullptr);
}
SVGElement* SVGElement::correspondingElement() const
@@ -1100,7 +1100,7 @@
CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(attribute->name());
style->setProperty(propertyID, attribute->value());
RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(propertyID);
- return cssValue ? cssValue->cloneForCSSOM() : 0;
+ return cssValue ? cssValue->cloneForCSSOM() : nullptr;
}
bool SVGElement::instanceUpdatesBlocked() const
Modified: trunk/Source/WebCore/svg/SVGException.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGException.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGException.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -54,8 +54,8 @@
size_t tableSize = WTF_ARRAY_LENGTH(svgExceptions);
size_t tableIndex = ec - SVG_WRONG_TYPE_ERR;
- description->name = tableIndex < tableSize ? svgExceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? svgExceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? svgExceptions[tableIndex].name : nullptr;
+ description->description = tableIndex < tableSize ? svgExceptions[tableIndex].description : nullptr;
return true;
}
Modified: trunk/Source/WebCore/svg/SVGFEImageElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGFEImageElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGFEImageElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -69,7 +69,7 @@
{
if (m_cachedImage) {
m_cachedImage->removeClient(this);
- m_cachedImage = 0;
+ m_cachedImage = nullptr;
}
document().accessSVGExtensions().removeAllTargetReferencesForElement(this);
Modified: trunk/Source/WebCore/svg/SVGFontFaceElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGFontFaceElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGFontFaceElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -50,7 +50,7 @@
inline SVGFontFaceElement::SVGFontFaceElement(const QualifiedName& tagName, Document& document)
: SVGElement(tagName, document)
, m_fontFaceRule(StyleRuleFontFace::create(MutableStyleProperties::create(CSSStrictMode)))
- , m_fontElement(0)
+ , m_fontElement(nullptr)
{
ASSERT(hasTagName(font_faceTag));
}
@@ -287,7 +287,7 @@
SVGElement::removedFrom(rootParent);
if (rootParent.inDocument()) {
- m_fontElement = 0;
+ m_fontElement = nullptr;
document().accessSVGExtensions().unregisterSVGFontFaceElement(this);
m_fontFaceRule->mutableProperties().clear();
Modified: trunk/Source/WebCore/svg/SVGFontFaceUriElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGFontFaceUriElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGFontFaceUriElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -109,7 +109,7 @@
m_cachedFont->beginLoadIfNeeded(cachedResourceLoader);
}
} else
- m_cachedFont = 0;
+ m_cachedFont = nullptr;
}
}
Modified: trunk/Source/WebCore/svg/SVGLength.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGLength.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGLength.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -141,7 +141,7 @@
ASSERT(!isRelative());
ASSERT(!from.isRelative());
- SVGLengthContext nonRelativeLengthContext(0);
+ SVGLengthContext nonRelativeLengthContext(nullptr);
float fromValueInUserUnits = nonRelativeLengthContext.convertValueToUserUnits(from.valueInSpecifiedUnits(), from.unitMode(), fromType, ec);
if (ec)
return SVGLength();
Modified: trunk/Source/WebCore/svg/SVGPathBlender.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathBlender.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathBlender.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -28,9 +28,9 @@
namespace WebCore {
SVGPathBlender::SVGPathBlender()
- : m_fromSource(0)
- , m_toSource(0)
- , m_consumer(0)
+ : m_fromSource(nullptr)
+ , m_toSource(nullptr)
+ , m_consumer(nullptr)
, m_progress(0)
, m_addTypesCount(0)
, m_isInFirstHalfOfAnimation(false)
@@ -399,9 +399,9 @@
ASSERT(m_consumer);
m_consumer->cleanup();
- m_toSource = 0;
- m_fromSource = 0;
- m_consumer = 0;
+ m_toSource = nullptr;
+ m_fromSource = nullptr;
+ m_consumer = nullptr;
m_fromCurrentPoint = FloatPoint();
m_toCurrentPoint = FloatPoint();
}
Modified: trunk/Source/WebCore/svg/SVGPathBuilder.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathBuilder.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathBuilder.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -29,7 +29,7 @@
namespace WebCore {
SVGPathBuilder::SVGPathBuilder()
- : m_path(0)
+ : m_path(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/SVGPathBuilder.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathBuilder.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathBuilder.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -43,7 +43,7 @@
private:
virtual void incrementPathSegmentCount() override { }
virtual bool continueConsuming() override { return true; }
- virtual void cleanup() override { m_path = 0; }
+ virtual void cleanup() override { m_path = nullptr; }
// Used in UnalteredParsing/NormalizedParsing modes.
virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
Modified: trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -27,7 +27,7 @@
namespace WebCore {
SVGPathByteStreamBuilder::SVGPathByteStreamBuilder()
- : m_byteStream(0)
+ : m_byteStream(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathByteStreamBuilder.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -36,7 +36,7 @@
private:
virtual void incrementPathSegmentCount() override { }
virtual bool continueConsuming() override { return true; }
- virtual void cleanup() override { m_byteStream = 0; }
+ virtual void cleanup() override { m_byteStream = nullptr; }
// Used in UnalteredParsing/NormalizedParsing modes.
virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) override;
Modified: trunk/Source/WebCore/svg/SVGPathElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -55,7 +55,7 @@
// Define custom animated property 'd'.
const SVGPropertyInfo* SVGPathElement::dPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedPath,
PropertyIsReadWrite,
Modified: trunk/Source/WebCore/svg/SVGPathParser.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathParser.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathParser.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -33,7 +33,7 @@
namespace WebCore {
SVGPathParser::SVGPathParser()
- : m_consumer(0)
+ : m_consumer(nullptr)
{
}
@@ -411,8 +411,8 @@
ASSERT(m_consumer);
m_consumer->cleanup();
- m_source = 0;
- m_consumer = 0;
+ m_source = nullptr;
+ m_consumer = nullptr;
}
// This works by converting the SVG arc to "simple" beziers.
Modified: trunk/Source/WebCore/svg/SVGPathSegListBuilder.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathSegListBuilder.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathSegListBuilder.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -50,8 +50,8 @@
namespace WebCore {
SVGPathSegListBuilder::SVGPathSegListBuilder()
- : m_pathElement(0)
- , m_pathSegList(0)
+ : m_pathElement(nullptr)
+ , m_pathSegList(nullptr)
, m_pathSegRole(PathSegUndefinedRole)
{
}
Modified: trunk/Source/WebCore/svg/SVGPathSegListBuilder.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathSegListBuilder.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathSegListBuilder.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -45,8 +45,8 @@
virtual bool continueConsuming() override { return true; }
virtual void cleanup() override
{
- m_pathElement = 0;
- m_pathSegList = 0;
+ m_pathElement = nullptr;
+ m_pathSegList = nullptr;
m_pathSegRole = PathSegUndefinedRole;
}
Modified: trunk/Source/WebCore/svg/SVGPathTraversalStateBuilder.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathTraversalStateBuilder.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathTraversalStateBuilder.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -28,7 +28,7 @@
namespace WebCore {
SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder()
- : m_traversalState(0)
+ : m_traversalState(nullptr)
, m_segmentIndex(0)
{
}
Modified: trunk/Source/WebCore/svg/SVGPathUtilities.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPathUtilities.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPathUtilities.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -38,7 +38,7 @@
static SVGPathBuilder* globalSVGPathBuilder(Path& result)
{
- static SVGPathBuilder* s_builder = 0;
+ static SVGPathBuilder* s_builder = nullptr;
if (!s_builder)
s_builder = new SVGPathBuilder;
@@ -48,7 +48,7 @@
static SVGPathSegListBuilder* globalSVGPathSegListBuilder(SVGPathElement* element, SVGPathSegRole role, SVGPathSegList& result)
{
- static SVGPathSegListBuilder* s_builder = 0;
+ static SVGPathSegListBuilder* s_builder = nullptr;
if (!s_builder)
s_builder = new SVGPathSegListBuilder;
@@ -60,7 +60,7 @@
static SVGPathByteStreamBuilder* globalSVGPathByteStreamBuilder(SVGPathByteStream* result)
{
- static SVGPathByteStreamBuilder* s_builder = 0;
+ static SVGPathByteStreamBuilder* s_builder = nullptr;
if (!s_builder)
s_builder = new SVGPathByteStreamBuilder;
@@ -70,7 +70,7 @@
static SVGPathStringBuilder* globalSVGPathStringBuilder()
{
- static SVGPathStringBuilder* s_builder = 0;
+ static SVGPathStringBuilder* s_builder = nullptr;
if (!s_builder)
s_builder = new SVGPathStringBuilder;
@@ -79,7 +79,7 @@
static SVGPathTraversalStateBuilder* globalSVGPathTraversalStateBuilder(PathTraversalState& traversalState, float length)
{
- static SVGPathTraversalStateBuilder* s_builder = 0;
+ static SVGPathTraversalStateBuilder* s_builder = nullptr;
if (!s_builder)
s_builder = new SVGPathTraversalStateBuilder;
@@ -90,7 +90,7 @@
static SVGPathParser* globalSVGPathParser(SVGPathSource* source, SVGPathConsumer* consumer)
{
- static SVGPathParser* s_parser = 0;
+ static SVGPathParser* s_parser = nullptr;
if (!s_parser)
s_parser = new SVGPathParser;
@@ -101,7 +101,7 @@
static SVGPathBlender* globalSVGPathBlender()
{
- static SVGPathBlender* s_blender = 0;
+ static SVGPathBlender* s_blender = nullptr;
if (!s_blender)
s_blender = new SVGPathBlender;
Modified: trunk/Source/WebCore/svg/SVGPolyElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGPolyElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGPolyElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -34,7 +34,7 @@
// Define custom animated property 'points'.
const SVGPropertyInfo* SVGPolyElement::pointsPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedPoints,
PropertyIsReadWrite,
Modified: trunk/Source/WebCore/svg/SVGTRefElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGTRefElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGTRefElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -62,8 +62,7 @@
static const SVGTRefTargetEventListener* cast(const EventListener* listener)
{
- return listener->type() == SVGTRefTargetEventListenerType
- ? static_cast<const SVGTRefTargetEventListener*>(listener) : 0;
+ return listener->type() == SVGTRefTargetEventListenerType ? static_cast<const SVGTRefTargetEventListener*>(listener) : nullptr;
}
void attach(PassRefPtr<Element> target);
@@ -83,7 +82,7 @@
SVGTRefTargetEventListener::SVGTRefTargetEventListener(SVGTRefElement& trefElement)
: EventListener(SVGTRefTargetEventListenerType)
, m_trefElement(trefElement)
- , m_target(0)
+ , m_target(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/SVGTextContentElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGTextContentElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGTextContentElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -39,7 +39,7 @@
// Define custom animated property 'textLength'.
const SVGPropertyInfo* SVGTextContentElement::textLengthPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedLength,
PropertyIsReadWrite,
Modified: trunk/Source/WebCore/svg/SVGURIReference.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGURIReference.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGURIReference.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -35,7 +35,7 @@
static void addSupportedAttributes(HashSet<QualifiedName>&);
static String fragmentIdentifierFromIRIString(const String&, Document&);
- static Element* targetElementFromIRIString(const String&, Document&, String* = 0, Document* = 0);
+ static Element* targetElementFromIRIString(const String&, Document&, String* = nullptr, Document* = nullptr);
static bool isExternalURIReference(const String& uri, Document& document)
{
Modified: trunk/Source/WebCore/svg/SVGViewSpec.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGViewSpec.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGViewSpec.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -32,7 +32,7 @@
// Define custom animated property 'viewBox'.
const SVGPropertyInfo* SVGViewSpec::viewBoxPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedRect,
PropertyIsReadOnly,
@@ -47,7 +47,7 @@
// Define custom animated property 'preserveAspectRatio'.
const SVGPropertyInfo* SVGViewSpec::preserveAspectRatioPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedPreserveAspectRatio,
PropertyIsReadOnly,
@@ -63,7 +63,7 @@
// Define custom non-animated property 'transform'.
const SVGPropertyInfo* SVGViewSpec::transformPropertyInfo()
{
- static const SVGPropertyInfo* s_propertyInfo = 0;
+ static const SVGPropertyInfo* s_propertyInfo = nullptr;
if (!s_propertyInfo) {
s_propertyInfo = new SVGPropertyInfo(AnimatedTransformList,
PropertyIsReadOnly,
Modified: trunk/Source/WebCore/svg/SVGViewSpec.h (184851 => 184852)
--- trunk/Source/WebCore/svg/SVGViewSpec.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/SVGViewSpec.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -65,7 +65,7 @@
void setZoomAndPanBaseValue(unsigned short zoomAndPan) { m_zoomAndPan = SVGZoomAndPan::parseFromNumber(zoomAndPan); }
SVGElement* contextElement() const { return m_contextElement; }
- void resetContextElement() { m_contextElement = 0; }
+ void resetContextElement() { m_contextElement = nullptr; }
// Custom non-animated 'transform' property.
SVGTransformListPropertyTearOff* transform();
Modified: trunk/Source/WebCore/svg/animation/SMILTimeContainer.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/animation/SMILTimeContainer.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/animation/SMILTimeContainer.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -271,7 +271,7 @@
// have higher priority.
sortByPriority(*scheduled, elapsed);
- SVGSMILElement* resultElement = 0;
+ SVGSMILElement* resultElement = nullptr;
for (auto& animation : *scheduled) {
ASSERT(animation->timeContainer() == this);
ASSERT(animation->targetElement());
@@ -286,7 +286,7 @@
// This will calculate the contribution from the animation and add it to the resultsElement.
if (!animation->progress(elapsed, resultElement, seekToTime) && resultElement == animation)
- resultElement = 0;
+ resultElement = nullptr;
SMILTime nextFireTime = animation->nextProgressTime();
if (nextFireTime.isFinite())
Modified: trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -60,14 +60,14 @@
{
return listener->type() == ConditionEventListenerType
? static_cast<const ConditionEventListener*>(listener)
- : 0;
+ : nullptr;
}
virtual bool operator==(const EventListener& other) override;
void disconnectAnimation()
{
- m_animation = 0;
+ m_animation = nullptr;
}
private:
@@ -111,7 +111,7 @@
SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc)
: SVGElement(tagName, doc)
, m_attributeName(anyQName())
- , m_targetElement(0)
+ , m_targetElement(nullptr)
, m_conditionsConnected(false)
, m_hasEndEventConditions(false)
, m_isWaitingForFirstInterval(true)
@@ -273,10 +273,10 @@
if (rootParent.inDocument()) {
clearResourceReferences();
disconnectConditions();
- setTargetElement(0);
+ setTargetElement(nullptr);
setAttributeName(anyQName());
animationAttributeChanged();
- m_timeContainer = 0;
+ m_timeContainer = nullptr;
}
SVGElement::removedFrom(rootParent);
Modified: trunk/Source/WebCore/svg/graphics/SVGImage.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/graphics/SVGImage.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/graphics/SVGImage.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -146,7 +146,7 @@
ASSERT(observer);
// Temporarily reset image observer, we don't want to receive any changeInRect() calls due to this relayout.
- setImageObserver(0);
+ setImageObserver(nullptr);
IntSize roundedContainerSize = roundedIntSize(containerSize);
setContainerSize(roundedContainerSize);
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -39,7 +39,7 @@
FEImage::FEImage(Filter& filter, RefPtr<Image> image, const SVGPreserveAspectRatio& preserveAspectRatio)
: FilterEffect(filter)
, m_image(image)
- , m_document(0)
+ , m_document(nullptr)
, m_preserveAspectRatio(preserveAspectRatio)
{
}
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFilterBuilder.cpp (184851 => 184852)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFilterBuilder.cpp 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFilterBuilder.cpp 2015-05-26 01:46:15 UTC (rev 184852)
@@ -81,7 +81,7 @@
void SVGFilterBuilder::clearEffects()
{
- m_lastEffect = 0;
+ m_lastEffect = nullptr;
m_namedEffects.clear();
m_effectReferences.clear();
m_effectRenderer.clear();
Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h (184851 => 184852)
--- trunk/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedPathSegListPropertyTearOff.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -81,7 +81,7 @@
void animationEnded()
{
ASSERT(m_animatedPathByteStream);
- m_animatedPathByteStream = 0;
+ m_animatedPathByteStream = nullptr;
SVGAnimatedListPropertyTearOff<SVGPathSegList>::animationEnded();
}
@@ -106,7 +106,7 @@
private:
SVGAnimatedPathSegListPropertyTearOff(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, SVGPathSegList& values)
: SVGAnimatedListPropertyTearOff<SVGPathSegList>(contextElement, attributeName, animatedPropertyType, values)
- , m_animatedPathByteStream(0)
+ , m_animatedPathByteStream(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyDescription.h (184851 => 184852)
--- trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyDescription.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyDescription.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -32,8 +32,8 @@
struct SVGAnimatedPropertyDescription {
// Empty value
SVGAnimatedPropertyDescription()
- : m_element(0)
- , m_attributeName(0)
+ : m_element(nullptr)
+ , m_attributeName(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h (184851 => 184852)
--- trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -35,11 +35,11 @@
{
if (m_baseVal) {
ASSERT(m_baseVal->animatedProperty() == this);
- m_baseVal->setAnimatedProperty(0);
+ m_baseVal->setAnimatedProperty(nullptr);
}
if (m_animVal) {
ASSERT(m_animVal->animatedProperty() == this);
- m_animVal->setAnimatedProperty(0);
+ m_animVal->setAnimatedProperty(nullptr);
}
}
Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedStaticPropertyTearOff.h (184851 => 184852)
--- trunk/Source/WebCore/svg/properties/SVGAnimatedStaticPropertyTearOff.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedStaticPropertyTearOff.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -79,7 +79,7 @@
{
ASSERT(m_isAnimating);
ASSERT(m_animatedProperty);
- m_animatedProperty = 0;
+ m_animatedProperty = nullptr;
m_isAnimating = false;
}
@@ -101,7 +101,7 @@
SVGAnimatedStaticPropertyTearOff(SVGElement* contextElement, const QualifiedName& attributeName, AnimatedPropertyType animatedPropertyType, PropertyType& property)
: SVGAnimatedProperty(contextElement, attributeName, animatedPropertyType)
, m_property(property)
- , m_animatedProperty(0)
+ , m_animatedProperty(nullptr)
{
}
Modified: trunk/Source/WebCore/svg/properties/SVGPropertyTearOff.h (184851 => 184852)
--- trunk/Source/WebCore/svg/properties/SVGPropertyTearOff.h 2015-05-25 15:15:38 UTC (rev 184851)
+++ trunk/Source/WebCore/svg/properties/SVGPropertyTearOff.h 2015-05-26 01:46:15 UTC (rev 184852)
@@ -105,7 +105,7 @@
// Whenever the XML DOM modifies the "x" attribute, all existing wrappers are detached, using this function.
m_value = new PropertyType(*m_value);
m_valueIsCopy = true;
- m_animatedProperty = 0;
+ m_animatedProperty = nullptr;
}
virtual void commitChange() override
@@ -144,7 +144,7 @@
}
SVGPropertyTearOff(const PropertyType* initialValue)
- : m_animatedProperty(0)
+ : m_animatedProperty(nullptr)
, m_role(UndefinedRole)
, m_value(initialValue ? new PropertyType(*initialValue) : nullptr)
, m_valueIsCopy(true)