Commit Graph
888 Commits
Author SHA1 Message Date
[email protected] 8f5c40c23e Fix for build bustage 2000-04-12 15:42:55 +00:00
[email protected] bcbbffb9c2 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
[email protected] befc1e568d 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
[email protected] d30c9a4408 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
[email protected] 8bb4cd8e0d 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
[email protected] 5fdc49544b a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part 2000-04-07 19:32:46 +00:00
[email protected] b9a0eab4a2 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
[email protected] 8c6938418b 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
[email protected] 6bf2422246 making string conversions explicit 2000-04-03 11:39:09 +00:00
[email protected] e73ae83f43 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
[email protected] b883f0be9c Please use PR_TRUE & PR_FALSE. Not all C++ compilers support the keywords true & false. 2000-03-31 11:09:28 +00:00
[email protected] f44483d233 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
[email protected] fba2986948 Fix for divide by zero I accidently introduced 2000-03-31 05:40:35 +00:00
[email protected] b2519422a3 Fix non Win32 compiler bustage 2000-03-31 05:10:36 +00:00
[email protected] e51d26871b 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
[email protected] 112be9f648 Bug 33322 - Fix compiler warnings. Its been on n.p.m.builds for a few
days for module owners to comment on.  [email protected]
2000-03-30 03:21:26 +00:00
[email protected] b69b5e35fc 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
[email protected] 439b719de5 Fixed problem with previous checkin. Made sure "mColumn" is set
correctly
2000-03-24 05:04:15 +00:00
[email protected] 414ddbf6b4 No change in functionality. I factored out the loop that measures text into
member function MeasureIndividualWords()
2000-03-23 22:58:43 +00:00
[email protected] 0f3a248c0a this should have NOT used ABS. if negative there is NO ROUNDING ERROR! ;)r=akkana 2000-03-22 02:10:37 +00:00
[email protected] 1dcdbdaf29 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
[email protected] ee71ad262f 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
[email protected] c1b7296113 b=30391 [email protected] Patch from [email protected] to add parens when
necessary to PR_ABS macro
2000-03-11 16:50:52 +00:00
[email protected] 108637a0fe bug 26840 r=mjudge 2000-02-14 01:54:20 +00:00
[email protected] c4b1ae5d8b r=Troy. We were specifying the incorrect child as a reflow dirty target in some cases. 2000-02-11 07:11:43 +00:00
[email protected] 0db72c26f0 fix for memory leak bug 24332 2000-02-10 07:55:34 +00:00
[email protected] 5dae548c78 fix for bug 18528. fixing tabs controls in selection guessing. 2000-02-10 07:48:17 +00:00
[email protected] 33b87d2e0f 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
[email protected] baf799923b Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot 2000-02-02 22:24:56 +00:00
[email protected] 67f034175a b=21657 [email protected] Made "overflow list" a full fledged
child list and changed ReparentFrameView() to check it.
2000-01-22 01:16:50 +00:00
[email protected] 9875af405d Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={[email protected], [email protected]}, r={kmcclusk,rods,sfraser,et al} a=brendan 2000-01-21 21:56:09 +00:00
[email protected] 81aed40d97 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
[email protected] 2cddc0d76b [MATHML] Change of the character coordinate system of the bounding metrics 2000-01-17 07:34:24 +00:00
[email protected] e7742baf73 small changes for 22752 ctrl left and right. r=cmanske 2000-01-12 21:39:36 +00:00
[email protected] 96c555e9d3 bug 15982 r=cmanske. needed more places to add checks for style turning off normal selection. 2000-01-11 19:44:59 +00:00
[email protected] 7174f98fc5 r= kin. fix for another parameter. fixing m13 bug with multiple selection. 2000-01-08 00:31:32 +00:00
[email protected] 24733eca10 [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
[email protected] 92a5c3ef96 initialize some variables, fix a comment, fix a FMM 1999-12-22 00:41:38 +00:00
[email protected] fc987a4cbb Adding check for null document. Prevents crash described in bug 20677.
[email protected]
1999-12-07 22:04:52 +00:00
[email protected] 9a7a1b27f7 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
[email protected] 7794909ca4 fix bug 18398. Make sure the startOffset and textWidth get reset in the while loop 1999-11-30 22:16:12 +00:00
[email protected] 617bb737a6 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
[email protected] fc88b86e04 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
[email protected] 5fb61f40e8 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
[email protected] 796280940b updated license boilerplate to xPL 1.1, [email protected],[email protected] 1999-11-06 03:40:37 +00:00
[email protected] 99635967c1 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
[email protected] 6f42ace227 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
[email protected] bf2283fba6 Moved a bunch of stuff out to a nsIFrameDebug interface 1999-11-01 22:12:45 +00:00
[email protected] fbacd0c35e 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
[email protected] 0068650ea2 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.

[email protected]
1999-10-29 13:43:11 +00:00