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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.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/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 1e59d1a2f147c397d241e6fca16c0b26de944ed6..333702e8d60512850dad98d1352bf352768a1342 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -548,7 +548,7 @@ bool EventHandler::useHandCursor(Node* node, bool isOverLink)
if (!node)
return false;
- return ((isOverLink || isSubmitImage(node)) && !node->hasEditableStyle());
+ return ((isOverLink || isSubmitImage(node)) && !hasEditableStyle(*node));
}
void EventHandler::cursorUpdateTimerFired(Timer<EventHandler>*)
@@ -735,7 +735,7 @@ OptionalCursor EventHandler::selectCursor(const HitTestResult& result)
OptionalCursor EventHandler::selectAutoCursor(const HitTestResult& result, Node* node, const Cursor& iBeam)
{
- bool editable = (node && node->hasEditableStyle());
+ bool editable = (node && hasEditableStyle(*node));
const bool isOverLink = !selectionController().mouseDownMayStartSelect() && result.isOverLink();
if (useHandCursor(node, isOverLink))

Powered by Google App Engine
This is Rietveld 408576698