Commit Graph

313 Commits

Author SHA1 Message Date
Shawn Wilsher
149f5aac0a Bug 542592 - Change how we use/store nsDocument::mLinkMap
This makes changes nsDocument::mLinkMap in a number of ways:
1) renamed to mStyledLinks to better reflect its new nature.
2) change it to an nsTHashtable of Link*.  It no longer has a strong reference
3) add some assertions to make sure we call ForgetLink and AddStyleRelevantLink
   in pairs.
This also makes mozilla::dom::Link::ResetLinkState take a boolean indicating if
we should notify or not.
r=bz
2010-02-24 08:37:03 -08:00
Shawn Wilsher
aab3b02a8b Bug 461199 (Part 23) - Remove no longer needed code in ns[I]Document.[cpp|h]
r=bz
2010-02-24 08:37:02 -08:00
Jae-Seong Lee-Russo
30218c70c3 Bug 530373. Use NS_MIN/NS_MAX instead of PR_MIN/PR_MAX in DOM code. r=bzbarsky 2010-02-22 14:41:19 -05:00
Shawn Wilsher
53f2649e5e Backed out changeset b387c724bda4 2010-02-18 09:56:04 -08:00
Shawn Wilsher
6351eca949 Bug 461199 (Part 23) - Remove no longer needed code in ns[I]Document.[cpp|h]
r=bz
2010-02-17 14:04:32 -08:00
Robert O'Callahan
cf6a1f8a9d Bug 523083. Don't bother caching the last nsContentList, it just creates leaks and probably doesn't help anything. r=peterv 2010-02-12 10:45:33 +13:00
Boris Zbarsky
6a1a36dba1 Bug 453929. Cache getElementsBy(Class)Name return values. r=jst 2010-02-09 12:09:06 -05:00
Olli Pettay
ecf6194456 Bug 544018 - print preview doesn't work in view source , r=dao 2010-02-09 18:24:49 +02:00
Olli Pettay
435c946f5c backout Bug 544018 2010-02-08 19:00:41 +02:00
Olli Pettay
04889fec16 Bug 544018 - print preview doesn't work in view source, r=dao 2010-02-08 18:16:57 +02:00
Sid Stamm
f9be5dbbdb Bug 515458 - "(CSP) Implement frame ancestor check" [r=jst ui-r=johnath] 2010-02-05 14:08:27 -06:00
Arisu
c0a8fbd321 Bug 541465 - Regression in nsDocument.cpp disables DocumentLeak NSPR logging module.
r=roc.
2010-02-03 01:21:12 +01:00
Olli Pettay
bd950481d6 Bug 540462 - Move GetDocument from nsIDocumentViewer to nsIContentViewer, r=bz 2010-01-23 13:41:41 +02:00
Sid Stamm
f2278605c1 Bug 515437 CSP connection code, r=jst,dveditz sr=jst 2010-01-22 13:38:21 -08:00
Blake Kaplan
91ae1f8826 Bug 540642 - Call CanLoadImage before preloading images too. r=bzbarsky sr=dbaron
--HG--
extra : rebase_source : 1f62ba60b054b3afd49abfa8d36292c667c0d1b1
2010-01-20 11:59:01 -08:00
Daniel Veditz
c178b317a0 backing out a6ce37b09cf5 2010-01-14 17:20:18 -08:00
Daniel Veditz
0e538279e0 Backed out changeset a6ce37b09cf5 because of possible Tp4 perf hit 2010-01-14 17:19:11 -08:00
Sid Stamm ext:(%2C%20Brandon%20Sterne%20%3Cbsterne%40mozilla.com%3E)
56ceec2c4c bug 515433, bug 515437: Content Security Policy (CSP) core 2010-01-13 14:18:24 -08:00
Peter Van der Beken
7d8645e4ca Fix for bug 428229 (Unable to override addEventListener), remove custom addEventListener code. r=bz.
--HG--
extra : rebase_source : 4e679da2100075a1e3c4ad557b92a3c86a5cf7be
2010-01-13 14:50:01 +01:00
Robert O'Callahan
84dc5b58d0 Bug 526394. Part 7: Hoist GetHtmlContent/GetBodyContent to nsIDocument. r=jst 2010-01-12 10:45:03 +13:00
Olli Pettay
63fd91b1fa Bug 534226 - Remove support for multiple presshells, r=bz, sr=roc 2010-01-07 12:36:11 +02:00
Daniel Holbert
ea644ea79b Bug 536834 followup 2: Guard assertion's reference to SMIL-related member data with #ifdef MOZ_SMIL. r=bz-in-irc 2010-01-06 21:59:25 -08:00
Daniel Holbert
fee9f97bcd Bug 537157: Explicitly prevent SMIL animations inside of XBL bindings from running. Also, make nsSMILCSSProperty directly create a computed style object, instead of using nsPIDOMWindow helper method. r=smaug sr=roc 2010-01-06 09:20:50 -08:00
Daniel Holbert
f01bf9cbc6 Bug 536834 followup: When notifying external resource documents of PageHide & PageShow events, always pass |nsnull| as the aDispatchStartTarget argument. r=bz 2010-01-05 22:28:15 -08:00
Daniel Holbert
75d8a90b6c Bug 536834: Notify external resource documents of PageHide & PageShow events, in the main document's OnPageHide / OnPageShow methods. r=roc 2010-01-05 20:50:05 -08:00
L. David Baron
46b22b7ca0 DeCOMify nsHTMLCSSStyleSheet. (Bug 239008) r=bzbarsky 2009-12-31 10:56:33 -05:00
Olli Pettay
2f4c5ea761 Bug 487667 - Clone documents for printing, r=roc+jst+joe+dbaron
--HG--
extra : rebase_source : dbab242066ba97c0d7f34a2fb701a1c465f26ec4
2009-12-10 20:02:13 -08:00
Boris Zbarsky
cc6eb188e6 Bug 523294 part 3. Get rid of the now-unused aStateMask argument to AttributeChanged. r=dbaron 2009-12-10 14:36:04 -08:00
Daniel Holbert
25027ca46a Bug 529387: Don't create SMIL animation controller for data documents. r=roc 2009-12-10 09:26:27 -08:00
Peter Van der Beken
7e0a012c40 Back out fix for bug 428229 (Unable to override addEventListener). 2009-11-15 17:03:03 +01:00
Peter Van der Beken
aae3f7089b Fix for bug 428229 (Unable to override addEventListener). r=bz. 2009-11-09 14:54:18 +01:00
Boris Zbarsky
c3c7d9b6fb Bug 467005. Be smarter about our removable script blockers. r=sicking 2009-10-29 21:48:38 -04:00
Zbigniew Braniecki
55e880759e Bug 524737. ifdef nsHTMLMediaElement.h to fix compilation with --disable-ogg + --disable-wav, p=bartml@wp.pl,r=roc 2009-10-30 00:55:05 +01:00
Robert O'Callahan
e324cf9671 Bug 518659. Make nsHTMLMediaElement hold a reference to itself to keep itself alive while network or decoder activity could result in events being fired in the future. Also rework the handling of media elements in inactive documents. r=jst, r=doublec 2009-10-02 00:10:13 +10:00
Robert O'Callahan
5491b2a188 Bug 518659. Create nsIDocument::IsActive and IsVisible APIs so we can track HTML5 'active'ness. r=jst 2009-10-05 17:13:11 +13:00
Olli Pettay
2735d10abd Bug 333673 - document.implementation != document.implementation, r=peterv
--HG--
extra : rebase_source : eb0ce55653b586242f6da43e0c95f6aaf914342b
2009-10-18 19:39:52 +03:00
Boris Zbarsky
a839677a8d Bug 522030 followup; do the release at a better point. Fixes orange. 2009-10-13 19:34:41 -04:00
Boris Zbarsky
7483a910e3 Bug 489925 and bug 522030 branch-safe fix. Hold strong refs in the id table. r=jst 2009-10-13 16:51:02 -04:00
Boris Zbarsky
c3214c55a5 Backed out changeset c5fe17b1caa9 (bug 489925) 2009-10-13 15:39:31 -04:00
Boris Zbarsky
25c2a2fded Bug 488249 followup. Make some more HTML nodeinfos use the right namespace. 2009-10-01 11:54:10 -04:00
David Zbarsky
8d8553ee41 Bug 488249. Replace IsNodeOfType(eHTML) checks with namespace checks. r+sr=jst 2009-08-24 16:02:07 -04:00
David Zbarsky
bb6a0e81f4 Bug 507762: Parse CSS style sheets independently of case-sensitivity, and instead check case correctly when using the stylesheets. r=dbaron 2009-09-28 23:07:45 -07:00
Justin Lebar
b5b0c28999 Bug 209275 - Links' hrefs should be updated when a <base>'s href changes. r=bzbarsky 2009-09-25 12:50:26 -04:00
Paul O’Shannessy
25d9c99012 backing out 00377b2a7c75 (bug 209275) due to mochitest timeouts 2009-09-24 15:05:54 -07:00
Justin Lebar
b3e255230a Bug 209275 - Links' hrefs should be updated when a <base>'s href changes. r=bzbarsky 2009-09-24 13:59:43 -04:00
Neil Deakin
22715396a4 Bug 516076, pass a contextual window to focus controller methods, so that it retrieves the controller for the right window, r=neil,sr=smaug 2009-09-21 13:39:44 -04:00
Neil Deakin
02a7469b05 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-13 09:13:16 -04:00
Neil Deakin
a5bfe49767 Bug 503943, back out mouse capture patch, CLOSED TREE 2009-09-10 12:11:41 -04:00
Neil Deakin
2ca788ce33 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-10 08:51:36 -04:00
Boris Zbarsky
182d27a809 Bug 489925. getElementById should not return anonymous nodes. r=jst 2009-09-02 11:32:02 -04:00