638 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
83502f61c2 Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@156022 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-06 03:57:05 +00:00
roc+%cs.cmu.edu
1eea5c536c Bug 233441. Make nsViewManager always have a root view, you can't change it. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@156019 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-06 03:17:14 +00:00
tor%cs.brown.edu
fba58fbb27 Bug 240274 - remove unused argument of SetClip{Rect,Region}.
r=blizzard, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@155393 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-23 15:21:24 +00:00
tor%cs.brown.edu
996688b00b Bug 240274 - remove PopState() argument. r=blizzard, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@155061 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 13:13:35 +00:00
gerv%gerv.net
8419e1650f Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155030 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 16:52:41 +00:00
roc+%cs.cmu.edu
3b830c4f76 Bug 240457. Kill bad view manager assertion. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@154847 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-14 03:05:50 +00:00
roc+%cs.cmu.edu
adc0d11131 Bug 237091. Remove unnecessary WindowOffset and RootWidget functionality from the view manager. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@154762 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 03:03:18 +00:00
roc+%cs.cmu.edu
79ebc15f63 Bug 235897. hidden widgets don't count as part of the opque region. r+sr=dbaron,a=mkaply
git-svn-id: svn://10.0.0.236/trunk@154575 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-07 15:22:19 +00:00
roc+%cs.cmu.edu
c67ff884e5 Bug 231585. A view can only be treated as having a uniform background if that background is not translucent. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@154562 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-07 01:03:51 +00:00
roc+%cs.cmu.edu
607db497dc Bug 237426. Set clip rect *after* we've saved the old rect. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@154217 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-24 02:21:19 +00:00
roc+%cs.cmu.edu
8a8e4a6529 Bug 232469. Rework view clipping to handle three kinds of clip: clip to arbitrary rect, clip containing block children to bounds, clip all children to boudns. r+sr=dbaron,a=choffman
git-svn-id: svn://10.0.0.236/trunk@153854 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-11 00:32:01 +00:00
roc+%cs.cmu.edu
e7cedf35f7 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@153009 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 05:26:57 +00:00
roc+%cs.cmu.edu
1471a92350 Bug 228861. Ensure that CLIP and FILTER display list instructions are added even if they appear to be outside the dirty area. Content may be reparented under them that does intersect the dirty area and is affected by the display list instructions. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153007 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 04:41:06 +00:00
roc+%cs.cmu.edu
8beee51ef8 Bug 232780. Fix aX/aY parameters in nsViewManager::CreateDisplayList. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153005 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 04:34:32 +00:00
roc+%cs.cmu.edu
3c4c9422cd Bug 232951. Make scrolling of scrolling-views-without-widgets work properly even when there are child widgets. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@153004 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 04:31:20 +00:00
roc+%cs.cmu.edu
3c8a3de89d Bug 228441. -moz-opacity doesn't work on the Mac; fix it by forcing double buffering when translucent elements are being displayed. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152999 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-20 02:11:25 +00:00
dbaron%dbaron.org
18c65e7769 Back out bug 20022. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@152780 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-14 20:29:19 +00:00
bryner%brianryner.com
e6a225b469 Inline getters and setters for scaling factors on nsIDeviceContext. Bug 233103, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152326 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 01:57:10 +00:00
dbaron%dbaron.org
f609de46de Fix for loop scoping bustage.
git-svn-id: svn://10.0.0.236/trunk@152258 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 00:46:14 +00:00
dbaron%dbaron.org
b7508c936c Update :hover state and mouse cursor and send mouse events when the position of the pointer changes due to scrolling or reflow. b=20022 r=roc sr=bryner
git-svn-id: svn://10.0.0.236/trunk@152252 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 00:11:59 +00:00
roc+%cs.cmu.edu
83d80aee52 Fixing bustage related to bug 109772 by making a new ExternalIsRoot and calling it from inline functions.
git-svn-id: svn://10.0.0.236/trunk@152103 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 23:52:39 +00:00
roc+%cs.cmu.edu
0456e20a91 Bug 109772. Some nsIView deCOMtamination. Fixed the API for GetNeearestWidget to be sensible. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152067 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 03:20:41 +00:00
dbaron%dbaron.org
85465588e0 Miscellaneous cleanup. b=232393 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151995 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 00:04:58 +00:00
caillon%returnzero.com
6ca68157ac This should be #ifdef DEBUG.
r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@151601 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-20 22:15:38 +00:00
bryner%brianryner.com
3d8a7179f8 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@151191 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:25:18 +00:00
dbaron%dbaron.org
28fce9ad2f Back out the change from bug 230118 since bug 228378 makes it unnecessary.
git-svn-id: svn://10.0.0.236/trunk@151146 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 19:14:31 +00:00
roc+%cs.cmu.edu
d5d034c2c0 Bug 229583. initialize line height in scrolling views. patch by Asko Tontti. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@151144 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 16:21:45 +00:00
roc+%cs.cmu.edu
986d8acdaa Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151139 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 05:36:32 +00:00
dbaron%dbaron.org
53252bf6f9 Comply with the C++ standard's (silly?) rule that converting an rvalue to a const reference requires that the copy constructor be accessible. b=230118 r=bbaetz sr=roc
git-svn-id: svn://10.0.0.236/trunk@151043 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 21:06:19 +00:00
dbaron%dbaron.org
0702ac1728 Don't make clip view optimizations when the clip view contains Z placeholders. b=225811 Patch by Robert O'Callahan <roc@ocallahan.org>. r+sr=dbaron a=asa
git-svn-id: svn://10.0.0.236/trunk@150400 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-17 21:05:37 +00:00
uid502
bdc0f5a1e4 Bug 212366. Make '-moz-opacity' behave like CSS3 opacity: it does not inherit by default, and it composites the element and all its children as a group. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@148696 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-01 22:34:59 +00:00
dbaron%dbaron.org
33601224e0 Use the correct term "float" instead of "floater". b=218654 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@147924 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-13 21:51:02 +00:00
uid502
6b34cca104 Bug 165149. Make children of a scrolled element inherit style directly from the element instead of via the scrolled frames. Add a new view property to indicate that the view is painted on a uniform background and use it to optimize scrolling, so that a scrolled element with a uniform background color can still be scrolled using bitblits. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147868 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-11 12:00:05 +00:00
uid502
e9d6a45b46 Bug 190735. Final patch for deCOMtamination of core nsIFrame methods! rs=dbaron
git-svn-id: svn://10.0.0.236/trunk@147169 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-23 17:05:29 +00:00
timeless%mozdev.org
8b3ba53ac7 Bug 218832 [W] UMR: Uninitialized memory read in nsView::ConvertToParentCoords(int *,int *)const
r=roc sr=roc


git-svn-id: svn://10.0.0.236/trunk@146717 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 02:44:40 +00:00
bryner%brianryner.com
c81aa21722 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan.
git-svn-id: svn://10.0.0.236/trunk@146626 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-08 00:31:50 +00:00
roc+%cs.cmu.edu
b061cab94c Bug 194638. *Always* request invalidation of child widgets when we resize a widget. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@146170 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-18 19:58:39 +00:00
roc+%cs.cmu.edu
a84edff323 Bug 213303. Allow events to be sent to views which are totally clipped out. r+sr=dbaron,a=brendan. Patch by nielsen@memberwebs.com.
git-svn-id: svn://10.0.0.236/trunk@145921 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-12 15:56:11 +00:00
roc+%cs.cmu.edu
d958cbdb7e Bug 215159. Fix memory leak in nsViewManager. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@145640 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-06 01:42:14 +00:00
dbaron%dbaron.org
20a7c5ebb1 Remove unused content quality stubs. b=111346 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@145076 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 18:38:08 +00:00
jaggernaut%netscape.com
f34216bf2d Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144992 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-20 07:47:59 +00:00
roc+%cs.cmu.edu
62a66263bd Ongoing deCOMtamination. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144428 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-03 13:05:57 +00:00
bryner%netscape.com
d04c652303 Fix some issues related to focus changes in onfocus and onblur handlers:
- Abort firing blur events on the document and/or window if one of the blur handlers focuses something else.  This ensures that the caret doesn't get confused about whether it should be active.
  - Release any mouse or key grab when the view manager sees a deactivate event; this fixes event targeting when a mousedown handler opens a modal dialog.
  - Make sure the editor element is actually focused before activating the caret. Just receiving a focus event isn't good enough, since a focus change does not cancel propagation of the original event.

Bug 53579, r=jkeiser, sr=roc.


git-svn-id: svn://10.0.0.236/trunk@144362 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 22:46:55 +00:00
roc+%cs.cmu.edu
db7353a4a3 Trivial fix for uninitialized variable. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144178 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 01:49:34 +00:00
roc+%cs.cmu.edu
b023404ef9 Bug 109772. Cleanup views. Promote certain members of nsView and nsViewManager to stack variables. Provide non-COM versions of, and deprecate COM usage of, nsIView methods HasWidget, GetWidget, GetFloating, GetParent, GetFirstChild, GetNextSibling, GetOpacity, GetClientData, GetVisibility, GetViewManager, GetZIndex, GetPosition, and GetBounds. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144076 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:00:46 +00:00
timeless%mozdev.org
cf328850eb Bug 204389 warning: unused variable `const class nsView * zParent' in nsView::GetClippedRect
r=roc+moz sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@142845 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-23 22:00:34 +00:00
kmcclusk%netscape.com
8b1080a18b Backing out my changes for bug 14190 to see if the Tp: and Ts: numbers on MacOSX go back down.
git-svn-id: svn://10.0.0.236/trunk@142746 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 04:59:30 +00:00
kmcclusk%netscape.com
9420e2a859 defer showing/hiding widgets when view manager is batching updates to suppress invalidates bug=141901 a=asa r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@142741 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 03:19:44 +00:00
roc+%cs.cmu.edu
ae0c6e3548 Bug 201442. Fix regression by making nsViewManager::Refresh() properly take into account views which have content extending above or to the left of their origin, and which have widgets. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@142400 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-14 00:40:17 +00:00
bryner%netscape.com
6d58bc1d0d Remove now-unused nsScrollingView and nsIScrollbar implementations. Removed unused widget/public/nsWidgetSupport.h. Bug 201624, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@141538 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:01:36 +00:00