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

Unified Diff: Source/core/svg/SVGAElement.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/scripts/make_names.pl ('k') | Source/core/svg/SVGAltGlyphElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index c1d88fb264ee93e189b28a0880effa73d7bc24e1..3019dfd9f745221da46ce18c997de7484375b598 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -179,10 +179,10 @@ void SVGAElement::defaultEventHandler(Event* event)
target = "_blank";
event->setDefaultHandled();
- Frame* frame = document()->frame();
+ Frame* frame = document().frame();
if (!frame)
return;
- FrameLoadRequest frameRequest(document()->securityOrigin(), ResourceRequest(document()->completeURL(url)), target);
+ FrameLoadRequest frameRequest(document().securityOrigin(), ResourceRequest(document().completeURL(url)), target);
frameRequest.setTriggeringEvent(event);
frame->loader()->load(frameRequest);
return;
@@ -222,7 +222,7 @@ bool SVGAElement::isKeyboardFocusable() const
if (!isFocusable())
return false;
- if (Page* page = document()->page())
+ if (Page* page = document().page())
return page->chrome().client().tabsToLinks();
return false;
}
« no previous file with comments | « Source/core/scripts/make_names.pl ('k') | Source/core/svg/SVGAltGlyphElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698