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

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

Issue 2171493003: [Editing][DOM][CodeHealth] Make Node::hasEditableStyle global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: third_party/WebKit/Source/core/svg/SVGAElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAElement.cpp b/third_party/WebKit/Source/core/svg/SVGAElement.cpp
index 811292e81adefe76ae79686f2ee2887249d644fb..a3ad28ceb694a0febbc8ad1b04091a956223677f 100644
--- a/third_party/WebKit/Source/core/svg/SVGAElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAElement.cpp
@@ -155,7 +155,7 @@ short SVGAElement::tabIndex() const
bool SVGAElement::supportsFocus() const
{
- if (hasEditableStyle())
+ if (hasEditableStyle(*this))
return SVGGraphicsElement::supportsFocus();
// If not a link we should still be able to focus the element if it has tabIndex.
return isLink() || SVGGraphicsElement::supportsFocus();
@@ -207,7 +207,7 @@ bool SVGAElement::canStartSelection() const
{
if (!isLink())
return SVGElement::canStartSelection();
- return hasEditableStyle();
+ return hasEditableStyle(*this);
}
bool SVGAElement::willRespondToMouseClickEvents()

Powered by Google App Engine
This is Rietveld 408576698