163 Commits

Author SHA1 Message Date
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
shanjian%netscape.com
dc6ad28b7b #53072 IME candidate window position problem
r=sfraser a=ftang
Offset within view is missing in one of the code path. Add it there.


git-svn-id: svn://10.0.0.236/trunk@79547 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:55:59 +00:00
mjudge%netscape.com
2fc6190bef small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
sfraser%netscape.com
4d989602b0 Fix 51747 -- caret not drawing at the end of a line. Fix offset of clip. r=kin
git-svn-id: svn://10.0.0.236/trunk@78416 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 20:21:22 +00:00
sfraser%netscape.com
fb865adb8e Fix bugs 45881 and 46850 -- general caret cruft. Ensure that caret is clipped to the scrolling view, and fix things so that the caret is properly hidden on scrolling. r=beard
git-svn-id: svn://10.0.0.236/trunk@78343 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 05:26:25 +00:00
anthonyd%netscape.com
1355a05c4e bug fixes:
39529 - caret width not correct for single/muti line textfields, which relied on:
46445 -  nsLookAndFeel needs to be a service.
r: mjudge@netscape.com, kin@netscape.com
a:beppe


git-svn-id: svn://10.0.0.236/trunk@75084 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 22:12:45 +00:00
mjudge%netscape.com
771787b6c1 r=jfrancis,r=hyatt 42045 beta2+ 42675 beta2+ hitting return on text area not putting new line. onchange,oninput.
git-svn-id: svn://10.0.0.236/trunk@73374 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:00:12 +00:00
mjudge%netscape.com
529fc2633a added new caret api implementation from new nsicaret api. EraseCaret. erase the caret without messing with visibility. forces a refresh of state to mDrawn=0; r=hyatt, bug = 34896
git-svn-id: svn://10.0.0.236/trunk@71873 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 04:22:20 +00:00
mjudge%netscape.com
1bac22bf29 bug=34896 extra check for null in caret. this can happen sometimes when frame is destroyed in odd order. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@71680 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 01:18:41 +00:00
mjudge%netscape.com
eaec62deed bug = 34896, r= hyatt. changing caret apis. this will demand that when a caret changes focus a call to setDOMSelection must be called to tell the caret what selection to listen to.
git-svn-id: svn://10.0.0.236/trunk@71230 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 02:37:40 +00:00
pavlov%netscape.com
a0feb91521 changes all usages of NS_NewTimer to CreateInstance
git-svn-id: svn://10.0.0.236/trunk@70249 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:49:35 +00:00
mjudge%netscape.com
2f9bd42697 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.
git-svn-id: svn://10.0.0.236/trunk@69180 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 04:25:43 +00:00
mjudge%netscape.com
e5b2003819 stealing new bit for frames with their own selection. changing caret to be able to handle multiple selected areas. if the bit doesnt work out i will back it out.
git-svn-id: svn://10.0.0.236/trunk@68219 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 08:35:42 +00:00
mjudge%netscape.com
24b8f29c46 ender lite checkin.
git-svn-id: svn://10.0.0.236/trunk@67387 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:37:12 +00:00
mjudge%netscape.com
922709ebdd fixing selection speed. only copying to clipboard on mouse up
git-svn-id: svn://10.0.0.236/trunk@66024 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:00:30 +00:00
mjudge%netscape.com
55078146c7 touch alot. changing api for notify selection listeners to add document and seleciton pointers to the api.
git-svn-id: svn://10.0.0.236/trunk@65977 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:21:19 +00:00
cmanske%netscape.com
5ab9b7f9df Added support for table selection and removed nsIDOMSelectionListener code no longer needed. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63201 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:45:39 +00:00
mjudge%netscape.com
44c8697114 big checkin. fixing problems blocking Cmanske (also a reviewer). Checking in preliminary for gen content.(nothing damaged yet) lots of bug numbers not going to look them up, the tree just opened.
git-svn-id: svn://10.0.0.236/trunk@60278 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-10 04:35:51 +00:00
pavlov%netscape.com
d4589174f7 remove the non-needed push/pop states r=sfraser
git-svn-id: svn://10.0.0.236/trunk@59722 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 03:03:08 +00:00
pp%ludusdesign.com
a2927ce43e Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
michael.lowe%bigfoot.com
6856aa06f0 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
git-svn-id: svn://10.0.0.236/trunk@58358 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 21:56:09 +00:00
kin%netscape.com
a18087d551 Fix for bug #21029: Caret get's wrong offset when parent not a text node
mozilla/layout/base/public/nsIFrameSelection.h
      - Added aReturnOffset arg to GetFrameForNodeOffset().

    mozilla/layout/base/src/nsCaret.cpp
      - mLastContentOffset now gets it's value from the offset
        returned by GetFrameForNodeOffset().

    mozilla/layout/base/src/nsRangeList.cpp
      - GetFrameForNodeOffset() now returns an offset to be used
        with the result frame.

r=mjudge@netscape.com,jfrancis@netscape.com


git-svn-id: svn://10.0.0.236/trunk@57280 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-10 15:32:42 +00:00
ftang%netscape.com
cfa1a18207 partial fix for bug 15533 (size part). 1. change the return value from nsPiont to nsRect. Change widget code to reflect the change. In Gtk, change XIM FontSet based on the rect height. r=cata a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56377 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 07:56:40 +00:00
mjudge%netscape.com
43a63010d1 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?
git-svn-id: svn://10.0.0.236/trunk@54299 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 20:30:21 +00:00
ftang%netscape.com
acade41cee Change the GetRelativedWindowCoordinate to return the botton of the cursor, instead of the top of the cursor. We need this to make Mac IME candidcate window popup in a more reasonable place. author=sfraser. r=ftang
git-svn-id: svn://10.0.0.236/trunk@53099 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 23:47:56 +00:00
dmose%mozilla.org
92d791b7b0 updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
kin%netscape.com
5fae6982e3 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


git-svn-id: svn://10.0.0.236/trunk@52206 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 13:43:11 +00:00
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
kipp%netscape.com
2ed3a3fc6a Removed some more warnings
git-svn-id: svn://10.0.0.236/trunk@51530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:51:41 +00:00
mjudge%netscape.com
64c9150aab 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
git-svn-id: svn://10.0.0.236/trunk@51467 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:19:18 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
kin%netscape.com
698d1ed095 Fix for bug #12195: [DOGFOOD] caret cruft left after a backspace at end of line
Added code to DrawCaretWithContext() that makes sure that the caret
doesn't hang outiside the left edge of a frame.
r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@49572 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 13:16:30 +00:00
sfraser%netscape.com
f4a7576460 Super duper new caret
git-svn-id: svn://10.0.0.236/trunk@47455 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:41:19 +00:00
pavlov%netscape.com
2bcaf45758 make the caret draw on linux - fix for 13487
git-svn-id: svn://10.0.0.236/trunk@47133 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 18:24:48 +00:00
alecf%netscape.com
0f02d87111 bulletproof to prevent crashing
(asserts will still go off)


git-svn-id: svn://10.0.0.236/trunk@46964 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 19:11:53 +00:00
sfraser%netscape.com
7f7842f5b0 Fix one cause of GFX text widget crashes. If you're going to mess with my code, Mike, at least get the return values right.
git-svn-id: svn://10.0.0.236/trunk@46937 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 06:00:00 +00:00
mjudge%netscape.com
ad8dd5373b fixes for crasher in tree
git-svn-id: svn://10.0.0.236/trunk@46898 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 00:18:02 +00:00
sfraser%netscape.com
838b14eeb3 Make the caret use InvetRect for drawing.
git-svn-id: svn://10.0.0.236/trunk@42779 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 19:14:43 +00:00
mjudge%netscape.com
329d39ba11 massive checkin for selection. adjusting nsIDOMSelection api and nsIFrameSelection. many "small" changes. this is not as bad as it looks. layout will not be affected other than "getter" calls for selection. and all consumers of selection should be in good shape.
git-svn-id: svn://10.0.0.236/trunk@39971 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-18 02:27:19 +00:00
mjudge%netscape.com
f9575d1f61 checkin for carpool for multiple seleciton/ime selection and api changes to nsIDOMselection
git-svn-id: svn://10.0.0.236/trunk@39541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 18:19:03 +00:00
sfraser%netscape.com
fdcb802f6e Removal of nsCaretProperties
git-svn-id: svn://10.0.0.236/trunk@39412 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 22:18:29 +00:00
sfraser%netscape.com
530e15d1a9 Fix for 9361, comment out bogus assert in the caret code. a chofmann
git-svn-id: svn://10.0.0.236/trunk@38755 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-08 01:24:52 +00:00
sfraser%netscape.com
f1135f5a99 Fix the uber caret problem, where the caret would draw incorrectly when the selection pointed to child nodes of a parent node. Now, it points to the start of the indexed child node in this situation.
git-svn-id: svn://10.0.0.236/trunk@38530 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-07 01:11:49 +00:00
sfraser%netscape.com
8258d8059c Fix GetViewForRendering() in the window coordinates case.
git-svn-id: svn://10.0.0.236/trunk@35548 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:54:26 +00:00
sfraser%netscape.com
752634424b Implement nsCaret::GetWindowRelativeCoordinates for IME
git-svn-id: svn://10.0.0.236/trunk@32115 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-18 22:24:55 +00:00
sfraser%netscape.com
67ddcd0311 WIP to get caret position in window coordinates for IME
git-svn-id: svn://10.0.0.236/trunk@29534 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 21:59:18 +00:00
sfraser%netscape.com
9258c252c1 Adapt to fixed selection interfaces.
git-svn-id: svn://10.0.0.236/trunk@27659 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 20:19:34 +00:00
sfraser%netscape.com
0711dcf727 Fix a problem where the caret could be using a stale offset, after a node
has been split.


git-svn-id: svn://10.0.0.236/trunk@27269 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-13 01:13:00 +00:00
sfraser%netscape.com
b8ae43ec5b Caret changes to enable the caret to erase itself, and fix a bunch of caret problems.
git-svn-id: svn://10.0.0.236/trunk@25953 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 23:57:35 +00:00