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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAnchorElement.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/html/HTMLAnchorElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
index a20266fcdd1ef15fa79106752a7fa66fdd4fd095..708448df184b7dd00db2f9c3c4274866c73f207a 100644
--- a/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp
@@ -144,7 +144,7 @@ DEFINE_TRACE(HTMLAnchorElement)
bool HTMLAnchorElement::supportsFocus() const
{
- if (hasEditableStyle())
+ if (hasEditableStyle(*this))
return HTMLElement::supportsFocus();
// If not a link we should still be able to focus the element if it has tabIndex.
return isLink() || HTMLElement::supportsFocus();
@@ -260,7 +260,7 @@ void HTMLAnchorElement::defaultEventHandler(Event* event)
void HTMLAnchorElement::setActive(bool down)
{
- if (hasEditableStyle())
+ if (hasEditableStyle(*this))
return;
ContainerNode::setActive(down);
@@ -318,7 +318,7 @@ bool HTMLAnchorElement::canStartSelection() const
{
if (!isLink())
return HTMLElement::canStartSelection();
- return hasEditableStyle();
+ return hasEditableStyle(*this);
}
bool HTMLAnchorElement::draggable() const
@@ -391,7 +391,7 @@ short HTMLAnchorElement::tabIndex() const
bool HTMLAnchorElement::isLiveLink() const
{
- return isLink() && !hasEditableStyle();
+ return isLink() && !hasEditableStyle(*this);
}
void HTMLAnchorElement::sendPings(const KURL& destinationURL) const

Powered by Google App Engine
This is Rietveld 408576698