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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextFragment.h

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/layout/LayoutTextFragment.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
index 11f011e34d7c636d181109303bfe92497b5a2547..636c1582613197aed917453da1917406d9753083 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextFragment.h
@@ -42,7 +42,7 @@ public:
bool isTextFragment() const override { return true; }
- bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
+ bool canBeSelectionLeaf() const override { return node() && hasEditableStyle(*node()); }
unsigned start() const { return m_start; }
unsigned fragmentLength() const { return m_fragmentLength; }

Powered by Google App Engine
This is Rietveld 408576698