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

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

Issue 22955006: Chrome::client() should return a ChromeClient reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/testing/Internals.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 23b39ced0d67dbc77428bdd6e7cf5fedcd62c5e5..eb0cc34939a9ef9b76ef90d0e31e2c68e6468793 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -222,11 +222,9 @@ bool SVGAElement::isKeyboardFocusable(KeyboardEvent*) const
if (!isFocusable())
return false;
- Page* page = document()->page();
- if (!page)
- return false;
-
- return page->chrome().client()->tabsToLinks();
+ if (Page* page = document()->page())
+ return page->chrome().client().tabsToLinks();
+ return false;
}
bool SVGAElement::childShouldCreateRenderer(const NodeRenderingContext& childContext) const
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698