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
Robert O'Callahan
efd3df82d6
Bug 1184842. Add aNewValue to nsIMutationObserver::AttributeWillChange. r=peterv
...
--HG--
extra : commitid : 8C2GnpowyCS
extra : rebase_source : 3f2948df48fe13f65425345f7b674e4e4869c861
2015-07-25 18:05:19 +12:00
Robert O'Callahan
1e49288224
Bug 1184842. Pass aOldValue to all mutation observers. r=peterv
...
--HG--
extra : commitid : CYjyQn3BAqb
extra : rebase_source : ef153c7cf1e08a058d8de6a76dbe7dc343a299fb
2015-07-25 18:01:19 +12:00
Masayuki Nakano
9d9bd4c975
Bug 1184449 part.1 IMENotifiation::SelectionChangeData should store selected string r=smaug
2015-07-22 12:40:32 +09:00
Masayuki Nakano
4d9802aec0
Bug 1176955 part.2 NOTIFY_IME_OF_SELECTION should have a flag which indicates if it's caused by a selection event r=smaug
2015-07-17 11:25:00 +09:00
Masayuki Nakano
09355c0e38
Bug 1176954 part.7 IMENotification::TextChangeData should have a method to merge with another instance and IMENotification::MergeWith() should use it r=smaug
2015-07-11 10:53:56 +09:00
Masayuki Nakano
373659f7f5
Bug 1176954 part.6 IMEContentObserver should use IMENotification::TextChangeData r=smaug
2015-07-11 10:53:56 +09:00
Masayuki Nakano
c1fdc81cac
Bug 1176954 part.4 Define IMENotification::TextChangeDataBase and whose member names should be same as IMEContentObserver::TextChangeData's r=smaug
2015-07-11 10:53:55 +09:00
Masayuki Nakano
3dd4837286
Bug 1175392 part.1 IMEContentObserver and TabParent should use IMEStateManager::NotifyIME() r=smaug
2015-06-27 09:23:31 +09:00
Masayuki Nakano
94bb7f1516
Bug 1172466 part.4 Don't notify IME during reflow r=smaug
2015-06-17 10:03:57 +09:00
Masayuki Nakano
81de1dd26c
Bug 1172466 part.3 Create an abstruct class which is a base class of classes notifying IME r=smaug
2015-06-17 10:03:57 +09:00
Masayuki Nakano
031f99fbda
Bug 1172466 part.2 Use runnable event for notifying IME of focus r=smaug
2015-06-17 10:03:57 +09:00
Masayuki Nakano
851cb14bbc
Bug 1172466 part.1 Make helper classes to notify IME nested classes of IMEContentObserver r=smaug
2015-06-17 10:03:57 +09:00
Masayuki Nakano
dcfea181de
Bug 1166436 part.10 Optimize IME notification handling in PuppetWidget r=m_kato
2015-06-05 18:28:20 +09:00
Masayuki Nakano
29e56f5a88
Bug 1162818 part.6 Don't notify IME of anything during reframing the editor r=smaug
2015-06-05 02:06:10 +09:00
Masayuki Nakano
60aec72097
Bug 1167022 part.5 IMEContentObserver::Init() should stop keeping to initialize in the first call because Init() may be called again during notifying IME of focus due to flushing layout r=smaug
2015-05-26 16:45:26 +09:00
Masayuki Nakano
91298b51a5
Bug 1167022 part.4 Get rid of MozIMEFocus(In|Out) events r=smaug
2015-05-26 16:45:26 +09:00
Masayuki Nakano
f9ae17caea
Bug 1167022 part.2 IMEStateManager::UpdateIMEState() should try to restart to observe focused editor when it's reframed r=smaug+nchen
2015-05-26 16:45:26 +09:00
Masayuki Nakano
2af6616c71
Bug 1167022 part.1 Make IMEContentObserver possible to restart to observe editor root node r=smaug
2015-05-26 16:45:26 +09:00
Phil Ringnalda
53b4601f96
Back out 4 changesets (bug 1167022) for reftest-e10s bustage
...
CLOSED TREE
Backed out changeset de4013b979a7 (bug 1167022)
Backed out changeset b97f76c4be1c (bug 1167022)
Backed out changeset cbc7f8b88a46 (bug 1167022)
Backed out changeset 00b1c04181d3 (bug 1167022)
2015-05-23 21:40:21 -07:00
Masayuki Nakano
bdb3dae876
Bug 1167022 part.4 Get rid of MozIMEFocus(In|Out) events r=smaug
2015-05-24 10:11:37 +09:00
Masayuki Nakano
bbfdde48f6
Bug 1167022 part.2 IMEStateManager::UpdateIMEState() should try to restart to observe focused editor when it's reframed r=smaug+nchen
2015-05-24 10:11:37 +09:00
Masayuki Nakano
3a846afa05
Bug 1167022 part.1 Make IMEContentObserver possible to restart to observe editor root node r=smaug
2015-05-24 10:11:37 +09:00
Masayuki Nakano
ee32a82c8d
Bug 1130935 part.6 Selection change notification should have selection range and writing mode information r=smaug
2015-05-15 10:18:08 +09:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Andrea Marchesini
2c4f63331f
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Masayuki Nakano
ebf5dbf408
Bug 1133629 IMEContentObserver should grab itself before using ContentEventHandler because it causes flushing pending layout r=smaug
2015-02-17 22:20:08 +09:00
David Zbarsky
77ae10e9d5
Bug 1125040 - Use LayoutDeviceIntPoint in IME code r=botond
2015-02-04 15:21:03 -05:00
David Zbarsky
c73ec42d2d
Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond
2015-02-04 15:21:03 -05:00
Masayuki Nakano
020fd43d35
Bug 1047588 - IMEContentObserver::Init() should take nsIEditor because nsDocShell sometimes hasn't been initialized and nsContentEditor::GetHTMLEditor() fails. r=smaug
2014-11-05 08:12:44 -05:00
Wes Kocher
e005079968
Backed out changeset f86dbba73d43 (bug 1047588) under suspicion of adding a hazard on a CLOSED TREE
2014-11-04 20:25:47 -08:00
Masayuki Nakano
a75c24771c
Bug 1047588 IMEContentObserver::Init() should take nsIEditor because nsDocShell sometimes hasn't been initialized and nsContentEditor::GetHTMLEditor() fails r=smaug
2014-11-05 10:36:37 +09:00
Ehsan Akhgari
1b1d6ffebf
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Masayuki Nakano
93cf48640e
Bug 826657 part.2 Implement NOTIFY_IME_OF_MOUSE_BUTTON_EVENT in XP part r=smaug+ehsan
2014-08-29 19:08:43 +09:00
Olli Pettay
8dfe1d7cf5
Bug 1059705 - revert the change which made nsIEditor builtinclass, r=masayuki
2014-08-28 17:33:35 +03:00
Masayuki Nakano
877aa4d8fb
Bug 1053048 Implement nsIEditor.isInEditAction readonly attribute r=ehsan, sr=smaug
2014-08-19 20:54:08 +09:00
Masayuki Nakano
9653e78b3c
Bug 1052230 IMEContentObserver shouldn't flush pending notifications again during flushing notifications r=smaug
2014-08-13 20:25:14 +09:00
Olli Pettay
87b818700b
Bug 1026164, improve focus handling in shadow dom, r=wchen
...
--HG--
extra : rebase_source : 026b9ee49cdce82a703700593d7a1f0e5d27969f
2014-08-06 02:23:02 +03:00
Masayuki Nakano
444fbd2caa
Bug 1043182 Removed and inserted text length which are notified by CharacterDataWillChange() and CharacterDataChanged() should be converted to the length with native new lines in IMEContentObserver r=smaug
2014-07-31 13:38:01 +09:00
Masayuki Nakano
8d79d5e992
Bug 496360 part.5 Don't recompute text length of before the start range at removing multiple lines into an HTML editor r=smaug
2014-07-31 13:38:00 +09:00
Masayuki Nakano
6ff8050b75
Bug 496360 part.4 Don't recompute text length of before the insertion point at adding multiple lines into an HTML editor r=smaug
2014-07-31 13:38:00 +09:00
Masayuki Nakano
05b13e9288
Bug 496360 part.3 IMEContentObserver shouldn't dispatch SelectionChangeEvent nor PositionChangeEvent while editor handles an edit action r=smaug
2014-07-31 13:38:00 +09:00
Masayuki Nakano
5805e688a3
Bug 496360 part.2 IMEContentObserver shouldn't dispatch TextChangeEvent while editor handles an edit action r=ehsan+smaug, sr=smaug
2014-07-31 13:37:59 +09:00
Masayuki Nakano
d67dabd004
Bug 496360 part.1 Make TextChangeEvent of IMEContentObserver mergeable r=smaug
2014-07-31 13:37:59 +09:00
Birunthan Mohanathas
7ac92ae5ea
Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug
2014-04-25 12:49:00 -04:00
Masayuki Nakano
faf695194a
Bug 998188 part.2 ContentEventHandler should support 2 modes, native line break mode and XP line break mode r=smaug
2014-04-26 08:52:12 +09:00
Masayuki Nakano
926a2d6c10
Bug 810179 part.2 EventStateManager should include IMEContentObserver into cycle collector r=smaug
2014-04-24 09:36:15 +09:00
Masayuki Nakano
e4390b7a80
Bug 810179 part.1 Make IMEContentObserver cycle collectable r=smaug
2014-04-24 09:36:14 +09:00
Masayuki Nakano
a648e11112
Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug
2014-04-03 13:18:37 +09:00
Masayuki Nakano
03e2114412
Bug 982602 Rename ns(LoadBlocking)AsyncDOMEvent to mozilla::(LoadBlocking)AsyncEventDispatcher r=smaug
...
--HG--
rename : dom/events/nsAsyncDOMEvent.cpp => dom/events/AsyncEventDispatcher.cpp
rename : dom/events/nsAsyncDOMEvent.h => dom/events/AsyncEventDispatcher.h
2014-03-17 15:56:54 +09:00
Masayuki Nakano
7419257b87
Bug 981226 Rename nsContentEventHandler to mozilla::ContentEventHandler (and clean up it) r=smaug
...
--HG--
rename : dom/events/nsContentEventHandler.cpp => dom/events/ContentEventHandler.cpp
rename : dom/events/nsContentEventHandler.h => dom/events/ContentEventHandler.h
2014-03-11 14:08:02 +09:00
Masayuki Nakano
b51ee921de
Bug 978023 part.3 Rename nsIMEStateManager to mozilla::IMEStateManager r=smaug
...
--HG--
rename : dom/events/nsIMEStateManager.cpp => dom/events/IMEStateManager.cpp
rename : dom/events/nsIMEStateManager.h => dom/events/IMEStateManager.h
2014-03-08 10:20:07 +09:00
Masayuki Nakano
a5d0088480
Bug 978023 part.2 Clean up IMEContentObserver r=smaug
2014-03-08 10:20:07 +09:00
Masayuki Nakano
b9b7f2d7d4
Bug 978023 part.1 nsTextStateManager should be mozilla::IMEContentObserver and separated from nsIMEStateManager.cpp r=smaug
...
--HG--
rename : dom/events/nsIMEStateManager.cpp => dom/events/IMEContentObserver.cpp
rename : dom/events/nsIMEStateManager.cpp => dom/events/IMEContentObserver.h
2014-03-08 10:20:07 +09:00