Masayuki Nakano
e9a1bcb370
Bug 1259658 Rename WidgetInputEvent::modifiers to WidgetInputEvent::mModifiers r=smaug
...
MozReview-Commit-ID: 7avEiqKfaHA
--HG--
extra : rebase_source : ffb6fbe424a4d5c2799444223608e03237e7c7a2
2016-03-31 17:03:00 +09:00
Masayuki Nakano
cea0b9cf02
Bug 1256589 part.6 Move the implementation of IsTrusted() from dom::Event to WidgetEvent r=smaug
...
MozReview-Commit-ID: 1SgMbTL8csl
--HG--
extra : rebase_source : 748fa8a594176edf7b2addd038b8031019d0dd35
extra : source : f4ce36e68ce06c405a6fab31facc120b94709aed
2016-03-17 16:01:30 +09:00
Masayuki Nakano
8c8cbe0e4c
Bug 1256589 part.5 Add DefaultPrevented() and DefaultPreventedByContent() to WidgetEvent r=smaug
...
MozReview-Commit-ID: 5q3QUPTf12Z
--HG--
extra : rebase_source : 83ed946b44910713a61c80bd21202aba9430dd2a
extra : source : 4eb2193814ab1958a65add0c8c307d07c646d61c
2016-03-22 16:47:52 +09:00
Masayuki Nakano
6181d95afb
Bug 1256589 part.4 Move the implementation of PreventDefault() and add PreventDefaultBeforeDispatch() from dom::Event to WidgetEvent r=smaug
...
mDefaultPreventedByChrome is hacky. When PresShell handles Escape key events in fullscreen mode, it prevents default of every Escape key events and dispatch it only into chrome. After that, it check mDefaultPreventedByChrome if at least one call of preventDefault() occurred in chrome. Therefore, if we shouldn't set both mDefaultPreventedByChrome and mDefaultPreventedByContent to true before dispatching an event. This the reason why we need a special method, PreventDefaultBeforeDispatch() is needed for setting only mDefaultPrevented to true.
MozReview-Commit-ID: BPSq68GnWw6
--HG--
extra : rebase_source : f2f963afeba6994cc090efedebc29c0d9334c96d
extra : source : 1012dc095cc1b7236991a7befdbfbf174dc1c1af
2016-03-22 16:26:27 +09:00
Jim Chen
ae409c5147
Bug 1254629 - Let query events fail when content root is wrong; r=masayuki
...
Make query events fail (including when caching selection) if the queried
content root is different from what we expected.
Also, introduce a fix-up to the selection fix in test_imestate.html.
2016-03-16 14:20:30 -04:00
Carsten "Tomcat" Book
c05ed2b925
Backed out changeset 0359d3b3dc55 (bug 1254629) for rc4 perma failures
2016-03-16 10:29:10 +01:00
Jim Chen
1f14c2a2c3
Bug 1254629 - Let query events fail when content root is wrong; r=masayuki
...
Make query events fail (including when caching selection) if the queried
content root is different from what we expected.
Also, introduce a fix-up to the selection fix in test_imestate.html.
2016-03-16 02:16:56 -04:00
Masayuki Nakano
05ae69e6a5
Bug 1242331 part.4 Add TextChangeDataBase::mIncludingChangesWithoutComposition r=smaug
2016-01-28 13:28:54 +09:00
Masayuki Nakano
1e9d12bfdb
Bug 1242331 part.3 Rename TextChangeDataBase::mOccurredDuringComposition to mIncludingChangesDuringComposition r=smaug
2016-01-28 13:28:53 +09:00
Masayuki Nakano
26c28dca6c
Bug 1242331 part.2 Rename TextChangeDataBase::mCausedByComposition to mCausedOnlyByComposition r=smaug
2016-01-28 13:28:53 +09:00
Masayuki Nakano
14e03f9711
Bug 1213589 part.6 ContentEventHandler should insert line breaks at open tag of elements except non-replaced inline elements r=smaug
2015-12-02 13:20:00 +09:00
Masayuki Nakano
ae9603b782
Bug 1213589 part.3 ContentEventHandler::GetFlatTextLengthInRange() should handle specially when it's called by nsIMutationObserver::ContentRemoved() r=smaug
2015-12-02 13:20:00 +09:00
Masayuki Nakano
18395c1495
Bug 1213589 part.2 Clean up GenerateFlatTextContent(), GelerateFlatFontRanges() and GetFlatTextOffsetOfRange() of ContentEventHandler r=smaug
2015-12-02 13:20:00 +09:00
Masayuki Nakano
1b1d719d0f
Bug 1213589 part.1 Make ContentEventHandler::GetTextLength() and GetNativeTextLength() called only with a text node r=smaug
2015-12-02 13:20:00 +09:00
sajitk
5fb2c53074
Bug 1219478: Replace PRLogModuleInfo usage with LazyLogModule in dom folders except media.r=amerchesini
2015-11-23 11:09:25 -08:00
Gijs Kruitbosch
568411b554
Bug 1224233 - fix crashy usage of IMENotificationSender::Run using on-screen keyboard on Windows, r=smaug
...
--HG--
extra : commitid : wqqtHM8aKJ
extra : amend_source : 64228b7ff19bb07139a6f407a2be42a514368cf2
2015-11-12 15:56:01 +00:00
Botond Ballo
a592a77364
Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
...
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
Masayuki Nakano
8973128bba
Bug 1218032 part.4 Notify IMEContentObserver of enough safe timing to notify IME of something r=smaug
2015-11-10 11:49:05 +09:00
Masayuki Nakano
0727f7951c
Bug 1218032 part.3 IMEContentObserver should notify IME of anything without script runner r=smaug
2015-11-10 11:49:05 +09:00
Masayuki Nakano
e16aa473be
Bug 1218032 part.2 Make sending focus notification to IME async-aware r=smaug
2015-11-10 11:49:04 +09:00
Masayuki Nakano
35aa5312ba
Bug 1184890 part.1 SelectionChangeDataBase and TextChangeDataBase should have a flag which indicates whether the change occurred during composition or not r=smaug
2015-10-27 07:21:37 +09:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Masayuki Nakano
27b1c48ce9
Bug 1211352 part.1 IMEContentObserver should be created when a plugin has focus r=smaug
2015-10-10 10:21:01 +09:00
Masayuki Nakano
ce885416ed
Bug 1204439 part.3 Create methods to get enum item name r=smaug
2015-09-17 12:05:44 +09:00
Masayuki Nakano
de86db826f
Bug 1203381 part.7 Rename IMEContentObserver::mIs*ChangeEventPending to IMEContentObserver::mNeedsToNotifyIMEOf*Change r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
c86595d5c2
Bug 1203381 part.6 IMEContentObserver shouldn't post position change event if Reflow() is called during handling a query content event and sending NOTIFY_IME_OF_POSITION_CHANGE since the result of query content event includes the latest layout information r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
79986a5341
Bug 1203381 part.5 IMENotificationSender shouldn't send notification recursively r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
123aac30cb
Bug 1203381 part.4 IMENotificationSender should keep the order of notifications even when a notification causes another change r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
dd3b53fdeb
Bug 1203381 part.3 IMEContentObserver::mIsFlushingPendingNotifications should be cleared when all pending notifications are sent to IME r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
f0f11443a3
Bug 1203381 part.2 Merge all IME notification sending events of IMEContentObserver to a runnable class r=smaug
2015-09-16 17:48:24 +09:00
Masayuki Nakano
215b9f4894
Bug 1203381 part.1 IMEContentObserver shouldn't clear mTextChangeData until immediately before sending a text change notification r=smaug
2015-09-16 17:48:23 +09:00
Masayuki Nakano
c985d88dab
Bug 1203364 IMEContentObserver should notify IME of selection change with the latest change reason r=smaug
2015-09-14 23:28:43 +09:00
Masayuki Nakano
1d6a202900
Bug 895274 part.187 Rename NS_QUERY_TEXT_RECT to eQueryTextRect r=smaug
2015-09-11 21:21:26 +09:00
Masayuki Nakano
09e1247ff7
Bug 895274 part.158 Rename NS_QUERY_DOM_WIDGET_HITTEST to eQueryDOMWidgetHittest r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
26489b9f11
Bug 895274 part.157 Rename NS_QUERY_CHARACTER_AT_POINT to eQueryCharacterAtPoint r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
b9be65c10e
Bug 895274 part.156 Rename NS_QUERY_CONTENT_STATE to eQueryContentState r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
bb413ca230
Bug 895274 part.155 Rename NS_QUERY_EDITOR_RECT to eQueryEditorRect r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
4a34ce078a
Bug 895274 part.154 Rename NS_QUERY_CARET_RECT to eQueryCaretRect r=smaug
2015-09-10 10:40:06 +09:00
Masayuki Nakano
e463292274
Bug 895274 part.153 Rename NS_QUERY_TEXT_CONTENT to eQueryTextContent r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
a8fd5ffc76
Bug 895274 part.152 Rename NS_QUERY_SELECTED_TEXT to eQuerySelectedText r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
07dbf0fd06
Bug 895274 part.151 Rename NS_QUERY_SELECTION_AS_TRANSFERABLE to eQuerySelectionAsTransferable r=smaug
2015-09-10 10:40:05 +09:00
Masayuki Nakano
1a4e1c06f7
Bug 1200980 part.3 IMEContentObserver should use its selection cache at handling NS_QUERY_SELECTED_TEXT r=smaug
2015-09-08 12:54:14 +09:00
Masayuki Nakano
b7165d94e4
Bug 1200980 part.2 QueryContentEvent should be handled via IMEContentObserver if there is an instance of it r=smaug
2015-09-08 12:54:14 +09:00
Masayuki Nakano
b97fbbb4aa
Bug 1200980 part.1 Log the behavior of IMEContentObserver for debugging r=smaug
2015-09-08 12:54:14 +09:00
Masayuki Nakano
db00b74a82
Bug 895274 part.27 Rename NS_MOUSE_BUTTON_DOWN to eMouseDown r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
30fdd39afb
Bug 895274 part.26 Rename NS_MOUSE_BUTTON_UP to eMouseUp r=smaug
2015-08-29 08:58:30 +09:00
Masayuki Nakano
66f2c27305
Bug 895274 part.1 Rename WidgetEvent::message to WidgetEvent::mMessage r=smaug
2015-08-22 10:34:51 +09:00
Masayuki Nakano
121929fce3
Bug 1189396 part.6 IMEContentObserver shouldn't notify IME of selection change when the range isn't actually changed r=smaug
2015-08-22 01:43:42 +09:00
Masayuki Nakano
0ac9d740da
Bug 1189396 part.5 IMEContentObserver should cache selection at gets focus and every selection change r=smaug
2015-08-22 01:43:42 +09:00
Masayuki Nakano
d2cd0b82ed
Bug 1189396 part.4 IMEContentObserver should cache the selection data at notifying IME of selection change r=smaug
2015-08-22 01:43:41 +09:00