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

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

Issue 2745813002: Revert of evaluating clipboard event target acording to w3c specification (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/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index b91f815bdb8f86a64e1c4eff09fdee1d8aa0b753..1e9f98c766d924d34c6a3084b3716a6c9677b110 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -736,9 +736,7 @@
}
Element* Editor::findEventTargetFrom(const VisibleSelection& selection) const {
- Element* target = selection.hasEditableStyle()
- ? associatedElementOf(selection.start())
- : frame().document()->activeElement();
+ Element* target = associatedElementOf(selection.start());
if (!target)
target = frame().document()->body();

Powered by Google App Engine
This is Rietveld 408576698