Title: [170287] trunk/Source/WebCore
- Revision
- 170287
- Author
- [email protected]
- Date
- 2014-06-23 04:11:16 -0700 (Mon, 23 Jun 2014)
Log Message
Make it clear to get m_svgExtensions using svgExtensions().
https://bugs.webkit.org/show_bug.cgi?id=134186.
Patch by Jeongeun Kim <[email protected]> on 2014-06-23
Reviewed by Dirk Schulze.
This patch makes sure that the purpose of code is to get m_svgExtensions
as changing accessSVGExtensions() to svgExtensions().
svgExtensions() is a getter API and accessSVGExtensions() checks
the presence of m_svgExtensions and create m_svgExtensions if it does not exist.
No new tests, no behavior change.
* dom/ContainerNode.cpp:
(WebCore::ContainerNode::removeChild):
(WebCore::ContainerNode::removeChildren):
* dom/Document.cpp:
(WebCore::Document::commonTeardown):
(WebCore::Document::implicitClose):
* history/CachedFrame.cpp:
(WebCore::CachedFrameBase::restore):
* svg/SVGDocumentExtensions.cpp:
(WebCore::SVGDocumentExtensions::startAnimations):
(WebCore::SVGDocumentExtensions::pauseAnimations):
(WebCore::SVGDocumentExtensions::unpauseAnimations):
(WebCore::SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements):
(WebCore::SVGDocumentExtensions::rebuildElements):
* svg/SVGDocumentExtensions.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (170286 => 170287)
--- trunk/Source/WebCore/ChangeLog 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/ChangeLog 2014-06-23 11:11:16 UTC (rev 170287)
@@ -1,3 +1,33 @@
+2014-06-23 Jeongeun Kim <[email protected]>
+
+ Make it clear to get m_svgExtensions using svgExtensions().
+ https://bugs.webkit.org/show_bug.cgi?id=134186.
+
+ Reviewed by Dirk Schulze.
+
+ This patch makes sure that the purpose of code is to get m_svgExtensions
+ as changing accessSVGExtensions() to svgExtensions().
+ svgExtensions() is a getter API and accessSVGExtensions() checks
+ the presence of m_svgExtensions and create m_svgExtensions if it does not exist.
+
+ No new tests, no behavior change.
+
+ * dom/ContainerNode.cpp:
+ (WebCore::ContainerNode::removeChild):
+ (WebCore::ContainerNode::removeChildren):
+ * dom/Document.cpp:
+ (WebCore::Document::commonTeardown):
+ (WebCore::Document::implicitClose):
+ * history/CachedFrame.cpp:
+ (WebCore::CachedFrameBase::restore):
+ * svg/SVGDocumentExtensions.cpp:
+ (WebCore::SVGDocumentExtensions::startAnimations):
+ (WebCore::SVGDocumentExtensions::pauseAnimations):
+ (WebCore::SVGDocumentExtensions::unpauseAnimations):
+ (WebCore::SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements):
+ (WebCore::SVGDocumentExtensions::rebuildElements):
+ * svg/SVGDocumentExtensions.h:
+
2014-06-23 Dean Jackson <[email protected]>
[iOS] Use WebGLLayer rather than PlatformLayer in GraphicsContext3D
Modified: trunk/Source/WebCore/dom/ContainerNode.cpp (170286 => 170287)
--- trunk/Source/WebCore/dom/ContainerNode.cpp 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/dom/ContainerNode.cpp 2014-06-23 11:11:16 UTC (rev 170287)
@@ -573,7 +573,7 @@
if (document().svgExtensions()) {
Element* shadowHost = this->shadowHost();
if (!shadowHost || !shadowHost->hasTagName(SVGNames::useTag))
- document().accessSVGExtensions()->rebuildElements();
+ document().svgExtensions()->rebuildElements();
}
dispatchSubtreeModifiedEvent();
@@ -670,7 +670,7 @@
if (document().svgExtensions()) {
Element* shadowHost = this->shadowHost();
if (!shadowHost || !shadowHost->hasTagName(SVGNames::useTag))
- document().accessSVGExtensions()->rebuildElements();
+ document().svgExtensions()->rebuildElements();
}
dispatchSubtreeModifiedEvent();
Modified: trunk/Source/WebCore/dom/Document.cpp (170286 => 170287)
--- trunk/Source/WebCore/dom/Document.cpp 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/dom/Document.cpp 2014-06-23 11:11:16 UTC (rev 170287)
@@ -691,7 +691,7 @@
void Document::commonTeardown()
{
if (svgExtensions())
- accessSVGExtensions()->pauseAnimations();
+ svgExtensions()->pauseAnimations();
#if ENABLE(REQUEST_ANIMATION_FRAME)
clearScriptedAnimationController();
@@ -2386,7 +2386,7 @@
// here, instead of doing it from SVGElement::finishedParsingChildren (if externalResourcesRequired="false",
// which is the default, for ='' its fired at a later time, once all external resources finished loading).
if (svgExtensions())
- accessSVGExtensions()->dispatchSVGLoadEventToOutermostSVGElements();
+ svgExtensions()->dispatchSVGLoadEventToOutermostSVGElements();
dispatchWindowLoadEvent();
enqueuePageshowEvent(PageshowEventNotPersisted);
@@ -2451,7 +2451,7 @@
#endif
if (svgExtensions())
- accessSVGExtensions()->startAnimations();
+ svgExtensions()->startAnimations();
}
void Document::setParsing(bool b)
Modified: trunk/Source/WebCore/history/CachedFrame.cpp (170286 => 170287)
--- trunk/Source/WebCore/history/CachedFrame.cpp 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/history/CachedFrame.cpp 2014-06-23 11:11:16 UTC (rev 170287)
@@ -89,7 +89,7 @@
m_cachedFrameScriptData->restore(frame);
if (m_document->svgExtensions())
- m_document->accessSVGExtensions()->unpauseAnimations();
+ m_document->svgExtensions()->unpauseAnimations();
frame.animation().resumeAnimationsForDocument(m_document.get());
m_document->resumeActiveDOMObjects(ActiveDOMObject::DocumentWillBecomeInactive);
Modified: trunk/Source/WebCore/svg/SVGDocumentExtensions.cpp (170286 => 170287)
--- trunk/Source/WebCore/svg/SVGDocumentExtensions.cpp 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/svg/SVGDocumentExtensions.cpp 2014-06-23 11:11:16 UTC (rev 170287)
@@ -87,7 +87,7 @@
return m_resources.get(id);
}
-void SVGDocumentExtensions::startAnimations()
+void SVGDocumentExtensions::startAnimations() const
{
// FIXME: Eventually every "Time Container" will need a way to latch on to some global timer
// starting animations for a document will do this "latching"
@@ -100,21 +100,21 @@
(*it)->timeContainer()->begin();
}
-void SVGDocumentExtensions::pauseAnimations()
+void SVGDocumentExtensions::pauseAnimations() const
{
auto end = m_timeContainers.end();
for (auto it = m_timeContainers.begin(); it != end; ++it)
(*it)->pauseAnimations();
}
-void SVGDocumentExtensions::unpauseAnimations()
+void SVGDocumentExtensions::unpauseAnimations() const
{
auto end = m_timeContainers.end();
for (auto it = m_timeContainers.begin(); it != end; ++it)
(*it)->unpauseAnimations();
}
-void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements()
+void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements() const
{
Vector<RefPtr<SVGSVGElement>> timeContainers;
timeContainers.appendRange(m_timeContainers.begin(), m_timeContainers.end());
@@ -332,7 +332,7 @@
m_elementDependencies.remove(*it);
}
-void SVGDocumentExtensions::rebuildElements()
+void SVGDocumentExtensions::rebuildElements() const
{
Vector<SVGElement*> shadowRebuildElements = std::move(m_rebuildElements);
for (auto* element : shadowRebuildElements)
Modified: trunk/Source/WebCore/svg/SVGDocumentExtensions.h (170286 => 170287)
--- trunk/Source/WebCore/svg/SVGDocumentExtensions.h 2014-06-23 08:09:38 UTC (rev 170286)
+++ trunk/Source/WebCore/svg/SVGDocumentExtensions.h 2014-06-23 11:11:16 UTC (rev 170287)
@@ -53,10 +53,10 @@
void removeResource(const AtomicString& id);
RenderSVGResourceContainer* resourceById(const AtomicString& id) const;
- void startAnimations();
- void pauseAnimations();
- void unpauseAnimations();
- void dispatchSVGLoadEventToOutermostSVGElements();
+ void startAnimations() const;
+ void pauseAnimations() const;
+ void unpauseAnimations() const;
+ void dispatchSVGLoadEventToOutermostSVGElements() const;
void reportWarning(const String&);
void reportError(const String&);
@@ -70,7 +70,7 @@
void removeAllElementReferencesForTarget(SVGElement*);
void clearTargetDependencies(SVGElement&);
- void rebuildElements();
+ void rebuildElements() const;
#if ENABLE(SVG_FONTS)
const HashSet<SVGFontFaceElement*>& svgFontFaceElements() const { return m_svgFontFaceElements; }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes