dbaron%fas.harvard.edu
edbbd33e17
Remove attempted workaround for CantRenderReplacedElement crash that didn't fix the crash (which is now fixed the right way).
...
Clean up the FrameManager a bit, mainly by moving the destruction of the frame tree into the |Destroy| method rather than doing it in the destructor. This would make it safer to convert nsIFrameManager to IDL and use the frame manager from JS. It also reduces the risk of leaks caused by having something owned by a frame own the frame manager. Breaking cycles in a destructor can be risky because the objects entrained by the cycle could include the object whose destructor would break the cycle.
b=65800 r=waterson@netscape.com sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@88603 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-06 01:46:03 +00:00
pollmann%netscape.com
c7b33ed83b
Bug 62713: Only save scroll position in SH if offset from origin, only put entries in state table if state was created, cleanups, r=jst@netscape.com, sr=vidur@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@86291 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-06 02:32:04 +00:00
hyatt%netscape.com
b98496bb42
Fix for 55292, r=ben, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@86010 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 00:54:47 +00:00
dbaron%fas.harvard.edu
5f0a7ab9bd
Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@85654 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 23:06:33 +00:00
buster%netscape.com
31a79a4925
bug 56432 ()
...
the problem was a factorial algorithm for finding primary frames.
fixed by added a hinting mechanism that takes advantage of existing
primary frame cache, greatly reducing the cost for the common case.
r=rods
sr=waterson
git-svn-id: svn://10.0.0.236/trunk@84973 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-16 22:10:04 +00:00
rods%netscape.com
a6e0d47c5a
removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
...
Bug 61274, r=buster sr=waterson
git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
attinasi%netscape.com
a684a2fc7f
Fixes regression due to Style Data sharing: forcing shared contexts to be unique now when they have to be reresolved. b=63118 r=karnaze@netscape.com a=buster@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@83959 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-21 22:16:38 +00:00
hyatt%netscape.com
82140bea60
Fix insertion point reparentin gissue with blocks. r=hixie, a=ben
...
git-svn-id: svn://10.0.0.236/trunk@82968 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-28 10:10:41 +00:00
hyatt%netscape.com
42a6ac59c1
Fix for 51264. r=danm, a=ben
...
git-svn-id: svn://10.0.0.236/trunk@82920 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-27 22:00:33 +00:00
warren%netscape.com
a8b9664a8c
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
...
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
attinasi%netscape.com
49df5c9af2
Added default implementation for frames to allow a frame to specify which frame provides its parent style context. Also reworked ReResolveStyleContext and VerifyStyleTree to allow the style context tree to diverge from the frame tree. b=45210 r=karnaze
...
git-svn-id: svn://10.0.0.236/trunk@78919 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 22:47:09 +00:00
pierre%netscape.com
63613c733a
Fix blocker bug #52039 (crash when resolving pseudo-style for anonymous content).
...
git-svn-id: svn://10.0.0.236/trunk@78710 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 03:58:22 +00:00
jst%netscape.com
071de302f4
Fixing nsbeta3+ bug 28277. Add a callback to nsHTMLImageElement so that we know when a image created in JavaScript has loaded (or fails to load), this is needed to support onload and onerror event fireing and also to support the '.complete' property on images create in JavaScript. r=nisheeth@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@77858 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 07:05:08 +00:00
pollmann%netscape.com
d5ebd0e9c7
Bug 32770: Save scroll position in session history r=nisheeth
...
git-svn-id: svn://10.0.0.236/trunk@72258 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 00:35:46 +00:00
attinasi%netscape.com
2faff3ea46
Removed erroneous assertion: b=38768 r=dcone
...
git-svn-id: svn://10.0.0.236/trunk@71735 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 23:05:30 +00:00
buster%netscape.com
8eb430ca4d
bug 38665
...
r=rickg a=rickg
fixed an optimized-only crash that looks like a race condition
where we send a message containing a pointer to a frame back to
the frame manager after the frames have been deleted.
git-svn-id: svn://10.0.0.236/trunk@71499 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 03:37:33 +00:00
attinasi%netscape.com
11e29319e1
Added a new method GetCanvasFrame which walks down from the root frame looking for the frame that represents the canvas. b=40217 r=kmcclusk a=karnaze
...
git-svn-id: svn://10.0.0.236/trunk@71188 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 22:33:12 +00:00
attinasi%netscape.com
8ebbdd39ea
Fixed a problem with the method AttributeAffectsStyle: it was erroneously ignoring the fact that HTML attributes can affect style even if there are no CSS rules with thos attributes in the selectors. Changed to restrict the selector evaluation to XML elements. r=shaver, a=karnaze, b=39642
...
git-svn-id: svn://10.0.0.236/trunk@70872 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 23:02:31 +00:00
shaver%mozilla.org
8894dc47fd
make sure that style attributes get the reresolve dance
...
git-svn-id: svn://10.0.0.236/trunk@70111 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:05:47 +00:00
shaver%mozilla.org
f792546214
Significantly reduce the amount of time we blow on style reresolution by
...
tracking the attributes which appear in CSS selectors, and only firing
a complete reresolution when we change one of those. In the irrelevant-attr
case, we just let the frame update itself and get on with our lives right
away. Fixed 38378, r=brendan, booyah.
Also, when setting an attribute to the same value that it currently holds,
don't think about it especially hard, and _don't_ go anywhere near the
style code. Fixed 21879, r=brendan, boo_yah_.
git-svn-id: svn://10.0.0.236/trunk@69948 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 02:43:33 +00:00
mkaply%us.ibm.com
de7be3a9e5
# 34082
...
r= troy
OS/2 bring up continues - PR_CALLBACKs for VisualAge
git-svn-id: svn://10.0.0.236/trunk@67947 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 23:07:11 +00:00
attinasi%netscape.com
f07445d22b
Fixed PseudoStyle resolution for primary style context in ReResolveStyleContext: was passing child-content when it should be passing parent-content. r=pierre
...
git-svn-id: svn://10.0.0.236/trunk@66898 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 03:49:19 +00:00
nisheeth%netscape.com
68adc31658
Fix for bug 30958: Reflow commands are now processed asynchronously all the time. The semantics of the API for queuing and processing reflow commands has changed. Now, AppendReflowCommand() initiates an asynchronous reflow event and all reflow command processing happens when that event fires. It is no longer possible for consumers outside the presentation shell to call ProcessReflowCommands() synchronously. Because of this change, reflow locks are no longer needed and have been removed.
...
git-svn-id: svn://10.0.0.236/trunk@66183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 07:13:57 +00:00
rickg%netscape.com
dfec82a91e
add null ptr check to stop crash seen in talkback
...
git-svn-id: svn://10.0.0.236/trunk@64291 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 01:08:36 +00:00
slamm%netscape.com
7fcc669c9f
Change "struct" to "class ... { public:" to quiet a warning.
...
git-svn-id: svn://10.0.0.236/trunk@64061 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 21:50:40 +00:00
attinasi%netscape.com
acb33ec403
ReResolveStyleContext now checks for the case where a background image is no longer used, in which case it stops the load for the frame. r=buster,pierre b=27042
...
git-svn-id: svn://10.0.0.236/trunk@61031 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 02:49:01 +00:00
dveditz%netscape.com
3d8644431b
Attempting to fix nsCOMPtr .get() related bustage on Linux
...
git-svn-id: svn://10.0.0.236/trunk@60788 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 02:55:23 +00:00
beard%netscape.com
b7742c48e0
fixes nsIAtom leaks, bug # 25761, r=waterson
...
git-svn-id: svn://10.0.0.236/trunk@60767 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 01:17:18 +00:00
pp%ludusdesign.com
a2927ce43e
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
...
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
rods%netscape.com
4161da0c7d
when an option contained a comment node and and an attr was unset case a
...
WipeContainingBlock to be called. This was because the undisplayed node had a psuedo
style that wasn't being properly reolved to this code thought the comment was now visible
instead of being hidden.
b=none r=pierre,attinasi
git-svn-id: svn://10.0.0.236/trunk@59070 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 15:03:00 +00:00
nisheeth%netscape.com
d23c598d3c
r=vidur. Add support for a new pref "layout.reflow.async.afterDocLoad" that enables async reflow in the pres shell only after the document is done loading. Cleaned up ExitReflowLock() so that it uses preferences to decide whether to do async reflow, not a parameter.
...
git-svn-id: svn://10.0.0.236/trunk@58611 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 16:00:44 +00:00
troy%netscape.com
60471abd92
b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
...
child list and changed ReparentFrameView() to check it.
git-svn-id: svn://10.0.0.236/trunk@58373 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 01:16:50 +00:00
hyatt%netscape.com
8f6502ffb7
Fixes for bugs 17460 and 21656. r=travis
...
git-svn-id: svn://10.0.0.236/trunk@57811 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 09:28:54 +00:00
nisheeth%netscape.com
43d584b730
a=donm, r=vidur.
...
- Added support for two prefs:
a) a boolean pref "layout.reflow.async" that turns asynchronous reflow on/off. The default is off.
b) an integer pref "layout.reflow.timeslice" that specifies a reflow timeslice, in microseconds. When asynchronous reflow is on, the reflow command processing loop in ProcessReflowCommands() tries to return to the event loop if the time spent processing reflow commands exceeds this timeslice. The default value is 1 second.
git-svn-id: svn://10.0.0.236/trunk@56473 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-23 02:02:33 +00:00
pierre%netscape.com
c7a56395b0
20042 "crash on www.netscape.com". Back out my change from v1.30 to fix a crash on InfoWorld which was caused by invalid html code and can no longer be reproduced with their current presentation.
...
git-svn-id: svn://10.0.0.236/trunk@55057 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 09:19:16 +00:00
dougt%netscape.com
0c53e29d87
fix for 18078. r=mstoltz,warren
...
git-svn-id: svn://10.0.0.236/trunk@54648 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:32:43 +00:00
nisheeth%netscape.com
9c5972cc6e
Fix for bug 20194. r=beard. Thank to Patrick Beard for finding this leak in CaptureFrameStateFor().
...
git-svn-id: svn://10.0.0.236/trunk@54642 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 00:17:40 +00:00
tbogard%aol.net
ae5a81e394
Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
...
git-svn-id: svn://10.0.0.236/trunk@54392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-24 06:03:41 +00:00
pierre%netscape.com
5814ba61a0
18285: crash on infoworld. When we append a change to the ChangeList, make sure we return its hint, especially if it's a HINT_REFLOW because the reflow may delete some frames that are referred to elsewhere in the ChangeList. r=troy.
...
git-svn-id: svn://10.0.0.236/trunk@54231 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:08:20 +00:00
dmose%mozilla.org
92d791b7b0
updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
troy%netscape.com
3513334988
Moved a bunch of stuff out to a nsIFrameDebug interface
...
git-svn-id: svn://10.0.0.236/trunk@52427 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:12:45 +00:00
troy%netscape.com
bd46e7911f
Changed SetView/GetView to take an additional argument which is the
...
pres context
git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
nisheeth%netscape.com
b6ce91bcb5
r=troy. Siblings of frames get traversed iteratively during capturing/restoring of state. Earlier they were traversed recursively which was causing the call stack to grow too large.
...
git-svn-id: svn://10.0.0.236/trunk@51623 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:43:49 +00:00
troy%netscape.com
dced08401d
r=kipp@netscape.com
...
Added API to get/set properties on frames. Also changed nsContainerFrame
to use a property to implement the frame overflow list. This saves 4 bytes
per container frames
git-svn-id: svn://10.0.0.236/trunk@51358 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:11:43 +00:00
troy%netscape.com
36419b7094
b=16781, r=vidur@netscape.com
...
Re-ordered destructor to delete maps after destroying the frame hierarchy
git-svn-id: svn://10.0.0.236/trunk@51154 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:06:37 +00:00
troy%netscape.com
0bdf9140d7
Changes to frame property API (code's not being used yet)
...
git-svn-id: svn://10.0.0.236/trunk@51135 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 14:41:55 +00:00
troy%netscape.com
670fa6c8d6
Change to code that's not currently being used. Before it gets used it
...
will get code reviewed
git-svn-id: svn://10.0.0.236/trunk@51111 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 04:52:33 +00:00
troy%netscape.com
c8965f4626
r=kipp@netscape.com Moved ownership of root frame (and frame hierarchy) over to
...
the frame manager
git-svn-id: svn://10.0.0.236/trunk@51042 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:20:37 +00:00
troy%netscape.com
a431ec5d07
b=16615. Two line change. Added check for case of root node being a leaf.
...
The rest of the changes are NOT yet in use. They willbe reviewed by Kipp before
they're turned on
git-svn-id: svn://10.0.0.236/trunk@51001 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:02:09 +00:00