Commit Graph

1683 Commits

Author SHA1 Message Date
Robert O'Callahan
d56dfa741e Bug 513082. Instead of passing aDirtyRect to nsDisplayItem::Paint, have nsDisplayList::OptimizeVisibility (renamed to ComputeVisibility) compute the intersection of the visible region with the bounds of each display item and store the result in the item's mVisibleRect. This lets us do less work to paint display items which have a small intersection with the visible region but a large intersection with the bounding-box of the visible region. r=dbaron
--HG--
extra : rebase_source : 76db4b87ef9e5a6e9de7677edc08c26e2cbc462e
2009-09-07 12:35:14 +12:00
Robert O'Callahan
79306e31ef Bug 442715. Invalidate the whole border-box when an element's size changes and its background is being clipped by a border-radius. r=dbaron
--HG--
extra : rebase_source : b9e738ebd64cbcc871a7d1a7178e1eccf64e66f1
2009-09-25 11:52:13 +12:00
Robert O'Callahan
7fa763ef88 Bug 509693. Remove eWindowType_java (unused) and actually use eWindowType_plugin. r=josh
--HG--
extra : rebase_source : 14ebf24d00378e65e75b75692b9d82a020966db1
2009-09-24 21:32:20 +12:00
Robert O'Callahan
6de615de1b Bug 510110. Extend MozAfterPaint event to contain list of PaintRequest objects with information about individual invalidations. r=dbaron,sr=jst
--HG--
extra : rebase_source : 0e8b9f424d50c2d9e346f7ff15834202a6c101d1
2009-09-04 16:49:18 +12:00
Mats Palmgren
34d1363139 Remove unused methods. b=516976 r=bzbarsky 2009-09-20 23:37:30 +02:00
Timothy Nikkel
5f8ff6cfdc Bug 514127. Draw the canvas background color on the whole canvas area instead of just the viewport when RenderDocument is called with ignore scrolling flag. r=roc 2009-09-19 12:20:42 +02:00
Michael Ventnor
7b53709720 Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc 2009-09-18 20:18:35 +02:00
Mats Palmgren
4e06ef038e Bug 233463, patch 5 - Remove nsFrameList(nsIFrame*) ctor. r=bzbarsky 2009-09-18 13:09:36 +02:00
Mats Palmgren
90fe0851f3 Bug 233463, patch 4 - Make nsIFrame::mNextSibling private. r=bzbarsky 2009-09-18 13:09:36 +02:00
Mats Palmgren
7ca7fe2f91 Bug 233463, patch 3 - Make Destroy/RemoveFrame() methods void and assert that the frame to remove is present. r=bzbarsky 2009-09-18 13:09:36 +02:00
Mats Palmgren
377056c269 Bug 233463, patch 2 - Introduce nsFrameList::mLastChild member for fast access to the last sibling frame. r=bzbarsky 2009-09-18 13:09:36 +02:00
Mats Palmgren
8279fd683e Bug 233463, patch 0 - Use nsFrameList methods instead of nsIFrame::SetNextSibling. r=bzbarsky 2009-09-18 13:09:35 +02:00
Neil Deakin
3599d06edc Bug 516991, get the right scrollable view from within the selection scroll timer, otherwise scrolling is jumpy, r=roc 2009-09-17 16:33:29 -04:00
Josh Aas
923b0e293c Gecko should use NPAPI directly, remove nsplugindefs.h abstractions. b=516661 r/sr=jst 2009-09-16 21:30:26 -04:00
Mats Palmgren
948203eb7d Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc 2009-09-16 17:01:36 +02:00
Zack Weinberg
1bbb6caf46 Bug 497495 (frame poisoning) part 4: Change nsPresArena to maintain separate free lists for every frame class, based on its FrameIID. Pass the necessary information in from AllocateFrame and FreeFrame. r=roc sr=dbaron 2009-09-16 10:00:04 +12:00
Justin Dolske
f221ae86bd Backed out changeset a3f33def2dca (bug 497495 part 4) 2009-09-14 17:26:08 -07:00
Boris Zbarsky
efc26f0c70 Bug 497495 (frame poisoning) part 4: Change nsPresArena to maintain separate free lists for every frame class, based on its FrameIID. Pass the necessary information in from AllocateFrame and FreeFrame. r=roc sr=dbaron 2009-09-14 17:29:56 -04:00
Daniel Holbert
16a6a6205f Bug 503961: Initialize block-reflow-state's nsOverflowContinuationTracker a little later, so that it doesn't end up with stale overflow-list pointers. r=fantasai r=roc 2009-09-13 17:26:01 -07:00
Neil Deakin
02a7469b05 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-13 09:13:16 -04:00
Bobby Holley
0b02012ed8 Bug 435296 - Sync decode handling for decode-on-draw. r=roc 2009-09-12 16:44:18 -06:00
Bobby Holley
2d5ec55945 Bug 435296 - Decode-On-Draw. r=joe,roc,bz,dolske,peterw sr=vlad 2009-09-12 16:44:18 -06:00
Zack Weinberg
17eb5a6efc Bug 497495 part 3: Add methods to every nsFrame subclass that expose the as-allocated identity of every frame object. Also some cleanups to the QueryFrame implementation. r=dbaron sr=roc 2009-09-12 17:49:24 +01:00
Jesse Ruderman
28f2ece525 Add some crashtests 2009-10-15 13:26:59 -07:00
L. David Baron
399ff738b4 Make empty bullets (i.e., those for list-style-type:none) not contribute to layout. (Bug 512631) r=roc 2009-09-11 06:46:36 -04:00
Timothy Nikkel
b8eade5f1b Bug 514634. Remove unneeded second call to SetNextSibling, add some assertions, and fix a comment. r=fantasai
--HG--
extra : rebase_source : ab9ca9100ae41a022c4a0c129f98d5918d3c8c44
2009-09-11 10:26:30 +12:00
Neil Deakin
a5bfe49767 Bug 503943, back out mouse capture patch, CLOSED TREE 2009-09-10 12:11:41 -04:00
Neil Deakin
2ca788ce33 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-10 08:51:36 -04:00
Alexander Surkov
2e6d6da4f4 Bug 417929 - nsIAccessiblTable selectRows does not unselect previously selected rows, r=marcoz, davidb, ginn, smaug, sr=roc 2009-09-10 11:06:54 +08:00
Markus Stange
4ad22e5a56 Bug 514988 - Remove unused nsIEventListener interface and update users. r=roc
--HG--
extra : rebase_source : b69928341cb6402d035fa242dde3c85367d96984
2009-09-08 09:50:22 +12:00
Markus Stange
e48beb49fa Bug 469774 - Never descend into nsMenuPopupFrames when building display lists. Fixes drawing bugs that occurred when a caret was visible in a popup. r=roc
--HG--
extra : rebase_source : 9979c98dd1e7dac3994f2b3b5401306656d0a3b7
2009-09-08 09:43:20 +12:00
Mats Palmgren
c6ef676b9d Don't fall off the edge without returning a value. b=514689 r=fantasai 2009-09-04 23:07:30 +02:00
Benjamin Smedberg
008e309c7f Bug 513032 - remove empty conditionals in our makefiles, r=ted 2009-08-27 10:48:18 -07:00
Dão Gottwald
09fc562917 Backed out changeset 1e6d52401dd2 2009-09-04 15:32:17 +02:00
Michael Ventnor
6b82353959 Bug 512988 - Text-shadow blur and underline messes up with padding-left. r+sr=roc 2009-09-04 14:24:26 +02:00
Robert O'Callahan
cb2741ab96 Bug 503657. Treat a newline character as a valid boundary for line breaking analysis. r=smontagu
--HG--
extra : rebase_source : f64e4629aca2c394f7331c342ad33ac84223c429
2009-09-02 14:46:48 +12:00
Robert O'Callahan
d70f216852 Bug 503399. Never count trimmed trailing whitespace as whitespace that should received justification spacing; in this case we were using doing that when computing caret position. r=smontagu
--HG--
extra : rebase_source : ce1488d66893565e6f338d128ff1393c456c93f6
2009-09-02 14:46:48 +12:00
Robert O'Callahan
1832439e78 Bug 511951. Don't hide the inner view of a subdocument frame's hidden view. r=dbaron
--HG--
extra : rebase_source : 3d6decc545a48ea90c95eb66e8dc68177fb6086b
2009-08-24 22:18:19 -07:00
Robert O'Callahan
7edc6663cd Bug 508134. Stop managing the visibility of views from SyncFrameViewProperties, except for nsSubdocumentFrames. r=dbaron
--HG--
extra : rebase_source : 8cda020494dfaec55076a4bf865e848ffb59656b
2009-08-25 00:44:42 -07:00
Robert O'Callahan
85e1db093e Bug 503813. Events targeted at generated content frames should get the non-generated ancestor as target element. r=dbaron
--HG--
extra : rebase_source : ee218effc8b98ba19b9b2ce9ff29ce4e8dfe0a2e
2009-09-02 14:46:33 +12:00
Timothy Nikkel
4c95346537 Bug 513394. Make sure that mPrevChild gets set on nsBlockReflowState. r=dbaron 2009-09-02 11:33:15 -04:00
Boris Zbarsky
86994c8fce Bug 478504. Need to clear textruns in bidi continuations too. r=roc 2009-09-02 11:32:01 -04:00
fantasai
6bc41a439f Bug 492627 - Remove Placeholder Continuations [Part VII: More intelligent deletion of floats and overflow containers] r=roc 2009-08-31 11:25:37 -07:00
fantasai
059cc95c6b Bug 492627 - Remove Placeholder Continuations [Part VI: Handle <br clear>] r=roc 2009-08-31 11:25:36 -07:00
fantasai
d5c48032c3 Bug 492627 - Remove Placeholder Continuations [Part V: Reimplement float splitting without placeholder continuations] r=roc 2009-08-31 11:25:36 -07:00
fantasai
973c4e83aa Bug 492627 - Remove Placeholder Continuations [Part IV: Switch float layout APIs to pass float directly, without placeholder] r=roc 2009-08-31 11:25:35 -07:00
fantasai
01a3a6c947 Bug 492627 - Remove Placeholder Continuations [Part III: Remove current float-splitting code.] r=roc 2009-08-31 11:25:35 -07:00
Bobby Holley
5d8c8c791d Bug 513544 - Crash [@nsImageFrame::DisplayAltFeedback] - r=bzbarsky 2009-08-30 23:06:11 +02:00
Robert O'Callahan
7143e4ece9 Backout fix for bug 523468 due to crashing tests 2009-10-27 21:46:39 +13:00
Robert O'Callahan
28cab8ef6c Backed out changeset 9f5177a978ac 2009-10-27 21:46:18 +13:00
Doug Turner
ea91fe7947 Bug 521257 - Support NPImageExpose on Maemo/Hildon only. r=roc 2009-10-26 22:18:35 -07:00
Robert O'Callahan
d6f331fed2 Bug 523468. Force next line to be reflowed whenever we push or pull children from an inline frame. r=dbaron 2009-10-27 14:43:56 +13:00
Robert O'Callahan
56aad34bd4 Bug 516885. Pass separate visible-before-move and visible-after-move regions into ComputeVisibility, to make code clearer because we don't have to overload a single region, and which also lets us fix ambiguities related to clipping. r=dbaron 2009-10-07 17:28:41 +13:00
Robert O'Callahan
e7c528888e Bug 522394. Don't bother descending into zero-opacity content when constructing display list. r=dbaron 2009-10-27 14:43:55 +13:00
Doug Turner
1fc21399d6 Bug 492848 - Visibility notify event API for windowless plugins. r=roc 2009-10-26 00:00:14 -07:00
Oleg Romashin
120e3e893c Bug 472821 - Force wmode preference required to make all plugins visible in fennec. r=joshmoz, sr=jst 2009-10-26 04:46:03 -04:00
Timothy Nikkel
5321e14840 Bug 520425. (nsI)CanvasFrame related cleanup. r=roc
--HG--
rename : layout/generic/nsHTMLFrame.cpp => layout/generic/nsCanvasFrame.cpp
rename : layout/generic/nsHTMLFrame.h => layout/generic/nsCanvasFrame.h
extra : rebase_source : 4fa62ac7dee06bbdad394eae1ce6aba82853a410
2009-10-08 01:18:18 -05:00
Jesse Ruderman
e1a92dde70 Add more crashtests 2009-08-27 21:11:40 -07:00
Jesse Ruderman
15e3a448a6 Add crashtests 2009-08-27 19:48:20 -07:00
Benjamin Smedberg
0df64c6bc4 Additional followup to bug 398573 - remove REQUIRES from the tree even when they are in makefile conditional blocks
--HG--
extra : rebase_source : cc65c34a414e6c67a5651fc9cf0b6bd709ebcdbd
2009-08-27 08:53:13 -07:00
Neil Deakin
139359f606 Bug 501815, don't allow drops on plugins, r=smaug 2009-08-27 08:51:46 -07:00
Bobby Holley
5a4aa8063d Bug 510001 - Fixed the hardcoded port and added an onerror debugging dump for the test for bug 507902. r=lumpy 2009-08-27 11:38:10 +02:00
Jonathan Watt
ed42a30cb8 Bug 508179. Implement 'pointer-events:none;' for all elements. r=roc, r=dbaron. 2009-08-26 20:53:35 -07:00
Josh Aas
23cdbbf4fe Bustage fix for bug 435041. 2009-08-26 18:21:50 -07:00
Josh Aas
65e80f6eb0 Implement Cocoa NPAPI event model. b=435041 sr=roc 2009-08-26 17:29:47 -07:00
Robert O'Callahan
75dc1beb9c Backed out changeset e2927bb26412 2009-08-26 14:49:18 -07:00
Zack Weinberg
18c763f2c5 Bug 497495 part 3a: rationalize the queryframe-implementation macro naming scheme, restructure the implementation to detect duplicate entries, and a couple fixes to the frame ID enumeration. r=dbaron sr=roc
Bug 497495 part 3b: update users of queryframe macros (strictly mechanical change). r=dbaron

--HG--
extra : rebase_source : ee672a17934227b408b83dc6b5cc4e4909652f72
2009-08-26 09:27:42 -07:00
Jesse Ruderman
93e766d08f Fix typo in assertion message 2009-08-25 21:50:41 -07:00
Benjamin Smedberg
2e9438fd2f Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted 2009-08-25 08:59:31 -07:00
Boris Zbarsky
36622c6995 Backed out changeset 4aa19414e651 (bug 488249) to fix test orange.
--HG--
extra : rebase_source : ae1c0155ec32b0887eff27ded77c6ba2b37dda64
2009-08-24 20:51:57 -04:00
David Zbarsky
932e28482f Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00
Bobby Holley
46f9d34303 Bug 510001 - Second round of debugging dumps for the test for bug 507902. r=lumpy 2009-08-24 12:49:41 +02:00
Mats Palmgren
96372404b6 Don't call CalculateContentBottom inside PR_MAX(), which evaluates its arguments twice. (Bug 511482) r=dbaron 2009-08-22 10:10:11 -07:00
Ryo Kawaguchi
54bb0a0d80 Implement background-image: -moz-image-rect(), which allows a region of an image to be used as a background image. (Bug 113577) r=roc, dbaron 2009-08-21 13:39:25 -07:00
Bobby Holley
a0d96f0c87 Bug 510001 - Added debugging dumps for the test for bug 507902. r=jwalden 2009-08-21 12:05:27 +02:00
Zack Weinberg
2cd31f70f9 Bug 510651: Fold nsIFrameDebug into nsFrame. r=dbaron sr=mrbkap 2009-08-20 14:52:48 -07:00
Masayuki Nakano
08277877f6 Bug 486735 Verdana.ttf gets a very thick underline with spelling errors r=dbaron+jboriss 2009-08-20 23:33:06 +09:00
Robert O'Callahan
a981cba29c Bug 508115. Test 2009-08-05 21:29:33 +12:00
Robert O'Callahan
6c601aeedb Bug 520316. Call DetachWidgetEventHandler on the right view. r=dbaron 2009-10-10 00:48:29 +13:00
Robert O'Callahan
2194dd18b0 Bug 520462. Test that mouse clicks transfer focus to plugins correctly. r=jmathies 2009-10-08 00:14:12 +13:00
Robert O'Callahan
f98cfc2882 Bug 520436. Interpret NPN_InvalidateRect rectangles as relative to the content-box, not the border-box. r=josh 2009-10-05 23:07:30 +13:00
Simon Montagu
f0251c1158 Don't propagate the FRAMES_ARE_EMPTY flag when continuations cross block frame boundaries. Bug 495875, r+sr=roc 2009-10-13 00:12:54 -07:00
Boris Zbarsky
55b2e31775 Bug 521525. Make sure to reflow kids with percentage heights if our computed height changes from specified to auto. r=dbaron 2009-10-12 18:27:24 -04:00
Taras Glek
45c73c60d8 Bug 515777 - move css files, hiddenWindow.html to jar r=bsmedberg sr=bz
--HG--
extra : rebase_source : c6ba6e900ceed210620d47f70c9b962a808a29fe
2009-10-12 12:31:50 -07:00
Boris Zbarsky
25c2a2fded Bug 488249 followup. Make some more HTML nodeinfos use the right namespace. 2009-10-01 11:54:10 -04:00
Masayuki Nakano
112ccb1451 Bug 509956 Bogus code in nsTextFrame::IsFloatingFirstLetterChild r=dbaron 2009-08-18 13:46:47 +09:00
Zack Weinberg
cc794998ac Bug 497495 (frame poisoning) part 2: Introduce nsIPresShell::AllocateMisc/FreeMisc functions; add an as-yet-unused "code" parameter to AllocateFrame/FreeFrame; fix up nsFrame to match; use AllocateMisc/FreeMisc for all non-frame pres arena objects; move clearing of frame objects from nsFrame::operator new to AllocateFrame. r=roc sr=dbaron 2009-08-17 20:21:06 -07:00
Timothy Nikkel
b58e21d8e7 Bug 510748 - still get assertions "reflow state computed incorrect width" and "non-root frame's desired size changed during an incremental reflow"; Don't report any padding or border on both axes if scrollbars are hidden; r=dbaron 2009-08-18 00:38:12 +02:00
Mats Palmgren
df74eb32c9 Use the right key for the overflow frame list frame property. b=508892 r=fantasai 2009-08-18 00:01:06 +02:00
Hashem Masoud
c8f711113e Bug 489502 - Replace NS_ASSERTION(0, ...) by NS_ERROR(...) in mozilla-central; r=benjamin 2009-08-14 16:09:00 +02:00
Robert O'Callahan
14c9b93519 Bug 507334, part 1: Remove nsDisplaySummary optimization, since it introduces extra display items that would disable the optimizations in part 2. r=dbaron 2009-08-13 19:09:50 -07:00
Markus Stange
04d8aa170a Bug 510149 - Changes to nsLayoutUtils::GetFrameTransparency. r=roc
--HG--
extra : rebase_source : 024d18340b423827524eb725d961d0907b90338d
2009-08-14 10:08:13 +12:00
Arpad Borsos
7812a885a6 Bug 509380 - Optimize nsPeekOffsetStruct for memory usage; r+sr=roc 2009-08-10 09:47:11 +02:00
Bobby Holley
ab96dfba96 Orange fix for bug 507902 tests. r=jwalden 2009-08-13 00:15:24 +02:00
Markus Stange
86545547c8 Bug 509876 - Clean up SyncFrameViewGeometryDependentProperties. r=roc
--HG--
extra : rebase_source : fdf898d51147231f33df507d28d927924dc465b8
2009-08-13 08:48:30 +12:00
Bobby Holley
40b38ce001 Tests for bug 507902.r=joe 2009-08-12 16:23:39 +02:00
Bobby Holley
ca7b88296e Bug 507902 - nsImageFrame static Icon Loads should not use the mListener of the first instantiated nsImageFrame.r=bz,joe 2009-08-12 16:23:38 +02:00
Neil Deakin
dd086e5826 Bug 230081, use proper cursors for frameset border resizing, r=dbaron 2009-08-12 10:03:35 -04:00
timeless@mozdev.org
854b7b365e Bug 506645 nsTypedSelection::AddItem doesn't always null check aOutIndex
r=smaug
2009-08-12 11:49:55 +02:00
timeless@mozdev.org
52c8602402 Bug 506628 deadcode in nsPluginInstanceOwner::ProcessEventX11Composited
r=karlt
2009-08-12 11:49:54 +02:00