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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.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/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index c65115f04480fb2aae2393bbd052934002cd2aa6..1dc0d5833fc0365fbe8671813df854445ec73223 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -1028,7 +1028,7 @@ bool HTMLElement::matchesReadWritePseudoClass() const
// All other values should be treated as "inherit".
}
- return parentElement() && parentElement()->hasEditableStyle();
+ return parentElement() && hasEditableStyle(*parentElement());
}
void HTMLElement::handleKeypressEvent(KeyboardEvent* event)

Powered by Google App Engine
This is Rietveld 408576698