Commit Graph

2246 Commits

Author SHA1 Message Date
tbogard%aol.net
7f0033c302 SizeToContent now works properly within the new DocShell API world. r=hyatt 2000-02-08 15:49:14 +00:00
rods%netscape.com
aa15488556 fixes memory leak.
b 26795 r=beard
2000-02-08 13:17:50 +00:00
joki%netscape.com
3480787577 Adding getPreventDefault method to events and fixing its propagation through content. r:hyatt 2000-02-08 02:05:57 +00:00
vidur%netscape.com
0970222b53 Optimize the case for container content with only a single child (the most common case). Now we only allocate a nsVoidArray if there's more than one child. r=troy 2000-02-08 01:12:59 +00:00
rbs%maths.uq.edu.au
b45922c8b1 [#ifdef MATHML]. Hook for the <maction> tag 2000-02-07 08:55:51 +00:00
pavlov%netscape.com
f3d78aee1d aww, I fixed my favorite bug. The "interesting" toolbar contest is now over. (bug 20496) r=mcafee,large_penguin 2000-02-04 23:14:38 +00:00
karnaze%netscape.com
3d970cf36e bug 23994 get the correct child list for a caption frame, r=attinasi 2000-02-04 03:16:47 +00:00
pavlov%netscape.com
d43191b9c1 remove the non-needed push/pop states r=sfraser 2000-02-04 03:03:08 +00:00
dbaron%fas.harvard.edu
bf2b8a41ed Event Target Debugging (b=18175), a debugging feature to help with fixing bugs where events are going to the wrong elements. It shows (like Visual Debugging) which frame is receiving events, and one can therefore move the mouse over the page to see what frame gets events. All the code is #ifdef NS_DEBUG. However, it is not yet hooked up to the viewer menu (to be checked in later).
r=joki
2000-02-03 02:49:58 +00:00
troy%netscape.com
792c9c1053 r=vidur@netscape.com Performance. Added NS_FRAME_HAS_VIEW frame state flag
so we can quickly tell whether the frame has an associated view
2000-02-03 00:51:37 +00:00
vidur%netscape.com
f77571182e Fix for bug 24306. The DocumentViewer now cleans up dangling webshell references in the PresContext. nsGenericElement::TriggerLink deals with a nonexistent handler (it might have been deleted already as part of event processing). r=buster, joki 2000-02-02 23:40:22 +00:00
valeski%netscape.com
0eefca1c2f r=norris. we now pass url creation failure's into the onclick handers 2000-02-02 23:02:59 +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
nisheeth%netscape.com
ac04e405d8 Enabling async reflow after the document has loaded. 2000-02-02 00:19:52 +00:00
waterson%netscape.com
a26daa2f0d Bugs 20677, 23905. Change nsXULElement to implement nsIContent like nsGenericElement and nsGenericHTMLElement. Specifically, do 'shallow' SetDocument() calls in AppendChildTo(), InsertChildAt() and ReplaceChildAt() methods. Change nsXULDocument to leave newly create element's mDocument as null (so 'null mDocument' means 'this element is not currently in the document'. Fix callers to ensure that a deep SetDocument() is made where necessary. r=hyatt 2000-02-01 22:57:36 +00:00
dcone%netscape.com
360be95564 fixed backgrounds. r=rods 2000-02-01 16:03:13 +00:00
sfraser%netscape.com
dc37943ae3 Fix for 25952, don't crash when doing Open Location from composer window. nsPresState was using a null mProperties table. r=beard 2000-02-01 02:14:29 +00:00
sfraser%netscape.com
4cdaf734cf Avoid crashing when mousing over links in teh composer window. r=brade 2000-02-01 00:00:17 +00:00
rods%netscape.com
bbf1942149 removing the creation of native widget and replacing them with asserts (for now)
b 17027 r kmccluck
2000-01-31 22:46:55 +00:00
attinasi%netscape.com
e88987eb6d Sorry - typo in change... 2000-01-31 14:26:25 +00:00
attinasi%netscape.com
111ba4ec67 Changed the setting of PrimaryFrame for elements wrapped in a GfxScrollFrame,
except for the DocElement which still has the primary frame set to the scrolledframe.
Fixed compiler warning around NS_NewFiedlSetFrame(...).
r=evaughan b=23803
2000-01-31 14:04:41 +00:00
rbs%maths.uq.edu.au
838e028417 [#ifdef MATHML]. Hook for the ms tag 2000-01-30 23:33:38 +00:00
scc%netscape.com
7ae82df9e9 |nsFrameIterator::QueryInterface| neglects to handle |nsIBidirectionalEnumerator| ... replacing hand-rolled QI with the macro to fix. r=pinkerton 2000-01-29 19:59:53 +00:00
vidur%netscape.com
5dff43a188 Fix for bugs 20485 and 24600. We no longer flush immediately in the content sink when we hit a script element. Instead the sink is a document observer and listens for BeginUpdate/EndUpdate notifications when evaluating a script and flushes only if necessary. Added BeginUpdate/EndUpdate notifications to nsIDocument and layout content (note that it's still necessary for XUL content). r=nisheeth,pollmann 2000-01-29 00:34:07 +00:00
vidur%netscape.com
e8157b30cb Fix for bugs 20485 and 24600. We no longer flush immediately in the content sink when we hit a script element. Instead the sink is a document observer and listens for BeginUpdate/EndUpdate notifications when evaluating a script and flushes only if necessary. Added BeginUpdate/EndUpdate notifications to nsIDocument and layout content (note that it's still necessary for XUL content). r=nisheeth,pollmann 2000-01-28 23:43:12 +00:00
sfraser%netscape.com
667a9319d7 Fix for crash loading bugzilla pages (infinite reflow recursion). by vidur, r=smfr, a=leaf 2000-01-28 22:58:17 +00:00
rods%netscape.com
c56fe2a751 when an option contained a comment node and and an attr was unset case a
WipeContainingBlock to be called. This was because the undisplayed node had a psuedo
style that wasn't being properly reolved to this code thought the comment was now visible
instead of being hidden.
b=none r=pierre,attinasi
2000-01-28 15:03:00 +00:00
warren%netscape.com
20da4f3233 Fix to propagate failure from MakeAbsolute to DOM event handler. r=vidur,joki 2000-01-28 06:55:27 +00:00
karnaze%netscape.com
bce1929fcf bug 24037 r=attinasi; nsOuterTableFrame handles bad incremental reflow by using the height of its rect.
bug 23235 r=attinasi; nsTableRowFrame requests max element size when reflowing cell for the 1st time.
bug 24410 r=attinasi; nsTableCellFrame reflow always checks width and height and updates the content empty flag.
bug 3305 r=troy,hyatt; table frame constructor cleanup, put caption in its own child list.
2000-01-28 02:19:45 +00:00
nisheeth%netscape.com
44c1cfd98b Fix for bug 10818. r=troy. Add reflow batching APIs to the pres shell. 2000-01-28 00:48:02 +00:00
kin%netscape.com
b8e9916823 Fix for bug #25259: [Regression]Cannot enter text in Composer
Backed out attinasi@netscape.com's changes from revision 1.337.
a=leaf@netscape.com
2000-01-27 20:21:28 +00:00
rbs%maths.uq.edu.au
c36d169e2c [#ifdef MATHML]. Hook for the mspace tag 2000-01-27 12:28:41 +00:00
vidur%netscape.com
42cdaa322f Fixed bug 16609. RemoveNamedItem now returns the correct error code if the attribute doesn't exist. r=pollmann 2000-01-27 05:17:11 +00:00
vidur%netscape.com
52b312047c Fix for bugs 25082 and 25084. Range::SetStartBefore, etc. need to return an error for a null sibling. Range::createContextualFragment needed to allow for a null document. r=pollmann 2000-01-27 02:51:51 +00:00
attinasi%netscape.com
85ed4c3d57 Setting GfxScrollFrame as the PrimaryFrame for scrolled content instead of the ScrollPortFrame. Also fixed some spots that were not correctly getting at the scrolled frame from the PrimaryFrame. b=23803 r=evaughan 2000-01-27 02:19:12 +00:00
attinasi%netscape.com
d6004947d4 Minor reformatting and some comments added. b=none r=none 2000-01-27 02:17:04 +00:00
kmcclusk%netscape.com
eeeb109f4c Added support for widgetless viewmanager. Changed code pattern that assumed the root view
always has a nsIWidget instance to call viewmanager to get widget instance. b=22069; r=rods@netscape.com
2000-01-26 23:04:40 +00:00
harishd%netscape.com
22ce02da97 Fix for Bug 24738 - Restricting DOCTYPE to html document only.
r=pollmann
2000-01-26 22:57:18 +00:00
norris%netscape.com
7ec9655d07 Fix 23227 Document object vulnerability
r=mstoltz
2000-01-26 15:33:57 +00:00
dcone%netscape.com
e31204f271 support for regression testing. r=rods 2000-01-26 15:14:41 +00:00
rods%netscape.com
970f05bca6 impls the new flag to only scroll when not visible
b 18649 r=troy
2000-01-25 20:36:24 +00:00
nisheeth%netscape.com
9c6617b147 r=vidur. Add support for a new pref "layout.reflow.async.afterDocLoad" that enables async reflow in the pres shell only after the document is done loading. Cleaned up ExitReflowLock() so that it uses preferences to decide whether to do async reflow, not a parameter. 2000-01-25 16:00:44 +00:00
rods%netscape.com
d770d65d07 Added "const" infront of the arg for SetDefaultFont and SetDefaultFixedFont
r=pierre b=905
2000-01-25 14:33:03 +00:00
rods%netscape.com
f40d94ae94 Added new flag for scrolling a frame if it isn't visible
r=troy b=18649
2000-01-25 14:31:41 +00:00
hyatt%netscape.com
0dfb94bf0a Fixes for bugs: 18193, 13971, 23440, 18444, 21462, 21818, 22619, 23498, 24081, and 21972. r=just about everybody. 2000-01-25 06:35:27 +00:00
nisheeth%netscape.com
8232c12c1c r=Vidur. Always default mDocumentIsLoading to PR_TRUE for now. This stops us from crashing when we hit backspace in the editor. 2000-01-24 19:11:02 +00:00
pierre%netscape.com
0ff017366d Bug 24676 ("Need -moz-outline-radius feature"). Added the 'outline_radius' similarly to the 'border_radius'. 2000-01-24 11:19:55 +00:00
pierre%netscape.com
6962364ebd 9809 "Dynamic changes of outline properties aren't repainted". Generate a reflow when the outline changes. 2000-01-24 08:16:54 +00:00
nisheeth%netscape.com
22a5959edb Work done by Vidur and me. Added a FlushPendingNotifications() method to the document. This method flushes the pending content notifications from the content sink and the pending reflow notifications from the pres shell. This code is turned off for now so that it can be tested more thoroughly by Vidur and me. 2000-01-24 06:43:15 +00:00
norris%netscape.com
8507a58ec3 Files:
caps/include/nsScriptSecurityManager.h
	caps/src/nsScriptSecurityManager.cpp
	modules/libpref/src/init/all.js
Fix
24565 nsScriptSecurityManager::GetSecurityLevel() is a performance
24567 re-write DOM glue security checks to avoid NS_WITH_SERVICE()
r=waterson

Files:
	dom/src/base/nsGlobalWindow.cpp
	layout/base/src/nsDocument.cpp
	layout/base/src/nsGenericElement.cpp
Fix assertion failure for 1-character property names.


Files:
	dom/src/jsurl/nsJSProtocolHandler.cpp
	webshell/src/nsDocLoader.cpp
Fix 18653 "javascript:" URLs cross windows problems (probably regressi
r=nisheeth

Files:
	layout/events/src/nsEventListenerManager.cpp
Fix
23834 document.onkeypress allows sniffing keystrokes
24152 document.onclick shows links from other window
r=joki
2000-01-23 04:23:14 +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
erik%netscape.com
df89d2e093 bug 24355; Fixed Width Font too large in documents with text fields,
e.g. Bugzilla; going back to the old Variable bigger than Fixed way;
r=ftang; a=chofmann
2000-01-20 01:20:11 +00:00
scc%netscape.com
2f2082906e Must use |GetEnumerator|; can't QI a selection to get the enumerator. Fixes bug #24354. Also fixes a leak in the same routine. r=buster, a={chofmann, brendan} 2000-01-19 22:56:25 +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
hyatt%netscape.com
cd53596229 Adding an interface for the creation of elements. r=waterson 2000-01-19 03:09:12 +00:00
scc%netscape.com
114d510275 OK, mjudge and I have both looked, and we think no callers remain that |QueryInterface| to get an enumerator. Everyone has been fixed to call |GetEnumerator| ... but just in case, we added an assert to find any stragglers. If this assert fires, mjudge or I need to know. bug=16543; r=mjudge 2000-01-19 01:42:54 +00:00
sfraser%netscape.com
0fd5439c99 More of the fix for 14026 -- hook up Select All in the browser windows's controller, and general tidyup. r=saari 2000-01-18 21:06:10 +00:00
sfraser%netscape.com
19c94639fb Fix to account for the fact that nsISupportsArray returns PRBools for some inteface methods. r=akkana, jfrancis. 2000-01-18 21:02:12 +00:00
attinasi%netscape.com
b6ce9d3882 Passing NS_BLOCK_SPACE_MGR for abs. positioned Fieldsets. Fixes bug 23611. r=rods,pierre 2000-01-18 15:40:25 +00:00
bryner%uiuc.edu
6012d905b7 Make trees capable of scrolling by full pages with the mouse wheel.
General cleanup and additions to mousewheel debugging code (which is
#ifdef DEBUG_scroll).  r=hyatt.
2000-01-16 05:30:49 +00:00
erik%netscape.com
86706b24f4 bug 8801; use same default size for all generics (serif, monospace, etc);
set default size to 16px; allow pref to be specified in either px or pt;
as discussed in mozilla.layout; r=ftang
2000-01-15 16:30:13 +00:00
jfrancis%netscape.com
3942aa7503 speeding up selection by directly creating ranges, rather than going through CreateInstance(). See bug 19273. 2000-01-15 14:52:24 +00:00
danm%netscape.com
e86a4b53fb adding a parameter to nsIBrowserWindow::SizeWindowTo. part of bug 15555. r:hyatt 2000-01-15 02:30:34 +00:00
tao%netscape.com
da49ef2262 bug 23400: Need to expose api GetDocumentCharacterSet() to JS. r=vidur. 2000-01-15 02:01:05 +00:00
dcone%netscape.com
8fba6004e9 Fixed some problems with rounded borders. r=rods 2000-01-14 14:43:05 +00:00
dcone%netscape.com
a9bdf781f5 Added a container for the printContext. r= rods b = 21470 2000-01-14 14:30:41 +00:00
hyatt%netscape.com
47efa41faf Forgot to check in a file. 2000-01-14 11:20:15 +00:00
hyatt%netscape.com
e740cdb714 Fixes for bugs 17460 and 21656. r=travis 2000-01-14 09:28:54 +00:00
hyatt%netscape.com
f46bc1840c Adding a new interface for retrieving/setting state information on form
controls.
2000-01-14 00:43:39 +00:00
hyatt%netscape.com
070da26f1d Fix for the mailnews sorting/folder switching crasher. 2000-01-13 19:20:25 +00:00
nisheeth%netscape.com
e0e3ba5b00 The timers used by the asynchronous reflow code were not compiling on the Mac earlier. Fixed them so that they compile on all platforms. 2000-01-13 04:27:05 +00:00
erik%netscape.com
272bb4dd79 bug 8801; automatically reflow document(s) when font prefs change;
r=ftang
2000-01-12 16:10:48 +00:00
dcone%netscape.com
e4e814a923 Small error in background rendering that index is 0 instead if i. r=rods. b=23704 2000-01-12 15:36:24 +00:00
hyatt%netscape.com
a86e35ccc2 Typo in progid. 2000-01-12 10:27:57 +00:00
nisheeth%netscape.com
56525e3574 r=troy. Reflow commands are now coalesced by block and inline frames. This fixes bug 985 in which we now generate 6 reflow commands instead of 257. 2000-01-12 08:28:24 +00:00
norris%netscape.com
1cf0d7f12b Fix warning. 2000-01-11 23:55:18 +00:00
dcone%netscape.com
dcdec2846c Set the container for the printContext. Fixes an Assert, but not the entire bug. r=Rods b=21470 2000-01-11 22:32:23 +00:00
sspitzer%netscape.com
d601e1d680 fixes to turn bug #22916 into a blank window bug (instead of a crasher)
r=troy
2000-01-11 22:15:20 +00:00
mjudge%netscape.com
559f48905a r= cmanske. warning hunt 2000-01-11 19:43:07 +00:00
hyatt%netscape.com
bc0351e8f8 Initial XBL landing. 2000-01-11 08:25:59 +00:00
hyatt%netscape.com
21a48fa26a adding behavior property to CSS. r=brendan 2000-01-11 03:40:41 +00:00
pinkerton%netscape.com
62e9d2db5e fixing bug 21414 the right way, reverting api's to their previous ways. 2000-01-10 23:04:24 +00:00
kin%netscape.com
c64a6e60c8 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
2000-01-10 15:32:42 +00:00
hyatt%netscape.com
05fccd6d62 Working on tree column show/hide. 2000-01-10 11:18:12 +00:00
hyatt%netscape.com
cd9410aa59 La 2000-01-10 08:48:54 +00:00
pierre%netscape.com
4951a0cfe4 12825 "Need new 'overflow' values to control scrollbar visibility". Added -moz-scrollbars-none, -moz-scrollbars-horizontal and -moz-scrollbars-vertical. 2000-01-10 03:23:44 +00:00
rods%netscape.com
02a831ab54 Pulled child frame frame creation out of the nsFieldsetFrame and put it in
here. Added new method for creating fieldset.
troy reviewed the approach but not the code (it's not turned on yet)
b=23156
2000-01-09 02:04:36 +00:00
norris%netscape.com
ddb2282b6c Fix
858  [Feature] JavaScript auto-disable per-domain RFE
    13023 Users must be able to disable Java and JavaScript (for JS in mail)
    21923 Executing functions in "chrome:" protocol - #2.
    r=mstoltz

    (Checked in with red on Mac; Wan-Teh says his changes are localized so
     it shouldn't interfere with his fixing bustage.)
2000-01-08 16:51:54 +00:00
pinkerton%netscape.com
cae2c15f23 Added a new param to the HTML->Text sink stream to take the charset so that we can convert to plain text with the correct charset for the platform. Enhanced the XIFFormatConverter to take advantage of this, fixing bug 21414. r=akkana, nhotta. 2000-01-08 01:48:39 +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
1ce1feb4bc [#ifdef MATHML]. Hook for the mn tag 2000-01-07 15:25:15 +00:00
rbs%maths.uq.edu.au
f11d46f904 [#ifdef MOZ_MATHML] Added extension to the reflow metrics to support the bounding metrics needed for precise MathML placements. This is a WIP approved by Troy. 2000-01-07 14:36:43 +00:00
hyatt%netscape.com
db766cf159 "Unfortunately no one can be told what the tree widget is. You have to see it for
yourself." r=morpheus
2000-01-06 09:36:36 +00:00
hyatt%netscape.com
5cd1833b90 Changes to prevent the tree widget from thrashing on AttributeChanged of offscreen
content.  Changes to prevent the tree widget from doing a reflow when content is
inserted or removed that is offscreen.
2000-01-06 08:58:05 +00:00
sspitzer%netscape.com
08b96a1e76 checking in beard's bulletproofing fix for the profile crashers on mac. r=sspitzer 2000-01-04 21:24:37 +00:00
jst%citec.fi
25d2340ed0 Fixing bug 12181 (removing static IID's). r=troy@netscape.com 2000-01-04 20:24:09 +00:00
troy%netscape.com
b4b5e28fd5 Fixed three more compiler warnings 2000-01-04 03:09:32 +00:00
troy%netscape.com
16208e4681 Fixed compiler warning 2000-01-04 03:04:56 +00:00
troy%netscape.com
8791b810ba Added new #define NS_SHRINKWRAPWIDTH that specifies that a frame should
shrink wrap its width (paying attention to the maximum computed width). Mostly
complete implementation for block frames
2000-01-03 04:32:13 +00:00