7830 Commits

Author SHA1 Message Date
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
timeless%mozdev.org
9bbf8fb610 Bug 211281 optimization for 'rare' oom check
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@144351 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 18:41:39 +00:00
bzbarsky%mit.edu
979961af76 removing unused string var
git-svn-id: svn://10.0.0.236/trunk@144347 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 14:59:12 +00:00
bzbarsky%mit.edu
d05edb9f6b Change GetHrefUTF8 to GetHrefURI to make sure that we don't lose track of the
origin charset.  Bug 166996, r=dbaron,darin sr=jst


git-svn-id: svn://10.0.0.236/trunk@144331 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 02:59:54 +00:00
dbaron%dbaron.org
7fdc969a1d Clean up EnsureBlockDisplay and make it do the right thing for inner table display types. b=210873 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144305 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:48:56 +00:00
dbaron%dbaron.org
1686c6d5b3 Remove change hints from CSS parser and replace with boolean indicating whether there was a change, computed a much simpler way. b=158713 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144302 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:39:22 +00:00
dbaron%dbaron.org
d2387d2402 Fix crash bug 209575 by ensuring that mDeclaration is never null. Remove unneeded null checks. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144300 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-30 21:31:25 +00:00
dbaron%dbaron.org
9887e2a116 Fix missing AddRef that was causing crashes in inspector. b=208190 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@144225 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-27 21:06:45 +00:00
jkeiser%netscape.com
64ac997a95 Make NOSCRIPT show up normally when script disabled (bug 77296), r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@144183 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 06:10:03 +00:00
jst%netscape.com
12e6402a4b Fixing more of bug 209884. Same change that was done all over the place in the original patch, sr=me.
git-svn-id: svn://10.0.0.236/trunk@144168 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 23:59:34 +00:00
neil%parkwaycc.co.uk
bb85b5034e Bug 209911 XUL tree blob sort ignores sort direction r=varga sr=jag
git-svn-id: svn://10.0.0.236/trunk@144143 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 08:46:31 +00:00
rbs%maths.uq.edu.au
a6c97c6fb0 Helper patch for bug 15364. Expose an API to allow scripts to show the caret even in selections (a la Emacs). Users can also set the pref ui.caretVisibleWithSelection to 1, which gives a nice combination with caret browsing (hit F7). r=sfraser, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144128 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-25 01:14:25 +00:00
caillon%returnzero.com
d69f1a5b86 210451 - Make Node.textContent settable, followup to earlier checkin.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@144118 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 23:05:59 +00:00
jst%netscape.com
ecae24eff4 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@144108 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:43:01 +00:00
caillon%returnzero.com
056169e55b 210451 - Implement getting Node.textContent (see the DOM3 WD)
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@144107 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 21:39:39 +00:00
roc+%cs.cmu.edu
3e5827208b deCOMtaminate nsIFrame::GetWindow; the COM wrapper doesn't ADDREF when it should, the easiest thing to do is to just not use the wrapper. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144096 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 13:39:15 +00:00
bzbarsky%mit.edu
79461f624d Add asserts on people attempting to fetch attributes in the
kNamespaceID_Unknown namespace or call HasAttr on such.  Bug 210314, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@144090 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 06:45:34 +00:00
dbaron%dbaron.org
b868e5ce74 Fix windows bustage. b=188803
git-svn-id: svn://10.0.0.236/trunk@144089 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 06:20:18 +00:00
dbaron%dbaron.org
3bdd5c558b Implement the DOM interfaces for CSS style rules on a wrapper object which allows the immutable rule object to be swapped out underneath. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144087 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:40:37 +00:00
dbaron%dbaron.org
9b0895c752 Fix dynamic changes to negated attribute or state selectors. b=210458 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144086 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:34:30 +00:00
jst%netscape.com
816e8f6c3c Fixing bug 210443. Cut down on the malloc's done when loading images. r=caillon@aillon.org, sr=bzbarsky@mit.edu.
git-svn-id: svn://10.0.0.236/trunk@144085 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 05:32:59 +00:00
bzbarsky%mit.edu
600f1dae13 Fix matching when attribute selectors with "*" as a namespace are involved.
Bug 210314, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144083 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 04:50:05 +00:00
bzbarsky%mit.edu
63ed4e4cd2 Make XBL methods and properties report useful line numbers and urls so that the
JS errors/warnings in the JS console point to the right place.  Bug 127567,
r=bryner, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@144079 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-24 01:20:40 +00:00
bzbarsky%mit.edu
fe3f1277a3 Make setting contentType or contentCharset act as hints if done before channel
open; use this in the CSSLoader to hint that we want text/css data.  Bug
120789, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@144065 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 21:00:46 +00:00
bsmedberg%covad.net
03384bfad0 Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz
git-svn-id: svn://10.0.0.236/trunk@144063 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 20:31:43 +00:00
bzbarsky%mit.edu
889c257b53 Fix some DEBUG_bzbarsky code people didn't bother to update. r+sr=whatever
git-svn-id: svn://10.0.0.236/trunk@144060 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 18:34:02 +00:00
alecf%flett.org
30f0244a1c fix for bug 209780 - do UTF16->UTF8 conversion outside the recursion, so that we don't constantly convert the string we're looking for
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144059 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 18:32:10 +00:00
jshin%mailaps.org
e51a020a30 bug 206379 : additional patch : get rid of ResolveCharset() (static) and
rely on GetUnicodeDecoder() of nsICharacterSetConverterManager to take care of
the charset alias resolution. (r/sr=bzbarsky, sr=alecf)


git-svn-id: svn://10.0.0.236/trunk@144048 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-23 05:04:43 +00:00
caillon%returnzero.com
9b45a956e6 [Bug 210254] nsEventListenerManager::mPrincipal is unused. Also reorganizes some members to better align them.
r+sr=bzbarsky.


git-svn-id: svn://10.0.0.236/trunk@144040 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 13:12:14 +00:00
bzbarsky%mit.edu
1c3d6bf29e Seems to have no effect on Tp, so relanding. Who knows what btek is
thinking....


git-svn-id: svn://10.0.0.236/trunk@144036 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 06:34:08 +00:00
bzbarsky%mit.edu
b27e4759a1 Backing the rest of this out to see whether it affects Tp.
git-svn-id: svn://10.0.0.236/trunk@144035 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 03:33:33 +00:00
bzbarsky%mit.edu
735f6d10e3 Backing out these last two checkins to see whether this is the cause of Tp troubles.
git-svn-id: svn://10.0.0.236/trunk@144034 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-22 01:13:59 +00:00
jst%netscape.com
e6a333ff34 Fixing typo in comment.
git-svn-id: svn://10.0.0.236/trunk@144028 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 18:03:15 +00:00
bzbarsky%mit.edu
32051792ac Only make the check for sameness if there are listeners or if we plan to fire
notifications.  Trying to fix small Tp regression. Bug still 209634, r=caillon,
sr=jag


git-svn-id: svn://10.0.0.236/trunk@144024 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 07:29:52 +00:00
dwitte%stanford.edu
1f02188a62 removing some unused default ctors now that nsDerivedSafe can handle it.
no bug, r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@144021 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 07:01:42 +00:00
bzbarsky%mit.edu
4ca15e2232 Make sure to fire no mutation events or internal notifications on attribute
changes that don't change the attr value.  Bug 209634, r=caillon, sr=jst


git-svn-id: svn://10.0.0.236/trunk@144018 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 04:55:32 +00:00
caillon%returnzero.com
5b8c0335b4 Missing #include "nsReadableUtils.h" -- bustage fix from the recent checkin for bug 209699.
git-svn-id: svn://10.0.0.236/trunk@144017 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 04:05:10 +00:00
jst%netscape.com
544a6a4df4 Fixing orangeness.
git-svn-id: svn://10.0.0.236/trunk@144016 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 03:08:56 +00:00
jst%netscape.com
45f72e0474 Fixing one more part of bug 209699. Replace NS_Convert* with Copy/Append*. r=dwitte@stanford.edu, sr=alecf@flett.org.
git-svn-id: svn://10.0.0.236/trunk@144012 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:26:28 +00:00
caillon%returnzero.com
1c1e0c7bb4 Bug 209852. Remove |dont_QueryInterface|.
r=dbaron, sr=jag


git-svn-id: svn://10.0.0.236/trunk@144011 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-21 00:15:41 +00:00
bryner%netscape.com
8299ce883f Always add nsXBLDocumentInfos to the bound document's binding manager, even if we also put it in the XUL cache. This prevents crashes when the XUL cache is flushed (bug 201103). r=jkeiser, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@144004 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 23:33:43 +00:00
bzbarsky%mit.edu
2a29249b85 Check that we are HTML, in addition to checking namespace, before going
case-insensitive.  Bug 209271, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@143998 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 20:23:17 +00:00
dwitte%stanford.edu
832efaccb6 removing some unused default ctors now that nsDerivedSafe can handle it.
no bug, r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@143973 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 02:20:34 +00:00
brendan%mozilla.org
6533595eb5 Use NS_REINTERPRET_CAST, not NS_STATIC_CAST, to go from void* native context type to opaque-here-without-jscntxt.h JSContext * (fixes HPUX build).
git-svn-id: svn://10.0.0.236/trunk@143971 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:47:31 +00:00
dbaron%dbaron.org
4f6b46a91e Add nsIFrame::GetPresContext, which gets the pres context from the rule node which it gets from the style context. DeCOMtaminate nsStyleContext::GetRuleNode, nsRuleNode::GetRule, and nsRuleNode::GetPresContext. Remove unused nsRuleNode::PathContainsRule. b=208190 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143968 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:22:44 +00:00
caillon%returnzero.com
f54af50cad When comparing principals, callers should explicitly check if the subject principal is the system principal, if it cares that it is.
This fixes bug 209946, Copy doesn't work anymore.
r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@143962 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:59:24 +00:00
dbaron%dbaron.org
519cf3b3d3 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
brendan%mozilla.org
836c4046f7 Don't include private and unnecessary js header files.
git-svn-id: svn://10.0.0.236/trunk@143956 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:13:59 +00:00
mkaply%us.ibm.com
761436ea4a #188071
r=mkaply, sr=dbaron
Add a lookandfeel color for button default so it can be different than 3D shadow


git-svn-id: svn://10.0.0.236/trunk@143883 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 20:47:40 +00:00
dbaron%dbaron.org
2ec3b927fc OOM check. r+sr=bzbarsky b=188803
git-svn-id: svn://10.0.0.236/trunk@143838 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 03:02:01 +00:00