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

Unified Diff: third_party/WebKit/Source/core/events/TextEvent.cpp

Issue 2030243004: Set Event.composed flag correctly for some of UA UIEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 6 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/events/TextEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/TextEvent.cpp b/third_party/WebKit/Source/core/events/TextEvent.cpp
index 65ff7dc5edab2aca8220eff51f248351f6a14db4..3fca37dbaee1fda1db6b812f1bdffc8bc5071649 100644
--- a/third_party/WebKit/Source/core/events/TextEvent.cpp
+++ b/third_party/WebKit/Source/core/events/TextEvent.cpp
@@ -63,7 +63,7 @@ TextEvent::TextEvent()
}
TextEvent::TextEvent(AbstractView* view, const String& data, TextEventInputType inputType)
- : UIEvent(EventTypeNames::textInput, true, true, view, 0)
+ : UIEvent(EventTypeNames::textInput, true, true, ComposedMode::Composed, view, 0)
, m_inputType(inputType)
, m_data(data)
, m_pastingFragment(nullptr)
@@ -74,7 +74,7 @@ TextEvent::TextEvent(AbstractView* view, const String& data, TextEventInputType
TextEvent::TextEvent(AbstractView* view, const String& data, DocumentFragment* pastingFragment,
bool shouldSmartReplace, bool shouldMatchStyle)
- : UIEvent(EventTypeNames::textInput, true, true, view, 0)
+ : UIEvent(EventTypeNames::textInput, true, true, ComposedMode::Composed, view, 0)
, m_inputType(TextEventInputPaste)
, m_data(data)
, m_pastingFragment(pastingFragment)
« no previous file with comments | « third_party/WebKit/Source/core/events/FocusEvent.cpp ('k') | third_party/WebKit/Source/core/events/UIEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698