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

Unified Diff: sky/engine/core/editing/ReplaceSelectionCommand.cpp

Issue 671173006: Remove lots of machinery related to inline event handlers. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/events/EventListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/editing/ReplaceSelectionCommand.cpp
diff --git a/sky/engine/core/editing/ReplaceSelectionCommand.cpp b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
index f3c2ddeede66c630ad0233a2963485482e1c0d1b..77ba9ad1bfcd5feffaa0c7b23fa6974f98b4b09d 100644
--- a/sky/engine/core/editing/ReplaceSelectionCommand.cpp
+++ b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
@@ -137,8 +137,7 @@ ReplacementFragment::ReplacementFragment(Document* document, DocumentFragment* f
else
shadowAncestorElement = editableRoot.get();
- if (!editableRoot->getAttributeEventListener(EventTypeNames::webkitBeforeTextInserted)
- && editableRoot->rendererIsRichlyEditable()) {
+ if (editableRoot->rendererIsRichlyEditable()) {
removeInterchangeNodes(m_fragment.get());
return;
}
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/events/EventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698