Commit Graph

1348 Commits

Author SHA1 Message Date
karnaze%netscape.com
c111662c1f Preliminary changes to support align="char" 1999-01-07 01:00:07 +00:00
brade%netscape.com
2ad8ae0483 reduce Macintosh compiler warnings byadding prototype 1999-01-06 18:52:58 +00:00
troy%netscape.com
9ceceead01 This time I think I got 'em in alphabetical order... 1999-01-06 04:41:47 +00:00
troy%netscape.com
67c86e0b0b Did a better job of alphabetizing the source files 1999-01-06 04:39:33 +00:00
troy%netscape.com
dbc6ce7c5c Renamed nsFRameReflowState.cpp to nsHTMLReflowState.cpp 1999-01-06 03:46:55 +00:00
troy%netscape.com
4b3e1eebad Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
kipp%netscape.com
844a41c615 Use macros from nsTextFragment 1999-01-05 23:02:27 +00:00
kipp%netscape.com
50b331f35c Reinstated the last set of checkins that were backed out 1999-01-05 23:01:54 +00:00
troy%netscape.com
a423353676 Initial check-in 1999-01-05 19:44:41 +00:00
donm%netscape.com
9b2666a111 backing out changes against a long red tree. would like to clear
the hook.  -donm
1999-01-05 18:16:05 +00:00
kipp%netscape.com
e29f665a91 Fix handling of removed-child incremental reflow to no longer crash (bug #1941); also disabled incremental behavior for remove and inserted for now so that layout looks correct 1999-01-05 17:50:41 +00:00
kipp%netscape.com
3a981f0215 Removed aPrevSibling from DoRemoveFrame's arg list 1999-01-05 17:49:44 +00:00
amusil%netscape.com
0adb3694fe Temporary workaround so that plugins display correctly. This will change after support for
CSS borders and padding are added.
1999-01-04 23:45:38 +00:00
troy%netscape.com
c5ec74eb54 Changed nsISpaceManager interface to conform to XP-COM conventions on
return values
1999-01-04 04:54:33 +00:00
troy%netscape.com
99455f5082 Moved enum and replaced it with #defines 1999-01-03 00:31:46 +00:00
troy%netscape.com
eb188f8529 Changed comment to reflect the current state of the tree 1999-01-02 23:05:08 +00:00
troy%netscape.com
a8d603caa3 Changed computed width calculation for internal table elements to take
border/padding into account
1999-01-02 22:54:12 +00:00
troy%netscape.com
1d0d15f303 Added logic to make sure that internal table elements have reasonable
values for the computed width/height
1999-01-02 21:03:51 +00:00
troy%netscape.com
097f73ee6c Changed CreatePlaceholderFrame() to use a pseudo element style context
(:PLACEHOLDER-FRAME) for the placeholder frame. This way it looks like an
inline static frame with a specified size of (0, 0)
1999-01-02 20:51:43 +00:00
troy%netscape.com
b8f80c0efa Fix for bug 2109. If the child's maxSize.width is smaller than the containing
block's computed width then use it instead
1999-01-02 19:21:32 +00:00
troy%netscape.com
c30da1d1ee Changed InitConstraints() to handle inline, block-level, and floated elements
(replaced and non-replaced)
1998-12-31 23:07:00 +00:00
troy%netscape.com
8e168ef086 Better computation of computed width and height and margins for block-level
elements
1998-12-31 05:35:38 +00:00
troy%netscape.com
4591f9d2ad Changed width/height constraints in nsHTMLReflowState struct 1998-12-30 17:50:00 +00:00
troy%netscape.com
ee997bddd1 Fixed it up to compile, because the Mac is still building it... 1998-12-29 05:54:59 +00:00
troy%netscape.com
14ae1a9919 Fixed it up to compile again, because the Mac is still building it... 1998-12-29 05:53:54 +00:00
troy%netscape.com
487a0952b3 Changed some of the member functions to conform to XP-COM conventions for
returning a nsresult
1998-12-29 04:56:31 +00:00
troy%netscape.com
583682a5c1 Renamed FindFrameWithContent() to GetPrimaryFrameFor() 1998-12-29 04:45:18 +00:00
troy%netscape.com
7b5cc03059 Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code
1998-12-29 03:38:16 +00:00
troy%netscape.com
5cebecb150 Fix for bug #1924 1998-12-22 05:02:46 +00:00
troy%netscape.com
98e47c310d Fix for bug #1942. Also made it so we respect 'width' and 'height' properties
specified on the HTML element
1998-12-22 03:49:04 +00:00
troy%netscape.com
6493c0fc74 Renamed NS_NewHTMLFrame() to NS_NewRootFrame() 1998-12-21 18:22:44 +00:00
troy%netscape.com
9619058141 Changed the frame hierarchy, and changed how scrolling works. Also added
nsAreaFrame which replaces nsBodyFrame which is no longer used
1998-12-20 23:29:47 +00:00
peterl%netscape.com
887cd5f867 sync to new attribute api 1998-12-20 01:21:23 +00:00
kipp%netscape.com
8943d05510 Implement GetSkipSides so that continued inline frames render properly 1998-12-18 22:12:42 +00:00
kipp%netscape.com
ed1c9c40e1 Display inline borders/background during content painting, not during background painting (per css2 spec) 1998-12-18 22:12:15 +00:00
akkana%netscape.com
c3905a8204 Attempt to patch mac build error 1998-12-18 21:04:33 +00:00
troy%netscape.com
3545ee7a90 Added nsAreaFrame.cpp 1998-12-18 17:59:13 +00:00
troy%netscape.com
8d3739ba94 Initial check-in 1998-12-18 17:54:54 +00:00
kipp%netscape.com
40c2cfef07 Fixed numerous compiler warnings (hopefully) from the mac build 1998-12-18 17:34:34 +00:00
troy%netscape.com
b550507587 Minor cleanup 1998-12-18 17:33:23 +00:00
kipp%netscape.com
c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
troy%netscape.com
5f8a4c8bd0 Fixed a compiler warning by include nsHTMLParts.h 1998-12-18 05:52:05 +00:00
troy%netscape.com
087d7aeae8 Fixed a couple of compiler wanrings by including nsHTMLParts.h 1998-12-18 05:50:19 +00:00
troy%netscape.com
9cc97f6532 Fixed a compiler warning by including nsHTMLParts.h 1998-12-18 05:44:26 +00:00
troy%netscape.com
c5204005c1 Eliminated a bunch of code now that CreateViewForFrame() takes care of calling
SetScrolledView()
1998-12-18 05:26:16 +00:00
troy%netscape.com
7e29c81e53 Changed CreateViewForFrame() to check whether the parent view is a scrolling
view and if so use SetScrolledView() instead of the view manager's InsertChild().
This ensures that the scrolled frame's view is inserted as a child of the clip
view during the view initialization stage
1998-12-18 05:25:36 +00:00
scc%netscape.com
ba11eb34ad Added static IID() method. This member function will be generated automatically in the future. 1998-12-18 03:43:29 +00:00
troy%netscape.com
fafb49c0f8 Backed the change back out 1998-12-17 22:25:59 +00:00
troy%netscape.com
3da8ddd767 Changed Paint() to only paing the border if the style info says we're visible 1998-12-17 21:34:41 +00:00
kipp%netscape.com
df22ba5edf Disabled skid marks 1998-12-17 19:10:53 +00:00
kipp%netscape.com
a9cbdcd957 nuked some tabs; added in comment to note where max-element-size computation should be fixed up 1998-12-17 18:55:13 +00:00
kipp%netscape.com
61e5ececd9 Added set/get empty line methods (currently unused) 1998-12-17 18:54:40 +00:00
kipp%netscape.com
0a7f47b0de Add in border and padding to get the max-element-size right 1998-12-17 18:54:22 +00:00
kipp%netscape.com
024a0ebf81 Add in margin top and bottom to max-element-size height 1998-12-17 18:54:07 +00:00
kipp%netscape.com
056210385f Added the AddBorderPaddingToMaxElementSize method to make it easy for implementors to get it right 1998-12-17 18:53:14 +00:00
kipp%netscape.com
98848b0634 Factor in margins into in-flow-bounds rect; update max-element-size to include the margins around the block element 1998-12-17 18:52:45 +00:00
kipp%netscape.com
b5ddc4184d Clean up max-element-size computations; added code to remove empty lines (disabled for now) 1998-12-17 18:52:10 +00:00
kipp%netscape.com
5c8c37f9e8 Added methods for get floater info in the band and a method to compute the impact on the max-element-size of the floaters 1998-12-17 18:50:45 +00:00
warren%netscape.com
0580a8e5c4 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener. 1998-12-16 05:40:20 +00:00
kipp%netscape.com
dafa9178f7 Removed bogus null pointer check 1998-12-15 17:59:49 +00:00
shaver%netscape.com
30635270f8 Add --enable-debug=module1,module2 to selective turn on debugging.
Remove --enable-dom, because Mariner is dead (sob).
Rename some MODULE= lines to make the afore-mentioned --enable-debug
technique actually useful.  Feel free to recategorize.
Fix libraptorhtml.so link bogosity by disabling shared lib generation for the
sub-archives (libraptor*_s.a), so that we can put bin before lib in the
library path and still get the right effect.  We could disable static-lib
generation in most other places and cut the build time down a fair bit, too.
[NOTE: I'm getting on a train...msw@gimp.org has agreed to be my tinderbox
buddy.  Thanks, Matt!]
1998-12-15 16:32:37 +00:00
michaelp%netscape.com
1ea29c4972 made damagearea management more aggressive as a temporary fix until
individual classes can to the right thing.
1998-12-15 05:49:48 +00:00
kipp%netscape.com
cf6a751b49 Added NS_FRAME_IS_REPLACED macro 1998-12-15 04:21:56 +00:00
kipp%netscape.com
ae95e3f297 Fixed up absolute and floating frame types to support replaced variants 1998-12-15 04:21:28 +00:00
kipp%netscape.com
081d6a2815 Moved floater reflow out of PlaceFloater and into AddFloater so that floaters are only reflowed during reflow, not during placement; Added code to support css 10.3.5; reflow floaters more often so that % width values are recomputed properly 1998-12-15 04:20:54 +00:00
kipp%netscape.com
0c1d7e289e Print out state bits in hex too 1998-12-15 00:16:32 +00:00
kipp%netscape.com
d349695d52 #ifdef'd out the outside-children state methods 1998-12-15 00:16:21 +00:00
kipp%netscape.com
b27db7edbf Reworked line-height handling: correctly implements the spec; use value computed by nsHTMLReflowState::CalcLineHeight 1998-12-15 00:16:00 +00:00
kipp%netscape.com
52e59f760b Removed CalcLineHeightFor 1998-12-15 00:15:11 +00:00
kipp%netscape.com
2921acf591 Added CalcLineHeight and store it in mLineHeight 1998-12-15 00:14:56 +00:00
kipp%netscape.com
0d8e477df1 Added CalcLineHeight and apply it to inline non-replaced elements as a constrained height 1998-12-15 00:14:36 +00:00
kipp%netscape.com
8f3bfb6318 Fixed rendering problems with lines with outside children; repaired code (currently unused an ifdef'd) to compute the lines outside children state 1998-12-15 00:14:09 +00:00
mjudge%netscape.com
2f5ca67ece adding in selection 1998-12-14 18:34:14 +00:00
kipp%netscape.com
57ae70eb65 When verify-reflow-all is enabled, update the display after each reflow and pause for a while 1998-12-12 19:21:05 +00:00
kipp%netscape.com
076247ac56 Factored out whitespace trimming from horizontal alignment 1998-12-12 19:20:35 +00:00
kipp%netscape.com
a475e77dd2 Made ListTag more usable for all frame types, not just derivations of nsFrame 1998-12-12 19:20:10 +00:00
kipp%netscape.com
398462eb7a Moved a #if 0 to get rid of a compiler warning 1998-12-12 19:19:48 +00:00
kipp%netscape.com
934a9c6a93 Reworked incremental reflow floater handling to place floaters as their state is recovered instead of moving them 1998-12-12 19:19:11 +00:00
kipp%netscape.com
c2c34891ef Factored out floater sliding from SlideFrames; Added the dy value to the RecoverState method 1998-12-12 19:18:28 +00:00
kipp%netscape.com
9cb6aebcb0 Revised ClearFloaters to loop so that all appropriate floaters are cleared 1998-12-12 19:17:58 +00:00
troy%netscape.com
e0814be9c7 Changed inline and block reflow code to reset reflow state's isTopOfPage
data member based on whether IsAdjacentWithTop() is true
1998-12-12 17:59:30 +00:00
troy%netscape.com
b76ea91da7 Changed Reflow() to set isTopOfPage in reflow state 1998-12-12 17:58:18 +00:00
kipp%netscape.com
ea17e7a1d7 I disabled selection rendering until it works again 1998-12-12 03:05:24 +00:00
kipp%netscape.com
58fef6676e Compute correct Y coordinate after clear floaters; fixed bullet positioning bug when placing a bullet next to a block frame that has a carried-out top margin 1998-12-11 22:26:45 +00:00
kipp%netscape.com
47761f83d7 When dealing with a percentage-width HR, don't let it impact the max-element-size.width inappropriately 1998-12-11 22:23:18 +00:00
kipp%netscape.com
076df9152c Tweaked reflow status to be legible 1998-12-11 15:53:03 +00:00
kipp%netscape.com
84b62782fb Changed breaking behavior so that empty frames don't trigger a break even if the horizontal space is already over committed 1998-12-11 15:50:12 +00:00
kipp%netscape.com
6234eb38c7 Removed bogus assert that was tripping on spacer-frames; fixed up justification behavior (thanks harish!) 1998-12-11 15:49:07 +00:00
peterl%netscape.com
59693414e7 removed pseudo class atoms (moved to css atoms) 1998-12-11 02:36:36 +00:00
nisheeth%netscape.com
aa1aa005f0 Added a new method, GetStyleHintForAttributeChange() to nsIHTMLContent. 1998-12-11 00:52:55 +00:00
troy%netscape.com
9d2a87867d Minor change to the flow of control to make it more readable 1998-12-10 03:20:31 +00:00
troy%netscape.com
d5d22e04da Added print options for controlling whether odd and even pages are printed 1998-12-10 03:07:11 +00:00
troy%netscape.com
193529a2df Fix for bug 1831 where an auto horizontal scrollbar was causing a vertical
scrollbar to be displayed even though it wasn't needed
1998-12-10 00:52:58 +00:00
kipp%netscape.com
c51740de2d Only zero out the height/ascent/descent if the empty text is not a pre-formatted piece of empty text, otherwise blank lines in PRE sections disappear 1998-12-10 00:30:52 +00:00
kipp%netscape.com
64d2aeab3d Compute percentage base properly 1998-12-09 23:51:39 +00:00
troy%netscape.com
fad656e103 Moved StartDocument/EndDocument calls to document viewer impl's Print() member
function. This fits better with the Mac's printing model
1998-12-09 22:36:57 +00:00
troy%netscape.com
7ec6a2c281 Added new atoms to nsLayoutAtoms for additional named frame child lists 1998-12-09 05:30:17 +00:00
kipp%netscape.com
1778e1bc49 Backed out one change 1998-12-09 03:40:42 +00:00
cltbld%netscape.com
e83ca84c12 add nsBlockBandData.h per kipp's addition 1998-12-08 23:25:30 +00:00
kipp%netscape.com
14d0a212d5 new 1998-12-08 21:44:22 +00:00
kipp%netscape.com
4f02f0ae72 Added some debug checks to sizes; keep zero sized items on the same line whenever possible 1998-12-08 21:43:42 +00:00
kipp%netscape.com
e10802d09e Factored out the block-band-data class; fixed a bug with treating block objects that weren't really nsBlockFrame's like they were (bug #1713) 1998-12-08 21:43:15 +00:00
kipp%netscape.com
e86402c7a3 Added nsBlockBandData 1998-12-08 21:42:35 +00:00
mjudge%netscape.com
948d2e6638 chagnes to selection 1998-12-08 18:26:06 +00:00
kipp%netscape.com
320f0facc1 Fixed bug #1621 - if a floater was too wide and it was right aligned it would end up positioned off the left edge of the block 1998-12-08 03:57:12 +00:00
kipp%netscape.com
2025694b82 Removed check for a band count of when when clearing floaters because if the floater is large the band may only have one trapezoid in it 1998-12-08 03:47:44 +00:00
troy%netscape.com
7cf1fde73d Improved height calculation when there are floaters. Now we check against
the content area y-most rather than the frame bounds y-most. This ensures
that border and padding are respected along the bottom edge
1998-12-08 00:01:12 +00:00
kipp%netscape.com
3723b826cc Disabled fixed height/width ignoring code for shrink-wrap blocks; fixed crash bug with premature deleting of a line 1998-12-07 22:28:55 +00:00
kipp%netscape.com
be0240395a Added DeleteLine method 1998-12-07 22:28:23 +00:00
kipp%netscape.com
4d4668dca4 Slightly better handling of left/right block margins 1998-12-07 19:34:41 +00:00
harishd%netscape.com
d87392317e Changed all the places that previously accessed mBorderStyle and mBorderColor
with the new methods added in nsStyleSpacing
1998-12-07 18:53:07 +00:00
troy%netscape.com
e89b2bc6c9 Added support for printing multiple pages 1998-12-07 03:43:02 +00:00
kipp%netscape.com
74e1833184 Setup first-letter-style to be off by default 1998-12-05 16:05:52 +00:00
kipp%netscape.com
937981b419 Removed handling of block frames (its done by nsBlockReflowContext now) 1998-12-05 16:05:23 +00:00
kipp%netscape.com
6c1eed9eb2 Spanked to be a subclass of the nsBaseIBFrame class 1998-12-05 16:04:46 +00:00
kipp%netscape.com
c87f62165e Removed carried-out-margin-flags 1998-12-05 16:04:33 +00:00
kipp%netscape.com
81c8c1f32d Renamed a variable to (hopefully) be more clear what it is 1998-12-05 16:03:53 +00:00
kipp%netscape.com
e98ecaebf7 Made IndentBy public 1998-12-05 16:03:07 +00:00
kipp%netscape.com
1bc51979bf Use FirstChild so the method is more reusable 1998-12-05 16:02:43 +00:00
kipp%netscape.com
da289aba99 Moved to new Init/ctor seperation 1998-12-05 16:02:26 +00:00
kipp%netscape.com
907f06864c Major spankage; refactored code; common base class for block/inline frames 1998-12-05 16:02:08 +00:00
kipp%netscape.com
a52f9d25e1 nit 1998-12-05 16:01:41 +00:00
kipp%netscape.com
7d958338bc Made dtor obviously virtual instead of inherited virtual 1998-12-05 16:01:28 +00:00
kipp%netscape.com
a00a2855e8 Updated 1998-12-05 16:01:11 +00:00
kipp%netscape.com
f41c946598 Added new source files 1998-12-05 16:00:56 +00:00
ramiro%netscape.com
e2b921bf3c Add cvsignore entries for makefiles generated bu autoconf. 1998-12-05 09:07:33 +00:00
troy%netscape.com
62857a1141 Moved creation of first page frame to frame construction code, and changed
it so the page frame has a view. This makes printing faster and easier
1998-12-04 21:04:56 +00:00
troy%netscape.com
205250b6c4 Moved view creation to frame construction code. Also moved wrapping of
floated and absolutely positioned elements to frame construction code
1998-12-04 19:03:44 +00:00
troy%netscape.com
90f35ce118 Changed view creation to occur when frame initialization occurs 1998-12-04 05:56:06 +00:00
troy%netscape.com
b7a4774af0 Removed some commented out old code 1998-12-04 03:46:59 +00:00
mjudge%netscape.com
2d6a42cd38 new use of enumerator class changed IsDone to return NS_COMFALSE if not done 1998-12-03 21:44:54 +00:00
buster%netscape.com
58dc37167f added atoms for table pseudo style contexts 1998-12-03 18:00:42 +00:00
troy%netscape.com
fbd9f4ef8b Removed explicit call of base class constructor because it was
making Unix compilers unhappy
1998-12-03 07:20:59 +00:00
troy%netscape.com
2a4b2c503f Added Init() member function to nsIFrame 1998-12-03 06:31:43 +00:00
wtc%netscape.com
59b32f50ef This checkin (under mozilla/layout) is all about 'const'. Digital Unix's
C++ compiler is strict about getting 'const' right.  Most of the changes
are to add 'const' to the type casts for the second argument of the
GetStyleData method, which wants a const reference.
1998-12-02 16:45:20 +00:00
peterl%netscape.com
16457d2733 added inline style accessor 1998-12-02 00:33:12 +00:00
kipp%netscape.com
5841a14537 new 1998-12-01 16:13:49 +00:00
troy%netscape.com
900c396915 Changed to handle StyleChanged incremental reflow command 1998-12-01 05:17:12 +00:00
michaelp%netscape.com
8732a493d7 fixed memory leak. 1998-11-28 04:24:46 +00:00
kipp%netscape.com
dd21432b23 Compute combined area properly 1998-11-26 18:11:23 +00:00
kipp%netscape.com
5b4b437bb3 Fixed verify reflow to avoid creating reflow commands during a verify reflow 1998-11-26 18:11:02 +00:00
peterl%netscape.com
e3f218d5b4 style change notification support 1998-11-26 01:34:53 +00:00
kipp%netscape.com
2e9a075c19 Brought verify-reflow back to life 1998-11-25 18:41:02 +00:00
joki%netscape.com
2b2bfb85dd Add missing coordinate transform to getFrameForPoint 1998-11-24 20:31:21 +00:00
joki%netscape.com
e7f70ce9ce Add click event support for every element and initial keypress event support 1998-11-24 07:46:58 +00:00
kipp%netscape.com
2fb0e7ca92 Let style override the cursor choice when using an image map 1998-11-23 22:21:13 +00:00
kipp%netscape.com
7ce43732e5 Walk up the content-parent so that style is applied appropriately for cursor selection 1998-11-23 22:20:50 +00:00
kipp%netscape.com
ad84255162 Factored IsReplaced into a throw-away method; fixed containing-block discovery to use IsPercentageBase method 1998-11-23 21:11:57 +00:00
kipp%netscape.com
c6708dec6e Use correct reflow-state to find the containing-block's width for text-indent (bug #1048) 1998-11-23 21:11:19 +00:00
kipp%netscape.com
3418cf24af Fix up painting issue; if we end up with a negative damage area then convert to damaging everything 1998-11-21 17:21:18 +00:00
troy%netscape.com
9b6b15c587 Improved efficiency by avoiding the dreadfully slow NS_MakeAbsoluteURL() and
only setting the image loader's URL and base URL for the initial reflow
1998-11-21 04:04:41 +00:00
kipp%netscape.com
55cb6eedb8 Fixed scroll-frame code to properly fill in the max-element-size 1998-11-21 03:52:01 +00:00
cyeh%netscape.com
65038e9551 Removing static makefiles as a part of the transition to Autoconf. I have taken great
care to only remove makefiles affailiated with building nglayout. I have also verified that
the build at this point in time succesfully builds with autoconf.

If you must recover one of these makefiles, you can use the static tag STATIC_MAKEFILES.
If I removed a makefile that you need, please e-mail cyeh@netscape.com.
1998-11-21 00:34:32 +00:00
joki%netscape.com
b3039514cf Fixing a submit/reset event bug, frame destruction reentrancy bug, and an imagemap bug. 1998-11-21 00:19:36 +00:00
troy%netscape.com
4893fa0a92 Added nsHTMLAtoms::wrappedFramePseudo and changed ConstructFrame() to use
it instead of nsHTMLAtoms::columnPseudo
1998-11-20 23:27:59 +00:00
kipp%netscape.com
04dea9e450 Use revised GetContainingBlockContentWidth method 1998-11-20 22:28:00 +00:00
kipp%netscape.com
11b6602001 Support margins on the child frame 1998-11-20 22:27:33 +00:00
kipp%netscape.com
708e34ce7a Work around more bugs in the style context code and use old margin calculations; factored get-containing-block-width better 1998-11-20 22:27:21 +00:00
kipp%netscape.com
12c4f09bc1 Disable fixed behavior when we are shrink wrapping so that floating tables (for example) can ignore their width if necessary 1998-11-20 22:24:20 +00:00
buster%netscape.com
ace67d6fb2 added tablePseudo 1998-11-20 21:05:31 +00:00
kipp%netscape.com
be3aca0f4e Added support for StyleChanged reflow reason 1998-11-20 17:41:44 +00:00
kipp%netscape.com
27d8038001 Temporary workaround for style issue 1998-11-20 17:39:11 +00:00
kipp%netscape.com
8a2735c01b Added mBorderPadding to cache computed value in case percentages are used; renamed class to nsImageFrame 1998-11-20 17:21:02 +00:00
kipp%netscape.com
c9013931ab Use revised API's for computing the border/padding 1998-11-20 17:20:29 +00:00
kipp%netscape.com
79dd1e596d Define new API's to compute margin/border/padding/border+padding and handle percentages correctly 1998-11-20 17:19:26 +00:00
kipp%netscape.com
7b0a080513 Use revised API's to get percentage padding/borders value right 1998-11-20 17:18:58 +00:00
kipp%netscape.com
19a31f599b Use revised margin calculation api's; center blocks that have auto margins 1998-11-20 17:18:12 +00:00
kipp%netscape.com
ac2b613d40 Use Get methods from style context instead of deprecated methods 1998-11-20 17:13:28 +00:00
kipp%netscape.com
deb074f83f Updated leaf api's to better support caching of computed border/padding when percentages are used 1998-11-20 17:13:02 +00:00
kipp%netscape.com
200bf59a53 Added mBorderPadding to cache computed value in case percentages are used 1998-11-20 17:12:39 +00:00
kipp%netscape.com
f4b67a0608 Added mBorderPadding to cache computed value in case percentages are used; renamed class to nsImageFrame 1998-11-20 17:12:25 +00:00
troy%netscape.com
79aed9646d Added temporary workaround to image frame code to compensate for the fact
that HandleEvent() and GetCursor() are being called with the point not being
translated to the frame's local coordinate space
1998-11-20 06:31:55 +00:00
troy%netscape.com
5bdb79ef7f Removed some #include lines that are no longer needed 1998-11-20 05:22:45 +00:00
kipp%netscape.com
9582e9f3ec Improved the regression dump data somewhat 1998-11-19 18:51:53 +00:00
kipp%netscape.com
157425553e Override FrameForPoint so that floaters/bullets get events 1998-11-19 18:09:57 +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
50e5afb598 Added XMLQuote to quote special characters; changed MakeFrameName to avoid needing quoting 1998-11-19 17:55:22 +00:00
kipp%netscape.com
a6926809f0 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
troy%netscape.com
53d3c08626 Changed to make sure we mark the absolutely positioned element's view as
having transparent content if the visibility is hidden
1998-11-19 04:26:51 +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
troy%netscape.com
22f284d54b Fix for bug #1265. For incremental reflow now checks for the case where the new
height is smaller than the old height and makes sure we erase the entire area
1998-11-19 01:39:07 +00:00
joki%netscape.com
65520ba928 Modify event flow to avoid walking into trashed frames. 1998-11-19 00:43:36 +00:00
kipp%netscape.com
0fc2a76de0 Use new methods in nsHTMLReflowState to discover the proper width to base the text-indent percentage on (bug #1048) 1998-11-19 00:00:18 +00:00
kipp%netscape.com
6681f98a46 Added two new utility methods on nsHTMLReflowState for finding a containing block's reflow state and for finding a containing blocks content width 1998-11-18 23:59:49 +00:00
troy%netscape.com
d4cf65cd18 Changed Reflow() to make sure that the child is sized at least as big as the max size
we gave it as part of the reflow command
1998-11-18 23:49:44 +00:00
troy%netscape.com
9d1564cf4a Added some constants to use when referring to child list name indices 1998-11-18 06:13:58 +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
troy%netscape.com
69fb6f5543 Removed mFlags from nsBodyFrame and now we use the mFlags defined by
nsBlockFrame
1998-11-18 04:16:03 +00:00
troy%netscape.com
cab003320a Fixed a couple of cases where I missed calling the base class 1998-11-18 04:06:19 +00:00
troy%netscape.com
2fdc3b4633 Removed mChildCount member data 1998-11-18 03:44:08 +00:00
troy%netscape.com
74212908e2 Made sure the block's SetFlags() member function is called. This fixes shrink
wrapping so it works again
1998-11-18 03:27:04 +00:00
peterl%netscape.com
265c4ca8a7 cleaned up cursor style handling 1998-11-18 02:11:54 +00:00
peterl%netscape.com
e26b45e286 added text pseudo tag 1998-11-18 02:09:53 +00:00
amusil%netscape.com
e960e8007a Bug fix for 1201. Now use the size parameters from the object tag as a determinant of size. 1998-11-17 23:29:20 +00:00
kipp%netscape.com
552551e512 Revised max-element-size computation somewhat so that floaters are accounted for better 1998-11-17 22:28:51 +00:00
troy%netscape.com
f350be91c1 Changed the body to be a subclass of nsBlockFrame rather than contain a
block frame
1998-11-17 16:37:39 +00:00
troy%netscape.com
4f1b20b058 Fixed CreateWrapperFrame() so it resets the geometric and content parent pointers
of the frame being wrapped
1998-11-17 05:47:06 +00:00
troy%netscape.com
688027c9d3 Fixed problem that caused Mac build to break 1998-11-17 02:37:47 +00:00
vidur%netscape.com
026c273104 Changes to allow disabling and enabling of style sheets. Introduced ReconstructFrames to nsIFrameConstructor. CSSStyleSheets now remember their document. Temporary fix to allow text content inside CSS tables. 1998-11-17 02:14:38 +00:00
kipp%netscape.com
2757f6e3d4 Fixed up incremental reflow for content-changed and removed floaters 1998-11-17 01:04:45 +00:00
kipp%netscape.com
389de1de86 Added in nsHTMLReflowState argument to ReflowFrame so that callers can properly initialize it 1998-11-17 01:04:21 +00:00
kipp%netscape.com
b1f6b6473f Tidy up; added some tracing 1998-11-17 01:03:59 +00:00
kipp%netscape.com
b4c8bce4e2 Removed DidReflow hack again 1998-11-17 01:03:41 +00:00
kipp%netscape.com
c3aca28e6c Look on all lists for frames 1998-11-17 01:03:28 +00:00
troy%netscape.com
bb256efbb7 Changed Reflow() to deal with reflow commands targeted at the root frame 1998-11-16 23:16:03 +00:00
troy%netscape.com
bd01f5a4c1 Added null pointer check in DidSetStyleContext(). This keeps us from crashing
on XML documents
1998-11-16 21:45:24 +00:00
troy%netscape.com
a435cf3ef5 Reinstated hack to have the placeholder frame forward the DidReflow() notification
to the floated frame. Needed until the block frame properly handles FirstChild()
and returns the list of floated frames
1998-11-16 18:33:21 +00:00
troy%netscape.com
d6a65c024a Split class declaration out into a separate header file so the body frame
can be a derived class
1998-11-16 17:11:12 +00:00
kipp%netscape.com
11b65a83d4 Removed extraneous bullet padding that was left-over from the pre-pseudo-style days 1998-11-15 01:17:05 +00:00
kipp%netscape.com
e45a5dc20c Attempt to compute max-element-size better 1998-11-15 01:13:44 +00:00
kipp%netscape.com
40136f9ee9 Tidy the max-element-size code 1998-11-15 01:13:25 +00:00
kipp%netscape.com
e9a7d36567 Properly walk up the tree to find the real color 1998-11-15 00:20:52 +00:00
kipp%netscape.com
6ad169555b Fixed bug #1257: the bug was that we were overrunning the transformers malloc'd buffer because the mBufferLength was never being updated 1998-11-14 22:27:50 +00:00
kipp%netscape.com
7c3763c3e0 Removed and unused member variable 1998-11-14 22:27:06 +00:00
kipp%netscape.com
68f8209644 Fixed frame-removed crash case (when we run out kids); bug #691 1998-11-14 21:57:38 +00:00
kipp%netscape.com
6bc24733d4 Basic support for :first-letter pseudo-elements 1998-11-14 21:01:26 +00:00
kipp%netscape.com
973c0a528c Eliminated NewFrame 1998-11-14 19:28:34 +00:00
kipp%netscape.com
f064456558 Modified List code to list floater list and bullet better; support multiple child lists; manage floater list properly 1998-11-14 19:28:11 +00:00
kipp%netscape.com
381815af96 Removed hacks that were mostly block-frame bug workarounds 1998-11-14 19:26:57 +00:00
kipp%netscape.com
11391735ba DidReflow now supports multiple child lists; added DeleteFrameList helper method 1998-11-14 19:25:34 +00:00
michaelp%netscape.com
7a9e1a4bc1 changes for pixel scaling/printing. 1998-11-14 01:52:27 +00:00
vidur%netscape.com
d5fc2aaaea Added support for XLink - simple links and show=replace or new. Modified nsILinkHandler interface. 1998-11-14 00:21:19 +00:00
joki%netscape.com
d316927b48 Modify cursor setting code to check css cursor setting for containers. 1998-11-13 23:58:52 +00:00
troy%netscape.com
87eff9d2bf Changed GetLoadImageFailed() so it checks with the image loader rather
than just using the value of mLoadImageFailed. Fixes bug #1287
1998-11-13 21:31:50 +00:00
troy%netscape.com
59a9e518ba Added check for SRC being an empty string 1998-11-13 18:38:16 +00:00
troy%netscape.com
36fd247c25 Changed it so that if there's a NULL URL then we set the mLoadImageFailed
flag and don't try and load the broken image URL. Only on Windows for now
until Mac and Unix support the image icons
1998-11-13 17:00:54 +00:00
troy%netscape.com
59c09cffdc Removed an assert that was incorrect and that triggered when print
previewing test1
1998-11-13 05:17:08 +00:00
rickg%netscape.com
ba3ddb1078 fixed a crash that someone missed 1998-11-13 04:58:35 +00:00
troy%netscape.com
555b09f7bd Added a scroll frame for print preview 1998-11-13 04:22:23 +00:00
troy%netscape.com
8e56559948 Added ListTag() member function 1998-11-13 02:20:31 +00:00
vidur%netscape.com
dbf2544c2b Added script handling to XML content sink. Made sure frame construction by tag wasn't done for XML. 1998-11-12 23:55:47 +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
kipp%netscape.com
ac0565a8f8 Fixed margin collapsing bug 1998-11-12 22:24:46 +00:00
alecf%netscape.com
72b7591567 fix for unix bustage 1998-11-12 20:27:31 +00:00
kipp%netscape.com
f554f82547 Fixed some serious bugs in list bullet placement that prevented some relatively easy cases from working at all; this fixes up most outside list bullet cases 1998-11-12 18:19:22 +00:00
kipp%netscape.com
784d48c0a8 Fixed list numbering to work again (whoops!); added support for display: compact (just the beginnings); more work-in-progress for :first-letter support 1998-11-12 16:32:56 +00:00
kipp%netscape.com
4520864b33 Support for display: compact 1998-11-12 16:32:19 +00:00
kipp%netscape.com
45356c7502 Some support for first-letter style 1998-11-12 16:31:38 +00:00
troy%netscape.com
383e706f7d Changed slightly the check for whether the vertical scrollbar will be hidden.
This way it works better for XML documents that have an initial value for the
overflow property
1998-11-12 03:56:57 +00:00
vidur%netscape.com
8723f8326b Added XML display support. Split nsGenericHTMLElement into generic and HTML-specific components. Minor style modification. New XML classes and interfaces. 1998-11-11 22:06:16 +00:00
troy%netscape.com
3c6f99e1d7 Eliminated the hack where the scroll frame was creating a BODY wrapper for
the scrolled frame. Now the frame construction code creates the wrapper
frame
1998-11-11 04:43:13 +00:00
kipp%netscape.com
2f43e35996 Added a sleazy implementation of css2's run-in display type 1998-11-11 03:55:55 +00:00
kipp%netscape.com
85c8ae6bcf Added a method to support propogation of the mRunInFrame info down into the reflow of a block 1998-11-11 03:55:23 +00:00
kipp%netscape.com
add7918774 Added run-in and compact display types to the TreatFrameAsBlockFrame method 1998-11-11 03:54:47 +00:00
kipp%netscape.com
dfbd908044 Added mRunInFrame to the html reflow state so that run-in frame handling can be forwarded from a parent block to a child block 1998-11-11 03:54:15 +00:00
cls%seawood.org
288a1c7f8c Fixes to resource install for xpfe. Fixes to make MOZ_NATIVE_* work again. Thanks to Jeremy Lea <reg@shale.csir.co.za> for the diffs. 1998-11-11 01:53:49 +00:00
kipp%netscape.com
ef7315d187 Fixed AddFrame method hiding 1998-11-10 19:20:53 +00:00
kipp%netscape.com
594ec210f9 Removed unused include 1998-11-10 19:16:32 +00:00
kipp%netscape.com
a6ea00c527 Use lineLayout object to pass on floater to the containing block 1998-11-10 18:04:34 +00:00
kipp%netscape.com
8b1973c472 Added InitFloater 1998-11-10 18:04:19 +00:00
kipp%netscape.com
34bf927f85 Use geometric parent to get containing block of the floater 1998-11-10 18:04:10 +00:00
kipp%netscape.com
afb208283b Removed obsolete IIDs 1998-11-10 18:03:53 +00:00
kipp%netscape.com
366b13adac Removed GetReflowMetrics 1998-11-10 18:03:42 +00:00
kipp%netscape.com
edd04980fc Tidy up by removing some old junky code 1998-11-10 18:03:29 +00:00
kipp%netscape.com
eaa75a51fe nuked 1998-11-10 18:02:20 +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
6e8a40b6ce Added GetChildListName() member function 1998-11-10 04:31:02 +00:00
joki%netscape.com
561847577e Stop dual event flow through both frames kids and view kids. Now flows through views. 1998-11-10 00:35:30 +00:00
karnaze%netscape.com
aec75f892e form control content attribute changes (not all) reflected in layout; fixed scrolling on <iframe>, <frame>;
added nsImageControlFrame to handle <input type=image>.
1998-11-09 23:30:16 +00:00
troy%netscape.com
9d8145f033 Added GetAdditionalChildListName() as a way to discover additional
named child lists at runtime
1998-11-09 19:59:33 +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
40dbf5063b Disabled some more dubious br/margin code 1998-11-09 17:54:37 +00:00
troy%netscape.com
5befa347fb Added a hack to make sure that the floated frame gets a DidReflow notification 1998-11-07 00:03:45 +00:00
troy%netscape.com
3c62625d97 Added support for using foreground color and background color from user
preferences. Also made it so we observe the preferences, get a callback if
they change, and then do a style change reflow
1998-11-06 16:16:01 +00:00
kipp%netscape.com
07564642ae Fixed nowrap support by computing max-element-size better 1998-11-06 02:09:21 +00:00
peterl%netscape.com
eb27d38c27 turned bilnking off when the attribute goes away 1998-11-06 00:50:27 +00:00
troy%netscape.com
6214cab218 Changed BODY frame to create a continuing block frame during Init() if
the body has a prev-in-flow
1998-11-05 21:41:12 +00:00
kipp%netscape.com
1bafa4a69f Temporary fix to get rid of the green text 1998-11-05 19:38:32 +00:00
kipp%netscape.com
34aec22132 Fixed a few more floater bugs; fixed incremental reflow bug with regards to BR tags (clear=all for example); support :first-line properly; work in progress on :first-letter 1998-11-05 19:33:01 +00:00
kipp%netscape.com
430d6b8b6f Make sure overflow lists get ReResolved too 1998-11-05 19:31:59 +00:00
kipp%netscape.com
c9dcd9009c Added UpdateStyleContexts for support change-out of style contexts 1998-11-05 19:31:39 +00:00
kipp%netscape.com
4957b3f0d6 Added code to repair the style-contexts when pushing/pulling frames for support of :first-line and :first-letter (and so on!) 1998-11-05 19:31:16 +00:00
kipp%netscape.com
e6375145fe Added GetAvailWidth 1998-11-05 19:30:45 +00:00
kipp%netscape.com
ff42a3eb90 Added some first-letter support 1998-11-05 19:30:31 +00:00
kipp%netscape.com
c4da295fd8 Eliminated hacky version of :first-line support; lay some groundwork for :first-letter support 1998-11-05 19:27:42 +00:00
troy%netscape.com
04c879d6fb Changed frame construction code to create a simple page sequence frame
when paginated
1998-11-05 06:13:55 +00:00
troy%netscape.com
22d1bd6f04 Updated to work with new frame construction code 1998-11-05 06:12:57 +00:00
troy%netscape.com
34ef7d33db Added simple page sequence formatting object 1998-11-04 23:21:50 +00:00
troy%netscape.com
768d7859c8 Removed code for RootContentFrame class which is no longer used 1998-11-04 21:02:32 +00:00
buster%netscape.com
c7dbb849e8 nsHTMLReflowCommand now has mAttribute, the attribute that triggered StyleChanged reflow
for reflow commands of type other than StyleChanged, mAttribute is nsnull.
1998-11-04 19:26:25 +00:00
troy%netscape.com
de38423189 Added some temporary code to GetContainingBlock() to make sure we return
a frame that supports the nsIAbsoluteItems interface
1998-11-04 05:35:33 +00:00
michaelp%netscape.com
dff35cf838 removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to
nsIScrollableView.
1998-11-04 04:14:10 +00:00
kipp%netscape.com
043a97b611 Added an assertion 1998-11-04 00:29:39 +00:00
kipp%netscape.com
723caba947 Removed my style-changed work-around from last time (because it breaks incremental reflow badly); revised QueryInterface to use the revised way of casting 1998-11-04 00:29:17 +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
cedec7bc27 sync to style resolution api changes 1998-11-03 20:33:43 +00:00
peterl%netscape.com
e046b13589 sync to style resolution api changes
added reresolve support
1998-11-03 20:23:15 +00:00
michaelp%netscape.com
d2b75b1ba9 changed nsIView::Init() so that it no longer takes an opacity value. this
allows the view manager to maintain global state re: opacity.
1998-11-03 06:36:36 +00:00
troy%netscape.com
c347b9a308 Added some temporary code to ensure that the floated frame is deleted 1998-11-02 23:57:25 +00:00
joki%netscape.com
7a58f918de Adding submit event type 1998-11-02 23:05:46 +00:00
troy%netscape.com
fe4e76d9d9 Renamed HaveConstrainedWidth() and HaveConstrainedHeight() to HaveFixedContentWidth()
and HaveFixedContentHeight()
1998-11-01 01:29:00 +00:00
kipp%netscape.com
eb832dc1a3 nit changes 1998-10-31 22:53:00 +00:00
kipp%netscape.com
de68bd9637 Removed a private assert 1998-10-31 22:50:38 +00:00
kipp%netscape.com
bc8ba33541 Removed mInlineAware 1998-10-31 22:50:26 +00:00
kipp%netscape.com
12dbdf6cdd Added vertical alignment tracing; use new line layout white-space handling routines 1998-10-31 22:50:16 +00:00
kipp%netscape.com
f41818bc4c Reworked white-space compression flags so that inline-reflow can detect white-space aware frames properly 1998-10-31 22:48:56 +00:00
kipp%netscape.com
3371afc510 Use revised line-layout whitespace compression methods; fixed trim to not trim out compressed whitespace; fixed code to break multi-span words when the first placable frame contains a breakable point 1998-10-31 22:48:21 +00:00
troy%netscape.com
0f88fd3cc0 Changed InitConstraints() to set the constraint to be "fixed content"
rather than "constrained" if there's an explicit width or height property
specified
1998-10-31 17:56:37 +00:00
troy%netscape.com
633fecba5e Added code to invalidate the frame after a resize if there is border or
padding. Otherwise the border/padding area was left dirty
1998-10-31 04:40:01 +00:00
sar%netscape.com
54b32fe09a nsDOMEVent.h -> nsDOMEvent.h to fix build bustage 1998-10-31 02:15:35 +00:00