Commit Graph

36 Commits

Author SHA1 Message Date
Masayuki Nakano
b9d0a00346 Bug 1180240 ContentEventHandler::OnQuerySelectedText() should refer mFirstSelectedRange if mSelection doesn't have selection ranges actually r=smaug 2015-07-07 11:06:37 +09:00
Masayuki Nakano
40c6db8650 Bug 1179090 ContentEventHandler should assume that there is selection at beginning of the document when there is no selection range r=smaug 2015-07-03 13:20:28 +09:00
Masayuki Nakano
2811d8d383 Bug 1179086 ContentEventHandler should use /n on Mac rather than /r r=smaug+smichaud+josh 2015-07-02 10:00:44 +09:00
Masayuki Nakano
a9c962013f Bug 1179093 Make ContentEventHandler::mSelection as nsRefPtr<Selection> r=smaug 2015-07-02 00:41:17 +09:00
Masayuki Nakano
c85cf77317 Bug 1179082 ContentEventHandler::OnQueryCaretRect() should guess its result when the query offset is same as the offset of collappsed selection but there is no caret frame r=smaug 2015-07-02 00:41:17 +09:00
Masayuki Nakano
3f44024e84 Bug 1179081 ContentEventHandler should use the primary frame of mRootContent when it retrieves focused widget but there is no caret frame r=smaug 2015-07-02 00:41:17 +09:00
Masayuki Nakano
47a591b80d Bug 1171858 ContentEventHandler::OnQueryCaretRect() should honor font height and writing mode when it guesses caret rect r=smaug 2015-06-06 09:57:42 +09:00
Masayuki Nakano
4718b4063d Bug 1169917 ContentEventHandler::OnQueryCaretRect() should try to find text frame as far as possible and GetStartFrameAndOffset() shouldn't assert even if there is no textframe r=smaug 2015-06-04 10:09:56 +09:00
Masayuki Nakano
a257f3f196 Bug 1130935 part.4 nsIMM32Handler::GetCharacterRectOfSelectedTextAt() should return wrting mode if it's necessary r=emk+smaug 2015-05-15 10:18:07 +09:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Masayuki Nakano
3858102d6c Bug 492394 part.1 NS_QUERY_CHARACTER_AT_POINT should also return tentative caret offset for the point r=smaug, sr=smaug 2015-04-14 14:27:37 +09:00
Timothy Nikkel
b37309aaa7 Bug 1144951. Rename ConvertAppUnits to ScaleToOtherAppUnits. r=mats 2015-03-26 16:44:40 -05:00
Andrea Marchesini
5f2f9c678a Bug 1134280 - Get rid of Tag() - patch 2.10 - dom/events, dom/mathml, dom/plugins, dom/smil - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:09:00 +00:00
Andrea Marchesini
6b10d5e43e 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
Jonathan Kew
f07496d1d4 Bug 1076657 pt 2 - Add writing-mode to the reply to NS_QUERY_TEXT_RECT event. r=masayuki 2015-02-10 15:28:05 +00:00
Jonathan Kew
3a1fdd30d9 Bug 1076657 pt 1 - Fix ContentEventHandler::OnQueryTextRect for vertical textframes. r=smontagu 2015-02-10 15:28:05 +00:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
David Zbarsky
89dd649dad Bug 1125040 - Use LayoutDeviceIntPoint in IME code r=botond 2015-02-04 15:21:03 -05:00
David Zbarsky
520ac2cad8 Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Xidorn Quan
1e72d890cf Bug 569334 part 1 - Support getting font info in content query. r=masayuki,jfkthame,smaug 2015-01-31 18:17:12 +11:00
Jonathan Kew
d8adab980f Bug 1077515 - part 4 - Add writing-mode to the reply to the NS_QUERY_SELECTED_TEXT event. r=roc 2014-11-22 14:39:03 +00:00
Masayuki Nakano
01c69c1ef9 Bug 1061810 ContentEventHandler::SetRangeFromFlatTextOffset() should use nsRange::SetStart(nsINode*, int32_t) instead of nsRange::SetStart(nsIDOMNode*, int32_t) for avoiding the unnecessary QI r=smaug 2014-09-05 14:27:12 +09:00
Carsten "Tomcat" Book
62c460dc20 Backed out changeset 53a069425e00 (bug 1061810) for XPCShell Test failures/crashes 2014-09-04 13:54:14 +02:00
Masayuki Nakano
cef64056ab Bug 1061810 ContentEventHandler::SetRangeFromFlatTextOffset() should use nsRange::SetStart(nsINode*, int32_t) instead of nsRange::SetStart(nsIDOMNode*, int32_t) because the security check sometims fails and we can void the unnecessary QI r=smaug 2014-09-04 18:49:24 +09:00
Robert O'Callahan
6fb18233c7 Bug 1048752. Part 16: Move nsFrameSelection::HINT to CaretAssociationHint.h. r=tn
This patch started an attempt to remove nsFrameSelection.h from nsCaret.h
and metastasized into a rather large refactoring patch that removed it
from some other header files as well, and changed nsFrameSelection::HINT
into a global-scope enum with better names. I also converted bools
into CaretAssociationHint in a few places where that was appropriate,
but there are still some more places (GetChildFrameContainingOffset)
where bools need to be converted. I figured this patch was big enough already.
2014-08-06 17:19:27 +12:00
Robert O'Callahan
5bf77116d0 Bug 1048752. Part 14: Split GetGeometry into a static and a non-static version. r=tn
GetGeometry is used in two different ways. Sometimes it's used to get
information about a particular caret. Sometimes it's used to get
information about a particular selection that's not associated with
a caret. Splitting GetGeometry into a non-static version for the former
and a static version for the latter makes this more clear. Also it saves
code since for the latter version we don't have to get an nsCaret first.
2014-08-06 17:19:26 +12:00
Masayuki Nakano
167dacb24d 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
Steven Michaud
b49d48a55d Bug 995603 - Ensure mouse-enter/exit events are sent to plugins as appropriate. r=mstange,masayuki 2014-04-30 11:55:40 -05:00
Masayuki Nakano
bab8c673e7 Bug 998188 part.3 Sort out offset/length variable names in ContentEventHandler r=smaug 2014-04-26 08:52:13 +09:00
Masayuki Nakano
eddf075bde 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
ed8e2930ba Bug 998188 part.1 Add test for this crash on debug build r=ehsan 2014-04-26 08:52:12 +09:00
Jim Chen
e2fe0eefe1 Bug 932370 - Fix signed/unsigned comparison warning; r=bustage on a CLOSED TREE 2014-03-11 12:24:03 -04:00
Jim Chen
61de294f93 Bug 932370 - Properly measure offsets for deleted BR nodes; r=masayuki 2014-03-11 12:04:33 -04:00
Masayuki Nakano
5048effb65 Bug 981226 Rename nsContentEventHandler to mozilla::ContentEventHandler (and clean up it) r=smaug 2014-03-11 14:08:02 +09:00