Robert O'Callahan
28e494af4f
Bug 681192. Part 11: Don't snap scrollrange endpoints to device pixels anymore. r=matspal
...
--HG--
extra : rebase_source : a4ad5072fbb1a9e1e8d0fcf31268fee8812be41e
2012-05-10 17:24:20 +12:00
Robert O'Callahan
b4c51b5b14
Bug 681192. Part 10: Control rounding direction of scaledOffset to try to make the residual be close to mActiveScrolledRootPosition. r=tnikkel
...
--HG--
extra : rebase_source : f27fb737f8956ed117df0be3a71da847cc2048c0
2012-05-10 17:24:20 +12:00
Robert O'Callahan
d526469de5
Bug 681192. Part 9: Adjust assertion counts downward. r=mats
...
--HG--
extra : rebase_source : 5cb44d6572d19d462897b1b50037946d5d8edf67
2012-05-10 17:24:20 +12:00
Robert O'Callahan
41b38a3c31
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.
--HG--
extra : rebase_source : 3a768883feee4ff2b88fe3c729ea1058e911f2ea
2012-05-10 17:24:19 +12:00
Robert O'Callahan
5c62ce11f2
Bug 681192. Part 7: nsTypedSelection should be scrolling a 0,0 size into view to get a particular coordinate into view, not 1,1. r=matspal
...
When asked to scroll a 1,1 appunit rectangle into view, ScrollFrameRectIntoView will now actually
succeed!
For example if the window is 6000 appunits high and we ask to scroll a 1x1 rect at 0,6000 into view,
before bug 681192 was fixed we'd actually fail to do so. We'd compute a desired scroll destination of 0,1,
and ScrollTo would round that to 0,0 and we wouldn't scroll at all.
Now, we compute a desired scroll destination of 0,1 but also an allowed scroll range for y of
"1 to <someting large>", so ScrollFrameRectIntoView will scroll down by a full pixel to 0,60. This is correct ---
it gets the subpixel area into view, which the previous code didn't --- but it's not really what DoAutoScroll
wants, at least the way test_mousecapture.xul is written. test_mousecapture.xul expects DoAutoScroll to scroll
windowheight+N into view by scrolling down by exactly N pixels, so the desired point is exactly at the bottom
edge of the window rect. Using a zero-sized rect achieves this.
--HG--
extra : rebase_source : 5d3d8cc4417c35dc88ad296a4f13e01d2c1c9233
2012-05-10 17:24:19 +12:00
Robert O'Callahan
1b94d7fe2c
Bug 681192. Part 6: Test that various scrolling operations inside scaled transforms don't trigger unnecessary repainting. r=matspal
...
--HG--
extra : rebase_source : a72afaa7ebb5e9b59cf574cd973f966eee5c7f45
2012-05-10 17:24:19 +12:00
Oleg Romashin
49e2ef33de
Bug 681192. Part 5: Make various DOM scroll APIs --- scrollTop, scrollLeft, window.scrollTo, scrollBox.scrollTo, scrollBox.scrollToLine, scrollBox.scrollBy --- use an appropriate allowed scroll destination range. r=roc,r=matspal
...
--HG--
extra : rebase_source : 83ee44530c67229686ec0dce3628da83e0e93438
2012-02-07 12:24:15 -08:00
Oleg Romashin
1c3d441a1d
Bug 681192. Part 4: Make ScrollFrameRectIntoView compute a generous allowed scroll destination range. r=roc,matspal
...
--HG--
extra : rebase_source : 524add7c1080994dd1bc2345cbd6f54c15653d27
2012-02-07 12:22:53 -08:00
Oleg Romashin
9ed6321b8b
Bug 681192. Part 3: Make nsListControlFrame::ScrollToFrame use ScrollFrameRectIntoView. r=roc
...
--HG--
extra : rebase_source : c9e0fbbd024e9fe15ca0e2dc0bad1ef90aa51edd
2012-02-07 12:21:13 -08:00
Oleg Romashin
5120270d4b
Bug 681192. Part 2: Make nsIScrollableFrame::ScrollBy automatically set a generous allowed destination range. r=roc
...
--HG--
extra : rebase_source : 392359b325ca0435031e8f31a47154a82943c2b4
2012-02-07 12:20:57 -08:00
Oleg Romashin
14a398fcf0
Bug 681192. Part 1: Add "allowed scroll destination range" to nsIScrollableFrame::ScrollTo and nsGfxScrollFrame implementation. r=roc,matspal
...
--HG--
extra : rebase_source : 51d04f7e7db35c02de3401a3481d4cc3827c19ec
2012-02-07 16:53:18 -08:00
Robert O'Callahan
43cffcf97d
Bug 681192. Part 0.3: Add FrameLayerBuilder::GetThebesLayerResolutionForFrame. r=mattwoodrow
...
--HG--
extra : rebase_source : eea4dee6d081de5c288e295f3549fc88b10e6c39
2012-05-10 17:24:18 +12:00
Robert O'Callahan
a86b9ab41d
Bug 681192. Part 0.2: Use FuzzyEqual to check whether we need to invalidate ThebesLayers when subpixel offsets have changed. r=mattwoodrow
...
--HG--
extra : rebase_source : d0f8464aea9a436214d394123b1399105ccd0f66
2012-05-10 17:24:18 +12:00
Boris Zbarsky
389a77894c
Bug 753397. Add a field to nsCSSPropList for a preference that controls the property. r=dbaron
...
The actual controlling is not hooked up yet; that will happen in bug 753522 for
the DOM reflections of properties.
2012-05-09 21:29:37 -04:00
Boris Zbarsky
2e3a0eefe3
Bug 751012. When saving frame state, make sure to walk through placeholders so we save the state of out-of-flow descendants properly. Also make sure to walk the continuations and special siblings of the root frame that we're saving state for. r=roc
2012-05-09 21:27:47 -04:00
Masayuki Nakano
09a0295102
Bug 749563 nsMenuBarListener should ignore consumed alt key events in its keydown and keyup event handlers r=enn
2012-05-10 08:25:48 +09:00
Mats Palmgren
cdd7c645a3
Bug 751356 - Make presshell arena allocation methods inline and non-virtual. r=bz
2012-05-09 21:53:15 +02:00
Mats Palmgren
20063bafbd
Bug 752953 - Simplify IntersectRect calculations. r=roc
2012-05-09 21:53:15 +02:00
Mats Palmgren
8d873e3e77
Bug 752953 - Typo in calculation of 'allowExpansion' (result will always be an empty rect) in nsDisplayScrollLayer::ComputeVisibility. r=roc
2012-05-09 21:53:15 +02:00
Heather Arthur
9c364744c0
Bug 750556 - crash in mozilla::dom::Element::ClearStyleStateLocks; r=bz
2012-05-09 17:23:57 +01:00
Ehsan Akhgari
d50878a182
Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
...
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host. Things like text controls which used to have that flag
previously will not have it any more. The flag would be set on their anonymous
div node instead. Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.
This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
Nathan Froyd
6ed0590635
Bug 747508 - Count PresContexts in about:memory; r=njn
2012-05-07 16:09:11 -04:00
Ed Morley
8caea85934
Merge mozilla-central to mozilla-inbound
2012-05-09 10:16:14 +01:00
Ed Morley
d68bf1a175
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-05-09 10:15:40 +01:00
Simon Montagu
2be0ebd6db
Make unicode-bidi: [-moz-]plaintext apply to inline elements. Bug 746987, r=roc
2012-05-09 11:44:52 +03:00
Aharon (Vladimir) Lanin
a3da0c50ac
Tests for bug 746987. r=smontagu, roc
2012-05-09 11:44:52 +03:00
Joe Drew
756646f15d
Back out changeset 501d38d3892c (Bug 733553) for causing crashes in xpcshell tests.
2012-05-08 21:59:30 -04:00
Adam Dane [:hobophobe]
e1da62aa08
Bug 733553 - Allow multipart image streams to cope with stream changes. r=joe
...
--HG--
extra : rebase_source : 21ebc85f26fcbc4a4a27387d1ec5007c0886c386
2012-05-08 16:19:01 -05:00
Timothy Nikkel
6ffee527c4
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
Chris Pearce
b3d3b85810
Bug 716107 part 3 - Don't dispatch 'MozShowFullScreenWarning' event upon keypress in DOM fullscreen mode. r=smaug
2012-05-09 09:47:18 +12:00
Chris Pearce
1379e2c7dc
Bug 716107 part 2 - Remove full-screen-api.key-input-restricted keys pref. r=smaug
2012-05-09 09:47:18 +12:00
Simon Montagu
9b1af495d2
Fix test failures from bug 750551, r=dholbert
2012-05-08 22:36:53 +03:00
Simon Montagu
2a08ff1378
Fix some cases where a bidi-isolated element was never going through bidi resolution. Bug 731594, r=roc
2012-05-08 09:22:38 -07:00
Jonathan Kew
eb7b8625ba
bug 751151 - move harfbuzz to gkmedias.dll on windows. r=khuey
2012-05-08 08:46:46 +01:00
Jeff Muizelaar
b86c4d522e
Bug 753058. Add SAMPLE_LABELS for shadows. r=ehsan
...
This will make this things more obvious on the profile.
2012-05-08 18:10:02 -04:00
Ryan VanderMeulen
82b5e6925e
Mark the reftest for bug 750551 as failing on Linux due to perma-orange. rs=Ms2ger
2012-05-07 17:21:01 -04:00
Jonathan Kew
37f001de9d
Split wordbreak-7 test into two testcases, one without lam-alef ligatures and one with (marked as failing due to bug 479829). Bug 249159, r=smontagu
2012-05-07 12:18:24 -07:00
Simon Montagu
3b6c3efca9
More tests for bug 249159, r=jfkthame
2012-05-07 12:18:24 -07:00
Makoto Kato
ae4279cc0e
Bug 249159 - Part 2 Implement CSS3 Text word-break property. r=dbaron, smontagu
2012-05-07 12:18:23 -07:00
Simon Montagu
8ea3d11fe0
Make dir=rtl reverse layout direction in horizontal orientation only. Bug 750551, r=dholbert
2012-05-07 12:17:41 -07:00
Simon Montagu
550dc02dc9
Tests for bug 750551. r=dholbert
2012-05-07 12:17:41 -07:00
Andrew Quartey
783825908b
Bug 722599 - Move change event firing to content from layout r=mounir
2012-05-07 12:27:24 -04:00
Ehsan Akhgari
b56edd828a
Backout bug 750551 because of reftest oranges
...
--HG--
extra : rebase_source : 8947487094a48fb53c50a3c47bdc053db63a7759
2012-05-07 12:34:37 -04:00
Simon Montagu
556037085a
Make dir=rtl reverse layout direction in horizontal orientation only. Bug 750551, r=dholbert
2012-05-07 07:27:44 -07:00
Simon Montagu
536fcd75ae
Tests for bug 750551. r=dholbert
2012-05-07 07:27:41 -07:00
L. David Baron
f4ce7f74f9
Add missing GetFirstInFlow() call that was causing a crash in ComputeDescendantWidth when printing with font inflation enabled (or a debug build). (Bug 751797) r=roc
...
--HG--
extra : transplant_source : %ED%23%02%AFR%24tw%FE%96%D7%D3p%D8%87%F7gV%28L
2012-05-07 07:17:00 +02:00
Jonathan Kew
ce78dd76d0
bug 752176 - only read the style array for valid offsets within the textrun. r=smontagu
2012-05-06 15:55:12 +01:00
L. David Baron
efa60346db
Reflow for screen size change when font.size.inflation.minTwips is set. (Bug 747231, patch 4) r=roc
...
--HG--
extra : transplant_source : %B2c%F2%B9%E0%1DL%DD%AF%A2%842R%F3%BB%60R%1B%9EI
2012-05-05 15:28:06 +02:00
L. David Baron
e0f7819e29
Expose DocumentViewerImpl::CallChildren with an API that fills an array. (Bug 747231, patch 3) r=roc
...
--HG--
extra : transplant_source : %FFc%40%AE%D6%22%40%1D%7F%F7%A8%BC%1A%ECG%98G%DCFf
2012-05-05 15:25:45 +02:00
L. David Baron
55af249e28
Cache the last device width we used for font inflation on the pres context so that we can track when it changes. (Bug 747231, patch 2) r=roc
...
--HG--
extra : transplant_source : %19%A1%9B%BC%FD_H%5C%60%BB%88%1E%F6%D1%D5%85%24%F7%26%1B
2012-05-05 15:25:45 +02:00