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

Unified Diff: third_party/WebKit/Source/core/editing/EditingStyle.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/editing/EditingStyle.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
index 184dd8401ec2acd85ae9b19c665a41137f2aaebb..163cbfb17e46d3197edc3447aae00c755f919209 100644
--- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
@@ -747,7 +747,7 @@ TriState EditingStyle::triStateOfStyle(const VisibleSelection& selection) const
TriState state = FalseTriState;
bool nodeIsStart = true;
for (Node& node : NodeTraversal::startsAt(*selection.start().anchorNode())) {
- if (node.layoutObject() && node.hasEditableStyle()) {
+ if (node.layoutObject() && hasEditableStyle(node)) {
CSSComputedStyleDeclaration* nodeStyle = CSSComputedStyleDeclaration::create(&node);
if (nodeStyle) {
// If the selected element has <sub> or <sup> ancestor element, apply the corresponding

Powered by Google App Engine
This is Rietveld 408576698