118 Commits

Author SHA1 Message Date
kipp%netscape.com
78b5db7c44 Fixed bug 5255 and removed some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@29988 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:55:12 +00:00
mjudge%netscape.com
6f6f1af42d fixing bugs for unnecessary drawing in text fram as well as other assorted selection bugs.
git-svn-id: svn://10.0.0.236/trunk@29658 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-28 02:43:02 +00:00
mjudge%netscape.com
71e258df9c fixing skippage of some frames during selection
git-svn-id: svn://10.0.0.236/trunk@29564 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 22:35:41 +00:00
kipp%netscape.com
02ff0b8843 Removed compiler warnings; dump more info out in List method
git-svn-id: svn://10.0.0.236/trunk@29553 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 22:13:42 +00:00
mjudge%netscape.com
0352ad75c6 selection changes for new model of content only. frames no longer contain variables referring to selection state outside of 1 bit. keyboard selection will now be disabled until i can get it working in the new selection world order.
git-svn-id: svn://10.0.0.236/trunk@29153 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 04:02:04 +00:00
kipp%netscape.com
cf6064f2cb Fixed word lookahead logic to not look at continuations to avoid duplicate information
git-svn-id: svn://10.0.0.236/trunk@28498 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 19:59:16 +00:00
kipp%netscape.com
ae38abe477 Work around windoze compiler lossage
git-svn-id: svn://10.0.0.236/trunk@28205 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 01:53:28 +00:00
kipp%netscape.com
02a81bf0fd Eliminate a bunch of warnings
git-svn-id: svn://10.0.0.236/trunk@28175 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 00:23:33 +00:00
akkana%netscape.com
c07dbb012d Get rid of selection cursor for Unix now that caret is working
git-svn-id: svn://10.0.0.236/trunk@27685 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:42:53 +00:00
sfraser%netscape.com
dd4cde6089 Removal of nsSelectionRange, nsSelectionPoint, and fixing up resulting include problems.
git-svn-id: svn://10.0.0.236/trunk@27270 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 01:15:16 +00:00
mjudge%netscape.com
62dce85e69 indexes returned from prepareunicodestring are mContentOffset based. 3641 3772 Hoffman approved
git-svn-id: svn://10.0.0.236/trunk@26754 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-07 22:56:09 +00:00
ftang%netscape.com
1957cf6cfb add one boolean to indicate word break or line break
git-svn-id: svn://10.0.0.236/trunk@26572 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 22:41:44 +00:00
sfraser%netscape.com
d2d281780c Remove caret->Refresh calls. The presshell now refreshes the caret
after painting.


git-svn-id: svn://10.0.0.236/trunk@25955 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 00:01:05 +00:00
sfraser%netscape.com
54301e754c Fix a problem with tab expansion when filling the offset indices array.
git-svn-id: svn://10.0.0.236/trunk@25740 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 20:12:42 +00:00
kipp%netscape.com
647cec902d Support MOZ_PRE_WRAP
git-svn-id: svn://10.0.0.236/trunk@25650 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-31 04:12:46 +00:00
akkana%netscape.com
cc11e40e72 Turn on triangle cursor temporarily for Unix, until bug 4202 gets fixed
git-svn-id: svn://10.0.0.236/trunk@25457 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 22:02:16 +00:00
troy%netscape.com
bb9efbfd4a Changed ComputeWordFragmentWidth() to handle the case where the content
object's document pointer is NULL


git-svn-id: svn://10.0.0.236/trunk@25429 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-29 04:15:07 +00:00
mjudge%netscape.com
9839e1f518 fixing errors with pre spaced text. prepareunicode string was not filling the index array correctly for thatn
git-svn-id: svn://10.0.0.236/trunk@25262 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-27 00:18:32 +00:00
kipp%netscape.com
a0bf1cc46e Work around some first-letter bugs
git-svn-id: svn://10.0.0.236/trunk@25157 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-26 00:41:36 +00:00
kipp%netscape.com
4eefb39482 Ask line if we are breakable instead of using our own logic
git-svn-id: svn://10.0.0.236/trunk@24601 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-21 01:13:17 +00:00
kipp%netscape.com
4d19bb2e2c Removed some debris
git-svn-id: svn://10.0.0.236/trunk@24493 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 23:07:38 +00:00
kipp%netscape.com
7e25f9704c Fixed bug #3918 with measuring small-caps text; ported to use new line-layout API's
git-svn-id: svn://10.0.0.236/trunk@24319 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-18 21:02:40 +00:00
kin%netscape.com
f156b21405 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.


git-svn-id: svn://10.0.0.236/trunk@24232 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 22:55:49 +00:00
kipp%netscape.com
b3b4b4cbe6 Only set ends-in-newline flag for pre text (bug #3262)
git-svn-id: svn://10.0.0.236/trunk@24217 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 19:36:49 +00:00
mjudge%netscape.com
2ebf5f3b4b needed to get caret to draw at end of line and on an empty text element
git-svn-id: svn://10.0.0.236/trunk@24080 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 21:33:34 +00:00
mjudge%netscape.com
c77899adc4 fixed GetWidth to "do the right thing" and take smallcaps and spaced words/chars into account.
git-svn-id: svn://10.0.0.236/trunk@23979 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 21:38:16 +00:00
mjudge%netscape.com
5876940d2e fixed memory leaks in nsRangelist.cpp. uninitialized memory in nsTextframe, simplified APIs in nsIFrame and the underlying implementations. see layout.checkins
git-svn-id: svn://10.0.0.236/trunk@23802 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-12 00:17:14 +00:00
akkana%netscape.com
f198ef7ae3 Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com
git-svn-id: svn://10.0.0.236/trunk@23589 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 22:30:23 +00:00
kipp%netscape.com
c9fd8c7538 Output rects in twips; eliminated some typo bugs with selection directions
git-svn-id: svn://10.0.0.236/trunk@22848 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-05 04:28:40 +00:00
mjudge%netscape.com
4bb2e93aeb 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
git-svn-id: svn://10.0.0.236/trunk@22673 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-03 01:51:21 +00:00
ftang%netscape.com
88f3ce7132 fix SmallCap to make it work for the whole range of unicode
git-svn-id: svn://10.0.0.236/trunk@22589 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 18:25:22 +00:00
troy%netscape.com
b51e46e943 Removed nsIFrame::CreateContinuingFrame()
git-svn-id: svn://10.0.0.236/trunk@21866 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 05:31:15 +00:00
troy%netscape.com
f293c578fd Changed nsIFrame::Init() to take an additional parameter
git-svn-id: svn://10.0.0.236/trunk@21843 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 03:27:57 +00:00
ftang%netscape.com
5f7220fa9c change nsTextTransformer to break line by calling nsILineBreak and make nsTextFrame pass the nsILineBreaker to nsTextTransformer
git-svn-id: svn://10.0.0.236/trunk@21772 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 18:21:23 +00:00
troy%netscape.com
cd4ee3debc Added nsLayoutAtoms::textFrame
git-svn-id: svn://10.0.0.236/trunk@21706 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 05:33:40 +00:00
kipp%netscape.com
93a84ec681 Fixed bug #2885 - the linebreaker couldn't handle a special case...
git-svn-id: svn://10.0.0.236/trunk@21705 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 05:24:06 +00:00
troy%netscape.com
cc2323242f Changed GetNextInFlow() and GetPrevInFlow() to be pointer arguments and
not references


git-svn-id: svn://10.0.0.236/trunk@21702 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-24 04:48:08 +00:00
kipp%netscape.com
4585457984 For now text acts like a replaced element
git-svn-id: svn://10.0.0.236/trunk@21637 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-23 19:35:21 +00:00
mjudge%netscape.com
22b8399dde 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.
git-svn-id: svn://10.0.0.236/trunk@21454 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 04:59:52 +00:00
mjudge%netscape.com
465cddb814 gettig word jumping to work, adding GetPrevWord to texttransformer
git-svn-id: svn://10.0.0.236/trunk@21451 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-22 03:20:59 +00:00
mjudge%netscape.com
b52264a83e 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)
git-svn-id: svn://10.0.0.236/trunk@21359 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 23:47:36 +00:00
mjudge%netscape.com
549c1927f3 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.
git-svn-id: svn://10.0.0.236/trunk@20759 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-16 02:42:08 +00:00
kipp%netscape.com
7296f89a76 Be more careful about returning break-before status
git-svn-id: svn://10.0.0.236/trunk@20665 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 19:18:45 +00:00
sfraser%netscape.com
75c235687c Ensure the caret is refreshed after the text frame containing it is redrawn
git-svn-id: svn://10.0.0.236/trunk@20656 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-13 04:46:47 +00:00
troy%netscape.com
176116b148 Fixed some errors related to switch to using nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@20585 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:41:26 +00:00
kipp%netscape.com
9b917419dc COMized nsIPresShell and nsIPresContext
git-svn-id: svn://10.0.0.236/trunk@20570 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:45:58 +00:00
sfraser%netscape.com
b4a259e54f #ifdef tbe blue selection triangles in until the caret code is turned on
git-svn-id: svn://10.0.0.236/trunk@20476 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:05:19 +00:00
sfraser%netscape.com
0e66d5506a 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
git-svn-id: svn://10.0.0.236/trunk@20472 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:02:31 +00:00
akkana%netscape.com
0ebe0a4652 Rename nsISelection to nsIFrameSelection
git-svn-id: svn://10.0.0.236/trunk@20457 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-11 23:12:28 +00:00
mjudge%netscape.com
2a9e445535 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
git-svn-id: svn://10.0.0.236/trunk@20274 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-10 18:55:25 +00:00