Commit Graph

3194 Commits

Author SHA1 Message Date
Ehsan Akhgari
ef73506d4d Bug 10209 - Part 5: Allow table elements to act as absolute positioning containers; r=roc 2011-05-09 20:36:10 -04:00
Ehsan Akhgari
4ce993a366 Bug 10209 - Part 3: Adjust the assertion count on the test case for bug 348729; r=roc 2011-09-26 18:42:07 -04:00
Ehsan Akhgari
b273fc68d8 Bug 10209 - Part 2: Implement the absolute positioning support for all frames; r=roc 2011-04-29 19:02:33 -04:00
Ehsan Akhgari
47d44b9dc3 Bug 10209 - Part 1: Add an API for absolute container support for all frame types; r=roc 2011-04-27 19:41:43 -04:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Adam Dane [:hobophobe]
35dfe378d7 bug 591249 - event dragleave not properly dispatched if drag-and-drop aborted with ESC within iframe. r=smaug 2011-09-26 15:55:04 -05:00
Boris Zbarsky
095402dd70 Bug 689564. Only forward event attributes on body/frameset to the window if we also forward the corresponding on* property. r=smaug 2011-09-28 11:54:50 -04:00
Mats Palmgren
eac096967f Bug 688044 - ASSERTION: Why is the root in mDirtyRoots already? r=bzbarsky 2011-09-28 10:31:01 +02:00
Timothy Nikkel
910b0ce752 Bug 635645. Increase the amount of scrolling performed by using the arrow keys from 1 line to 2 lines. r=roc
This improves scrolling speed and is more inline with what other browsers do.
2011-09-27 14:05:21 -05:00
Boris Zbarsky
29e6945902 Bug 645538. Remove bogus warning. r=roc 2011-09-26 00:53:30 -04:00
Boris Zbarsky
8347ad6a37 Bug 677002. Back out the patch for bug 666643 because it disabled a bunch of tests. r=khuey 2011-09-23 12:27:18 -04:00
Justin Lebar
ba7be2f99c Bug 688624 - Use nsAutoTArray in nsDisplayList::HitTest. r=roc 2011-09-22 23:50:57 -04:00
Ehsan Akhgari
85e673bce7 Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions 2011-09-22 18:09:44 -04:00
Masayuki Nakano
54e3afdd66 Bug 543789 part.7 Dispatch compositionupdate event and set data value of compositionend event in all IME handling tests r=smaug, sr=roc 2011-09-22 18:17:41 +09:00
Boris Zbarsky
e88e132dc5 Bug 686656. Make sure to skip animation rules as well as transition rules when we're reparenting a style context when not processing an animation restyle. r=dbaron 2011-09-20 23:52:44 -04:00
Benoit Girard
69762a040b Bug 683803 - [backout] Add a 60 FPS Cap to throttle plugin drawing. r=backout 2011-09-20 22:35:13 -04:00
Ehsan Akhgari
ec2d83e852 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
Benoit Girard
1f5722ae10 Bug 683803 - [OOPP] Add a 60 FPS Cap to throttle plugin drawing. r=cjones 2011-09-07 16:18:42 -04:00
Boris Zbarsky
bd01572fc8 Bug 444641 part 4. Remove the data: special-casing for images in canvas, since we now set the right principal for data: images. r=roc 2011-09-20 17:00:42 -04:00
Jonathan Kew
3f213d78b5 bug 686497 - avoid passing excessively long wavy-underline path to cairo for stroking. r=roc 2011-09-16 20:23:29 +01:00
Mounir Lamouri
13377aec83 Bug 686545 - Fix build bustage with nsRefreshDriver/nsARefreshObserver not being defined. r=ehsan
The buld bustage only appears with some options being disabled in the
mozconfig. Likely, nsRefreshDriver.h is included by another hedear that isn't
included when an option is disabled.
2011-09-13 14:32:07 -07:00
Mats Palmgren
ba8355dd94 Bug 685154 - Cleanup nsIFrame::GetParentStyleContextFrame and related code. r=roc
Make nsCSSFrameConstructor::ConstructTable return a null frame if
creating the inner table frame fails.  Simplify some code since we can
now depend on the invariant that a properly created outer table frame
always has a non-null inner table frame.
2011-09-12 09:08:07 -07:00
Mats Palmgren
4a82c200c1 Bug 685154 - Cleanup nsIFrame::GetParentStyleContextFrame and related code. r=roc
Make nsIFrame::GetParentStyleContextFrame return the frame directly
instead of indirectly through an out parameter.  Remove the unused
nsPresContext parameter.
2011-09-12 09:08:07 -07:00
Boris Zbarsky
f4ec90e1f0 Bug 685518 part 1. Look at the image CORS mode for drawImage into a canvas 2d context. r=roc 2011-09-09 17:58:35 -04:00
L. David Baron
d2104b0877 Create nsPresShell.h with the parts of nsPresShell.cpp that should be in a header. (Bug 685786) r=roc
Note:  This adds STACK_ARENA_ to the beginning of the names of a few macros.

--HG--
rename : layout/base/nsPresShell.cpp => layout/base/nsPresShell.h
2011-09-09 12:50:21 -07:00
L. David Baron
fe83f8c9e2 Add comment pointing out reason for distinguishing anonymous blocks for positioned inlines. No bug. 2011-09-09 12:50:20 -07:00
Masayuki Nakano
d9869bfccf Bug 669028 part.13 layout should use mozilla::LookAndFeel rather than nsILookAndFeel r=roc 2011-09-09 11:27:13 +09:00
Ehsan Akhgari
7ef531806f Bug 645572 - Test case; r=bzbarsky 2011-03-31 23:04:51 -04:00
Robert O'Callahan
28b580015a Bug 685404. Make callers of nsDisplayList::HitTest use nsAutoTArrays to reduce allocations. r=tnikkel 2011-09-08 17:29:54 -04:00
Ehsan Akhgari
8718a82f9d Backout changesets 8e9aea2febed, 604544452285 and 9f150c4e1a48 because of Mac OS X 32-bit reftest orange
--HG--
extra : rebase_source : dbc017628f469e980efc8edfa26f8cce0ac7a956
2011-09-08 11:30:22 -04:00
Jonathan Watt
c6f1afaf71 Bug 664130 - Clarify some display list comments and code. r=roc. 2011-09-08 12:15:00 +01:00
Jonathan Watt
5b2a90280b Bug 677198 - Remove some Windows line endings introduces by bug 505115. r=mattwoodrow. 2011-09-08 12:15:00 +01:00
Geoff Lankow
3c03fb7ae5 Bug 230959 - Inconsistent extra 1 pixel width of XUL window. r=neil 2011-09-07 22:14:04 +12:00
Phil Ringnalda
a9f020bc32 Disable a few more test_reftests_with_caret.html tests on Windows, bug 682837, bug 681332, bug 682836
--HG--
extra : rebase_source : 57bf92c102ea8672894bd03821bfa3e70a20062b
2011-09-07 21:55:37 -07:00
Felix Fung
9bb0edf799 Bug 577266 - Correct misspellings in source code 2011-09-06 17:20:35 -07:00
Timothy Nikkel
8a8ca437fb Bug 652914. If we are not drawing background colors draw white instead of the default background color. r=roc 2011-09-07 16:40:41 -05:00
Fabien Cazenave
1867ac8ecd Bug 462758 - elements with contenteditable=true and position:absolute can be moved around the page; r=ehsan 2011-09-07 13:34:58 -04:00
Boris Zbarsky
f4f8fa2085 Bug 683952. Speed up iterating over the continuations of the frame when scrolling to it. r=roc 2011-09-06 22:57:46 -04:00
Phil Ringnalda
74787fa14f Back out fc945dec50bb and de06684dabc4 (bug 642551), 64c328251a24 (bug 683952) and 9d0d13998ebb (bug 684544) for orange on a CLOSED TREE 2011-09-06 21:42:54 -07:00
Boris Zbarsky
5ee508215f Bug 683952. Speed up iterating over the continuations of the frame when scrolling to it. r=roc 2011-09-06 22:57:46 -04:00
Timothy Nikkel
a14c147d1b Back out a38f82d29d97 (bug 652914) for causing reftest failures. 2011-09-06 15:19:31 -05:00
Timothy Nikkel
3dbf2aacf9 Bug 652914. If we are not printing background colors then don't even print the default background color. r=roc 2011-09-06 13:46:15 -05:00
Ms2ger
0038e2e573 Bug 684807 - Annotate crashtest assertions on Android; r=philor 2011-09-06 18:35:43 +02:00
Mats Palmgren
b94c2b063e Bug 684574 - InternalInvalidateThebesLayersInSubtree should recurse on the subdocument root frame. r=roc 2011-09-06 14:56:45 +02:00
Matt Woodrow
a5e0a1b39b Bug 682922 - Disable preserve-3d on scroll frames. r=roc 2011-09-05 10:25:35 +12:00
Chris Pearce
c28e8a66d9 Bug 545812 - Break out of DOM full-screen mode upon non-alpha-numeric key input. r=smaug 2011-09-05 08:40:18 +12:00
Kyle Huey
72315e08d4 Bug 683149: Break out layout memory reporters on a per-shell basis. r=bz 2011-08-31 06:38:03 -04:00
Phil Ringnalda
04f58c3af1 Bug 680164 - Disable on Windows the test_reftests_with_caret.html tests that were silently failing, r=ehsan 2011-08-24 08:04:16 -07:00
Jonathan Griffin
be21706dbd Bug 678420 - target div during back nav, r=ehsan, a=testonly 2011-08-22 11:17:37 -07:00
Matt Woodrow
fd0bfbd9fd Bug 681858 - Improve performance of gfx3DMatrix multiplication by reverting to 2d operations where possible. r=derf 2011-08-27 12:07:05 +12:00
Matt Woodrow
f9d4b0bc4e Bug 505115 - Part 15 - Add 4D Vectors, Quaternions and gfx3DMatrix functions. r=derf 2011-08-27 12:06:03 +12:00
Matt Woodrow
ec5a391004 Bug 505115 - Part 14b - Layout support for -moz-transform-style. r=roc 2011-08-27 12:01:46 +12:00
Matt Woodrow
312e8b4031 Bug 505115 - Part 14a - Add -moz-transform-style css property. r=dbaron 2011-08-27 12:01:06 +12:00
Matt Brubeck
fc19fcb962 Back out 14463b9d2d14 and 97d43d93ab55 (Bug 621363 and Bug 676274) because of mochitest-browser-chrome leaks 2011-08-26 15:28:28 -07:00
Joel Maher
43d4ca55ac Bug 676274 - refactor specialpowers so we can use the api in mochitest-chrome without specialpowers. r=ted, a=test-only. 2011-08-26 15:47:18 -04:00
Mats Palmgren
2a1e806d9f Bug 653649 - New way of getting child lists from frames. (part 5/5) r=roc
Add a kPrincipalList alias in nsCSSFrameConstructor.cpp to avoid
the nsIFrame:: prefix in numerous places.
2011-08-24 22:54:30 +02:00
Mats Palmgren
6894179e71 Bug 653649 - New way of getting child lists from frames. (part 4/5) r=roc
Remove the nsIAtom* child list names and use child list ID enum instead.
2011-08-24 22:54:30 +02:00
Mats Palmgren
f06792a6ef Bug 653649 - New way of getting child lists from frames. (part 3/5) r=roc
Update GetAdditionalChildListName consumers to use the new
child list iterator instead.
2011-08-24 22:54:29 +02:00
Boris Zbarsky
eb5b744132 Bug 659350 part 4. Change some tests that depend on the old behavior where inline event handlers hang directly off the JSObject to not depend on it. r=smaug 2011-08-24 15:49:25 -04:00
Benjamin Stover
b8dce1ee99 Bug 680126 Use ColorLayers for presshell painting and correct painting area r=roc 2011-08-23 15:59:43 -07:00
Marco Bonardo
20cfe9e21b Backout changeset 1720b28e3115 (Bug 678420) since it caused an exponential increase of Win M4 failures. 2011-08-23 11:05:14 +02:00
Jonathan Griffin
3b4736a2c7 Bug 678420 - target div during back nav, r=ehsan, a=testonly 2011-08-22 11:17:37 -07:00
Nicholas Nethercote
5759d6b971 Bug 680827 - Undo nsPresArena workaround from bug 678422. r=roc. 2011-08-21 23:34:11 -07:00
Ed Morley
ffbfafd053 Merge mozilla-central and mozilla-inbound 2011-08-21 19:14:08 +01:00
Mats Palmgren
81f15bf0c6 Bug 677582 - Implement CSS3 text-overflow: <left> <right> in layout. r=roc 2011-08-20 22:41:39 +02:00
Jonathan Griffin
06ec0209df Bug 680164 - Comment out failing subtests of test_reftests_with_caret.html which are being masked by bug 678420. r=ehsan, a=testonly
--HG--
extra : rebase_source : 9df9ea32d3213acd2b7ddc461df20da79167c40a
2011-08-19 15:56:25 -07:00
Oleg Romashin
9ed09830e6 Bug 621228 - Make plugins listening presShell SetActive calls. r=jst 2011-08-18 22:08:38 +02:00
L. David Baron
4deb9f1caa Fix nsLayoutUtils::ComputeSizeWithIntrinsicDimensions to produce correct results when one of the tentative height/width (i.e., the intrinsic height/width) is 0. (Bug 677091) r=roc
When either the intrinsic width or the intrinsic height is 0, the
element does not have an intrinsic ratio, and thus the table that
ComputeAutoSizeWithIntrinsicDimensions is implementing technically
doesn't apply.  However, it can quite straightforwardly produce the
correct results despite that, if we correctly apply the
min/max-width/height properties.
2011-08-17 17:54:59 -07:00
Kyle Huey
85ee29aad8 Merge mozilla-inbound to m-c to catch the 8 train. 2011-08-16 06:55:39 -04:00
Scott Johnson
933fb53b10 Bug 673984 - Fix crash in nsImageLoader::DoRedraw by clearing image loaders even on ignore of frame destruction callbacks. [r=dbaron,dholbert] 2011-08-15 11:44:15 -07:00
L. David Baron
e9801c3364 Remove nsPresContext::GetMetricsFor, which was always a bad idea since it uses the generally-incorrect language-from-charset. (Bug 678671, patch 4) r=roc
This fixes the one remaining caller (the debugging code to visually
display reflow counts!) to just pass a null language, since it's just
debugging code.
2011-08-14 10:08:04 -07:00
L. David Baron
0cd491390d Replace all uses of nsLayoutUtils::SetFontFromStyle with GetFontMetricsForFrame or GetFontMetricsForStyleContext and remove SetFontFromStyle. (Bug 678671, patch 2) r=roc
There was nothing wrong with SetFontFromStyle, except that it's just one
more API to think about (and one more API to audit and modify for font
inflation work to happen in bug 627842).
2011-08-14 10:08:04 -07:00
Matt Woodrow
6ed2caca3d Bug 677878 - Round untransformed rects outwards. r=roc 2011-08-16 15:44:22 +12:00
Daniel Holbert
fac97ef7b6 Bug 473236, 2011 edition: remove executable bit from files that don't need it, in /layout. [test-only, file-permissions-only] DONTBUILD 2011-08-15 17:55:02 -07:00
Jonathan Hage
822cfb4c1d Bug 668204 - Merge nsMathMLmunderFrame and nsMathMLmoverFrame into nsMathMLmunderoverFrame. r=karlt 2011-08-13 17:22:12 +02:00
Ms2ger
66ab4757eb Merge m-c to m-i 2011-08-13 14:47:03 +02:00
Malini Das
a0832b693a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Malini Das
da32b5cbd3 Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- update tests. r=jmaher, a=test-only 2011-08-12 12:21:37 -04:00
Malini Das
e306b1b5aa Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- chrome. r=jmaher, a=test-only 2011-08-12 12:21:36 -04:00
Malini Das
0efd71b59a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- harness. r=jmaher, a=test-only 2011-08-12 12:21:35 -04:00
Matt Brubeck
f2cba5adcb Merge the last green changeset from mozilla-inbound to mozilla-central 2011-08-12 06:41:55 -07:00
Boris Zbarsky
9c3c3f2062 Bug 670467. Correctly reresolve style on non-first continuations and non-first parts of {ib} splits even when we're restyling both an ancestor of the element and the element itself. r=dbaron 2011-08-11 23:52:21 -04:00
Nicholas Nethercote
8b205c5633 Bug 678422 - Avoid wasting half of nsPresArena's allocated memory due to clownshoes. r=roc. 2011-08-11 18:53:29 -07:00
Ms2ger
9414376b01 Bug 677101, part b - Remove nsContentUtils.h includes from headers; r=volkmar 2011-08-11 15:29:50 +02:00
Rafael Ávila de Espíndola
9ca4b64c4b Bug 678222 - Fix build with clang and c++0x; r=roc
Change AppUnitsPerDevPixel to return a PRUint32. It should never return
negative values and it is used in initializer lists that expect unsigned
values, which is not valid c++0x.
I have also change the member variables to be unsigned and converted
a sentinel value to use 0 instead of -1. UINT32_MAX should work fine too
if you like it better.
2011-08-11 19:19:03 -04:00
Josh Matthews
e46409280a Backing out bug 675669, due to its controversial landing. 2011-08-15 20:15:17 -04:00
Josh Matthews
bc4f34b907 Bug 675669 - Ignore paint suppression for hit testing. r=ehsan 2011-08-08 19:05:50 -04:00
Mats Palmgren
66c48bce55 Bug 663375 - When text color is darkened, darken text-decoration color too. r=dbaron 2011-08-09 17:14:36 +02:00
David Zbarsky
b849d09dcc Bug 672536 - Merge nsISelection2 into nsISelectionPrivate r=smaug 2011-08-07 16:17:00 -04:00
Jeff Walden
e1690fa43c Bug 609714 - Properly compute background image size for vector background images lacking intrinsic sizes or an intrinsic aspect ratio. r=dholbert, r=dbaron
--HG--
extra : rebase_source : 9b018973a13a50f7616cac2a369bc3a61ccd5927
2011-01-13 04:40:12 -06:00
Matt Brubeck
214dcfc0fc Merge last green changeset on m-c to mozilla-inbound 2011-08-08 14:21:41 -07:00
Ms2ger
7c8d83cd86 Bug 677101 - Move nsAutoLayoutPhase to its own header; r=tn 2011-08-08 17:14:34 +02:00
Kyle Huey
b076ca1dd7 Merge m-i to m-c. 2011-08-08 08:18:51 -04:00
Alexander Surkov
89610eda17 Bug 665335 - Don't trigger PresShellActivated when presshell is not activated, r=tbsaunde, roc 2011-08-08 15:57:45 +09:00
Markus Stange
dd80086631 Bug 676387 - XUL elements with -moz-appearance should ignore clicks in their overflow. r=roc 2011-08-08 20:31:52 +02:00
Neil Deakin
cac8593a48 Bug 585069, support ratio scaling for xul images, r=dbaron 2011-08-05 15:24:24 -04:00
Justin Lebar
aa17ad67fe Bug 646641 - Part 2: Update SHistory so it understands that SHEntries may share content viewers. r=smaug
--HG--
extra : rebase_source : 431dafff170f2e6c8aa3429d5ec0f444efc53a10
2011-05-13 15:42:36 -04:00
Vitor Menezes
c3e1ce33e1 Fix apparent rounding issues with new text decoration code. (Bug 403524) r=dbaron
Rendering text decorations far away from the frame's baseline seems to
sometimes introduce rounding issues. This patch addresses that by
avoiding snapped-baseline weirdness and using a different argument to
nsTextFrame::PaintTextDecorations in some computations that didn't
really need to use the snapped baseline anyway.
2011-08-03 11:30:58 -07:00
Marco Bonardo
b92ca56a08 Merge last green changeset from mozilla-inbound to mozilla-central 2011-08-03 10:46:22 +02:00
Masayuki Nakano
1380b10143 Bug 675865 backout new dragginf for selection handling code from Mozilla8 r=smaug (backed out patches are: bug 552707, bug 644621, bug 670058, bug 670508, bug 671319) 2011-08-03 12:39:02 +09:00