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

252 Коммитов

Автор SHA1 Сообщение Дата
troy%netscape.com 325b563f8e Changed ComputeWordFragmentWidth() to handle the case where the content
object's document pointer is NULL
1999-03-29 04:15:07 +00:00
mjudge%netscape.com 48fad89b7b fixing errors with pre spaced text. prepareunicode string was not filling the index array correctly for thatn 1999-03-27 00:18:32 +00:00
kipp%netscape.com 94b81992a1 Work around some first-letter bugs 1999-03-26 00:41:36 +00:00
kipp%netscape.com 75735878ad Ask line if we are breakable instead of using our own logic 1999-03-21 01:13:17 +00:00
kipp%netscape.com bc13a8339b Removed some debris 1999-03-19 23:07:38 +00:00
kipp%netscape.com a98c3d799b Fixed bug #3918 with measuring small-caps text; ported to use new line-layout API's 1999-03-18 21:02:40 +00:00
kin%netscape.com a788e9d0a6 Fix for bug #3758: Drag selecting entire content, then deleting, causes crash.
Added check for mContentLength <= 0 to TextFrame::GetPointFromOffset().
Reviewed by jfrancis@netscape.com and sfraser@netscape.com.
Approved by chofmann@netscape.com.
1999-03-16 22:55:49 +00:00
kipp%netscape.com 9c705031c7 Only set ends-in-newline flag for pre text (bug #3262) 1999-03-16 19:36:49 +00:00
mjudge%netscape.com f2625f7693 needed to get caret to draw at end of line and on an empty text element 1999-03-13 21:33:34 +00:00
mjudge%netscape.com 27a2f67b20 fixed GetWidth to "do the right thing" and take smallcaps and spaced words/chars into account. 1999-03-12 21:38:16 +00:00
mjudge%netscape.com 26d8cc3a13 fixed memory leaks in nsRangelist.cpp. uninitialized memory in nsTextframe, simplified APIs in nsIFrame and the underlying implementations. see layout.checkins 1999-03-12 00:17:14 +00:00
akkana%netscape.com a909698500 Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com 1999-03-10 22:30:23 +00:00
kipp%netscape.com f9b2b82a67 Output rects in twips; eliminated some typo bugs with selection directions 1999-03-05 04:28:40 +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
ftang%netscape.com ffc1e146ac fix SmallCap to make it work for the whole range of unicode 1999-03-02 18:25:22 +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
kipp%netscape.com 921f7d5d90 For now text acts like a replaced element 1999-02-23 19:35:21 +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 eaf1a3cc93 gettig word jumping to work, adding GetPrevWord to texttransformer 1999-02-22 03:20:59 +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 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
kipp%netscape.com 7d24721c1b Be more careful about returning break-before status 1999-02-13 19:18:45 +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
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
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 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 b974e26cea Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +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 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
michaelp%netscape.com 0084e8879d modified for new DrawString()/GetWidth() APIs. 1999-01-28 05:03:58 +00:00
mjudge%netscape.com bec224216c turning off printf debug statements in debug to speed up resizing 1999-01-26 00:40:39 +00:00
mjudge%netscape.com 9bb5d8a906 changing paintunicodestring and paintasciistring to map from content coordinates to painttext coordinatres. in get position, i am now mapping from paint coordinates to content coordinates. also, the frames themselves now set the focus and anchor for a nsIFocusTracker passed in object. 1999-01-25 23:29:53 +00:00
mjudge%netscape.com 110a084f10 adding same code to paintAscii as i did to paintUnicode 1999-01-25 01:53:40 +00:00
mjudge%netscape.com 55f9005e7a 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? 1999-01-25 01:48:01 +00:00
akkana%netscape.com 56752ba2ed 2028: Get selection highlighting working on Linux 1999-01-23 00:00:46 +00:00
mjudge%netscape.com ee295b609b selection rocks ass 1999-01-22 22:04:54 +00:00
mjudge%netscape.com 769d4b5a86 chagnes for selection to work 1999-01-22 18:58:14 +00:00
mjudge%netscape.com d52a50ae45 fiximg text selection for frames in frames 1999-01-19 23:36:06 +00:00
mjudge%netscape.com dd0328320e selection should work now more or less 1999-01-19 06:42:39 +00:00
mjudge%netscape.com 34430366b2 Files for selection across frames. 1999-01-18 22:57:12 +00:00
kipp%netscape.com 7f96144059 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
troy%netscape.com 036e6852f2 Removed the content-parent frame pointer. Now we just have the one geometric
parent
1999-01-14 05:16:23 +00:00
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
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
kipp%netscape.com c29e5116c7 Revised frame Paint API 1998-12-18 15:54:23 +00:00
mjudge%netscape.com 2f5ca67ece adding in selection 1998-12-14 18:34:14 +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 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
mjudge%netscape.com 948d2e6638 chagnes to selection 1998-12-08 18:26:06 +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
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
michaelp%netscape.com 8732a493d7 fixed memory leak. 1998-11-28 04:24:46 +00:00
kipp%netscape.com a6926809f0 Added DumpRegressionData; revised ListTag; added GetFrameName 1998-11-19 17:22:29 +00:00
joki%netscape.com 77fd9c2652 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)
1998-11-18 05:25:26 +00:00
peterl%netscape.com 265c4ca8a7 cleaned up cursor style handling 1998-11-18 02:11:54 +00:00
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 6bc24733d4 Basic support for :first-letter pseudo-elements 1998-11-14 21:01:26 +00:00
kipp%netscape.com 45356c7502 Some support for first-letter style 1998-11-12 16:31:38 +00:00
peterl%netscape.com eb27d38c27 turned bilnking off when the attribute goes away 1998-11-06 00:50:27 +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
peterl%netscape.com cedec7bc27 sync to style resolution api changes 1998-11-03 20:33:43 +00:00
kipp%netscape.com de68bd9637 Removed a private assert 1998-10-31 22:50:38 +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
michaelp%netscape.com fc225bf7c1 changes to support nsIRenderingContext that conforms to COM conventions. 1998-10-30 02:08:25 +00:00
kipp%netscape.com 18aaa0bf5a Use normal font always when rendering text-decorations, not the small-caps font 1998-10-28 02:03:40 +00:00
kipp%netscape.com f9c31f6b2d Fixed underlining bug; support justification 1998-10-27 16:52:34 +00:00
peterl%netscape.com 04a0fce0ba renamed cursor defines 1998-10-26 23:14:17 +00:00
kipp%netscape.com a05bb7ee66 Support letter and word spacing 1998-10-26 17:27:53 +00:00
kipp%netscape.com a08c68342d Removed premature optimization of pre vs. non-pre 1998-10-21 20:03:54 +00:00
kipp%netscape.com 44bf493a8a Implement capitalization trasnform and small-caps font-variant 1998-10-20 16:46:14 +00:00
kipp%netscape.com 6f95672654 Spanked hard to use the nsTextTransformer 1998-10-20 00:21:18 +00:00
kipp%netscape.com 981d874132 Return break-before when none of the text gets used 1998-10-12 18:44:58 +00:00
kipp%netscape.com 367bee9920 Implement look-ahead logic for word breaking 1998-10-10 04:35:21 +00:00
kipp%netscape.com c6db34691b Removed skid marks; implement FindTextRuns again 1998-10-09 23:46:02 +00:00
troy%netscape.com d25a9a35a2 Removed GetContentIndex() from nsIFrame 1998-10-08 20:35:16 +00:00
troy%netscape.com b5b596a60a Removed nsIInlineReflow and folded it into nsIHTMLReflow 1998-10-03 04:28:05 +00:00
kipp%netscape.com 2fc6c5cce8 Fixed to not render trailing whitespace 1998-10-03 00:48:19 +00:00
troy%netscape.com 7aceb4270d Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure
1998-10-02 04:10:00 +00:00
michaelp%netscape.com 9b82a28284 modified for new fontmetrics/renderingcontext. 1998-10-02 01:12:39 +00:00
troy%netscape.com ba3c7125c2 Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface
1998-10-01 04:46:11 +00:00
peterl%netscape.com 7891e67337 moved attribute change code to style sheete
cleaned up content change api
1998-09-29 23:48:07 +00:00
kipp%netscape.com c8eeac02cd Fixed nbsp bug on some win95 systems - it turns out the nbsp wasn't being mapped to space in a few of the compression cases (doh!) 1998-09-29 16:24:32 +00:00
kipp%netscape.com c2091a6dff use line-layout's pres-context as a ref not a pointer 1998-09-23 02:32:17 +00:00
troy%netscape.com c76915c71d Added CreateContinuingFrame() 1998-09-18 02:47:03 +00:00
peterl%netscape.com 10de7afe92 added decoration rendering code to deal with CSSisms 1998-09-17 00:18:25 +00:00
kipp%netscape.com 8f2807a027 Removed css/layout directory 1998-09-15 00:19:49 +00:00
kipp%netscape.com f877659693 Fixup AddRef/Release and some constructors to use NS_ADDREF (etc) macros 1998-09-12 19:33:48 +00:00
rods%netscape.com ac66bf8936 GetPosition now uses a binary search for locating the cursor poistion. Also, selection now
uses the half width of a character for moving selection to the next character.
1998-09-10 19:18:01 +00:00
kipp%netscape.com d1380d78b9 Removed some cruft 1998-09-09 16:18:40 +00:00
rods%netscape.com 4a4b4a34b2 XPCOM'ed the Selection and Search methods 1998-09-09 16:11:59 +00:00
kipp%netscape.com 227e9f8ae1 new 1998-09-08 22:34:40 +00:00