Commit Graph

99 Commits

Author SHA1 Message Date
kipp@netscape.com
c9eecfac58 Ask line if we are breakable instead of using our own logic 1999-03-21 01:13:17 +00:00
kipp@netscape.com
6fc148b14b Removed some debris 1999-03-19 23:07:38 +00:00
kipp@netscape.com
3a527c010d 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
9921a1fe08 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
84130c9576 Only set ends-in-newline flag for pre text (bug #3262) 1999-03-16 19:36:49 +00:00
mjudge@netscape.com
cabbcc62f9 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
492b8be157 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
90b5efff4a 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
4b903e95e7 Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com 1999-03-10 22:30:23 +00:00
kipp@netscape.com
078a1fcd68 Output rects in twips; eliminated some typo bugs with selection directions 1999-03-05 04:28:40 +00:00
mjudge@netscape.com
85aff9625f 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
856108ae8a fix SmallCap to make it work for the whole range of unicode 1999-03-02 18:25:22 +00:00
troy@netscape.com
ca28eafb7d Removed nsIFrame::CreateContinuingFrame() 1999-02-25 05:31:15 +00:00
troy@netscape.com
7f63268a34 Changed nsIFrame::Init() to take an additional parameter 1999-02-25 03:27:57 +00:00
ftang@netscape.com
213f5a4141 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
5d5682b628 Added nsLayoutAtoms::textFrame 1999-02-24 05:33:40 +00:00
kipp@netscape.com
4509cd2725 Fixed bug #2885 - the linebreaker couldn't handle a special case... 1999-02-24 05:24:06 +00:00
troy@netscape.com
b2d859edbe Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references
1999-02-24 04:48:08 +00:00
kipp@netscape.com
3e14fd469e For now text acts like a replaced element 1999-02-23 19:35:21 +00:00
mjudge@netscape.com
462b1e5446 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
ac6633be8b gettig word jumping to work, adding GetPrevWord to texttransformer 1999-02-22 03:20:59 +00:00
mjudge@netscape.com
bf113cfe32 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
db0bce323b 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
9cc74177dc Be more careful about returning break-before status 1999-02-13 19:18:45 +00:00
sfraser@netscape.com
0cd9e4d0f3 Ensure the caret is refreshed after the text frame containing it is redrawn 1999-02-13 04:46:47 +00:00
troy@netscape.com
602de2f255 Fixed some errors related to switch to using nsCOMPtr 1999-02-12 18:41:26 +00:00
kipp@netscape.com
74b2988510 COMized nsIPresShell and nsIPresContext 1999-02-12 17:45:58 +00:00
sfraser@netscape.com
26b4e6a112 #ifdef tbe blue selection triangles in until the caret code is turned on 1999-02-12 00:05:19 +00:00
sfraser@netscape.com
231eebc995 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
0e46889822 Rename nsISelection to nsIFrameSelection 1999-02-11 23:12:28 +00:00
mjudge@netscape.com
ec19bd6e4d 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
655e2cab93 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
b4f8c0fbbe Changed some nsIFrame member functions to use ** instead of *& for OUT
paremeters
1999-02-10 00:42:56 +00:00
mjudge@netscape.com
71fde4f6dc 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
ae1818857e 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
bd06216ab8 modified for new DrawString()/GetWidth() APIs. 1999-01-28 05:03:58 +00:00
mjudge@netscape.com
6e5883620b turning off printf debug statements in debug to speed up resizing 1999-01-26 00:40:39 +00:00
mjudge@netscape.com
f588fc2234 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
0dc1ad5d27 adding same code to paintAscii as i did to paintUnicode 1999-01-25 01:53:40 +00:00
mjudge@netscape.com
d9346800ef 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
5c9ae6a6fa 2028: Get selection highlighting working on Linux 1999-01-23 00:00:46 +00:00
mjudge@netscape.com
75f7e9377e selection rocks ass 1999-01-22 22:04:54 +00:00
mjudge@netscape.com
4643533332 chagnes for selection to work 1999-01-22 18:58:14 +00:00
mjudge@netscape.com
d129bdb90b fiximg text selection for frames in frames 1999-01-19 23:36:06 +00:00
mjudge@netscape.com
87e36c7a0a selection should work now more or less 1999-01-19 06:42:39 +00:00
mjudge@netscape.com
4c5f15ec01 Files for selection across frames. 1999-01-18 22:57:12 +00:00
kipp@netscape.com
b1fe154193 Spanked away SizeOf methods and nsIListFilter 1999-01-16 00:00:50 +00:00
troy@netscape.com
62b64b2067 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
80de7a2d9f Replaced "maxSize" member if nsReflowState with "availableWidth" and
"availableHeight"
1999-01-05 23:31:18 +00:00
kipp@netscape.com
9f3e4c1249 Use macros from nsTextFragment 1999-01-05 23:02:27 +00:00