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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2760533004: CANCELLED Non-laid-out node should not be considered as user-select:contain (Closed)
Patch Set: Created 3 years, 9 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/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 736d889bf286020e88b7afa6ef2f399bf276d8fd..960d4cc91252743b4ba05d1586aa9abb17ed0af9 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -298,6 +298,8 @@ int comparePositions(const VisiblePosition& a, const VisiblePosition& b) {
// TODO(editing-dev): We should make |SelectionAdjuster| to use this funciton
// instead of |isSelectionBondary()|.
bool isUserSelectContain(const Node& node) {
+ if (!node.layoutObject())
+ return false;
yoichio 2017/03/21 06:48:43 We want |isUserSelectContain| independent from lay
yosin_UTC9 2017/03/21 08:48:51 Fumm... It seems we want to introduce isDisplayHid
Xiaocheng 2017/03/21 20:27:48 I'm confused. What should be the ultimate fix to
yosin_UTC9 2017/03/22 03:19:28 Change canonicalization not to return a position i
return isHTMLTextAreaElement(node) || isHTMLInputElement(node) ||
isHTMLSelectElement(node);
}

Powered by Google App Engine
This is Rietveld 408576698