Commit Graph

36099 Commits

Author SHA1 Message Date
Mats Palmgren
678b74f2e6 Bug 856243 - Add missing do_QueryFrame support and fix typo that caused most MathML frames to not QueryFrame to nsIMathMLFrame. Add static assertions to prevent those kinds of errors in the future. r=dholbert 2013-04-04 01:35:07 +02:00
Eitan Isaacson
998738aff3 Bug 525444 - (Part 1/3) Basic SpeechSynthesis setup and voice registration. r=smaug
--HG--
rename : content/media/webspeech/moz.build => content/media/webspeech/synth/moz.build
rename : content/media/webspeech/moz.build => content/media/webspeech/synth/test/moz.build
2013-04-03 15:13:16 -07:00
Eitan Isaacson
542d52e905 Bug 856370 - Add a Makefile.in in webspeech/recognition and remove webspeech top-level VPATH. r=smaug
--HG--
rename : content/media/webspeech/Makefile.in => content/media/webspeech/recognition/Makefile.in
rename : content/media/webspeech/moz.build => content/media/webspeech/recognition/moz.build
2013-04-03 15:13:16 -07:00
Mounir Lamouri
654f57df60 Bug 701353 - Tests that <label> actually activates <input type='file'>. r=smaug 2013-04-03 17:06:19 +01:00
Jonathan Watt
ebb97727c3 Bug 857034 - Add support for native theming of <input type=range> on Windows. r=roc 2013-04-03 11:07:12 +01:00
John Daggett
bf020f555d Bug 856402 - null-check the result of GetParentStyleSheet. r=dbaron 2013-04-03 15:13:17 +09:00
Robert O'Callahan
2d46b948e1 Backout bug 851445 for test failure
--HG--
extra : rebase_source : 3314e6679f15134324d5de09334be14e17aa0790
2013-04-02 18:24:25 +13:00
Robert O'Callahan
b2b9650251 Bug 851445. When saving a frame scroll position, if we're in the process of trying to scroll to a saved scroll position, save the desired position instead of the actual current position. r=mats 2013-03-21 15:44:37 +13:00
Seth Fowler
6cf2a4da26 Bug 811403 Followup - Disable inequality test on platforms with scrollbars to fix Android reftest failures on a CLOSED TREE.
--HG--
extra : amend_source : bc2b5cf8633a7702e40d5f475fda54e1d10b849f
2013-04-01 19:39:01 -07:00
Trevor Saunders
5e2c10a0f3 bug 856794 - don't check the return value of nsTArray::EnsureLengthAtLeast() r=heycam 2013-04-01 16:54:20 -04:00
Cameron McCormack
10e5ff17b2 Bug 856879 - Remove constructor arguments argument from style struct macros. r=dbaron 2013-04-02 12:45:48 +11:00
Seth Fowler
6ad9945c6b Bug 811403 (Part 2) - Tests for viewport unit interactions with overflow values of scroll and auto. r=dbaron 2013-04-01 17:03:00 -07:00
Seth Fowler
81c3ba6eb9 Bug 811403 (Part 1) - Take scrollbars into account for viewport units if 'overflow: scroll' is set. r=dbaron 2013-04-01 17:02:57 -07:00
Trevor Saunders
f3c9c56774 bug 856705 - fix layout/style/ SwapElements() callers to not look at the return value r=bz 2013-04-01 13:46:26 -04:00
Kyle Machulis
72a717a860 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Mats Palmgren
f0616a5dc8 Backout 5104a8653170 (bug 856243). r=me 2013-04-01 19:10:37 +02:00
Mats Palmgren
333122f564 Bug 856243 - Add missing do_QueryFrame support. r=dholbert 2013-04-01 18:45:19 +02:00
Mats Palmgren
d82140fe1a Bug 855920 - Remove unused nsDisplayTransform ctor. r=roc 2013-04-01 18:45:18 +02:00
Mats Palmgren
b3ddf199bb Bug 729519 - Allocate heap nsFrameLists from the shell arena. r=bzbarsky
"new nsFrameList()" becomes "new (shell) nsFrameList()".
"delete list" becomes "if (list) list->Delete(shell)" - note also that
an additional assertion was added that list is empty when deleted.

"nsAutoPtr<nsFrameList> list(StealSomeFrames())" becomes
"AutoFrameListPtr list(aPresContext, StealSomeFrames())"
2013-04-01 17:26:02 +02:00
Mats Palmgren
91b3ef7da5 Bug 729519 - Make frames destroy all child frames and remove their nsFrameList properties when destroyed. r=bzbarsky
Specifically, this wasn't done for the OutsideBullet list which was
destroyed by the property destructor, potentially after the entire
frame tree was gone.  Now we'll assert that the property destructor
isn't called.

Use SafelyDestroyFrameListProp when destroying PushedFloat and
OverflowOutOfFlows frame lists since it's more robust.

Destroy [Excess]OverflowContainers frame lists if they exist, regardless
of the IsFrameOfType(nsIFrame::eCanContainOverflowContainers) bit
(since the oveflow continuation tracker doesn't check that before
creating these lists -- this was the source of crash bugs before
that bit was added to ColumnSetFrame).

Assert in SetPropTableFrames that the property doesn't exist, because
if it does the property destructor will run, which isn't supported.
2013-04-01 17:26:02 +02:00
Mats Palmgren
985f6f0f76 Bug 729519 - Allocate nsFrameList::sEmptyList from the .rodata segment, not the heap. r=bzbarsky 2013-04-01 17:26:02 +02:00
Mats Palmgren
07c2d4d760 Bug 729519 - Simplify DestroyOverflowList() by requiring that the list is empty. r=bzbarsky 2013-04-01 17:26:02 +02:00
Mats Palmgren
7fed9e6d53 Bug 729519 - Use SafelyDestroyFrameListProp also for the OverflowList. r=bzbarsky 2013-04-01 17:26:02 +02:00
Mats Palmgren
6f70f713ee Bug 855917 - Minor nsAbsoluteContainingBlock code cleanup. r=dholbert 2013-04-01 17:26:01 +02:00
Robert Longson
37e5af5fac Bug 398825 - Implement selectSubString. r=heycam
--HG--
rename : content/svg/content/test/test_getSubStringLength.xhtml => content/svg/content/test/test_selectSubString.xhtml
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2-ref.svg
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2.svg
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3-ref.svg
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3.svg
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-ref.svg
rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString.svg
2013-04-01 10:43:38 +01:00
L. David Baron
b5a48e2af3 Bug 855464: Optimize nsBlockReflowState::ClearFloats better, given that nsBlockFrame::WidthToClearPastFloats is somewhat expensive. r=dholbert
This fixes a performance issue that showed up in a profile of the b2g
contacts app (though it's not clear what percentage of the time it was
given the difficulty of understanding output of 'perf').
2013-03-31 00:50:29 -07:00
Felipe Gomes
2c61a849a3 Bug 850213 - Update nsHTMLInputElement to nsIContentPrefService2. r=smaug 2013-03-29 23:08:57 -03:00
Daniel Holbert
cc665d3856 Bug 856199: Remove nsHTMLReflowState's no-longer-needed AutoRestore #include. r=dbaron 2013-03-29 18:34:17 -07:00
Daniel Holbert
035b68ac7f Bug 785468: Compute flex container's baseline as-described in the spec. r=dbaron 2013-03-29 18:32:08 -07:00
Daniel Holbert
1a24ab47f6 Bug 853946: Replace flex container's cached content-box cross-size and cached ascent with local variables in Reflow(). rs=Waldo 2013-03-29 18:32:03 -07:00
Bobby Holley
c5bb0e4c6b Bug 856127 - Override the override. r=bz 2013-03-29 18:13:52 -07:00
Kyle Machulis
43628a7867 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Mounir Lamouri
65800713ef Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-29 12:32:47 +00:00
Jonathan Watt
f9c6b3c079 Bug 855048 - nsRangeFrame shouldn't init the "nsReflowStatus frameStatus" that it passes into ReflowChild. r=dholbert 2013-03-29 09:49:53 +00:00
Robert O'Callahan
c4e65b7b56 Bug 852489. Part 9: Avoid temporarily setting a layer's visible region to a non-final value. r=mattwoodrow
We currently set the visible region on most container layers twice: once in
BuildContainerLayerFor, where we don't take clipping from ancestors into
account, and then later ProcessDisplayItems calls RestrictVisibleRegionForLayer
which does take ancestor clipping into account. This causes unnecessary
Mutated()s.

In this patch we partially fix this by forcing transform layers to take
account of their ancestor clipping when they set the visible region in
BuildContainerLayerFor. For those layers we don't need to apply
ancestor clipping in ProcessDisplayItems. This is done in a rather
ugly way, by passing the ancestor clip rect as an extra field of
ContainerParameters. To preserve the optimization that prerendered
elements are treated as fully visible regardless of ancestor clipping,
we have to add a flag to turn that clipping off in BuildContainerLayerFor.

In bug 841192 we will be able to fix this in a much nicer way, because we can
get the ancestor clip directly off the nsDisplayItem passed to
BuildContainerLayerFor. But this approach is needed for the B2G18 branch.

--HG--
extra : rebase_source : 26fbe55db84ab96e1e358b8803b0563f42590836
2013-03-22 15:17:29 +13:00
Robert O'Callahan
1f73e74382 Bug 852489. Part 6: Don't temporarily reset clip when recycling Thebes/Image/ColorLayers. r=mattwoodrow
--HG--
extra : rebase_source : 28ac0c65edef8d2f0de2e79003370520066508e7
2013-03-22 15:17:29 +13:00
Robert O'Callahan
303b2ed096 Bug 852489. Part 5: Don't temporarily reset clip rect when reusing an existing layer. r=mattwodrow
--HG--
extra : rebase_source : 65ace15a404e25e14c02e514077997554d36f092
2013-03-22 15:17:29 +13:00
Robert O'Callahan
8ae708b0c0 Bug 852489. Part 4: Don't call RepositionChild if the layer is already in the right position. r=mattwoodrow
--HG--
extra : rebase_source : 1a3be842c65ab00dc7a72361e522e5343e5de967
2013-03-22 15:17:29 +13:00
Robert O'Callahan
7d45bea65b Bug 852489. Part 1: Don't create nsDisplayButtonForegrounds for buttons that aren't focused. r=mats
--HG--
extra : rebase_source : 93ad60be2d64345fee5bbdd4553b11b5d8341d18
2013-03-22 15:17:27 +13:00
Ryan VanderMeulen
5e42e53e96 Backed out changeset fa9cde226b2a (bug 839788) for breaking mochitests the same way it did the first time it landed on a CLOSED TREE. 2013-03-28 21:17:42 -04:00
Daniel Holbert
c28f7f825d Bug 855850: Use MOZ_STATIC_ASSERT instead of #if, to verify that "break type" values are representable in 4 bits. r=mats 2013-03-28 16:27:31 -07:00
Mounir Lamouri
eadf5f190e Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-28 11:24:14 +00:00
Jonathan Watt
ecfd1c5f3e Bug 855301 - Add support for native theming of <input type=range> on Linux. r=roc 2013-03-28 20:25:05 +00:00
Andrea Marchesini
e575c7855f Bug 825196 - Convert HTMLInputElement to WebIDL. r=Ms2ger 2013-03-28 15:41:32 -04:00
Andrea Marchesini
eb909f5a5b Bug 825196 - Rename nsHTMLInputElement to HTMLInputElement. r=Ms2ger
--HG--
rename : content/html/content/src/nsHTMLInputElement.cpp => content/html/content/src/HTMLInputElement.cpp
rename : content/html/content/src/nsHTMLInputElement.h => content/html/content/src/HTMLInputElement.h
2013-03-28 15:41:32 -04:00
Ryan VanderMeulen
0048151f1e Bug 807442 - Make assertion non-fatal. r=hsivonen 2013-03-28 12:13:11 -04:00
Ryan VanderMeulen
a806c3138e Backed out changeset f0b16aba4df7 (bug 839788) for mochitest failures on a CLOSED TREE. 2013-03-28 08:49:04 -04:00
Mounir Lamouri
f839c90393 Bug 839788 - Switch Browse button from an <input> to a <button>. r=bz 2013-03-28 11:24:14 +00:00
Daniel Holbert
02673ae0ed Bug 801268: Add crashtest for this bug. (test only, no review) 2013-03-28 01:50:22 -07:00