Robert Sayre
c8c02b70fc
Merge mozilla-central to tracemonkey.
2010-03-31 12:47:53 -07:00
Robert Sayre
cd70d71b16
Fix merge bustage.
2010-03-31 08:21:07 -07:00
Craig Topper
1921815643
Bug 253889: DeCOMtaminate nsIPresShell - IsPaintingSuppressed(). r=roc
...
--HG--
extra : rebase_source : 9ee8283e8bce33402893ae5316f89c9f699a1236
2010-03-31 08:43:49 -04:00
Olli Pettay
e425b81efd
Bug 536092 - Micro optimizations for event handling, r=jst
...
--HG--
extra : rebase_source : d34faef862a532109f05750ccb7220bd1ddf6e19
2010-03-31 15:44:18 +03:00
Blake Kaplan
7fa2e3d1ad
Bug 555109 - Reparent wrappers harder. r=jst, sr=peterv.
2010-03-31 13:45:46 +02:00
L. David Baron
3e1af5b102
Fire assertions when guard objects are used as temporaries. (Bug 531460) r=jst
2010-04-04 11:15:18 -07:00
Kyle Huey
53dc79a0f8
Backing out Bug 253889 to fix Bug 555727.
2010-03-30 19:57:12 -04:00
Kyle Huey
afc6c6ca2d
Backed out changeset 4b8936ac4a31
2010-03-30 19:56:44 -04:00
Craig Topper
6c9540a26d
Bug 253889: More deCOMtamination of nsIPresShell. r=roc
2010-03-28 19:21:11 -04:00
Robert O'Callahan
9a2ed61b34
Bug 551660. Switch layout code from using nsPropertyTable to FramePropertyTable. r=mats,sr=dbaron
2010-03-29 14:46:55 +13:00
Robert O'Callahan
87d4ca678d
Bug 551637. collapseOffsetProperty is never used. r=mats
2010-03-29 14:46:13 +13:00
Robert O'Callahan
65a544dade
Bug 551632. endsInDiacritic frame property is set but never used. r=smontagu
2010-03-29 14:46:13 +13:00
Craig Topper
c3fc5fa456
Bug 554253 - Convert nsCOMPtr<nsPresContext> to nsRefPtr<nsPresContext>. r=roc
...
--HG--
extra : rebase_source : d828daca07188864d055f3d1a72f5217632eb358
2010-03-25 14:17:11 +01:00
Chris Jones
7329573dd7
Bug 544936, part 6: Submit a browser minidump along with the plugin's, if we got one. r=dolske,gavin,josh
2010-03-24 16:22:04 -05:00
Ehsan Akhgari
ad8c4e400f
Bug 554230 - Crash [@ nsCopySupport::CanCopy][@ nsCopySupport::CanCopy(nsIDocument*) ]; r=jst
2010-03-23 17:10:44 -04:00
Laurent Jouanneau
ebf772c85a
Bug 541937 - XMLSerializer should serialize content of link tags. r=Olli.Pettay sr=bzbarsky
2010-03-23 21:55:39 +01:00
Ehsan Akhgari
6555c1a0bd
Bug 554125 - Add <audio> and <video> to the list of white-listed elements for the paranoid content sink; r=jst
2010-03-23 14:36:45 -04:00
Henri Sivonen
629a0e668d
Bug 543458 - Make the HTML5 tree op executor use nsContentSink code for deciding when to return to the event loop. r=bnewman.
...
--HG--
extra : rebase_source : fa41825753811279070d232c7d467600d7b2d523
2010-02-26 11:18:38 +02:00
Ms2ger@gmail.com
d6bc4e12a7
Bug 553896 - Node.isEqualNode(null) shouldn't throw. r=smaug
2010-03-22 17:06:57 +01:00
Markus Stange
5fb3e948bb
Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst
2010-03-17 18:10:57 +01:00
Craig Topper
a956b85435
Bug 253889: DeCOMtaminate nsIPresShell r=roc
2010-03-20 17:54:19 -04:00
Neil Deakin
8f3acb3041
Bug 501154, consolidate places where clipboard events are fired from, r=smaug,sr=neil
2010-03-19 14:32:13 -04:00
Laurent Jouanneau
8b9930f133
Bug 545644 - Regression: HTML 'nbsp' entity is not handled correctly in xHTML mode. r=Olli sr=Jonas
2010-03-18 17:07:32 +01:00
Peter Van der Beken
e5d87ec5bb
Fix for bug 552716 (Remove NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO). r=jst.
...
--HG--
extra : rebase_source : 8e03b54ff6117dcac27188b296c59dcafbb6db78
2010-03-17 16:09:05 +01:00
Peter Van der Beken
3e3654ffca
Fix for bug 540848 (Add appendChild/insertBefore/replaceChild/removeChild on nsINode). r=bz.
...
--HG--
extra : rebase_source : 4550ff196ab5fd1acbc72e7c94b7a31d073ae5dd
2010-03-17 16:06:19 +01:00
Peter Van der Beken
6469f57d89
Fix for bug 548463 (Disallow adopting node into a different document from adoptNode). r=sicking.
...
--HG--
extra : rebase_source : 5c00c3b6c65491997984d216f5c61052ccc0a77b
2010-03-17 15:40:35 +01:00
Ben Turner
0bdadbfbee
Bug 550275 - 'Implement the HTML5 structured clone algorithm'. r=jst+mrbkap, sr=jst.
2010-03-17 12:55:45 -07:00
Markus Stange
4a997d3554
Backed out changeset e17c076aceea, bug 508482 (:-moz-window-inactive pseudoclass) because of test_righttoleft.xul test failures.
2010-03-17 20:03:53 +01:00
Markus Stange
f1f3037861
Bug 508482 - Window activation status should be a pseudoclass (:-moz-window-inactive) instead of an attribute. r=dbaron, r+sr=jst
2010-03-17 18:10:57 +01:00
Justin Dolske
1db3f5a1ce
Bug 550293 - plugin-crashed UI needs more user opt-in. r=vlad, ui-r=faaborg
2010-03-16 22:10:08 -07:00
Blake Kaplan
efb0109f58
Fix bug 552090. r=sicking sr=jst
2010-03-16 16:23:45 -07:00
Daniel Holbert
52f0b1c7e3
Bug 534028, Patch C: Support SMIL animation of SVG attributes that are mapped to CSS properties. r=roc
2010-03-16 16:17:33 -07:00
Daniel Holbert
1b7f3ee4bc
Bug 534028, Patch A: Make nsIContent::GetAnimatedAttr()'s nsIAtom argument non-const. r=roc
2010-03-16 16:17:32 -07:00
Daniel Holbert
e0134144b0
Remove two unused variables in nsCSPService.cpp, to fix build warning & trigger another build cycle & hopefully clear some red during CLOSED TREE
2010-03-16 13:21:09 -07:00
Ehsan Akhgari
c8c9e7615a
Bug 549887 - Abort if the Places history service is unavailable; r=dbaron
...
--HG--
extra : rebase_source : dcf410b4cc4e86acbb5bbfac4f326103519b9e45
2010-03-15 11:14:28 -04:00
Makoto Kato
0736aa6001
Bug 182954 - Content should use the newer nsIPrefService APIs instead of nsIPref. r=neil,bzbarsky
2010-03-13 22:23:27 +09:00
Robert Longson
7f73b235c7
Bug 510202 - simplify C++ code now that bug 461199 has landed. r=sdwilsh,sr=bzbarsky
2010-03-13 10:32:19 +00:00
timeless@mozdev.org
c3bbdc001a
Bug 494683 warning: comparison between signed and unsigned and incorrect initialization order
...
r=jst sr=jst
--HG--
extra : rebase_source : b216615bd1813d661496432f508bb2755aa55877
2010-03-12 07:50:13 +01:00
timeless@mozdev.org
5eb4371fee
Bug 551091 fix signed warning because Count() is signed ...
...
r=jst
--HG--
extra : rebase_source : a54a095b0bd3e4150bc75985863d47c4b8fe9d73
2010-03-12 07:50:12 +01:00
Daniel Holbert
56c3c6778a
Bug 537139 followup: Call RestyleForAnimation() instead of SMILOverrideStyleChanged(), to avoid triggering CSS Transitions from SMIL changes. r=dbaron
2010-03-11 22:03:49 -08:00
Daniel Holbert
a5c6c0b995
Bug 551396: Remove unused helper-function GetURIHash from nsDocument.cpp. r=smaug
2010-03-10 12:33:37 -08:00
Frédéric Wang
d6904c21a4
Bug 475518 - MathML layout code should use _moz* attributes instead of -moz-* attributes. r=karlt, sr=bz
...
--HG--
extra : rebase_source : 34bb7055d4deaad9a0ee55aa40b9bcbdd19153ea
2010-03-10 13:49:33 +01:00
Olli Pettay
dbb6144442
Bug 549576 - Remove ::MaybeCC from XMLHttpRequest, r=peterv
2010-03-10 12:51:21 +02:00
Shawn Wilsher
cb211422b2
Bug 550661 - Adding href attribute doesn't add link styling
...
r=bz
--HG--
rename : content/html/content/reftests/href-attr-removal-restyles-ref.html => content/html/content/reftests/href-attr-change-restyles-ref.html
rename : content/html/content/reftests/href-attr-removal-restyles.html => content/html/content/reftests/href-attr-change-restyles.html
rename : layout/reftests/svg/href-attr-removal-restyles-ref.svg => layout/reftests/svg/href-attr-change-restyles-ref.svg
rename : layout/reftests/svg/href-attr-removal-restyles.svg => layout/reftests/svg/href-attr-change-restyles.svg
2010-03-09 10:21:25 -08:00
Boris Zbarsky
979fcce9a2
Bug 550842 followup. Make this actually compile.
2010-03-08 19:47:37 -05:00
Martin Husemann
4897e14595
Bug 550842. Ensure at least pointer compatible alignment of memory area for RuleProcessorData::operator new. r=bzbarsky
2010-03-08 19:30:01 -05:00
Jonas Sicking
088a5c3e1c
Bug 534136 Part 4: Inline accessors on nsIAtom. r=peterv sr=jst
2010-03-08 07:45:00 -08:00
Jonas Sicking
3175f89133
Bug 534136 Part 3: Optimize atom-using code for the fact that atoms store 16bit strings. Also take advantage of new nsAtomString API. r=bz
2010-03-08 07:45:00 -08:00
Jonas Sicking
c4106f7f22
Bug 534136 Part 2: Use 16bit-char buffers inside atoms. r=bz sr=mrbkap
2010-03-08 07:45:00 -08:00
Jonas Sicking
1a6c0165bf
Bug 534136 Part 1: Make atoms keep a pointer to an nsStringBuffer rather than storing the data inline. r=bsmedberg
2010-03-08 07:44:59 -08:00
Ginn Chen
51b8057cbc
Bug 550386: content/base/src/nsFileDataProtocolHandler.cpp failed to compile with SS12 r=bzbarsky
2010-03-08 17:33:14 +08:00
Daniel Veditz
d7f89f6fbd
bug 548993 wrong return type from CSP inline script check, r=sicking
2010-03-08 00:28:13 -08:00
Sid Stamm
1335f2114e
bug 550442 object sub loads should obey the object-src policy
2010-03-08 00:24:30 -08:00
mounir.lamouri@gmail.com
b243710610
Bug 536891 - Negative maxlength should be treated the same as unspecified maxlength, r=smaug, sr=jst
...
--HG--
extra : rebase_source : eef5330e6de87f9b9a5189bd26f13418c404d659
2010-03-05 21:38:26 +02:00
Chris Jones
f0560d9e8e
Bug 441324, part 1: Shuffle around includes to avoid problems with #define malloc et al. r=bsmedberg
2010-03-03 23:02:55 -06:00
Olli Pettay
83b813bb98
Bug 549566, clean-up beforeunload message, r=sicking
...
--HG--
extra : rebase_source : 5abe27de295f9285b926f105d7ec317ebe1503ff
2010-03-03 14:41:57 +02:00
Jonas Sicking
aeb9ba77c3
Bug 543870: Implement File.url. r=bz sr=jst
2010-03-02 23:51:09 -08:00
Daniel Holbert
627f47b186
Bug 540090: Add method nsIDocument::HasAnimationController, to let us check for active SMIL animation without triggering lazy construction. r=roc
2010-03-02 23:09:51 -08:00
Zack Weinberg
2c3e543d1d
Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
...
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Zack Weinberg
1e69ee7cc3
Bug 544112 part 1: Make speculative and chrome style sheet loads go through the document object. Rearrange some C++ unit tests so they'll still link after part 2. r=bzbarsky sr=dbaron
...
--HG--
rename : layout/html/tests/ParseCSS.cpp => layout/style/test/ParseCSS.cpp
rename : layout/html/tests/TestCSSPropertyLookup.cpp => layout/style/test/TestCSSPropertyLookup.cpp
2010-03-02 13:00:39 -08:00
Zack Weinberg
96887d3f38
Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron
...
--HG--
rename : layout/style/nsICSSParser.h => layout/style/nsCSSParser.h
2010-03-02 12:59:32 -08:00
Jonas Sicking
2591c1ea57
Fix bug 490790. r=dveditz
2010-03-02 11:40:14 -08:00
Craig Topper
5c68d29b38
Bug 544372: Fix more harmless UMRs to avoid valgrind complaining. r=sicking
2010-03-01 21:06:29 -08:00
Michael Ventnor
25bc9c7d85
Bug 542361 - Fix and remove the GetUsedX assertions r=roc
...
--HG--
extra : rebase_source : 6bdb0e3251e955ced01476a2255e9ebc511c884b
2010-03-02 11:57:43 +10:00
Mounir Lamouri
54f1561afc
Bug 457800 - Implement placeholder attribute for text input fields; r=ehsan,bzbarsky,bolter sr=roc ui-r=faaborg
...
--HG--
extra : rebase_source : 2e2f3a73553d720b32812603b0ce96c89b9a6261
2010-02-26 10:47:38 -08:00
Henri Sivonen
56cd24d21e
Bug 545854 - Add the <keygen> macro to the HTML5 parser. r=bnewman.
...
--HG--
extra : rebase_source : afd36441c60abba7453fd91c32beec4e6e1fd17b
2010-02-22 14:17:30 +02:00
Ms2ger
0d8a8bc9bb
imported patch 499092-prefix-v2
2010-02-25 10:49:34 -08:00
Jonas Sicking
bf568e77dc
Bug 544372: Reading unitialized memory in nsNodeIterator. Also fix a minor perf issue. r=peterv
2010-02-25 10:34:36 -08:00
Jonas Sicking
eb4d99e601
Fix license in new files added for bug 546528
2010-02-25 01:25:53 -08:00
Jonas Sicking
1a41a3c97c
Bug 546528 part 3: Implement FormData. r=benjamn
2010-02-24 21:58:18 -08:00
Jonas Sicking
833517ace9
Bug 546528 part 1: Break out code to convert body argument to an nsIInputStream out of nsXMLHttpRequest::Send to make the code more readable. r=benjamn
2010-02-24 21:58:17 -08:00
Jonas Sicking
aecb30c8cf
Bug 544698 part 1: Move value processing from submission code to elements. Decomtaminate. Kill a few dead functions. r=jst
2010-02-24 21:58:16 -08:00
Jonas Sicking
51fbd0da83
Bug 544642: Make frames report an error event if the frame src is pointed at a local file url. And don't make setAttribute thrown an exception in that scenario. r=smaug
2010-02-24 18:45:43 -08:00
Robert O'Callahan
ef6f3c2ae0
Bug 503989. Break MediaLoadListener reference cycle at shutdown. r=sicking,doublec
...
--HG--
extra : rebase_source : bbd326582e4a7d0864affcfe3a715e228c4b2647
2010-02-24 11:14:14 -08:00
Shawn Wilsher
cb0509c597
Bug 461199 (Part 30) - Fixes invalidation issues when changing the href attribute.
...
r=bz
2010-02-24 08:37:38 -08:00
Shawn Wilsher
b6e4bfa8f1
Bug 542632 - Protect nsGenericHTMLElement::GetHrefURIForAnchors
...
Also makes DNS prefetching take mozilla::dom::Link instead of nsIContent.
r=bz
2010-02-24 08:37:03 -08:00
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
94b3600d96
Bug 461199 (Part 28) - Tell the document that we are a style relevant link
...
Adds the needed calls to inform the document if we are a style relevant link,
and when we no longer are.
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
Shawn Wilsher
40dabb5bd0
Bug 461199 (Part 22) - Call ResetLinkState if given eLinkState_Unknown
...
If consumers tell mozilla::dom::Link::SetLinkState that its new state is
eLinkState_Unknown, call mozilla::dom::Link::ResetLinkState and return.
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
5c712b68a2
Bug 461199 (Part 21) - Cache the nsIContent pointer in Link for performance reasons
...
Add a Content method that obtains a pointer to the nsIContent interface on
mozilla::dom::Link. This is cached so we only have to call QueryInterface once
during the entire lifetime of the mozilla::dom::Link object.
r=bz
2010-02-24 08:37:02 -08:00
Shawn Wilsher
5a5b1276de
Bug 461199 (Part 13) - mozilla::dom::Link::SetLinkState should inform the document about changes to its state when it is called.
...
Make Link::SetLinkState notify the document about changes in state, plus a
whole bunch of assertions for sanity checking.
r=sicking
r=bz
2009-12-15 16:04:07 -08:00
Shawn Wilsher
2171f3f5d2
Bug 461199 (Part 12) - mozilla::dom::Link should unregister with mozilla::IHistory when it goes away
...
Call UnregisterWithHistory in Link's destructor to ensure that we are no longer
registered with IHistory.
r=sicking
sr=bz
2009-12-15 16:01:53 -08:00
Shawn Wilsher
258c845043
Bug 461199 (Part 11) - [un]register in mozilla::dom::Link::[Reset]LinkState
...
Register with History in mozilla::dom::Link::LinkState and unregister in
mozilla::dom::Link::RestLinkState.
r=bz
2009-11-23 10:48:52 -08:00
Shawn Wilsher
c74c499d06
Bug 461199 (Part 9) - Move href helpers from nsGenericHTMLElement to mozilla::dom::Link.
...
Move the helpers so that they can easily use the cached URI when available.
r=sicking
sr=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
2849d7ab1f
Bug 461199 (Part 8) - Remove nsAttrValue::eLazyURIValue and related code
...
Stop using lazy href attributes in nsAttrValue. Link will store it as needed.
r=sicking
sr=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
7138f81c0a
Bug 461199 (Part 7) - mozilla::dom::Link should have a method to obtain a cached URI
...
Add mozilla::dom::Link::GetURI method used to cache the URI for this element.
r=bz
2009-11-09 10:00:54 -08:00
Shawn Wilsher
3c5791490b
Bug 461199 (Part 5) - Add mozilla::dom::Link::LinkState
...
Adds a LinkState method that should be called by subclasses when they get asked
about their IntrinsicState.
r=sicking
sr=bz
2009-11-09 10:00:53 -08:00
Shawn Wilsher
f0cb06c199
Bug 461199 (Part 3) - Create a cached getter for mozilla::IHistory on nsContentUtils.
...
r=sicking
2009-11-09 10:00:53 -08:00
Boris Zbarsky
ebac0e31a3
Bug 534526 part 2. Move AttributeWillChange out of SetAttrAndNotify, and in particular to before ParseAttribute, since some ParseAttribute implementations actually change the attribute value. Also move it to before we've changed the CSSDeclaration for inline style changes. r=sicking,longsonr,dbaron
2010-02-23 23:37:47 -05:00
Boris Zbarsky
0aef843d39
Bug 534526 part 1. Remove a SetAttrAndNotify caller by making XUL inherit from nsStyledElement. r=sicking
2010-02-23 23:37:46 -05:00
Ben Turner
e8124b22b1
Bug 537572 - 'Workers: nsLayoutStatics refcounting isn't threadsafe, triggered via nsContentUtils::WrapNative'. r+sr=sicking
2010-02-23 17:44:52 -08:00
Daniel Veditz
ac0251d255
bug 515442 CSP inline script protection
2010-02-23 13:20:46 -08:00
Jonas Sicking
62651da7b8
Bug 547850: Make case folding code in HTML DOM only case fold ASCII characters. r=hsivonen
2010-02-23 09:38:10 -08:00
Boris Zbarsky
d14db3049f
Bug 530373 followup. Fix build bustage.
2010-02-22 15:13:19 -05: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
Alexander Surkov
be2b5e3966
Bug 534527 - Accessibility needs new DOM API part 2, r=smaug, sr=bz
2010-02-20 16:52:50 -08:00
Timothy Nikkel
92355591c8
Bug 545593. Remove nsViewManager::Enable/DisableRefresh. r=roc
2010-02-18 13:23:23 -06:00
Shawn Wilsher
8074dd15b2
Backed out changeset 1622d8dab8c3
2010-02-18 10:13:35 -08:00
Shawn Wilsher
9192e29456
Bug 461199 (Part 3) - Create a cached getter for mozilla::IHistory on nsContentUtils.
...
r=sicking
2009-11-09 10:00:53 -08:00