647 Commits

Author SHA1 Message Date
akkana%netscape.com
52b18e6064 Implement a new interface, nsIDOMSelection, intended to become the
external interface for selection (to be IDL-ified later).

Fix some editor bugs:
- Advance the cursor on text insert (so text is inserted in the right order)
- Make DeleteSelection in the editor call the actual selection
- Make DeleteSelection update the frames' notion of the selection


git-svn-id: svn://10.0.0.236/trunk@19029 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-29 18:57:56 +00:00
troy%netscape.com
d0406126ba Changed scrolling so it happens on the viewport instead of the HTML
element


git-svn-id: svn://10.0.0.236/trunk@18539 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 00:05:21 +00:00
mjudge%netscape.com
58d3c27e3c ok I am changing nsPresShell to "do the right thing". The virtual methods to support nsIFocusTracker needed to use the MACROS the same as the rest of the methods. I also moved the growing inline methods to their own method declarations. pres shell also needs to send itself as a focus tracker to "reset selection" to allow a callback to reset the frames that will be the focus and anchor frames for the future. getting frames from content is easy, getting the exact frame with an offset as well is difficult. nsTextFrame does some funny things with whitespaces that was throwing off the selection code. one minute the beginning of a word is offset 1 then it grows to 2 if the whitespace on the previous line wraps. I also put limits on the selection drawing. the drawing was happening after reflow, but before reset selection. this made the selection drawing extend beyond the legal limits of the "textlength". P.S. since the paint unicode and paint ascii are so similar, is it better to make a helper func to do the common things? or maybe make another method just to save namespace?
git-svn-id: svn://10.0.0.236/trunk@18462 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 01:48:01 +00:00
peterl%netscape.com
dd89cd1401 added helper methods for selecting & querying alternate style sheets
git-svn-id: svn://10.0.0.236/trunk@18426 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-23 07:03:46 +00:00
troy%netscape.com
1128cee41a Added XXX comment indicating that the #if 0 code in Init() is causing
a memory leak...


git-svn-id: svn://10.0.0.236/trunk@18399 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-23 02:38:16 +00:00
akkana%netscape.com
579c399f12 2028: Get selection highlighting working on Linux
git-svn-id: svn://10.0.0.236/trunk@18373 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-23 00:00:46 +00:00
mjudge%netscape.com
06c5902e82 chagnes for selection to work
git-svn-id: svn://10.0.0.236/trunk@18322 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-22 18:58:14 +00:00
mjudge%netscape.com
2434c90ca2 selection should work now more or less
git-svn-id: svn://10.0.0.236/trunk@18003 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 06:42:39 +00:00
mjudge%netscape.com
9251454eba Files for selection across frames.
git-svn-id: svn://10.0.0.236/trunk@17971 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-18 22:57:12 +00:00
kipp%netscape.com
4e355995e6 Spanked away SizeOf methods and nsIListFilter
git-svn-id: svn://10.0.0.236/trunk@17895 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-16 00:00:50 +00:00
troy%netscape.com
bb626b6036 Re-committing my fucking changes...
git-svn-id: svn://10.0.0.236/trunk@17632 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-13 00:38:29 +00:00
cltbld%netscape.com
cd62100e23 backing out changes made against a red tree
git-svn-id: svn://10.0.0.236/trunk@17628 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-13 00:00:57 +00:00
troy%netscape.com
b2b5d3f972 Moved a NS_RELEASE to a different point so we're less likely to have a non-local exit
miss the release


git-svn-id: svn://10.0.0.236/trunk@17623 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-12 23:17:20 +00:00
troy%netscape.com
0e2a9c299a Fixed FindFrameWithContent() to do a better job of recognizing placeholder
frames and skipping them


git-svn-id: svn://10.0.0.236/trunk@17302 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-07 04:47:43 +00:00
troy%netscape.com
38a8b5ecdb Changed some of the member functions to conform to XP-COM conventions for
returning a nsresult


git-svn-id: svn://10.0.0.236/trunk@16928 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 04:56:31 +00:00
troy%netscape.com
43b0f05bb3 Renamed FindFrameWithContent() to GetPrimaryFrameFor()
git-svn-id: svn://10.0.0.236/trunk@16927 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 04:45:18 +00:00
troy%netscape.com
9a7f94d20b Moved logic that deals with moving absolutely positioned frames out of the
flow to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@16924 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-29 03:38:16 +00:00
kipp%netscape.com
eaee82d4b3 Revised frame Paint API
git-svn-id: svn://10.0.0.236/trunk@16666 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-18 15:54:23 +00:00
mjudge%netscape.com
e19079121c adding in selection
git-svn-id: svn://10.0.0.236/trunk@16347 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-14 18:34:14 +00:00
kipp%netscape.com
21b1837275 When verify-reflow-all is enabled, update the display after each reflow and pause for a while
git-svn-id: svn://10.0.0.236/trunk@16323 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-12 19:21:05 +00:00
mjudge%netscape.com
03ace6e2d1 chagnes to selection
git-svn-id: svn://10.0.0.236/trunk@15977 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-08 18:26:06 +00:00
troy%netscape.com
a2f34c611a Added support for printing multiple pages
git-svn-id: svn://10.0.0.236/trunk@15901 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-07 03:43:02 +00:00
buster%netscape.com
46aa659021 added atoms for table pseudo style contexts
git-svn-id: svn://10.0.0.236/trunk@15703 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-03 18:00:42 +00:00
wtc%netscape.com
d45ab8ecf7 This checkin (under mozilla/layout) is all about 'const'. Digital Unix's
C++ compiler is strict about getting 'const' right.  Most of the changes
are to add 'const' to the type casts for the second argument of the
GetStyleData method, which wants a const reference.


git-svn-id: svn://10.0.0.236/trunk@15625 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 16:45:20 +00:00
kipp%netscape.com
ebb0b9f0d8 Fixed verify reflow to avoid creating reflow commands during a verify reflow
git-svn-id: svn://10.0.0.236/trunk@15368 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 18:11:02 +00:00
peterl%netscape.com
383116acf6 style change notification support
git-svn-id: svn://10.0.0.236/trunk@15337 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-26 01:34:53 +00:00
kipp%netscape.com
d09b42a9e1 Brought verify-reflow back to life
git-svn-id: svn://10.0.0.236/trunk@15307 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 18:41:02 +00:00
joki%netscape.com
765dbfd39b Add click event support for every element and initial keypress event support
git-svn-id: svn://10.0.0.236/trunk@15233 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 07:46:58 +00:00
joki%netscape.com
fe983ab777 Fixing a submit/reset event bug, frame destruction reentrancy bug, and an imagemap bug.
git-svn-id: svn://10.0.0.236/trunk@15081 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-21 00:19:36 +00:00
troy%netscape.com
c3380a7354 Added temporary workaround to image frame code to compensate for the fact
that HandleEvent() and GetCursor() are being called with the point not being
translated to the frame's local coordinate space


git-svn-id: svn://10.0.0.236/trunk@15002 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-20 06:31:55 +00:00
kipp%netscape.com
b527c7f026 Added DumpRegressionData; revised ListTag; added GetFrameName
git-svn-id: svn://10.0.0.236/trunk@14946 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 17:22:29 +00:00
joki%netscape.com
63292505da Modify event flow to avoid walking into trashed frames.
git-svn-id: svn://10.0.0.236/trunk@14919 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 00:43:36 +00:00
joki%netscape.com
f1462f4d55 Reworking internal event code to use nsIFrame::GetFrameForPoint
Adding new functionality through nsEventStateManager (cursor change, enter/exit events, tab navig)


git-svn-id: svn://10.0.0.236/trunk@14864 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 05:25:26 +00:00
vidur%netscape.com
c67a7ad987 Changes to allow disabling and enabling of style sheets. Introduced ReconstructFrames to nsIFrameConstructor. CSSStyleSheets now remember their document. Temporary fix to allow text content inside CSS tables.
git-svn-id: svn://10.0.0.236/trunk@14781 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 02:14:38 +00:00
kipp%netscape.com
5e936efd0f Look on all lists for frames
git-svn-id: svn://10.0.0.236/trunk@14769 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-17 01:03:28 +00:00
michaelp%netscape.com
25149e78ea changes for pixel scaling/printing.
git-svn-id: svn://10.0.0.236/trunk@14647 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-14 01:52:27 +00:00
troy%netscape.com
48a7503df3 Cleaned up the way construction of the root frame happens for XML documents.
We no longer create a pseudo root element


git-svn-id: svn://10.0.0.236/trunk@14543 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-12 23:03:35 +00:00
troy%netscape.com
cdf69643a6 First of a few changes to allow frames to have multiple child lists.
FirstChild() now takes an additional argument which is the name of the
child list.


git-svn-id: svn://10.0.0.236/trunk@14289 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-09 19:40:27 +00:00
troy%netscape.com
222a7c54b8 Added support for using foreground color and background color from user
preferences. Also made it so we observe the preferences, get a callback if
they change, and then do a style change reflow


git-svn-id: svn://10.0.0.236/trunk@14197 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-06 16:16:01 +00:00
michaelp%netscape.com
43acfe6cc5 removed widget parameters from nsIView::Init(). added CreateWidget() and SetWidget()
APIs to replace this functionality. also added CreateScrollControls() to
nsIScrollableView.


git-svn-id: svn://10.0.0.236/trunk@14036 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-04 04:14:10 +00:00
kipp%netscape.com
a363205273 Moved frame-border rendering debug hook here
git-svn-id: svn://10.0.0.236/trunk@13750 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-30 22:06:14 +00:00
vidur%netscape.com
3b9d34af51 Changes to allow absolutely positioned frames to move
git-svn-id: svn://10.0.0.236/trunk@12912 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-15 20:26:54 +00:00
kipp%netscape.com
3af8f78a16 Added an nsIPresContext& to html-reflow-state's ctors and used it to implement better percentage width/height handling
git-svn-id: svn://10.0.0.236/trunk@12575 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-12 14:48:02 +00:00
troy%netscape.com
e191c422d9 Eliminated nsIRunaround interface, and folded space manager parameter into
nsHTMLReflowState structure


git-svn-id: svn://10.0.0.236/trunk@11749 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 04:10:00 +00:00
michaelp%netscape.com
7c2022dc32 modified for new fontmetrics/renderingcontext.
git-svn-id: svn://10.0.0.236/trunk@11736 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-02 01:12:39 +00:00
troy%netscape.com
7eac0bfdac Separated reflow process out of nsIFrame and into nsIFrameReflow. Also
added nsIHTMLReflow, which is an HTML specific reflow interface


git-svn-id: svn://10.0.0.236/trunk@11646 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-01 04:46:11 +00:00
troy%netscape.com
20f9f2ada0 Moved some files around
git-svn-id: svn://10.0.0.236/trunk@11595 18797224-902f-48f8-a5cc-f745e15eee43
1998-09-30 21:01:11 +00:00