Robert O'Callahan
bc32280787
Bug 681192. Part 12: more fixes to remove unnecessary rounding to pixels. r=matspal
2012-05-10 17:24:20 +12:00
Robert O'Callahan
bb49b32759
Bug 681192. Part 11: Don't snap scrollrange endpoints to device pixels anymore. r=matspal
2012-05-10 17:24:20 +12:00
Robert O'Callahan
cc1f820b59
Bug 681192. Part 8: Use a generous allowed range when scrolling in CurPosAttributeChanged. r=matspal
...
There was a subtle reftest failure on Mac in RTL text-overflow tests.
I tracked it down to RTL overflow:auto areas being automatically scrolled by a subpixel amount.
This was because we try to set scrollbar "curpos" attributes to an integer number of CSS pixels representing
the scroll amount, relative to the top-left of GetScrolledRect, which is a noninteger number of CSS pixels
in this case. Then in ReflowFinished() we scroll to the saved curpos values plus the top-left of GetScrolledRect.
This patch fixes the problem by making CurPosAttributeChanged pass an allowed scroll range to
ScrollToWithOrigin. We allow any scroll destination that, when rounded to CSS pixels, would give the same
value as "curpos".
This fixes the bug, ensuring that ReflowFinished's call to CurPosAttributeChanged will not normally need
to scroll because the current position will be in the acceptable range. Also, it means that code that
scrolls by setting the "curpos" attribute will be optimized to try to hit a layer pixel boundary.
2012-05-10 17:24:19 +12:00
Oleg Romashin
41aae7386b
Bug 681192. Part 2: Make nsIScrollableFrame::ScrollBy automatically set a generous allowed destination range. r=roc
2012-02-07 12:20:57 -08:00
Oleg Romashin
907dbf27a1
Bug 681192. Part 1: Add "allowed scroll destination range" to nsIScrollableFrame::ScrollTo and nsGfxScrollFrame implementation. r=roc,matspal
2012-02-07 16:53:18 -08:00
Timothy Nikkel
eeb980db14
Bug 749425. Push the scroll frame clip inside the scroll layer so it gets transformed by the shadow transform. r=roc
2012-05-08 23:15:00 -04:00
Ms2ger
914f716b4f
Bug 716439 - Followup: remove unused variable 'sf'; r=roc
2012-05-05 11:00:06 +02:00
Nicholas Cameron
b961ac3987
Bug 716439; remove a check for rounded rects to enable the use of mask layers. r=roc
2012-02-08 11:26:46 +13:00
Avi Halachmi
24477dd798
Bug 702463 - Smooth scrolling should use refresh observer instead of a timer. r=roc
2012-03-31 16:08:00 +03:00
Timothy Nikkel
50718d4ff5
Bug 732016 Allow override of the scroll port size used for clamping scroll positions. r=roc
2012-04-24 13:52:35 -05:00
Joe Drew
0d48edf486
Backout 492d12fa8b65 (bug 732016) for regressions. a=regression
2012-04-23 11:13:33 -07:00
Timothy Nikkel
99bc437145
Bug 732016 Allow override of the scroll port size used for clamping scroll positions. r=roc
2012-04-19 20:54:54 -05:00
Wes Johnston
2dc20aa702
Bug 745936 - Display port should not override dirtyRect during hit detection r=roc
2012-04-17 08:08:29 -04:00
L. David Baron
464614b05f
Add a font inflation data structure per block formatting context. (Bug 706193, patch 2) r=roc
...
This structure is per block formatting context because we have to make a
single inflation decision for things like consecutive runs of paragraphs
of text. Inflating some paragraphs and not others (within the same
sequence of adjacent paragraphs) based on the amount of text in each one
would be disastrous. Otherwise it's ideal for the units to be as small
as possible as long as they merge such sequences; therefore this uses a
definition corresponding to CSS's idea of elements that establish new
block formatting contexts.
2012-04-16 15:32:12 -07:00
Mark Capella
0ae5c580ff
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
2012-04-11 17:17:44 -07:00
Jared Wein
49fcf34aaa
Backed out changeset 3b8a666e351e (bug 702463)
2012-04-03 16:50:25 -07:00
Avi Halachmi (:avih)
6e661de248
Bug 702463: Smooth scroll - Use refresh observer instead of a timer. r=roc
2012-03-31 16:08:00 +03:00
Jared Wein
7d9acae364
Backed out changeset 4e515b6a5a41 (bug 702463)
2012-04-03 16:22:49 -07:00
Avi Halachmi (:avih)
9f75302ff4
Bug 702463: Part 1 v8 - Smooth scroll - Use refresh observer instead of a timer
2012-03-31 16:08:00 +03:00
Avi Halachmi (:avih)
20d62264a1
Bug 737758: part 3: Cleanups and semantic consistency [r=roc]
2012-03-26 11:53:45 +02:00
Avi Halachmi (:avih)
fb4d322ea9
Bug 737758: part 1: Propagate mouse wheel event origin from ESM [r=roc]
2012-03-26 11:50:30 +02:00
Jonathan Watt
98b057ec5c
Bug 379709 - Avoid reflowing SVG twice during page load due to initially assuming we'll need space for a vertical scrollbar when the nsSVGOuterSVGFrame can tell us we won't. r=bz.
2012-03-19 08:34:19 +00:00
Ali Juma
40dca70e4b
Bug 725095 - Address Layout review comments. r=mats
2012-03-13 12:57:31 -04:00
Benoit Girard
bbefdec4f2
Merge mc->Maple
2012-03-13 11:05:28 -04:00
Avi Halachmi
98c32cb6ba
Bug 206438 - Smooth scrolling should use the 'smoothwheel' algorithm. r=roc ui-r=limi
2012-03-11 13:55:00 -07:00
Benoit Girard
ceb831e001
Restore merge changeset 39a3044823b0, regression fixed upstream in mc
2012-03-05 13:09:05 -05:00
Benoit Girard
ae335d8d56
Backed out changeset 39a3044823b0 because of bad interaction with maple.
2012-03-02 18:32:46 -05:00
Benoit Girard
a41da854d6
Merge mc->Maple, resolved conflicts
2012-03-02 14:27:05 -05:00
Doug Turner
f5b81a2ec4
Merge with mozilla-central
2012-02-24 11:57:27 -08:00
Doug Turner
feb746215a
merge with mozilla-central:
2012-02-22 09:30:09 -08:00
Rob Campbell
0c1ba7c23e
merge fx-team to m-c
2012-02-22 12:47:22 -04:00
Ali Juma
6875a3a2d2
Only try to scroll scrollable layers, and force Gecko to generate a scrollable layer even for smaller pages.
2012-02-20 11:30:05 -05:00
Chris Lord
96910f5eb1
Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=roc
...
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Chris Lord
e9c915443a
Backout scroll-clamp stuff again
...
I hope this makes it easier to merge and I'm not just wasting time...
2012-02-19 09:26:52 +00:00
Brad Lassey
8ded1f80e4
merge from mozilla-central
2012-02-18 17:29:33 -05:00
Chris Lord
d1017faf00
Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=
...
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Chris Lord
6f77fc1005
Backout 87134:1c1c22bd0291 and 87135:a4af71f1bc1f
...
Realised I made a mistake with the nsIFrameLoaderOwner.clampScrollPosition
patch and I want this to go in as a single commit and not break building of
Maple.
2012-02-18 00:46:23 +00:00
Chris Lord
64223bd408
Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=
...
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
Alexander Surkov
f597baded3
Bug 677154 - fix a typo
2012-02-18 02:51:29 +09:00
Alexander Surkov
13ad04d767
Bug 677154 - Detached document accessibility tree, r=bz, marcoz
2012-02-18 02:38:43 +09:00
Ed Morley
39ac43c6bd
Merge mozilla-central to mozilla-inbound
2012-02-23 01:03:16 +00:00
Mats Palmgren
a54bc635bc
Bug 726258 - Don't suppress the scrollbar because of a too small size in the scollbar minor direction. r=bz
2012-02-22 17:23:47 +01:00
Jared Wein
1be1dd9c2e
Bug 725700 - Keyboard arrow keys and scrollbar buttons should have consistent scrolling distances.
2012-02-20 11:24:36 -05:00
Patrick Walton
68f87fbb15
Force the creation of an nsDisplayScrollLayer if a displayport was set on a scroll frame
2012-02-07 22:32:21 -08:00
Nathan Froyd
20f5ce545a
Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu
2012-02-29 10:57:47 -05:00
Jared Wein
30ed56a534
Bug 710373 - Pressing the vertical slider down arrow should move three lines instead of one. r=roc
2012-01-31 12:04:35 +01:00
Mats Palmgren
8c09c97e7b
Bug 672944 - Setup overflow areas for the scrolled block frame in a XUL scroll frame for the benefit of text-overflow; Make the text-overflow code grok the extra wrapper frame in this case. r=roc
2012-01-28 04:35:59 +01:00
Chris Lord
92b6f0f506
Bug 726817 - Add nsIFrameLoaderOwner.clampScrollPosition. r=roc
...
Add an attribute to nsIFrameLoaderOwner that allows the clamping of set scroll
positions to be toggled.
2012-02-17 23:41:13 +00:00
L. David Baron
c6e45feee7
Switch nsLayoutUtils inflation methods to the new setup with state on the pres context. (Bug 706609, patch 5) r=roc
...
This is the third of three patches to rework the way we handle getting
the font inflation container and width data during reflow, which are
needed so that we can sometimes honor inflation during intrinsic width
calculation (which we need to do to make some form controls inflate
correctly).
2012-01-24 17:21:29 -08:00
Timothy Nikkel
c8303c81b8
Bug 675015. Wait until scrolling is complete to dispatch synthetic mouse moves. r=roc
2012-01-18 22:13:02 -06:00