Commit Graph

1212 Commits

Author SHA1 Message Date
kipp%netscape.com
3c5005ec2d Clean up block frame flags 1999-01-12 16:41:30 +00:00
vidur%netscape.com
274a4add3e Second pass of attributes as nodes. Improved namespace management - XML elements now hold on to their containing namespace. Fixed Get/SetDOMAttriute naming issue. Added new namespace parsing methods to nsIContent 1999-01-12 16:37:24 +00:00
troy%netscape.com
4f14253e33 Turned off assert 1999-01-09 01:43:02 +00:00
kipp%netscape.com
10a89709d7 new 1999-01-09 00:18:08 +00:00
kipp%netscape.com
75891f558f nuked 1999-01-09 00:14:17 +00:00
kipp%netscape.com
4fb3f00732 Removed a turd 1999-01-09 00:14:09 +00:00
kipp%netscape.com
d1dd0f55bd Reworked to use dom content objects for holding the raw map data and observering content changes and updating the 'compiled' map 1999-01-09 00:13:53 +00:00
kipp%netscape.com
19e73d1f62 Use nsImageMap 1999-01-09 00:13:19 +00:00
kipp%netscape.com
b8a8b7e309 Changed over to using nsImageMap instead of nsIImageMap 1999-01-09 00:12:49 +00:00
kipp%netscape.com
4cbb066ec7 Added new atom 1999-01-09 00:12:28 +00:00
karnaze%netscape.com
c2cfb8b82f dom table methods, moved align="char" data members from nsReflowState to nsHTMLReflowState 1999-01-08 18:57:40 +00:00
troy%netscape.com
20fbd1e186 Added support for 'right' and 'bottom' properties. Changed to using a
nsStyleSides struct to hold all the offsets
1999-01-08 04:47:46 +00:00
troy%netscape.com
6d753e4c78 Changed to handle FrameRemoved reflow command for an absolutely positioned
child frame
1999-01-07 05:46:26 +00:00
troy%netscape.com
b9a4ba7918 Fixed FindFrameWithContent() to do a better job of recognizing placeholder
frames and skipping them
1999-01-07 04:47:43 +00:00
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