110 Commits

Author SHA1 Message Date
mjudge%netscape.com
58d3c27e3c ok I am changing nsPresShell to "do the right thing". The virtual methods to support nsIFocusTracker needed to use the MACROS the same as the rest of the methods. I also moved the growing inline methods to their own method declarations. pres shell also needs to send itself as a focus tracker to "reset selection" to allow a callback to reset the frames that will be the focus and anchor frames for the future. getting frames from content is easy, getting the exact frame with an offset as well is difficult. nsTextFrame does some funny things with whitespaces that was throwing off the selection code. one minute the beginning of a word is offset 1 then it grows to 2 if the whitespace on the previous line wraps. I also put limits on the selection drawing. the drawing was happening after reflow, but before reset selection. this made the selection drawing extend beyond the legal limits of the "textlength". P.S. since the paint unicode and paint ascii are so similar, is it better to make a helper func to do the common things? or maybe make another method just to save namespace?
git-svn-id: svn://10.0.0.236/trunk@18462 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 01:48:01 +00:00
akkana%netscape.com
579c399f12 2028: Get selection highlighting working on Linux
git-svn-id: svn://10.0.0.236/trunk@18373 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-23 00:00:46 +00:00
mjudge%netscape.com
549eaa4d7f selection rocks ass
git-svn-id: svn://10.0.0.236/trunk@18337 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 22:04:54 +00:00
mjudge%netscape.com
06c5902e82 chagnes for selection to work
git-svn-id: svn://10.0.0.236/trunk@18322 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 18:58:14 +00:00
mjudge%netscape.com
54b82849bb fiximg text selection for frames in frames
git-svn-id: svn://10.0.0.236/trunk@18035 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 23:36:06 +00:00
mjudge%netscape.com
2434c90ca2 selection should work now more or less
git-svn-id: svn://10.0.0.236/trunk@18003 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 06:42:39 +00:00
mjudge%netscape.com
9251454eba Files for selection across frames.
git-svn-id: svn://10.0.0.236/trunk@17971 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-18 22:57:12 +00:00
kipp%netscape.com
4e355995e6 Spanked away SizeOf methods and nsIListFilter
git-svn-id: svn://10.0.0.236/trunk@17895 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-16 00:00:50 +00:00
troy%netscape.com
ecc9f6f19d Removed the content-parent frame pointer. Now we just have the one geometric
parent


git-svn-id: svn://10.0.0.236/trunk@17702 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-14 05:16:23 +00:00
troy%netscape.com
641be3028f Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"


git-svn-id: svn://10.0.0.236/trunk@17201 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-05 23:31:18 +00:00
kipp%netscape.com
31c482e2a8 Use macros from nsTextFragment
git-svn-id: svn://10.0.0.236/trunk@17198 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-05 23:02:27 +00:00
troy%netscape.com
9a7f94d20b Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@16924 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 03:38:16 +00:00
kipp%netscape.com
eaee82d4b3 Revised frame Paint API
git-svn-id: svn://10.0.0.236/trunk@16666 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 15:54:23 +00:00
mjudge%netscape.com
e19079121c adding in selection
git-svn-id: svn://10.0.0.236/trunk@16347 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:34:14 +00:00
kipp%netscape.com
2008c897f6 I disabled selection rendering until it works again
git-svn-id: svn://10.0.0.236/trunk@16297 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 03:05:24 +00:00
kipp%netscape.com
78fe4cf1a1 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
git-svn-id: svn://10.0.0.236/trunk@16110 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 00:30:52 +00:00
mjudge%netscape.com
03ace6e2d1 chagnes to selection
git-svn-id: svn://10.0.0.236/trunk@15977 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:26:06 +00:00
mjudge%netscape.com
307185c34e new use of enumerator class changed IsDone to return NS_COMFALSE if not done
git-svn-id: svn://10.0.0.236/trunk@15724 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 21:44:54 +00:00
troy%netscape.com
01f27b2a31 Added Init() member function to nsIFrame
git-svn-id: svn://10.0.0.236/trunk@15682 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 06:31:43 +00:00
wtc%netscape.com
d45ab8ecf7 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.


git-svn-id: svn://10.0.0.236/trunk@15625 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:45:20 +00:00
michaelp%netscape.com
1428cec472 fixed memory leak.
git-svn-id: svn://10.0.0.236/trunk@15391 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-28 04:24:46 +00:00
kipp%netscape.com
b527c7f026 Added DumpRegressionData; revised ListTag; added GetFrameName
git-svn-id: svn://10.0.0.236/trunk@14946 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:22:29 +00:00
joki%netscape.com
f1462f4d55 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)


git-svn-id: svn://10.0.0.236/trunk@14864 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:25:26 +00:00
peterl%netscape.com
01c47ed171 cleaned up cursor style handling
git-svn-id: svn://10.0.0.236/trunk@14845 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 02:11:54 +00:00
vidur%netscape.com
c67a7ad987 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.
git-svn-id: svn://10.0.0.236/trunk@14781 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:14:38 +00:00
kipp%netscape.com
9e3eceabae Basic support for :first-letter pseudo-elements
git-svn-id: svn://10.0.0.236/trunk@14676 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 21:01:26 +00:00
kipp%netscape.com
152ed9b709 Some support for first-letter style
git-svn-id: svn://10.0.0.236/trunk@14505 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 16:31:38 +00:00
peterl%netscape.com
bdb4c727fb turned bilnking off when the attribute goes away
git-svn-id: svn://10.0.0.236/trunk@14172 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 00:50:27 +00:00
kipp%netscape.com
040c3e3f0e Eliminated hacky version of :first-line support; lay some groundwork for :first-letter support
git-svn-id: svn://10.0.0.236/trunk@14147 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-05 19:27:42 +00:00
peterl%netscape.com
93d3fcc553 sync to style resolution api changes
git-svn-id: svn://10.0.0.236/trunk@14009 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-03 20:33:43 +00:00
kipp%netscape.com
c3340327ce Removed a private assert
git-svn-id: svn://10.0.0.236/trunk@13826 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-31 22:50:38 +00:00
kipp%netscape.com
cd7dbec032 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
git-svn-id: svn://10.0.0.236/trunk@13822 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-31 22:48:21 +00:00
michaelp%netscape.com
29bd495725 changes to support nsIRenderingContext that conforms to COM conventions.
git-svn-id: svn://10.0.0.236/trunk@13703 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 02:08:25 +00:00
kipp%netscape.com
7bb700d460 Use normal font always when rendering text-decorations, not the small-caps font
git-svn-id: svn://10.0.0.236/trunk@13581 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-28 02:03:40 +00:00
kipp%netscape.com
214076ccbf Fixed underlining bug; support justification
git-svn-id: svn://10.0.0.236/trunk@13563 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-27 16:52:34 +00:00
peterl%netscape.com
f82390981e renamed cursor defines
git-svn-id: svn://10.0.0.236/trunk@13502 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 23:14:17 +00:00
kipp%netscape.com
c1032fa648 Support letter and word spacing
git-svn-id: svn://10.0.0.236/trunk@13450 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 17:27:53 +00:00
kipp%netscape.com
18eaaa07f0 Removed premature optimization of pre vs. non-pre
git-svn-id: svn://10.0.0.236/trunk@13269 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-21 20:03:54 +00:00
kipp%netscape.com
a4de4b5d61 Implement capitalization trasnform and small-caps font-variant
git-svn-id: svn://10.0.0.236/trunk@13204 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-20 16:46:14 +00:00
kipp%netscape.com
9d55f92a4e Spanked hard to use the nsTextTransformer
git-svn-id: svn://10.0.0.236/trunk@13154 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-20 00:21:18 +00:00
kipp%netscape.com
b951ea47e4 Return break-before when none of the text gets used
git-svn-id: svn://10.0.0.236/trunk@12592 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-12 18:44:58 +00:00
kipp%netscape.com
02b5b864b2 Implement look-ahead logic for word breaking
git-svn-id: svn://10.0.0.236/trunk@12509 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-10 04:35:21 +00:00
kipp%netscape.com
055d1a3d2f Removed skid marks; implement FindTextRuns again
git-svn-id: svn://10.0.0.236/trunk@12479 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-09 23:46:02 +00:00
troy%netscape.com
ab9971c67b Removed GetContentIndex() from nsIFrame
git-svn-id: svn://10.0.0.236/trunk@12307 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 20:35:16 +00:00
troy%netscape.com
576757f155 Removed nsIInlineReflow and folded it into nsIHTMLReflow
git-svn-id: svn://10.0.0.236/trunk@11847 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-03 04:28:05 +00:00
kipp%netscape.com
e6c8df823f Fixed to not render trailing whitespace
git-svn-id: svn://10.0.0.236/trunk@11835 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-03 00:48:19 +00:00
troy%netscape.com
e191c422d9 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure


git-svn-id: svn://10.0.0.236/trunk@11749 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 04:10:00 +00:00
michaelp%netscape.com
7c2022dc32 modified for new fontmetrics/renderingcontext.
git-svn-id: svn://10.0.0.236/trunk@11736 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 01:12:39 +00:00
troy%netscape.com
7eac0bfdac Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface


git-svn-id: svn://10.0.0.236/trunk@11646 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-01 04:46:11 +00:00
peterl%netscape.com
9b94d90eca moved attribute change code to style sheete
cleaned up content change api


git-svn-id: svn://10.0.0.236/trunk@11490 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-29 23:48:07 +00:00