Commit Graph

22 Commits

Author SHA1 Message Date
Morris Tseng
882fe053af Bug 1120750 - Part 1: Move GetSelectionBoundingRect to nsContentUtils. r=roc 2015-02-04 21:58:00 -05:00
Morris Tseng
d72fe78dd2 Bug 1130256 - Prevent unwanted scrolling event. r=roc 2015-02-05 21:13:00 +01:00
Jeremy Chen
6660d30c24 Bug 1120358 - Part 1: Handle scroll position change that is not triggered by APZ. r=roc 2015-01-15 00:42:00 -05:00
Ehsan Akhgari
b6e35bb4b4 Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Morris Tseng
306e6a2bf2 Bug 1117643 - Always send blur event to selection carets but cancel long tap detector when leaving document. r=roc 2015-01-05 01:15:00 +01:00
pchang
a222d544ee Bug 1098161 - Notify shortcut mode to system app when long tap on content with empty text. r=roc 2014-12-19 14:04:45 +08:00
Ting-Yu Lin
66bba9262b Bug 1090682 - Do not consume NS_MOUSE_MOZLONGTAP if SelectWord failed. f=mtseng, r=roc 2014-12-24 19:14:00 +01:00
pchang
05f7bdf24d Bug 1068474 - Limit the selection range based on the boundary of startcaret and endcaret. r=roc 2014-12-19 13:25:17 +08:00
Ting-Yu Lin
a4711adf3f Bug 1067728 - Part 5 - Dispatch updateposition after scroll end and reflow. r=roc, sr=smaug
Add a selection state "updateposition" and a field "visible" to indicate
that the current selection's boundingClientRect or visible is changed.
We dispatch this state after scrolling or reflowing is done.
2014-12-10 01:50:00 +01:00
Ting-Yu Lin
6192059c2b Bug 1067728 - Part 4 - Refactor two functions in SeletionCarets. r=roc
Make DispatchSelectionStateChangedEvent() and GetSelectionBoundingRect()
become member functions of SeletionCarets so that they are easier to use
in later patches.
2014-12-08 01:55:00 +01:00
peter chang
b81e773ad6 Bug 1090008 Dispatch SelectionStateChanged event for blur, r=roc r=smaug 2014-11-27 18:56:00 +01:00
Ting-Yu Lin
4e6fe284fc Bug 1097094 - Keep a WeakPtr to nsDocShell in SectionCarets. r=roc
When SelectionCarets::Terminate() is called, it's not guaranteed that we
can get nsDocShell from PresContext. It causes that SelectionCarets
cannot remove itself as an observer.

To fix this, we keep a member WeakPtr<nsDocShell> so that we can always
have nsDocShell in SelectionCarets::Terminate().
2014-11-13 08:32:00 -05:00
Morris Tseng
ca0f216c74 Bug 1096169 - Handle selection carets overlapping case. r=roc 2014-11-12 23:03:00 -05:00
Ting-Yu Lin
a6797853d9 Bug 1073457 - Launch long tap detector when APZ isn't enabled. f=mtseng, r=roc
LaunchLongTapDetector() is used to fire long tap to select word when
async pan zoom is not enabled. We should check if async pan zoom is
enabled rather than check whether it's on main process.

This can also fix selection carets not working on e10s.
2014-11-10 00:29:00 +01:00
Ting-Yu Lin
a2df3aacb9 Bug 1094072 - Update selection carets after reflow. r=roc
Let SelectionCarets inherits from nsIReflowObserver so it could refresh
its position after reflow. This fixes the incorrect position of
selection carets after we rotate the device to change the screen from
portrait mode to landscape mode and vice versa.
2014-11-05 21:18:00 +01:00
Morris Tseng
4adb27481c Bug 1088552 - Change downPoint and movePoint from canvasframe's coordinate to rootframe's coordinate. r=roc 2014-10-28 18:25:00 -04:00
Morris Tseng
5ce2796711 Bug 1062735 - Part 4: Support non-editable fields for selection carets. r=roc 2014-10-16 23:17:00 +02:00
peter chang
dc90ce6554 Bug 1020801 - Notify the ScrollViewChange DOM event when APZ starts/stops to change the transform. r=ehsan 2014-09-23 06:37:00 -04:00
Ting-Yu Lin
b98446503e Bug 1065244 - Part 2 - Refactor event point on frame logic for SelectionCarets. f=mtseng, r=roc 2014-09-15 02:57:00 +02:00
Morris Tseng
a59488b63d Bug 1023041 - Part 1: Rename SetMouseDownState to SetDragState. r=roc 2014-08-04 00:26:00 -04:00
Benoit Jacob
919b379ff0 Bug 1028588 - Fix dangerous public destructors in layout/ - r=dbaron 2014-06-23 18:40:01 -04:00
Morris Tseng
508f746be3 Bug 987718 - Part 5: Add SelectionCarets; r=roc 2014-06-04 22:57:00 +02:00