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

Unified Diff: Source/core/svg/SVGLocatable.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/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMPathElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLocatable.cpp
diff --git a/Source/core/svg/SVGLocatable.cpp b/Source/core/svg/SVGLocatable.cpp
index e8ce64ad54ef9b313796cfa33d46b69491df3bc5..c3354c9e8793a45f975a11f3a169b5e819c16281 100644
--- a/Source/core/svg/SVGLocatable.cpp
+++ b/Source/core/svg/SVGLocatable.cpp
@@ -65,7 +65,7 @@ SVGRect SVGLocatable::getBBox(SVGElement* element, StyleUpdateStrategy styleUpda
{
ASSERT(element);
if (styleUpdateStrategy == AllowStyleUpdate)
- element->document()->updateLayoutIgnorePendingStylesheets();
+ element->document().updateLayoutIgnorePendingStylesheets();
// FIXME: Eventually we should support getBBox for detached elements.
if (!element->renderer())
@@ -78,7 +78,7 @@ AffineTransform SVGLocatable::computeCTM(SVGElement* element, CTMScope mode, Sty
{
ASSERT(element);
if (styleUpdateStrategy == AllowStyleUpdate)
- element->document()->updateLayoutIgnorePendingStylesheets();
+ element->document().updateLayoutIgnorePendingStylesheets();
AffineTransform ctm;
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698