mjudge%netscape.com
fa4088842d
fixing warnings and some redundant code
2000-05-13 20:47:42 +00:00
mjudge%netscape.com
06fe36cd3f
changing use of nsXIFConverter to nsIXifConverter
2000-05-13 08:10:25 +00:00
mjudge%netscape.com
55912eddb8
changing way we access caret. use the selection controller whenever possible. because it will make the caret do the right thing even when we have multiple selections accessing same caret.
2000-05-11 04:25:43 +00:00
attinasi%netscape.com
a29102e7ef
Tiny fix to avoid divide-by-zero when the AveCharWidth is 0. b=37577 r=dcone
2000-05-09 21:20:38 +00:00
mjudge%netscape.com
9fc3ea7f15
adjusting how we get nsIFrameSelection. maybe we can QI from SelectionController
2000-05-08 03:59:53 +00:00
erik%netscape.com
0f1eec05eb
bug 26237; added support for HTML LANG attribute -- it now uses the fonts
...
specified by the user for elements with the LANG attribute when the font
is a CSS generic (e.g. serif); r=pierre
2000-05-05 21:04:36 +00:00
anthonyd%netscape.com
9a23850613
r: mjudge
...
table bacgrounds now sleected properly with disabled selection
(grey selection)
2000-04-30 18:56:26 +00:00
mjudge%netscape.com
7e5a6b3cd7
change to move selection interfaces to nsISelectionController and away from nsIPresShell or nsIDocument
2000-04-28 06:21:31 +00:00
mjudge%netscape.com
2c0953e1be
ender lite checkin.
2000-04-27 07:37:12 +00:00
anthonyd%netscape.com
a3535292d9
r: mjudge
...
bug fix for 34397, broken IME selection
2000-04-26 03:54:21 +00:00
anthonyd%netscape.com
b5b3122ac2
r=mjudge. Removing redundant call to SetColor for ::RenderString. all places have allready set the color before calling this method. this removal should be a no-op. Selection color now should look correct
2000-04-21 21:38:08 +00:00
rods%netscape.com
21de9f3e8a
Add ifdef'ed Performance Reflow Counting code
2000-04-21 14:59:47 +00:00
anthonyd%netscape.com
815b66f915
drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
2000-04-20 23:11:41 +00:00
buster%netscape.com
f40b76249a
bug 588 (text justification) for Robert O'Callahan <roc+moz@cs.cmu.edu>
...
r=buster
bug 18545 ([FLOAT] Problem Centering <TABLE> with <DIV> tag)
r=troy
bugs 18827, 19579, 22327 24782, 26512, 30124, 31849, 32846 (floater behavior wrong)
The primary change here is to determine if a block is impacted by a floater, and if so
mark the block's lines dirty when appropriate.
r=troy
no bug number. performance work. reduced the size of some reflow data structures by
collapsing multiple fields into a single bit field.
r=troy
2000-04-17 14:40:46 +00:00
scc%netscape.com
52bdf65d60
making string conversions explicit
2000-04-15 21:18:29 +00:00
troy%netscape.com
41bb5435ed
b=35749 Fixed Purify warning
2000-04-13 20:55:40 +00:00
troy%netscape.com
391a9f5e58
b=35312 Made sure we don't mesure in chunks if letter spacing is
...
specified
2000-04-13 20:43:48 +00:00
dveditz%netscape.com
1eae54e4e0
get VC5 Mozilla build back off the floor, a=granrose
2000-04-12 22:48:54 +00:00
troy%netscape.com
890549a10c
b=35603, r=jinjin@pacbell.net Fix for blocker (crash when selecting
...
text)
2000-04-12 22:22:58 +00:00
troy%netscape.com
a37259c6bd
Fix for build bustage
2000-04-12 15:42:55 +00:00
troy%netscape.com
43ba4ad192
Added support for measuring text runs in ascii, and changed text transformer
...
to leave the text as ascii if possible
2000-04-12 14:54:43 +00:00
ftang%netscape.com
9cf267b815
mjudge at ftangs machine. last fix to stop crashing. still problem with event from external IME window not getting to ESM
2000-04-10 21:35:52 +00:00
ftang%netscape.com
43e62d6dfa
mjudge checkin in from ftangs machine. fixing japanese lockup. this will not fix the strange loss of the commit event to the ESM however. that was making thisproblem obvious.
2000-04-10 21:02:25 +00:00
mjudge%netscape.com
f7d9bfc8c0
a=leaf r=ftang. I will be more carefull with ime when doing selection.. I will be more carefull with ime...
2000-04-08 00:17:14 +00:00
mjudge%netscape.com
8132899a96
a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part
2000-04-07 19:32:46 +00:00
troy%netscape.com
ac77c942fa
Eliminated buffering that the text frame was doing when measuring
...
text in runs and changed the text transformer code to do the buffering
instead. It was already copying the transformed text into its internal
buffer anyway, so this saves the extra copy
2000-04-04 14:14:47 +00:00
pierre%netscape.com
e35773094b
Use the system colors to paint the text selection (and added NS_DONT_CHANGE_COLOR to support the Mac selection scheme where colored text keeps its colors when selected).
2000-04-04 09:07:41 +00:00
scc%netscape.com
e37740acdb
making string conversions explicit
2000-04-03 11:39:09 +00:00
mjudge%netscape.com
ad7071118d
selecting generated content works now. subtree iterator and all. incredible... added new private method to nsTextFrame to factor out some things on getting correct offsets from generated frames. its a no-op almost for non generated frames
2000-04-02 05:05:31 +00:00
cls%seawood.org
adf25840d6
Please use PR_TRUE & PR_FALSE. Not all C++ compilers support the keywords true & false.
2000-03-31 11:09:28 +00:00
mjudge%netscape.com
6ce1fbbb34
changed alot here having to do with get position. made it much faster for non-slow frames. (slow=char spacing ect) also removed some code to make the ::GetWidth call factored out so I can reuse it. selection now has a DrawSelectionIterator that spits out the next series of chars and their color ect when drawing selection. this allows us to combine many different types of selection. This also means that XOR is not used here any more. we will hook up selection colors to style shortly in the next week.
2000-03-31 07:26:07 +00:00
troy%netscape.com
3438f7ea3e
Fix for divide by zero I accidently introduced
2000-03-31 05:40:35 +00:00
troy%netscape.com
380605b839
Fix non Win32 compiler bustage
2000-03-31 05:10:36 +00:00
troy%netscape.com
fb978dd3bb
Changed text measurement code to use the new rendering context function
...
that measures chunks or words. Because that function is only implemented
on Win32 the code is #ifdef _WIN32
2000-03-31 04:27:43 +00:00
jim_nance%yahoo.com
dc0e139673
Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
...
days for module owners to comment on. r=troy@netscape.com
2000-03-30 03:21:26 +00:00
sfraser%netscape.com
80126fb4fa
Fixes to nsTextFrame so that every text frame no longer AddRefs the blink timer, and tidyup of blink timer code. r=troy
2000-03-25 00:49:58 +00:00
troy%netscape.com
7007f487f2
Fixed problem with previous checkin. Made sure "mColumn" is set
...
correctly
2000-03-24 05:04:15 +00:00
troy%netscape.com
d44a7da8ab
No change in functionality. I factored out the loop that measures text into
...
member function MeasureIndividualWords()
2000-03-23 22:58:43 +00:00
mjudge%netscape.com
ca22489c81
this should have NOT used ABS. if negative there is NO ROUNDING ERROR! ;)r=akkana
2000-03-22 02:10:37 +00:00
pierre%netscape.com
22030d523c
32252 "Small Caps font too small". Changed the ratio for small-caps from 0.7 to 0.8 (same as MacIE5).
2000-03-19 07:47:23 +00:00
pierre%netscape.com
4d43de09aa
Fix 32199 (visibility:collapse is not being interpreted as hidden on block and inline level elements) and parts of 21701 (misuse of style attr mVisible).
In the following files, replacing disp->mVisible with disp->IsVisible() is a BUG FIX: nsBlockFrame, nsBulletFrame, nsHRFrame, nsHTMLContainerFrame, nsImageFrame, nsTextFrame.
In all the other files, replacing disp->mVisible with disp->IsVisible() or disp->IsVisibleOrCollapsed() is merely a SYNTACTICAL CHANGE. The respective owners will later review the use of IsVisibleOrCollapsed() and in some cases replace it with IsVisible(). See bug 21701.
2000-03-17 10:15:13 +00:00
troy%netscape.com
dfd7864b4c
b=30391 r=troy@netscape.com Patch from rbs@maths.uq.edu.au to add parens when
...
necessary to PR_ABS macro
2000-03-11 16:50:52 +00:00
buster%netscape.com
66696f0a23
bug 26840 r=mjudge
2000-02-14 01:54:20 +00:00
nisheeth%netscape.com
99f85886b8
r=Troy. We were specifying the incorrect child as a reflow dirty target in some cases.
2000-02-11 07:11:43 +00:00
mjudge%netscape.com
90364fa4e5
fix for memory leak bug 24332
2000-02-10 07:55:34 +00:00
mjudge%netscape.com
b3444d6801
fix for bug 18528. fixing tabs controls in selection guessing.
2000-02-10 07:48:17 +00:00
ftang%netscape.com
2928361af0
r=nhotta, fix 24451. Change the IME hightlight code so
...
it won't draw out the clip boundary. It now draw by different color
instead of different hight.
2000-02-02 23:39:25 +00:00
pp%ludusdesign.com
58065dda04
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
2000-02-02 22:24:56 +00:00
troy%netscape.com
8a78d916a5
b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged
...
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
michael.lowe%bigfoot.com
6696fa133b
Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan
2000-01-21 21:56:09 +00:00
nisheeth%netscape.com
1af2ec200b
r=troy. Changed block, inline, and text frames to call the parent's ReflowDirtyChild() method instead of generating reflow commands.
2000-01-19 03:58:05 +00:00
rbs%maths.uq.edu.au
401406c143
[MATHML] Change of the character coordinate system of the bounding metrics
2000-01-17 07:34:24 +00:00
mjudge%netscape.com
118e690267
small changes for 22752 ctrl left and right. r=cmanske
2000-01-12 21:39:36 +00:00
mjudge%netscape.com
3ec359f588
bug 15982 r=cmanske. needed more places to add checks for style turning off normal selection.
2000-01-11 19:44:59 +00:00
mjudge%netscape.com
dcbf3266bd
r= kin. fix for another parameter. fixing m13 bug with multiple selection.
2000-01-08 00:31:32 +00:00
rbs%maths.uq.edu.au
fb509ee983
[MATHML] Added code to enable Reflow() to return, if requested, the bounding metrics needed for precise MathML placements. This is a WIP approved by Troy.
2000-01-07 14:33:11 +00:00
sspitzer%netscape.com
bfc18b87ab
initialize some variables, fix a comment, fix a FMM
1999-12-22 00:41:38 +00:00
rginda%netscape.com
34a05a535b
Adding check for null document. Prevents crash described in bug 20677.
...
r=brendan@mozilla.org
1999-12-07 22:04:52 +00:00
hyatt%netscape.com
de2eaede42
Implementing a generalized recycler and arena for all layout frames. Hoping to improve
...
bug #9489 . Should also definitely fix bug #15916 . r=troy
1999-12-04 23:49:50 +00:00
ftang%netscape.com
6773500b62
fix bug 18398. Make sure the startOffset and textWidth get reset in the while loop
1999-11-30 22:16:12 +00:00
tbogard%aol.net
af1ce8d410
Changed nsIPresContext& to nsIPresContext*. Changed nsEventStatus& to nsEventStatus*. Now more compatible with XPIDL. a=vidur r=scc
1999-11-24 06:03:41 +00:00
mjudge%netscape.com
d1b5f823f1
Fixing mac issue with selection dragging not working when above or below single line text. aka URL. mac has a different preference now. this may be done with look and feel object later. hyatt,cmanske(19191)
1999-11-24 01:10:22 +00:00
mjudge%netscape.com
d7fbad6cea
small fixes for BR frames getting correct offset. also one case of textframe not returning proper location (simply a missed change of a regressed call in PeekOffset) nsCaret was also too stringent on the limitation of text frames as the only frames to get the caret position. these were reviewed by a few people and i just dont remember. r=simon,cmanske,akkana and hyatt?
1999-11-23 20:30:21 +00:00
dmose%mozilla.org
5312eacf8c
updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
1999-11-06 03:40:37 +00:00
kipp%netscape.com
ca39ca7b10
r=vidur; bug=17372; found a case where a trailing shy character on a line would trigger an infinite loop iff the shy character was the only piece of text after a text frame had been continued
1999-11-04 19:34:36 +00:00
kipp%netscape.com
c93281e841
r=troy; fixed bugs 2636 and 17636 - line layout issues for some more edge cases (nobr's with floaters in them) and handling of nbsp
1999-11-02 15:44:57 +00:00
troy%netscape.com
1585a751fb
Moved a bunch of stuff out to a nsIFrameDebug interface
1999-11-01 22:12:45 +00:00
kipp%netscape.com
80998e8d8c
r=ftang (someday); fixed bug 17130 - the problem was that nbsp's were being mapped into spaces by the text-transformer which is normally good, but for the purposes of line-breaking look-ahead was bad. I added code to revert the post-transformed spaces into nbsp's before using the line-breaker
1999-11-01 15:36:02 +00:00
kin%netscape.com
74852c1b92
Fix for bug #16176 : [DOGFOOD] need to annotate line frames with whitespace trim
...
layout/base/src/nsCaret.cpp
- Modified DrawCaretWithContext so that we only
adjust the caret position if we are within the
frame's bounds.
layout/html/base/src/nsTextFrame.cpp
- Modified GetPointFromOffset() to add the width
of a space if the offset is after a trailing space
and it was trimmed off the frame.
r=sfraser@netscape.com
1999-10-29 13:43:11 +00:00
troy%netscape.com
87afecabc0
Changed SetView/GetView to take an additional argument which is the
...
pres context
1999-10-26 04:44:41 +00:00
ftang%netscape.com
0b2a09b76d
fix not enough gap between IME selection problem. r=erik
1999-10-25 22:18:41 +00:00
troy%netscape.com
29963d8875
Changed nsTextFrame to be derived from nsFrame instead of nsSplittableFrame.
...
nsTextFrame now has only a next-in-flow pointer and no prev-in-flow pointer.
Subclass nsContinuingTextFrame is used for continuing text frames; it has a
prev-in-flow pointer. This saves 4 bytes
1999-10-23 23:19:14 +00:00
mjudge%netscape.com
7d0e807931
massive checkin for underlying implementation of key handling from javascript and home/end breakage and.. selecting around NON-text frames. like arrowing around an image for example. 16636,16655 and another i cannot find. r=kin r=hyatt a=me
1999-10-22 00:19:18 +00:00
ftang%netscape.com
e1475842c4
change the input method highligh code from 2 style to 4 styles. r=mjudge
1999-10-21 22:01:18 +00:00
kipp%netscape.com
584976d119
r=troy; Optimize append text reflows to only reflow the new part of the text
1999-10-21 20:46:05 +00:00
kipp%netscape.com
a03246a1e0
update to new nsTextTransformer api
1999-10-19 23:01:58 +00:00
kipp%netscape.com
15a0ec26fa
r=troy; revised nsITextContent api to simplify it and the consumers; this is done as prep work for bug 9101
1999-10-15 23:36:07 +00:00
mjudge%netscape.com
fc71fb36d1
bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling.
1999-10-13 01:15:26 +00:00
kipp%netscape.com
02b64f135d
r=kin,troy; Fixed reflow bug with optimization logic to avoid measuring text (no bug #)
1999-10-12 23:29:01 +00:00
troy%netscape.com
0d79fa2c78
Fix for blocker #15839 . r=kipp@netscape.com,kin@netscape.com
...
Typing into a text area wasn't working properly. Problem was that when the text
changed we were reflowing the text frames with a resize reflow command and
we thought we could optimize the reflow. So I changed ContentChanged() to
mark each text frame dirty so we would know not to do the optimization
1999-10-08 22:04:31 +00:00
mjudge%netscape.com
54829b853b
fixing optimizations for table selection as well as making sure all flags are turned on/off for text frames when one frame is selected..
1999-09-29 20:36:00 +00:00
kin%netscape.com
ca92ac282c
First pass implementation of selection auto scrolling.
...
layout/base/public/nsIFrame.h
- Added GetContentAndOffsetsFromPoint() method. This
method will eventually replace GetPosition().
layout/base/public/nsIFrameSelection.h
- Added HandleDrag() and Start/StopAutoScrollTimer() methods.
layout/base/src/nsRangeList.cpp
- Added implementation for HandleDrag() and
Start/StopAutoScrollTimer() methods.
layout/html/base/src/nsBRFrame.cpp
- Added implementation for GetContentAndOffsetsFromPoint().
layout/html/base/src/nsFrame.cpp
layout/html/base/src/nsFrame.h
- Added implementation for GetContentAndOffsetsFromPoint().
- Added GetClosestViewForFrame() utility method.
- Modified HandleEvent() to call HandleRelease() which now
stops the auto scrolling timers.
- Modified HandleDrag() to call nsIFrameSelection's HandleDrag()
and Start/StopAutoScrollTimer() methods.
layout/html/base/src/nsTextFrame.cpp
- Added implementation for GetContentAndOffsetsFromPoint().
1999-09-29 20:04:05 +00:00
mjudge%netscape.com
2c78141fa6
fixes for M11 a=shaver r=cmanske. this will add 1 enumerator value to en enum in nsIFrame so dont be scared. this is for tweaking selection should not affect anyone outside of selection/editor
1999-09-25 23:33:02 +00:00
mjudge%netscape.com
e989c3be45
tweaked word left and word right again. got double click working on edge cases! yeah
1999-09-22 07:09:41 +00:00
mjudge%netscape.com
99dadf07b9
approved by Dagley. fixes for CTRL_LEFT and CTRL_RIGHT navigation and wrapping
1999-09-22 05:56:44 +00:00
mjudge%netscape.com
88c407b158
fixes for line/frame traversal. now we use more common code inside nsFrame rather than nsTextFrame specific code all the time.
1999-09-22 04:12:23 +00:00
kipp%netscape.com
574daaa6d8
Whoops, left some noise on
1999-09-22 00:41:13 +00:00
kipp%netscape.com
5a777fb9ed
Fixed various bugs including part of 14486 and 14427; cleaned up the usage of stack based buffers to avoid future issues
1999-09-22 00:40:56 +00:00
mjudge%netscape.com
1e48363fd7
changes to selection code to stop a never ending loop
1999-09-21 22:58:14 +00:00
kipp%netscape.com
22df009a37
Bring TrimTrailingWhiteSpace back to life after troy's changes
1999-09-21 00:12:50 +00:00
mjudge%netscape.com
3c9065ac80
checking in fixes for selection around nodes where get primary frame will not lead to the discovery of all frames
1999-09-20 21:47:37 +00:00
troy%netscape.com
f004ab4be8
Optimized Reflow() some more. In the case where we're not measuring text but
...
we need to peek ahead and so we need to know the length of the last word, if
there's only one word in the text run then we can avoid measuring
1999-09-19 04:42:54 +00:00
troy%netscape.com
0d253cf419
Backed out some changes that aren't needed and were fixed with a change
...
to the frame construction code
1999-09-19 00:59:38 +00:00
troy%netscape.com
a3551f363b
Optimized reflow to skip measuring of the text for a resize reflow (when
...
possible)
1999-09-18 16:22:34 +00:00
alecf%netscape.com
8bc490a93b
fix a bunch of null-derefing problems when accessing http://webmail.netscape.com/ and add some assertions when these things happen
1999-09-18 01:00:43 +00:00
alecf%netscape.com
d4a731ec92
fix dereferencing error on slashdot.org
1999-09-18 00:48:51 +00:00
kipp%netscape.com
2652daef33
Fixed a glitch in word-breaking look ahead that was using the wrong content to compute the next fragments width (whoops!)
1999-09-17 23:14:47 +00:00
troy%netscape.com
a5d89af219
Minor changes to reduce the amount of unnecessary ref counting and speed
...
things up a little
1999-09-16 23:31:59 +00:00
mjudge%netscape.com
d71f4104da
changes for bug fixes for dogfood. finding frames left and right should find the correct frame and not give up so easily. nsTextFrame needed to change getpositionslowly.
1999-09-15 01:57:50 +00:00
mjudge%netscape.com
611e47bbd4
content iter not initing properly for reuse. text frame not selecting slowly properly, bad bounds checking :(. rangelist now traversing each node in a spaniter with a normal iter to make SURE we get all the children!
1999-09-14 23:16:22 +00:00