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

Unified Diff: Source/core/svg/SVGFontFaceElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGFontFaceUriElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFontFaceElement.cpp
diff --git a/Source/core/svg/SVGFontFaceElement.cpp b/Source/core/svg/SVGFontFaceElement.cpp
index 9c77958d73a21c58c53ece74e52952cca11e00b0..c3e4c587b9a1b40c8941afd087f37dcc9082b17d 100644
--- a/Source/core/svg/SVGFontFaceElement.cpp
+++ b/Source/core/svg/SVGFontFaceElement.cpp
@@ -316,7 +316,7 @@ void SVGFontFaceElement::rebuildFontFace()
}
}
- document()->styleResolverChanged(RecalcStyleDeferred);
+ document().styleResolverChanged(RecalcStyleDeferred);
}
Node::InsertionNotificationRequest SVGFontFaceElement::insertedInto(ContainerNode* rootParent)
@@ -326,7 +326,7 @@ Node::InsertionNotificationRequest SVGFontFaceElement::insertedInto(ContainerNod
ASSERT(!m_fontElement);
return InsertionDone;
}
- document()->accessSVGExtensions()->registerSVGFontFaceElement(this);
+ document().accessSVGExtensions()->registerSVGFontFaceElement(this);
rebuildFontFace();
return InsertionDone;
@@ -338,10 +338,10 @@ void SVGFontFaceElement::removedFrom(ContainerNode* rootParent)
if (rootParent->inDocument()) {
m_fontElement = 0;
- document()->accessSVGExtensions()->unregisterSVGFontFaceElement(this);
+ document().accessSVGExtensions()->unregisterSVGFontFaceElement(this);
m_fontFaceRule->mutableProperties()->clear();
- document()->styleResolverChanged(RecalcStyleDeferred);
+ document().styleResolverChanged(RecalcStyleDeferred);
} else
ASSERT(!m_fontElement);
}
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.h ('k') | Source/core/svg/SVGFontFaceUriElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698