Commit Graph

8947 Commits

Author SHA1 Message Date
Masayuki Nakano
3f13a7ce8e Bug 895274 part.244 Rename NS_TOUCH_CANCEL to eTouchCancel r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
13ad066f9b Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
6b21fea7d5 Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
6038863222 Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug 2015-09-15 00:14:34 +09:00
Milan Sreckovic
88a57634ca Bug 1202703 - Part 1 - CreateRenderingContext can fail. r=mattwoodrow 2015-09-10 12:31:00 +02:00
Cameron McCormack
42466a72fa Bug 1202512 - Part 1: Add Element flags to record whether an eRestyle_SomeDescendants restyle is pending for it. r=bzbarsky 2015-09-12 19:08:10 +10:00
Kartikaya Gupta
5c5b66455e Bug 1201529 - Ensure that zoomable scrollframes return true from WantAsyncScroll(). r=botond 2015-09-11 21:58:16 -04:00
Wes Kocher
b884af0933 Backed out changeset 5b9886673514 (bug 1201541) for android reftest orange CLOSED TREE 2015-09-11 11:21:22 -07:00
James Willcox
708c676fde Bug 1201541 - Use SingleTiledContentClient for non-scrollable layers on Android r=mattwoodrow 2015-09-11 09:09:44 -05:00
Xidorn Quan
1a048ac363 Bug 1202908 part 1 - Remove pref layout.css.will-change.enabled. r=dbaron 2015-09-11 16:00:10 +10:00
Masayuki Nakano
c830d579e9 Bug 895274 part.186 Rename NS_WHEEL_END to eWheelOperationEnd r=smaug 2015-09-11 01:59:55 +09:00
Masayuki Nakano
93b569c87b Bug 895274 part.185 Rename NS_WHEEL_START to eWheelOperationStart r=smaug 2015-09-11 01:59:55 +09:00
Masayuki Nakano
caa405891e Bug 895274 part.184 Rename NS_WHEEL_WHEEL to eWheel r=smaug 2015-09-11 01:59:54 +09:00
Ting-Yu Lin
c2614d2dd3 Bug 1200194 - Remove unneeded AccessibleCaretManager::OnScrolling(). r=roc
This functions is for hiding caret in cursor mode on desktop browser
when receiving NS_WHEEL_WHEEL, which is never used on B2G in production.

On desktop browser, a proper wheel scroll cycle begins by NS_WHEEL_START
and ends by NS_WHEEL_STOP, which was covered by gtest. Move the three
marionette test for TouchCaret only.
2015-09-09 16:47:21 +08:00
Ting-Yu Lin
356b7f63f0 Bug 1200194 - Add UpdateCaretsHint to guide appearance changing. r=roc
This is the patch which fixed the bug.

When calling OnScrollPositionChanged in cursor mode, we want the
appearance of the caret to be preserved since the caret might be hidden
due to timeout. We should respect the old appearance of the caret.

Add a marionette test to ensure the caret does not appear due to
ScrollPositionChanged.
2015-09-09 16:47:20 +08:00
Ting-Yu Lin
f556e3794f Bug 1200194 - Tweak formatting and debug logging. r=roc
No logic change is involved.
2015-09-09 16:47:20 +08:00
Ting-Yu Lin
9ccfd6adc3 Bug 1200194 - Fix AccessibleCaret is out of scrollport in cursor mode. r=roc
The comment reads "No need to consider whether the caret's position is
out of scrollport", which is untrue.

For example, the position of nsCaret might be shifted by typing and be
covered by other elements. So we need to set the appearance of first
caret to NormalNotShown when it becomes invisible.
2015-09-09 16:47:20 +08:00
Ting-Yu Lin
fbc2e5b59b Bug 1200194 - Expose nsCaret::GetFrameAndOffset for reuse. r=roc
This function can be reused by AccessibleCaret.
2015-09-09 16:47:20 +08:00
Ting-Yu Lin
64e12e973f Bug 1200194 - Make Appearance convertible to string representation. r=roc 2015-09-09 16:47:20 +08:00
Kartikaya Gupta
670d9501e5 Bug 1151102 - Add some diagnostic logging. r=snorp 2015-09-09 23:22:19 -04:00
Kartikaya Gupta
e57dedfdc8 Bug 1202290 - Remove special-case condition for Fennec that is not needed any more. r=tn
The special-case was added back when the Fennec dynamic toolbar showing/hiding
behaviour didn't resize the content area. As of bug 1180295 that is no longer
the case, and showing/hiding the dynamic toolbar *does* resize the content area.
Therefore the widget bounds always represents the actual content area and can
be used directly as the composition bounds.

In addition, the special-case code relied on a particular quirk of the Fennec
CSS viewport determination code which was removed in bug 1180267. The quirk was
that the CSS viewport height was always set such that it would cover the
available screen height when the page was zoomed out to the minimum allowed
zoom. This behaviour was technically incorrect as it would ignore any height
properties provided in the meta-viewport tag. Now that this quirk has been
removed, the special-case code breaks because the root frame's height is
independent of the screen height and can result in an incorrect composition
bounds.
2015-09-09 23:22:19 -04:00
Masayuki Nakano
daade450e0 Bug 895274 part.160 Rename NS_AFTERPAINT to eAfterPaint r=smaug 2015-09-10 10:40:06 +09:00
Masayuki Nakano
1fcd992f38 Bug 895274 part.153 Rename NS_QUERY_TEXT_CONTENT to eQueryTextContent r=smaug 2015-09-10 10:40:05 +09:00
Markus Stange
896db90d77 Bug 1181135 - Copy DisplayItemClips in order to avoid dangling pointers. r=tn 2015-09-09 19:08:03 -04:00
Ting-Yu Lin
0e168b5d74 Bug 1202320 - Fall back to platform APZ enabled in PresShell. r=kats
If root view or widget cannot be found, use platform value of
AsyncPanZoomEnabled.
2015-09-08 03:30:00 +08:00
Masayuki Nakano
86edf90331 Bug 895274 part.116 Rename NS_COPY to eCopy r=smaug 2015-09-08 23:33:34 +09:00
Mats Palmgren
f4035e227b Bug 1174553 part 2 - Move the AddPercents function into a static method in the nsLayoutUtils class. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
207654f13a Bug 1174553 part 1 - Add a new flag (BAIL_IF_REFLOW_NEEDED) for IntrinsicForWM() that makes it return early with a NS_INTRINSIC_WIDTH_UNKNOWN result if a reflow is needed to determine the child's correct BSize. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
7afab71b8b Bug 1174546 part 1 - Introduce nsLayoutUtils::MinSizeContributionForAxis which calculates an intrinsic size contribution from aFrame's 'min-width' property (or 'min-height' if the given axis is vertical) and the corresponding border, padding and margin values. r=jfkthame 2015-09-04 22:06:57 +02:00
David Anderson
44d93a14c9 Hoist scroll info items above inactive blur containers. (bug 1193557 part 1, r=mstange) 2015-09-04 17:17:50 -07:00
Wes Kocher
95169852ca Backed out changeset 24cd0974b365 (bug 1174546) for reftest bustage 2015-09-04 16:23:01 -07:00
Wes Kocher
0af3aa342d Backed out changeset 25537ff71d2b (bug 1174553) 2015-09-04 16:22:40 -07:00
Wes Kocher
3b85adc082 Backed out changeset eea3ecbb5983 (bug 1174553) 2015-09-04 16:22:38 -07:00
Botond Ballo
37224500a1 Bug 1201548 - When testing whether the visible rect intersects event regions in FindPaintedLayerFor(), only use the bounds of the event regions. r=mstange
This is done for performance reasons, as the event regions can be complex.
2015-09-04 12:14:28 -04:00
Mats Palmgren
80aff09e08 Bug 1174553 part 2 - Move the AddPercents function into a static method in the nsLayoutUtils class. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
000d84dceb Bug 1174553 part 1 - Add a new flag (BAIL_IF_REFLOW_NEEDED) for IntrinsicForWM() that makes it return early with a NS_INTRINSIC_WIDTH_UNKNOWN result if a reflow is needed to determine the child's correct BSize. r=dholbert 2015-09-04 22:06:57 +02:00
Mats Palmgren
2fac5c3a7d Bug 1174546 part 1 - Introduce nsLayoutUtils::MinSizeContributionForAxis which calculates an intrinsic size contribution from aFrame's 'min-width' property (or 'min-height' if the given axis is vertical) and the corresponding border, padding and margin values. r=jfkthame 2015-09-04 22:06:57 +02:00
Hiroyuki Ikezoe
8a340584b9 Bug 1151694 - Part 1 - Move CommonAnimationManager::sLayerAnimationInfo into LayerAnimationInfo.(cpp|h). r=bbirtles 2015-09-03 22:59:00 +02:00
Cameron McCormack
93ab695c3d Bug 1192302 - Part 2: Traverse the frame tree when processing eRestyle_SomeDescendants. r=bzbarsky 2015-09-04 10:00:14 +10:00
Cameron McCormack
baf91ad228 Bug 1192302 - Part 1: Make MustCheckUndisplayedContent take its frame as an argument. r=bzbarsky 2015-09-04 10:00:14 +10:00
Matt Woodrow
29534e65b7 Bug 1042536 - Allow ImageLayer optimization to be used for some clipped background images. r=mstange 2014-07-23 17:52:42 +12:00
Benoit Girard
f487d0b523 Backout 758f3df6c016 (bug 1191539) for causing checkerboarding on android 2015-09-03 14:24:56 -04:00
Wes Kocher
67f1a2cfde Merge inbound to central, a=merge 2015-09-03 12:20:40 -07:00
Wes Kocher
8700dcb6b5 Backed out 2 changesets (bug 1035091)
a=backout

Backed out changeset 1fc07bdd9aa8 (bug 1035091)
Backed out changeset f6e98029d1cb (bug 1035091)
2015-09-03 11:41:39 -07:00
Kartikaya Gupta
fc2f50551e Bug 1197824 - Remove the mAllowDoubleTapZoom field from nsViewportInfo as it is not needed. r=botond 2015-09-03 10:30:41 -04:00
Kartikaya Gupta
428ff70a50 Bug 1197824 - Support the browser.ui.zoom.force-user-scalable pref in the gecko zoom-constraints codepath. r=botond
The browser.ui.zoom.force-user-scalable pref can be modified by the user from
the Fennec settings screen, and allows them zoom pages despite the meta-viewport
tag that might otherwise restrict zooming. This effectively ignores the effect
of the user-scalable, minimum-scale, and maximum-scale meta-viewport tokens.
2015-09-03 10:30:41 -04:00
Kartikaya Gupta
1eafbdffb5 Bug 1197824 - Constrain the min/max zoom if zooming is not allowed. r=botond
In the C++ APZ implementation this has no effect, because the min/max zoom values
are never even read if zooming is not allowed. When this is hooked up to the
Java implementation though, the code expects the min/max zoom values to be
equal to the default zoom values in the case where zooming is not allowed. This
behaviour change therefore facilitates hooking up the ZoomConstraintsClient
to the Java pan/zoom controller implementation, which happens in a future patch.
2015-09-03 10:30:40 -04:00
Botond Ballo
1565f62557 Bug 1200158 - Avoid expensive computations involving the maybe-hit region in hot code paths. r=mstange 2015-08-31 19:53:34 -04:00
Botond Ballo
866af4c88b Bug 1200158 - Define PaintedLayerData::AccumulateEventRegions() out of line. r=mstange 2015-08-31 19:59:22 -04:00
Zack Weinberg
50d9ee1776 Bug 1035091 part 1: change CSS parser and loader APIs to distinguish UA, user, and author sheets instead of just UA vs everyone else. r=heycam 2015-09-02 13:52:49 -04:00