Commit Graph

2972 Commits

Author SHA1 Message Date
mhammond%skippinet.com.au
b88a09274a * nsContentUtils::GetEventArgName -> GetEventArgNames, so onerror event
is compiled with correct names
* nsIScriptContext->CompileEventHandler takes an array of names rather
  than 1.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@181532 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 02:05:45 +00:00
mhammond%skippinet.com.au
d5b1eb8ffc * Have a bash at adding a "default script language" to nsIContent.
* When merging overlays, use the default script language specified
   in the overlay for attributes, and eagerly compile them if the language
   is not the nodes default.
* Remove mLangID from nsIXULPrototypeAttribute.
* nsIScriptGlobalObject::EnsureScriptEnvironment(PRUint32 aLangID) to
   allow a global to set itself up for a new language.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@180644 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 12:40:41 +00:00
mhammond%skippinet.com.au
073d37c91b Fix the language detection code to a saner model, closer to how it was
before I got my hands on it.


git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179883 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 02:24:55 +00:00
mhammond%skippinet.com.au
42c056116c Remove unnecessary #include
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179879 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 02:12:39 +00:00
mhammond%skippinet.com.au
ac160c0518 Print a warning where we still assume js.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179878 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 02:11:58 +00:00
mhammond%skippinet.com.au
e7a4ad7042 First checkin on the road to making the DOM language agnostic.
git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179648 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-05 00:18:30 +00:00
peterv%propagandism.org
f5f85d2946 Fix for bug 298064 (nsContentUtils::GetDocumentFromCaller() is broken.). r=jst, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@179553 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-02 18:02:51 +00:00
jwatt%jwatt.org
7240d0e8a8 Fixing bug 302103. Implement SVG events. r=tor@acm.org, sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@178992 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 21:31:09 +00:00
peterv%propagandism.org
8c28d3512b Fix leak from fix for bug 305689 (Cache event queue service in nsContentUtils). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@178964 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 17:51:44 +00:00
bzbarsky%mit.edu
83fa417433 Fix crash after restoring default toolbar set by making sure that
RemoveSubtreeFromDocument unhooks broadcasters just like AddSubtreeToDocument
hooked them up.  Bug 295404, patch by dbaron, r=bzbarsky, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@178900 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 04:11:35 +00:00
bzbarsky%mit.edu
525a6b3082 Cache the event queue service in nsContentUtils instead of having every single
presshell caching it.  Bug 305689, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@178852 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 21:01:51 +00:00
bzbarsky%mit.edu
a8c7d445d5 Make sure that a reflow flush on the document makes the sink start layout if
needed.  Bug 253951, r=mrbkap, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178851 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 20:56:58 +00:00
aaronleventhal%moonset.net
16ef919f61 Bug 303620. Focus system goes haywire when focus changed in onblur or onchange handler. r=mats, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@178814 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 19:06:07 +00:00
mrbkap%gmail.com
210f1d6d3a bug 303399: Bidi: Problems with caret positioning on blank lines. Patch by Uri Bernstein <uriber@gmail.com>. r=mrbkap sr=roc
git-svn-id: svn://10.0.0.236/trunk@178798 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 17:44:28 +00:00
bzbarsky%mit.edu
6285018d14 Make sure to not mess with our array of ptrs to release if it hasn't been
allocated.  Bug 305624, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@178756 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 00:07:49 +00:00
bzbarsky%mit.edu
d7497a616e Go back to having UnblockOnload firing onload sync in cases where it's safe.
Attempting to address Tp fallout from bug 294114, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@178750 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 23:24:30 +00:00
roc+%cs.cmu.edu
a65887afc9 Bug 304434. Update link :visited status for URIs downloaded to helper apps. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@178746 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 22:26:10 +00:00
bzbarsky%mit.edu
41213c8fb7 Init the content policy service ptr lazily so we don't reenter layout module
init.  Bug 305310, r+sr=peterv


git-svn-id: svn://10.0.0.236/trunk@178733 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 21:00:00 +00:00
mrbkap%gmail.com
c77ac42bb4 bug 302775: Wallpaper over a crash when a DOM range is inside an attribute. r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@178732 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 20:59:54 +00:00
bzbarsky%mit.edu
cde33b5712 Make sure to remove our mOnloadBlocker from the loadgroup when we're removed
from the window.  Bug 305639, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@178730 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 20:51:22 +00:00
bzbarsky%mit.edu
11b7602b7a Back out last change for bug 294114, since it didn't help and may have hurt Tdhml
git-svn-id: svn://10.0.0.236/trunk@178718 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 18:54:35 +00:00
bzbarsky%mit.edu
c0485fb45b Another attempt to get back Tp perf. Bug 294114 again, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@178706 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 17:11:45 +00:00
bzbarsky%mit.edu
3977535957 Attempt to prevent BlockOnload/UnblockOnload thrashing during document load;
just block it when parsing starts and unblock when parsing is done.  Bug 294114
followup, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@178689 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 15:44:43 +00:00
bzbarsky%mit.edu
b327d4361b Remove nsDummyLayoutRequest and use the nsIDocument onload-blocking API
instead.  Bug 294114, r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178656 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 01:29:02 +00:00
bzbarsky%mit.edu
d1afb179ba Make nsIPresShell::GetPrimaryFrameFor return nsIFrame* instead of using an out
param.  Bug 303779, patch by Bastiaan Jacques <b.jacques@planet.nl>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@178642 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:24:29 +00:00
bzbarsky%mit.edu
73717c32db Remove bogus assert. Bug 305271, r+sr=peterv
git-svn-id: svn://10.0.0.236/trunk@178606 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 15:48:01 +00:00
bzbarsky%mit.edu
a13a43b362 Restore some frame recursion protection that got lost. Bug 303163, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@178604 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 15:44:49 +00:00
roc+%cs.cmu.edu
d225763725 Bug 300313. DeCOMtaminate linebreaker/wordbreaker, and access them directly as services rather than through a factory. r+sr=roc, patch by Joshua Welderson (thanks Joshua\!)
git-svn-id: svn://10.0.0.236/trunk@178583 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 03:00:06 +00:00
timeless%mozdev.org
bd4d34031a Bug 305041 shutdown crash [@ nsAttrValue::ToString] nsAttrValue::sEnumTableArray is null
r=bz sr=bz


git-svn-id: svn://10.0.0.236/trunk@178318 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:40:42 +00:00
bzbarsky%mit.edu
e79cce1c42 Allow passing a cached nsIContentPolicy service pointer to
NS_CheckContent*Policy if the caller has one.  Bug 304845, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178242 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 15:00:01 +00:00
bzbarsky%mit.edu
1815bcf181 Make sure that non-image inputs don't claim to have a useful image via
nsIImageLoadingContent.  Bug 301635, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178241 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 14:55:07 +00:00
mats.palmgren%bredband.net
5ec61cabce Avoid triggering changes to the link map while enumerating it. b=304747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@178024 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-18 09:54:45 +00:00
jst%mozilla.jstenback.com
5db7b4597b Fixing bug 269125. Make image.onerror fire for non-existent files. Patch by trev@gtchat.de, r=jst@mozilla.org, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@178003 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 23:01:09 +00:00
roc+%cs.cmu.edu
c92cc5a377 Bug 304759. Avoid link map maintenance while tearing down document. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@177922 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 01:27:10 +00:00
bzbarsky%mit.edu
d934c405c0 Make content lists smarter about match functions that don't actually depend on
attributes.  Bug 299703, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@177803 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 01:43:53 +00:00
peterv%propagandism.org
b852079232 Fix for bug 303522 (cvs diff content/base/src/nsDocument.cpp! Object's nsIClassInfo lies about it's interfacescvs diff content/base/src/nsDocument.cpp! classname: HTMLDocument unimplemented interface name: nsIDOMXPathEvaluator). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@177748 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 13:18:59 +00:00
bzbarsky%mit.edu
1d38f76c13 Don't leak radio visitors through shutdown. Bug 302706, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@177738 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 02:42:59 +00:00
joshmoz%gmail.com
b4a24ff6ab get rid of XP_MAC macros from mozilla/content. no bug. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@177681 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 00:20:46 +00:00
jst%mozilla.jstenback.com
a9f668bc25 Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
roc+%cs.cmu.edu
a4e5443b20 Bug 78510. Maintain a per-document hashmap from URI-spec-hash to set of pointers to content elements that are links to those URIs whose state has been queried by the style system. Use this map to efficiently mark visited any links to URIs which get visited. r+sr=dbaron, with input from bryner and bzbarsky, a=jesup with support from dbaron. May impact Tp and other metrics, be careful out there.
git-svn-id: svn://10.0.0.236/trunk@177512 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-10 20:21:44 +00:00
allan%beaufour.dk
aeb16bbde9 Dispatch DOMContentLoaded on XUL Documents. Bug 302914, r+sr=jst, a=benjamin, patch by smaug@welho.com
git-svn-id: svn://10.0.0.236/trunk@176963 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 12:42:24 +00:00
jst%mozilla.jstenback.com
792744ce69 Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
bzbarsky%mit.edu
79e17a68ce Make reentering nsRange::DeleteContents safe, and make RemoveChildAt deal with
the mutation event removing the child.  Bug 293388, r=sicking, sr=peterv,
a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176620 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 15:45:49 +00:00
masayuki%d-toybox.com
8d6bdb8f38 Bug 275960 document.lastModified cannot handle non-ascii characters when the page's HTTP header doesn't have Last-Modified r=jshin, sr=bzbarsky, a=benjamin
git-svn-id: svn://10.0.0.236/trunk@176618 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-26 15:40:14 +00:00
bryner%brianryner.com
1f319207af Change PageShow/PageHide events to be lowercase and hook them up so that onpageshow= works on the body tag. Bug 297887, patch by brettw@gmail.com, r=me, a=bsmedberg.
git-svn-id: svn://10.0.0.236/trunk@176571 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-25 22:09:39 +00:00
aaronleventhal%moonset.net
682c022d89 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@176358 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 20:08:18 +00:00
aaronleventhal%moonset.net
7f9b9fa87d Fixing bustage. Forgot to check in this file
git-svn-id: svn://10.0.0.236/trunk@176356 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 19:50:40 +00:00
aaronleventhal%moonset.net
b775012887 Bug 301436. Start using official DHTML a11y namespaces. r+sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@176352 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-20 19:34:55 +00:00
bzbarsky%mit.edu
4f7811821f Convert InsertData calls into AppendData calls (which require less
reflow/painting to handle) when the data is inserted at the end.  Bug 300797,
r=sicking, sr=roc, a=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@176258 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 20:52:12 +00:00
bzbarsky%mit.edu
e5932bc9f9 Don't flush our parent if we're not safe to flush. Bug 281922, r+sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@176094 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-14 16:13:09 +00:00