Commit Graph

981 Commits

Author SHA1 Message Date
kipp%netscape.com
16b4103937 Minor tweaks to work better with computed values in html reflow state 1999-03-05 04:22:11 +00:00
kipp%netscape.com
40529e4640 nsBlockReflowState no longer is-a nsHTMLReflowState; fixes to numerous bugs; reworked to use computed values from reflow-state 1999-03-05 04:21:32 +00:00
kipp%netscape.com
2f71be6002 Some asserts for me 1999-03-05 04:20:31 +00:00
kipp%netscape.com
9ddafbd9f8 use new nsHTMLReflowState ctors 1999-03-05 04:19:09 +00:00
joki%netscape.com
57e49aab2a Fix for frames not resizing. 1999-03-03 01:59:50 +00:00
mjudge%netscape.com
cba888fc69 updates and fixes for CTRL left arrow and right arrow. also fixes for releasing the presshell correctly. the selection code was leaking it. updates for PREV and NEXT in nsFrameTraversal 1999-03-03 01:51:21 +00:00
karnaze%netscape.com
e557234435 improved <iframe> sizing to consider left, right, etc borders 1999-03-03 00:37:55 +00:00
ftang%netscape.com
ffc1e146ac fix SmallCap to make it work for the whole range of unicode 1999-03-02 18:25:22 +00:00
alecf%netscape.com
532891b5da fix AIX bustage - explicitly refer to parent constructor even though it's within
the scope of this constructor..
1999-03-02 01:44:07 +00:00
vidur%netscape.com
cb48e4047a Fixed MAP elements to conform to HTML 4.0. Hooked up attribute changes for MAP, AREA and ANCHOR elements. Added RECONSTRUCT_ALL as a style hint for attribute changes. Modified nsCSSFrameConstructor's ReconstructFrame to only reconstruct the document element hierarchy. 1999-03-01 16:57:35 +00:00
peterl%netscape.com
006004dd56 added content state changed 1999-02-27 07:15:09 +00:00
av%netscape.com
e845f0123f *** empty log message *** 1999-02-27 00:57:04 +00:00
kipp%netscape.com
960bc34221 fixed up operator new usage 1999-02-26 20:02:06 +00:00
kipp%netscape.com
760dc4af42 Fixed remaining issues with operator new/delete 1999-02-26 19:26:29 +00:00
kipp%netscape.com
59afd8abfb Removed ifdef'd out code 1999-02-26 19:22:20 +00:00
alecf%netscape.com
2a71e76f16 BandRect needs to be public to be visible outside the class definition (HPUX bustage) 1999-02-26 17:36:00 +00:00
kipp%netscape.com
cc779556f7 Removed dependency on static constructors 1999-02-26 17:12:16 +00:00
kipp%netscape.com
c0c382d3c0 Removed move-out-of-flow code now that frame construction code does it; added code to avoid reflows when removing a placeholder frame 1999-02-26 17:08:20 +00:00
kipp%netscape.com
99df251883 Support limited scaling of images on unix 1999-02-26 17:07:28 +00:00
kipp%netscape.com
5fca6839f0 Removed MoveOutOfFlow 1999-02-26 17:07:01 +00:00
kipp%netscape.com
c7fde5e17e Implement operator delete; get rid of static constructor 1999-02-26 17:05:20 +00:00
kipp%netscape.com
a8d4b57b12 Find text runs more often (bug #3278, 3265); floaters are now handled mostly by the frame construction code 1999-02-26 17:04:44 +00:00
kipp%netscape.com
d1fe3c6035 Removed global gLogModule 1999-02-26 16:59:57 +00:00
vidur%netscape.com
b15aacfeb3 Made style reresolution propogate down to the bullet frames for list items. Added list related attribute tests. 1999-02-25 19:14:35 +00:00
brade%netscape.com
ec6584765a add "static" to GetFrameBorderHelper to reduce compiler warnings on Macintosh 1999-02-25 15:38:29 +00:00
troy%netscape.com
11c7f0375f Fixed it so we clear the NS_FRAME_SYNC_FRAME_AND_VIEW bit, because the
default is that it's set
1999-02-25 05:41:05 +00:00
troy%netscape.com
3bdf672129 Removed nsIFrame::CreateContinuingFrame() 1999-02-25 05:31:15 +00:00
troy%netscape.com
da4193eab6 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
ftang%netscape.com
81894ce107 change nsTextTransformer to break line by calling nsILineBreak and make nsTextFrame pass the nsILineBreaker to nsTextTransformer 1999-02-24 18:21:23 +00:00
troy%netscape.com
eb48a80e30 Added nsLayoutAtoms::textFrame 1999-02-24 05:33:40 +00:00
kipp%netscape.com
50a388ca59 Fixed bug #2885 - the linebreaker couldn't handle a special case... 1999-02-24 05:24:06 +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
da0991df28 Added CreateContinuingFrame() function to frame construction code 1999-02-24 04:03:50 +00:00
kipp%netscape.com
921f7d5d90 For now text acts like a replaced element 1999-02-23 19:35:21 +00:00
kipp%netscape.com
de667c2242 Removed gratuitous destructor 1999-02-23 19:34:58 +00:00
kipp%netscape.com
ee9d03abfa Improved vertical alignment correctness; fixed glaring error with box-width and height computation 1999-02-23 19:34:17 +00:00
kipp%netscape.com
2285d2368f Maded DetermineFrameType a callable static method; removed gratuitous line-height calculations 1999-02-23 19:33:06 +00:00
kipp%netscape.com
6359d0f8d4 Revised the signature of the VerticalAlignFrames method 1999-02-23 19:32:20 +00:00
kipp%netscape.com
02b92b2a8e Compute minimum-line-height and store it into the inline-reflow context 1999-02-23 19:32:00 +00:00
vidur%netscape.com
a5024bec72 Fixed casing for nsCOMPtr inclusion 1999-02-23 19:22:53 +00:00
vidur%netscape.com
93609d0604 Added nsIStyleSheetLinkingElement interface and implemented it for LINK and STYLE elements. Got attribute modifications for lists and list items working (including correct renumbering of lists when attribute values change). 1999-02-23 19:18:12 +00:00
karnaze%netscape.com
cc3251aeaf added assertion for null peeked frame pointer in Reflow. 1999-02-23 18:06:55 +00:00
warren%netscape.com
01dd4f0ed6 Cleaned up nsICollection and nsIEnumerator. Broke out nsIBidirectionalEnumerator. Added ISupportsArray enumerator. Cleaned nsISupportsArray. 1999-02-23 08:10:24 +00:00
karnaze%netscape.com
009c914f35 better sizing of form controls, especially percentage based sizes and max element sizes 1999-02-23 03:48:01 +00:00
ftang%netscape.com
59e3b5ce0e Make Case conversion work for non-Latin1 Unicode. Reviewed by kipp. Perofrmance is the same after changing this. 1999-02-23 02:27:54 +00:00
mjudge%netscape.com
b13e4da265 Added, jump to prev word, modified INIT of nsTextTransformer to better prepare for a start offset at the end of the mFrags list. added implementation of extra parameter to nsIFrame::PeekOffset to keep state for the next word problem of eating ws. nsTextFrame should be all set on implementation of jumping words. 1999-02-22 04:59:52 +00:00
mjudge%netscape.com
7df9af9d91 adding parameter to nsIFrame for ::PeekOffset to be aware of the state of jumping a word. eating WS ect. also, nsRangeList sends the proper parameter for above change. 1999-02-22 04:57:44 +00:00
mjudge%netscape.com
eaf1a3cc93 gettig word jumping to work, adding GetPrevWord to texttransformer 1999-02-22 03:20:59 +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
mjudge%netscape.com
cee2723326 Shift click to continue selection 1999-02-21 01:23:40 +00:00
mjudge%netscape.com
fb3a597e8a nsPresShell now listens to changes in the domselection. (also modified nsIEnumerator to use NS_IMETHOD instead of virtual nsresult). Added batching for selection changes. you can move the selection, do things then turn off batching for an update if necessary. also prevented circular referencing by adding listener removal to PresShell::endDocumentListening(sp) 1999-02-19 23:47:36 +00:00
mjudge%netscape.com
1afd545499 moving nsFrameTraversal.* nsFrameList.* to layout/base also adding selection from keyboard. 1999-02-19 00:21:22 +00:00
scc%netscape.com
5f8d7aa381 updated for nsCOMPtr (no implicit construction from raw pointers) owners should check that they agree with my choices for |dont_QueryInterface|, |do_QueryInterface| and |dont_AddRef| 1999-02-18 23:55:10 +00:00
kipp%netscape.com
9b8e3b6bef removed usless includes 1999-02-18 22:23:52 +00:00
kipp%netscape.com
d5d5c4fd5e Added missing ctor/dtor 1999-02-18 22:23:36 +00:00
kipp%netscape.com
c972607d82 Process bullets better so that they are vertically aligned properly 1999-02-18 22:22:55 +00:00
kipp%netscape.com
44573facc6 Fixed bug #3161 - removed bogus assertion 1999-02-18 18:25:45 +00:00
troy%netscape.com
9748bc8839 Added support for 'width' and 'height' values of 'inherit' 1999-02-18 04:40:16 +00:00
kipp%netscape.com
9f5bab8779 Added methods for supporting 2 pass vertical align reflow 1999-02-18 03:28:00 +00:00
kipp%netscape.com
cea1fae3c5 Eliminated HAVE_ANONYMOUS_BLOCK code; added in implementations of FindTextRuns and VerticalAlignChildren 1999-02-18 03:27:23 +00:00
kipp%netscape.com
7a4a4efc3d Removed a skid mark 1999-02-18 03:26:42 +00:00
kipp%netscape.com
76efa6ea05 Detect errors more often by prioritizing its status over size-available 1999-02-18 03:26:19 +00:00
kipp%netscape.com
7c15c2fc1d Removed GetAutoMarginSize; added VerticalAlignFrames 1999-02-18 03:25:23 +00:00
kipp%netscape.com
3245994287 Removed obsolete GetAutoMarginSize method 1999-02-18 03:19:02 +00:00
mjudge%netscape.com
90ade6856e fixing some things for selection to allow keyboard navigation. not hooked up to caret yet. also removed some not used calls in nsFrame for the "old" selection model. 1999-02-16 02:42:08 +00:00
troy%netscape.com
eab91a0aa8 Fixed InitConstraints() to correctly compute the containing block height
for child elements of a scrolled element
1999-02-14 04:43:44 +00:00
troy%netscape.com
bf53f99087 Added frame-type atoms for area,scroll,viewport,root,page frame classes 1999-02-14 03:47:33 +00:00
kipp%netscape.com
fff7bf9929 Avoid using the trapezoid data when we have none (bug #1277) 1999-02-13 19:39:31 +00:00
kipp%netscape.com
7d24721c1b Be more careful about returning break-before status 1999-02-13 19:18:45 +00:00
troy%netscape.com
c928d3557c Changed frame construction code to set NS_FRAME_REPLACED_ELEMENT but, and
changed the HTML reflow state to read the bit
1999-02-13 05:59:19 +00:00
troy%netscape.com
9fa8b62428 Added NS_FRAME_REPLACED_ELEMENT 1999-02-13 05:58:28 +00:00
sfraser%netscape.com
006010c385 Ensure the caret is refreshed after the text frame containing it is redrawn 1999-02-13 04:46:47 +00:00
troy%netscape.com
0debd6f0d1 Fixed some errors related to switch to using nsCOMPtr 1999-02-12 18:41:26 +00:00
troy%netscape.com
fcbd2edc14 API change for pres shell 1999-02-12 18:22:08 +00:00
troy%netscape.com
ebfff565c5 Fixed build bustage 1999-02-12 18:18:34 +00:00
kipp%netscape.com
36c243cdc0 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
sfraser%netscape.com
f220577393 #ifdef tbe blue selection triangles in until the caret code is turned on 1999-02-12 00:05:19 +00:00
sfraser%netscape.com
9ab69a922e Add two new methods needed for caret support (and other things): GetPointFromOffset, to get frame-relative coordinates of a given content offset, and GetChildFrameContainingOffset, to find the child frame that really contains the given content offset 1999-02-12 00:02:31 +00:00
akkana%netscape.com
7982a421d6 Rename nsISelection to nsIFrameSelection 1999-02-11 23:12:28 +00:00
troy%netscape.com
902190112d API changes for nsIPresContext ResolveStyleContextFor and ResolvePseudoStyleContextFor 1999-02-11 15:56:23 +00:00
troy%netscape.com
46bf1f1ab5 Fix for bug #3089 1999-02-11 03:56:00 +00:00
mjudge%netscape.com
d6da223dbd Keyboard navigation, removing nsICollection(not used) adding PeekOffset to have the nsIFrame tell us where to go when moving a character ect. adding nsFrameTraversal to traverse frames, based on nsIEnumerator. mjudge x4661 1999-02-10 18:55:25 +00:00
troy%netscape.com
37614be21a Re-ordered DeleteFrame() code to fix a FMR 1999-02-10 18:12:24 +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
troy%netscape.com
b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
kipp%netscape.com
6953c4a7c8 Whacked away nsBaseIBFrame and BLOCK_IS_INLINE cruft 1999-02-09 17:31:33 +00:00
kipp%netscape.com
982434a14f Handle breaking before an anonymous block when the line isn't empty; push/pop inline reflow state so that floaters work properly 1999-02-09 17:31:14 +00:00
troy%netscape.com
9c158de393 Added GetFrameType() member function 1999-02-09 05:44:13 +00:00
troy%netscape.com
49923b7f83 Fix for bug #2661. Now handles the case where the root-frame has a fixed
height
1999-02-09 05:09:39 +00:00
troy%netscape.com
9940ecee6e Fixed a silly error I introduced in the previous check-in 1999-02-09 05:01:11 +00:00
troy%netscape.com
1b384d0f08 Fixed a problem where absolutely positioned child frames with an 'auto'
offset weren't getting re-positioned during an incremental reflow of the
flowed items
1999-02-09 04:31:09 +00:00
troy%netscape.com
aaff26f78e Turned off some code until the frame construction code handles the case
where the replaced element that can't be rendered is floated or absolutely
positioned
1999-02-09 04:05:21 +00:00
waterson%netscape.com
4d00f764eb Exposed NS_CreateHTMLContent() as a temporary hack to get HTML-in-RDF/XUL working. Will re-visit when Vidur comes back. 1999-02-09 00:26:50 +00:00
troy%netscape.com
a9bb13d5cc Fix for bug #3027. Correctly computes 'auto' margin values and allows them
to be negative
1999-02-09 00:15:43 +00:00
kipp%netscape.com
c4826d0a7e Tweak regression data output 1999-02-08 17:56:23 +00:00
kipp%netscape.com
d83b6d14ee Revamp regression data dumping 1999-02-08 17:56:00 +00:00
kipp%netscape.com
b776cddba1 Implement tree diffing and dumping of regression data 1999-02-08 17:55:29 +00:00
kipp%netscape.com
bd04c98b49 Revised API 1999-02-08 17:55:08 +00:00
troy%netscape.com
12bfda4069 Fix for bug #2993. Made sure that 'offsets' are relative to containing block's
padding edge and not the containing block's border edge
1999-02-08 00:32:02 +00:00
joki%netscape.com
7a1bff7611 Checking in null check and assertion to handle the crashing on imagemap part of the Mac regression. 1999-02-06 02:07:49 +00:00
troy%netscape.com
b8205354d1 Added CantRenderReplacedElement() to nsIPresShell and changed the image frame
code to use it
1999-02-05 18:25:29 +00:00
troy%netscape.com
66fdbcd9b3 Made sure computedOffsets is initialized to all zeros for the root frame 1999-02-05 05:51:12 +00:00
peterl%netscape.com
28a6de7ff5 added assertion for switching style contexts during reflow 1999-02-05 03:58:27 +00:00
troy%netscape.com
110c517be1 Removed #include of header files that weren't actually needed 1999-02-05 01:54:58 +00:00
troy%netscape.com
bcc69e2898 Work-in-progress for replaced elements that can't be rendered 1999-02-04 17:03:46 +00:00
kipp%netscape.com
752de3f766 tweak so font-lock in emacs works better 1999-02-04 16:28:36 +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
a16334a322 Make dtor virtual to quite down compilers 1999-02-04 16:26:42 +00:00
kipp%netscape.com
059a3afafe Implement ReadFrameRegressionData 1999-02-04 16:26:19 +00:00
kipp%netscape.com
57a05a9fe7 Added temporary method until sync i/o works 1999-02-04 16:26:01 +00:00
troy%netscape.com
1dcaa305b6 Fix for bug #2867. Removed the questionable logic I added previously. 1999-02-04 00:43:49 +00:00
vidur%netscape.com
b91611a7b2 Added additional key argument to string parsing routine. Improved Reset handling for document to include style sets and frame construction. Modified root frame construction. Got out-of-line document.write to work 1999-02-03 19:38:16 +00:00
karnaze%netscape.com
18feca1219 bug 1827 1999-02-03 19:26:29 +00:00
kipp%netscape.com
8f64c7a3ef Use ReflowDirty reflow commands; fixed reflow status when dealing with breaking child frames 1999-02-03 19:12:02 +00:00
kipp%netscape.com
67741b5e3c Removed a couple of warnings 1999-02-03 19:10:03 +00:00
kipp%netscape.com
d77e41c463 Removed some unused variables 1999-02-03 19:09:37 +00:00
kipp%netscape.com
66115d3c10 Fixup absolute positioning by temporarily generating old style reflow commands when the list-name is not null; temporarily use FrameAppended instead of ReflowDirty for append operations 1999-02-03 19:09:24 +00:00
troy%netscape.com
5238d0c73f Improvements to fixed positioning 1999-02-03 17:01:51 +00:00
troy%netscape.com
15e7a9f342 Switched to using nsIScrollableView::GetScrollbarVisibility() to tell
whether the vertical scrollbar is currently showing
1999-02-03 04:30:57 +00:00
troy%netscape.com
c4b2263dbf Fixed it to so the root-frame isn't considered a containing block, and
changed SetRect() so it only resizes the child frame larger if its 'height'
is set to 'auto'
1999-02-03 01:31:09 +00:00
cltbld%netscape.com
71afce77d3 backing out changes made against a closed tree 1999-02-02 23:50:52 +00:00
karnaze%netscape.com
f0bb1e91f9 fixed bug 1827 1999-02-02 22:53:42 +00:00
kipp%netscape.com
24f144460b Wrapped up debugging noise in a ifdef; implemented 4th remove-frame case; fixed a bug in the 5th remove-frame case 1999-02-02 17:32:09 +00:00
kipp%netscape.com
361ca345fb Changed base-ib-frame to implement AppendFrames/InsertFrames/RemoveFrame directly; changed args to DoRemoveFrame; updated the anonymous block to have a slightly different method set to manipulate its children 1999-02-02 17:31:09 +00:00
mjudge%netscape.com
ceb08a0190 scoping incorrect for for loops on vc5.0 didnt catch this. nasty habbit of mine. 1999-02-02 01:18:41 +00:00
mjudge%netscape.com
d8dc98b1ba commas trailing on enum illegal even if vc50 says its ok 1999-02-02 01:16:57 +00:00
mjudge%netscape.com
cd2d3d137c keyboard navigation of selection. adding API for nsIFrame. fixing nsFrame and nstextframe to reflect the implementations of the nsIFrame API. nsRangeList implements the handlekeyevent now. 1999-02-02 00:23:40 +00:00
kipp%netscape.com
c529fc11be Fixed invocation bug that mac compiler caught 1999-02-01 19:08:30 +00:00
kipp%netscape.com
b23b120a19 Implement TreatFrameAsBlock 1999-02-01 17:32:49 +00:00
kipp%netscape.com
12322a8a10 Added another TreatFrameAsBlock method 1999-02-01 17:32:33 +00:00
kipp%netscape.com
e6c0c373a9 Updated a comment 1999-02-01 17:32:19 +00:00
kipp%netscape.com
c2a13558a4 Removed ReplaceFrame 1999-02-01 17:31:21 +00:00
kipp%netscape.com
0887e5eedf Removed ReplaceFrame; tweaked frame updates impls 1999-02-01 17:31:10 +00:00
kipp%netscape.com
bcca9bcff4 Fixed up debug output 1999-02-01 17:29:58 +00:00
kipp%netscape.com
50b6da75a7 Implement anonymous block frame code; fixup base class InsertNewFrames to support multiple frame insertion 1999-02-01 17:29:37 +00:00
kipp%netscape.com
859dde6287 Renamed InsertNewFrame->s; defined nsAnonymousBlock class 1999-02-01 17:28:39 +00:00
kipp%netscape.com
7e4600613e Rewritten to use an anon. block frame to manage block children 1999-02-01 17:27:56 +00:00
kipp%netscape.com
64610329f0 Cleaned up comments; removed ReplaceFrame from the API 1999-02-01 17:25:30 +00:00
troy%netscape.com
f987894585 Changed Reflow() to make sure the desired-size members of the reflow metrics
struct are set in the case where there is no child frame
1999-01-31 18:46:22 +00:00
troy%netscape.com
25be57b96c Fix for bug# 2780: changed root-frame and scroll-frame code to take into
account mCombinedArea
1999-01-31 05:12:02 +00:00
troy%netscape.com
7c0d5680c3 Changed ReflowFixedFrame() to take the computed left and top margin into
account when placing the child
1999-01-31 05:09:29 +00:00
troy%netscape.com
051df63e8f Added code to force an absolutely positioned child that ignored its
computed height to be the correct height
1999-01-30 18:12:38 +00:00
troy%netscape.com
5cd1cbadbf Added code to make sure that a fixed child frame ends up with the correct height
evebn if it disregards the computed height value
1999-01-30 17:39:29 +00:00
troy%netscape.com
f2d3dd631e Fixed leak of nsIHTMLDocument interface in GetImageMap() 1999-01-30 01:04:35 +00:00
troy%netscape.com
bb2686580f Changed TriggerLink() to release its reference to the nsILinkHandler interface,
and I changed HandleEvent() to make nsIURL interface returned by the call to
GetDocumentURL() is released
1999-01-30 00:34:06 +00:00
troy%netscape.com
78d4cd7331 More work-in-progress for fixed positioning 1999-01-28 17:14:13 +00:00