Граф коммитов

253 Коммитов

Автор SHA1 Сообщение Дата
kmcclusk%netscape.com ce1acffe03 Rewrote nsContainerFrame::PositionChildViews to use the view tree instead of doing a recursive walk of the frame tree. Should improve page load performance bug 70211 r=attinasi@netscape.com sr=hyatt@netscape.com 2001-03-12 04:19:10 +00:00
erik%netscape.com 06d55ad850 bug 71370; author=simon@softel.co.il; r=attinasi; sr=erik; implement bidi
(bidirectional text) for languages such as Arabic and Hebrew; from IBM bidi
project; not part of build yet (due to #ifdef IBMBIDI)
2001-03-09 03:29:00 +00:00
pierre%netscape.com 9af01acf22 Reinstate my changes that were backed out 10 days ago. #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. r=attinasi,sr=buster. 2001-02-07 09:57:26 +00:00
mcafee%netscape.com 7ecf530933 Backing out pierre's change from 1/20 for performance reasons (66263). r=attinasi, a=granrose, phil 2001-01-25 02:58:12 +00:00
pierre%netscape.com 62bf433a35 #43457 split nsStyleSpacing into 4 smaller structures: nsStyleBorder, nsStylePadding, nsStyleMargin, nsStyleOutline. Review=attinasi. Pending Approval: buster. 2001-01-20 22:46:54 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
waterson%netscape.com 9bd4266798 Bug 19051. Remove code that computed and maintained nsTextRun. Instead, compute 'next text' when required by crawling the frame tree in nsLineLayout::FindNextText(). r=roc+moz@cs.cmu.edu 2000-07-27 05:16:08 +00:00
pierre%netscape.com 78e4562501 #42029 "Dynamic use of the clip property is causing repaint problems". Make the clip area coordinates conform to the latest spec. r=attinasi. 2000-06-22 05:28:36 +00:00
evaughan%netscape.com 14c154301b Fix for mac xp menus not comming up at all. 2000-05-18 00:37:27 +00:00
evaughan%netscape.com d4513de096 Fixed bug that crashed when menus are used with native scrollbars. 2000-05-17 04:45:44 +00:00
troy%netscape.com 6b04c3b5fa Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem
2000-04-25 04:43:11 +00:00
putterman%netscape.com 3822ffce4e Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:29:06 +00:00
troy%netscape.com b115bc7d04 Changed SyncFrameViewAfterReflow() to consider out-of-flow frames
as block-level as well. This covers the case where a floated or
absolutely positioned frame has its 'display' value set to 'inline'
and so we didn't recognise it as block-level
2000-04-23 04:33:23 +00:00
troy%netscape.com 9b393faa48 Changes to bring clipping inline with upcoming CSS2 errata 2000-04-23 00:56:16 +00:00
kmcclusk%netscape.com 1945225950 Clip now applies to child views. b=11660 r=buster@netscape.com
Prevent the invalidation of hidden views (1/2 patch from <Tomi.Leppikangas@oulu.fi> b=34466 r=buster@netscape.com
Prevent ViewManager1 from getting into endless loops (patch from <jst@citec.fi> b=25336 r=buster@netscape.com
tested=WINNT, Linux, Mac
2000-04-13 21:56:27 +00:00
dbaron%fas.harvard.edu 87e19c9cef Fix event targetting bugs by using paint layers in GetFrameForPoint, testing for visibility, and trying GetFrameForPoint on additional views if one fails. r=joki@netscape.com(, hyatt@netscape.com) b=12232,20051,21304,24474,26785, and remaining issues from 23161. 2000-03-22 02:43:08 +00:00
troy%netscape.com 5c43c5ae92 b=32301 r=buster@netscape.com Changed DeleteChildsNextInFlow() to also
check the frame's overflow list
2000-03-20 23:11:39 +00:00
joki%netscape.com b822db9d33 Fix bug 29515, prevent excess processing inside GetFrameForPoint. a:rickg, r:dbaron@fas.harvard.edu 2000-03-09 15:31:44 +00:00
pp%ludusdesign.com 58065dda04 Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot 2000-02-02 22:24:56 +00:00
troy%netscape.com 8a78d916a5 b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
joki%netscape.com a6880e49d9 Fix multiple event targetting bugs (23161, 10514, 13213, 16548, 19496, 12231) and reinstate the onchange event for text fields (bug 22472). r:rods 2000-01-18 15:17:31 +00:00
dbaron%fas.harvard.edu af22815866 Fix performance problem pointed out by Jim Nance that there is excessive creation and destruction of clip regions during painting. The fix stops using PushState() and PopState() to undo a translation, since that causes the creation and destruction of a clip region.
r=troy
2000-01-16 15:13:46 +00:00
nisheeth%netscape.com 14ec803b33 r=troy. nsContainerFrame::ReflowDirtyChild() always generates a reflow command targeted at its child. nsInlineFrame::ReflowDirtyChild() always passes up the reflow request to its parent. nsBlockFrame::ReflowDirtyChild() no longer has code for checking whether its parent is an area frame. 2000-01-12 21:52:58 +00:00
nisheeth%netscape.com 56525e3574 r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257. 2000-01-12 08:28:24 +00:00
troy%netscape.com c0644e2987 Changed to respect 'z-index' of 'auto' and call SetViewAutoZIndex() 1999-12-08 04:49:20 +00:00
troy%netscape.com 85012ab550 Change to how overflow is handled for absolutely positioned elements.
We no longer use nsIAraeFrame and now it's folded into the overflow
area in the reflow metrics
1999-12-06 15:49:53 +00:00
troy%netscape.com a6363a7d20 Removed some old dead code 1999-12-01 04:10:47 +00:00
troy%netscape.com a87ea4d233 Changes parameter to be "const nsRect*" and changed a comment 1999-11-30 04:48:34 +00:00
tbogard%aol.net af1ce8d410 Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc 1999-11-24 06:03:41 +00:00
kin%netscape.com ac5342a0c8 Fix for bug #18092 which is a modified version of Kipp's fix for #1413 that
also fixes #18002, and #18006. nsContainerFrame::GetFrameForPointUsing() now
looks through any outside children even if it finds a normal child containing
aPoint.

r=joki@netscape.com
1999-11-23 22:05:05 +00:00
troy%netscape.com 79ddaa641e b=19416. Workaround for problem of combo box drop-down being displayed in
the wrong place sometimes
1999-11-20 06:03:16 +00:00
troy%netscape.com 597b5f236b WillReflow/DidReflow changes and changes to the way view positioning
and sizing works
1999-11-19 15:33:29 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
kin%netscape.com 69f6a5d415 Temporary Fix for dogfood blocker bugs #18002 and #18006. With kipp's
permission, I backed out his fix for bug #1413 from
layout/html/base/src/nsContainerFrame.cpp revision 1.68.
Will re-check in kipp's fix after M11 is branched.
r=buster@netscape.com  a=chofmann
1999-11-05 17:42:21 +00:00
kipp%netscape.com 2e252d2512 r=joki; fixed the ancient and venerable bug 1413 by noting that the code was using an optimization that wasn't always valid and that one that optimization wasn't valid, the slower path must be used...I commented the fix fairly solidly 1999-11-03 22:09:00 +00:00
troy%netscape.com 1585a751fb Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
troy%netscape.com a12c3d6c5d Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up
1999-10-30 02:52:11 +00:00
troy%netscape.com 87afecabc0 Changed SetView/GetView to take an additional argument which is the
pres context
1999-10-26 04:44:41 +00:00
troy%netscape.com f5ba346bdc Removed 5 convenience functions from nsIFrame 1999-10-22 14:53:52 +00:00
troy%netscape.com 5d86678e7b r=karnaze@netscape.com
Save 8 bytes per table cell frame by eliminating mCollapseOffset and
using a frame property instead.
1999-10-22 02:06:22 +00:00
troy%netscape.com 0959b411de 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
1999-10-21 05:11:43 +00:00
peterl%netscape.com 700674fb14 removed ReResolveStyleContext 1999-09-21 07:56:18 +00:00
kipp%netscape.com 7fe2679e86 Updated SizeOf methods to not waste space when doing a non-debug build 1999-09-01 01:02:16 +00:00
kipp%netscape.com f808fbb193 Reimplemented SizeOf methods in some of the frame classes; partial rework of first-line handling snapshot 1999-08-31 03:09:40 +00:00
karnaze%netscape.com 7dddc57925 bug 1271 - percentage height cells, added GetNumCellsOriginatingInRow, fixed GetNumCellsOriginatingInCol 1999-08-25 21:49:18 +00:00
troy%netscape.com f901be20dc Changed to table incremental reflow 1999-08-19 03:51:25 +00:00
troy%netscape.com a8d3d80ebc Cleanup of reflow command handling 1999-07-24 21:41:15 +00:00
troy%netscape.com 1df4c2d244 Added ReplaceFrame() member function to nsIFrame 1999-07-22 04:32:31 +00:00
troy%netscape.com 7a5e4dbdb5 Renamed some nsFrameList member functions 1999-07-22 04:00:57 +00:00
troy%netscape.com c551fe3166 Renamed DeleteFrame() to Destroy() 1999-07-22 02:24:52 +00:00
peterl%netscape.com c35106c852 fix reresolve style context to iterate all child lists 1999-07-18 00:18:45 +00:00
kipp%netscape.com 5ffc2904c6 Check for another bad reflow child behavior 1999-07-14 17:27:48 +00:00
vidur%netscape.com 443e8a76ef Fix for bug 2989 - correcting result of GetFrameForPoint. 1999-05-07 00:08:02 +00:00
kipp%netscape.com 0da5bdd171 Dump out next and style context pointers 1999-04-27 22:11:21 +00:00
kipp%netscape.com 4e13edb1f1 removed dead comment info 1999-04-20 00:26:47 +00:00
joki%netscape.com e4361b7994 Fix event handling on background areas of tags. 1999-04-13 21:29:08 +00:00
troy%netscape.com 22912b419f Changed MoveOverflowToChildList() and PushChildren() to call
ReparentFrameView()
1999-04-13 00:15:13 +00:00
troy%netscape.com 68629094d7 Removed Join() function from nsFrameList, because we already has a version
of AppendFrames() that did the same exact thing
1999-04-13 00:06:17 +00:00
troy%netscape.com 03e8dd2540 Removed some code from nsContainerFrame that is no longer needed now that'
we have nsFrameList
1999-04-12 23:46:02 +00:00
troy%netscape.com fb7134b00b Fixed a problem in MoveOverflowToChildList() where Join() was being used
when InsertFrames() should have been used instead
1999-04-12 23:03:11 +00:00
troy%netscape.com 56b81ad01e Changed DidReflow() so we size and position our view before we call
the child frame's DidReflow() function. This ensures that the parent view
is properly positioned before positioning the child views. This is
important when positioning the widgets
1999-04-11 00:56:28 +00:00
peterl%netscape.com 32d3372e42 augmented ReResolveStyleContext to capture style change information 1999-03-25 06:43:38 +00:00
kipp%netscape.com 652db948ce added some nasty logging messages for frames that don't set max-element-size 1999-03-08 19:25:18 +00:00
kipp%netscape.com 119ced3c4c Removed dead code; output rects naturally 1999-03-05 04:22:54 +00:00
troy%netscape.com 03c5c1f520 Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
troy%netscape.com 02403aa752 Changed DeleteChildsNextInFlow() to use the nsFrameList::RemoveFrame() function
instead of what it was doing, because the assumption it was making about "aChild"
and "nextInFlow" sharing the same parent frame is not true for continued table cells
1999-02-21 18:59:00 +00:00
troy%netscape.com 034aa56b83 Changed GetNextSibling() to use a pointer argument instead of a reference 1999-02-10 06:13:38 +00:00
troy%netscape.com 9d570499cf Changed a bunch more nsIFrame member functions to be pointer arguments
instead of references
1999-02-10 05:38:18 +00:00
troy%netscape.com e9bbeeaa9b Changed GetFrameState() and GetFrameType() to use pointer arguments instead of
references
1999-02-10 04:17:06 +00:00
troy%netscape.com 2ac7b86865 Changed GetAdditionalChildListName() and FirstChild() to use ** instead
of *&
1999-02-10 02:25:01 +00:00
troy%netscape.com c85f9efd2a Changed GetParent() to use ** instead of *& 1999-02-10 01:36:30 +00:00
kipp%netscape.com 2a44cdd816 Renamed RemoveFrame to RemoveAFrame to reduce compiler warnings 1999-02-04 16:27:18 +00:00
kipp%netscape.com bcca9bcff4 Fixed up debug output 1999-02-01 17:29:58 +00:00
kipp%netscape.com 10f24c7ebf Update List implementations to use GetAdditionalChildLists so that all lists of children are dumped out automatically 1999-01-16 00:19:10 +00:00
kipp%netscape.com 7f96144059 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
kipp%netscape.com 4243726f6a Switch to using nsFrameList for frame lists 1999-01-15 22:53:39 +00:00
troy%netscape.com 036e6852f2 Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
kipp%netscape.com c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
kipp%netscape.com 1bc51979bf Use FirstChild so the method is more reusable 1998-12-05 16:02:43 +00:00
troy%netscape.com 2a4b2c503f Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
joki%netscape.com 2b2bfb85dd Add missing coordinate transform to getFrameForPoint 1998-11-24 20:31:21 +00:00
kipp%netscape.com f120c59e08 Factored out FrameForPoint code into one that takes a particular list 1998-11-19 18:09:03 +00:00
kipp%netscape.com a6926809f0 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
troy%netscape.com 89d24c72ce Fixed it so that we don't ignore painting child frames of a parent frame
thas has "visibility:hidden", because child elements can override their
parent's visibility
1998-11-19 03:52:29 +00:00
joki%netscape.com 77fd9c2652 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
peterl%netscape.com 265c4ca8a7 cleaned up cursor style handling 1998-11-18 02:11:54 +00:00
kipp%netscape.com 11391735ba DidReflow now supports multiple child lists; added DeleteFrameList helper method 1998-11-14 19:25:34 +00:00
troy%netscape.com 532ccd2885 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element
1998-11-12 23:03:35 +00:00
troy%netscape.com 527ee073f8 Renamed Init() to SetInitialChildList() and added an additional parameter
for the name of the child list
1998-11-10 06:05:32 +00:00
troy%netscape.com 081c78e696 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.
1998-11-09 19:40:27 +00:00
kipp%netscape.com 430d6b8b6f Make sure overflow lists get ReResolved too 1998-11-05 19:31:59 +00:00
peterl%netscape.com ed14dc36b1 made parent context no longer be optional on re-resolve style context method 1998-11-03 21:29:14 +00:00
peterl%netscape.com e046b13589 sync to style resolution api changes
added reresolve support
1998-11-03 20:23:15 +00:00
troy%netscape.com e8b0525ac9 Changed DeleteFrame() to prevent unwanted view event dispatch during frame
destruction
1998-10-30 23:38:03 +00:00
kipp%netscape.com 5fb9eaee53 Added PaintChild method that properly handles OUTSIDE_CHILDREN bit 1998-10-30 22:11:06 +00:00
michaelp%netscape.com fc225bf7c1 changes to support nsIRenderingContext that conforms to COM conventions. 1998-10-30 02:08:25 +00:00
kipp%netscape.com 6dceba716f Mork work on floaters; support for clear style property 1998-10-09 22:58:25 +00:00
kipp%netscape.com 61525c5c74 Disabled overflow:visible handling for now 1998-10-06 21:00:58 +00:00
troy%netscape.com 7e64653dab Changed ReflowChild() to send the WillReflow() notification as well 1998-10-06 00:27:22 +00:00
troy%netscape.com 7aceb4270d Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
troy%netscape.com ba3c7125c2 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
troy%netscape.com 6207c75a13 Missed adding this 1998-09-30 21:35:29 +00:00