236 Commits

Author SHA1 Message Date
kipp%netscape.com
e892b41a7f Fixed bug 6574 - the problem was that the current color was being reset when the text decoration, in this case an underline, was being drawn so that the next chunk of text rendered in the smallcaps font was drawn in the wrong color
git-svn-id: svn://10.0.0.236/trunk@38808 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-08 19:52:57 +00:00
mjudge%netscape.com
571f2a1a16 up/down selection BRFrames dont allow selecting upon them for now. horizontal bars are now drawn selected. ect.
git-svn-id: svn://10.0.0.236/trunk@35903 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-19 20:36:44 +00:00
sfraser%netscape.com
53026171ea Fix for bug 8317 -- leaked caret causes crash. r mjudge, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35749 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:55:48 +00:00
mjudge%netscape.com
b2a2c02eac minor changes to tweak fix from before. GetPositionSlowly was returning wrong thing causing small caps and other wierd spacing letters to be selected incorrectly.
git-svn-id: svn://10.0.0.236/trunk@34654 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:55:14 +00:00
mjudge%netscape.com
21a15def92 fixing table selection again. also adding parameter to nsIFocusTracker that allows us to get the current caret location. I am also stopping nsTableRowFrame from putting blue border around itself since cells are a high enough granularity. made a change to nsIFrame GetPosition to remove some useless parameters ect. this caused me to change nsDOMEvent.cpp and some other places.
MJ


git-svn-id: svn://10.0.0.236/trunk@34640 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:08:17 +00:00
kmcclusk%netscape.com
1395c98675 Replaced reference with pointer for accessing plainFont in nsTextFrame::Reflow.
git-svn-id: svn://10.0.0.236/trunk@34211 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:12:20 +00:00
joki%netscape.com
ee7a67a711 Adding new method to nsIDOMNSUIEvent to give event pos as range offset.
git-svn-id: svn://10.0.0.236/trunk@34162 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:19:26 +00:00
kmcclusk%netscape.com
ca984e0334 Modified TextStyle constructor to reuse the TextFrame's mFont rather than creating
a new font. The creation of the new font show up during profiling as a big hit.


git-svn-id: svn://10.0.0.236/trunk@34076 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:18:51 +00:00
mjudge%netscape.com
2b31837503 fixes for selection and memory leaks
git-svn-id: svn://10.0.0.236/trunk@33844 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:00:24 +00:00
peterl%netscape.com
dce2798cf1 fixed warnings
git-svn-id: svn://10.0.0.236/trunk@33478 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 02:09:03 +00:00
mjudge%netscape.com
45583c2b3d new table selection code drag inside and outside of tables with ease. added some overriding methods to nsTableCellFrame and nsTableFrame to make selection "draw" correctly for those containers.
git-svn-id: svn://10.0.0.236/trunk@33352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-01 23:04:13 +00:00
mjudge%netscape.com
85ff7d2a69 reviewed sfraser approved choffman 6771 6762 UMR and Extreemly inefficient table selection code fixed simply
git-svn-id: svn://10.0.0.236/trunk@32354 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-20 00:52:00 +00:00
mjudge%netscape.com
82364c7531 oops fogot default boolean for non start or end node selection
git-svn-id: svn://10.0.0.236/trunk@32116 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:29:27 +00:00
mjudge%netscape.com
94695cd80a wrong initial boolean value for redraw
git-svn-id: svn://10.0.0.236/trunk@31961 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 22:31:10 +00:00
mjudge%netscape.com
e064c576fa accidentally left out a parameter to GetPositionSlowly for small caps ect.
git-svn-id: svn://10.0.0.236/trunk@31912 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 19:50:29 +00:00
mjudge%netscape.com
ff933f4f73 adding in selection of non text frames in editor only
git-svn-id: svn://10.0.0.236/trunk@31872 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-17 00:21:18 +00:00
mjudge%netscape.com
3a865d8325 adding back in keyboard navigation. removing const from peekoffset to stop the const creep. changing peekoffset to do the right thing for content based peeking...
git-svn-id: svn://10.0.0.236/trunk@31348 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-13 00:44:23 +00:00
kipp%netscape.com
de60169b67 Reworked frame factory methods; fixed bug 4519
git-svn-id: svn://10.0.0.236/trunk@31154 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-11 22:03:29 +00:00
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