Commit Graph

280537 Commits

Author SHA1 Message Date
Kyle Huey
b20f0e8194 No bug: Fix some class/struct mismatch warnings on MSVC.
--HG--
extra : rebase_source : 28a4fa9689a62c497fc537d3cc7b9bae4bda8d58
2012-08-24 11:45:05 -07:00
Robert Lickenbrock
b7f0492913 Bug 784756 - Remove an unnecessary loop from DecodeWorker::DecodeABitOf() that caused it to always take 5ms, even when decoding didn't take that long. r=joe 2012-08-24 11:24:36 -07:00
Michael Wu
d79ca82da5 Bug 781039 - Mouse input support for gonk, r=cjones 2012-08-24 14:06:19 -04:00
Kyle Huey
8443a7a8f1 Bug 783162: Make mapped attributes hold the image alive. r=bz
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary.  This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff.  Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive.  Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request.  The result is that all the references to the request are dropped and the frame is never told it has a background.

The solution is to keep the nsCSSValue::Image alive longer.  This patch adds two new types of nsAttrValue.  The first is an nsCSSValue::URL.  A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL.  The second is an nsCSSValue::Image.  nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load.  The result is that image loads are only started when the element is actually visible.  This also mirrors the way background-image works.  This also allows us to fix two longstanding bugs in this code.  Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document.  Now we can grab the principal of the node in ParseBackgroundAttribute.  MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.

nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value.  nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared.  Moving the classes to a namespace solves the problem.

Finally some old inoperative quirks mode code was removed.  This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Benjamin Smedberg
a859c5ef74 Revert bug 776208 for semi-consistent failures:
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/browser_pluginplaypreview.js | Test 1a, the overlay about: content is expected
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/browser_pluginplaypreview.js | an unexpected uncaught JS exception reported through window.onerror - TypeError: Components.classes is undefined at jar:file:///c:/talos-slave/test/build/firefox/omni.ja!/chrome/toolkit/content/global/about.xhtml:38
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/browser_pluginplaypreview.js | an unexpected uncaught JS exception reported through window.onerror - TypeError: Components.classes is undefined at jar:file:///c:/talos-slave/test/build/firefox/omni.ja!/chrome/toolkit/content/global/about.xhtml:38
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/browser_pluginplaypreview.js | Found an unexpected tab at the end of test run: jar:file:///c:/talos-slave/test/build/firefox/omni.ja!/chrome/toolkit/content/global/about.xhtml
TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/browser_pluginplaypreview.js | Found an unexpected tab at the end of test run: chrome://mochitests/content/browser/browser/base/content/test/plugin_test.html

--HG--
extra : rebase_source : e000988677d466b4796c5b2a51968f586743e6db
2012-08-24 13:08:15 -04:00
Benoit Jacob
6f30e1539b Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert 2012-08-23 14:56:17 -04:00
Benoit Girard
2a77bce07f Bug 785287 - Profiler: Add the document URL in DoReflow. r=roc
--HG--
extra : rebase_source : 816fc213bdc9e3201913f8df944a2a84e6f33bfc
2012-08-23 22:07:21 -04:00
Jonathan Griffin
968d03af25 Bug 785273 - Prevent circular references to Marionette instances, r=mdas 2012-08-23 17:31:42 -07:00
Alex Crichton
bd6b4b88dd Bug 785175: Discard column information if the script is too large instead of aborting. r=jorendorff 2012-08-24 09:54:37 -07:00
Andrew McCreight
71d9aa2a7e Bug 782735 - turn nsNodeInfoManager into a non-leaking native CC class. r=smaug 2012-08-24 09:50:06 -07:00
Andrew McCreight
a9920e291d Bug 782485 - turn nsXULPrototypeNode into a native CC class. r=smaug 2012-08-24 09:50:06 -07:00
Andrew McCreight
c063a3e54c Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.

This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.

nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over.  See bug 774874.
2012-08-24 09:50:06 -07:00
Andrew McCreight
d0e1cf9ab3 Bug 750570, part 3 - Remove unused stabilizeForDeletion argument. r=smaug
This argument isn't used, and would have to have its type changed
to support native purple buffer participants, so we just remove it.
2012-08-24 09:50:06 -07:00
Andrew McCreight
d5b4c64064 Bug 750570, part 2 - Add purple buffer support for non-nsISupports classes. r=smaug
We add a new field to purple buffer entries, to store the participant for
non-nsISupports classes. For nsISupports, we store NULL instead. The participant
has to be passed into Suspect2.

In the cycle collector itself, we generalize canonicalization to handle the
possibility that we can just grab the participant directly from a field,
rather than needing to QI something.

Most of the patch is just routing around this extra pointer.
2012-08-24 09:50:06 -07:00
Andrew McCreight
56b160f693 Bug 750570, part 1 - lift UnmarkIfPurple to the root CC participant. r=glandium,smaug
All CC classes are potentially cycle collectable, so we need
to implement this function on the participant for all CC classes.
2012-08-24 09:50:06 -07:00
Luke Wagner
5e16252ea7 Bug 784706 - clear proxiedScopes in DebugScopes::onCompartmentLeaveDebugMode (r=jimb) 2012-08-23 10:58:24 -07:00
Dave Herman
4bf3c78942 Bug 742612 - address additional style nit from review. r=jorendorff 2012-08-24 09:00:50 -07:00
Nathan Froyd
b1151f38c9 Bug 785226 - fix -Wenum-compare warning spam in accessible/src/base/RoleAsserts.cpp; r=davidb 2012-08-23 17:00:58 -04:00
Dave Herman
a3853b3e79 Bug 742612 - Reflect.parse: separate guarded/unguarded catch clauses. r=jorendorff 2012-08-24 08:30:44 -07:00
Chris Lord
f1d99acd96 Bug 785333 - Keep track of merged frames with all display items. r=roc
This changes the display-item storage to store layers against the underlying
frame and all merged frames of an item (and similarly, to retrieve them against
all frames of an item).
2012-08-24 16:17:22 +01:00
Chris Lord
8646631b2f Bug 785333 - Store container layers against merged frames. r=roc
As well as storing the container layer against the underlying frame of the
container item, store it against its merged frames as well. In addition, check
for old container layers against merged frames when building a container layer.

This protects against losing the layer when the underlying frame of a container
item changes to either a new frame or an existing, merged frame.
2012-08-24 16:17:22 +01:00
Hubert Figuière
22231ed617 Bug 668469 - Don't ignore focusable elements. r=surkov 2012-08-22 08:08:43 -07:00
Hubert Figuière
f19368a57f Bug 772060 - Part 1: Implement accessibilityArrayAttributeCount for mozPaneAccessible. r=surkov,tbsaunde 2012-07-11 17:29:19 -07:00
Masatoshi Kimura
599c8bd984 Bug 779845 - Import PSL test from http://publicsuffix.org/list/test.txt. r=gerv. 2012-08-24 14:57:51 +01:00
Masatoshi Kimura
b8af8f21d9 Bug 779845 - Update the PSL test to catch up with the .jp PSL update and fix test's bug about unlisted TLD. r=gerv. 2012-08-24 14:56:38 +01:00
Masatoshi Kimura
07751282ce Bug 779845 - Import PSL test from http://publicsuffix.org/list/test.txt. r=gerv. 2012-08-24 14:56:05 +01:00
Joel Maher
9f2c0054eb Bug 785238 - Should catch AgentError inside devicemanagerSUT's getInfo. r=wlach 2012-08-24 09:53:27 -04:00
Eitan Isaacson
6561d9d600 Revert "Bug 782320 - Use names for pushbuttons. r=davidb" 2012-08-24 09:52:24 -04:00
Eitan Isaacson
f53697fbaa Bug 784748 - Make TextSwitcher and its contents invisible to accessibility. r=sriram 2012-08-24 09:52:24 -04:00
Ms2ger
e7364eb3f0 Revert to changeset e048ac9eb279 for bustage. 2012-08-24 15:44:54 +02:00
Hubert Figuière
b3d5f81157 Bug 668469 - Don't ignore focusable elements. r=surkov
--HG--
extra : rebase_source : 79f3e0057204647187366bad8fe3c72464e3640b
2012-08-22 08:08:43 -07:00
Hubert Figuière
9fe0c8d9b9 Bug 772060 - Part 1: Implement accessibilityArrayAttributeCount for mozPaneAccessible. r=surkov,tbsaunde
--HG--
extra : rebase_source : 4d9d87b9ffebdec3844a661a81e187a9bc130ef7
2012-07-11 17:29:19 -07:00
Masatoshi Kimura
f33bf4e7f8 Bug 779845 - Incorporate the PSL test into our test system. r=bsmith. 2012-08-24 14:03:15 +01:00
Masatoshi Kimura
e5d9d202ca Bug 779845 - Update the PSL test to catch up with the .jp PSL update and fix test's bug about unlisted TLD. r=gerv. 2012-08-24 14:02:25 +01:00
Masatoshi Kimura
4fea578ca1 Bug 779845 - Import PSL test from http://publicsuffix.org/list/test.txt. r=gerv. 2012-08-24 14:01:43 +01:00
Neil Deakin
11697a706a Bug 783899, notify the view for resize events before the webshellwindow, fixing thunderbird window size when maximized, r=jmathies 2012-08-24 08:42:15 -04:00
Neil Deakin
dac9eb2391 Bug 582719, remove unused GetParentMenu method that was missed by 1ca7e8b00fbb 2012-08-24 08:41:20 -04:00
Ed Morley
2d38a89175 Backout 9c2c1987abc4 & ecaff5097b0b (bug 583890) for intermittent failures in browser_bug583890.js 2012-08-24 13:16:38 +01:00
Yury
4024262902 Bug 776208 - Plugin preview overlay test. r=jaws
--HG--
extra : rebase_source : e92f58a5f1defdfb90067386da1f6c38f8c9268e
2012-08-23 17:12:03 -04:00
Yury
a1e1a451e4 Bug 776208 - Plugin preview overlay. r=johns,jaws,margaret sr=joshmoz
--HG--
extra : rebase_source : f9b13bbda1318dbdaa71b04b3e04736655e65081
2012-08-23 17:11:51 -04:00
Chris Pearce
d17baf9224 Bug 781279 - Forget update plugin geometry frame when presentation detaches. r=roc 2012-08-24 23:12:21 +12:00
Chris Lord
0e353016e5 Bug 781516 - Remove DisplayItemDataEntry.mIsMergedFrame. r=roc
This is unnecessary as it just duplicates the functionality of
mIsSharingContainerLayer.
2012-08-24 11:59:37 +01:00
Jonathan Kew
c835e9d8d0 bug 784837 - call SetPrimaryFrame earlier during nsSubDocumentFrame::Init. r=roc 2012-08-24 10:16:15 +01:00
Makoto Kato
5adcbb8fb9 Bug 783206 - replace NULL with nullptr in intl except to OS API usages. r=smontagu 2012-08-24 16:49:00 +09:00
Brian Nicholson
2a4fb9009f Bug 778582 - Part 5. r=mfinkle 2012-08-24 00:47:21 -07:00
Brian Nicholson
33075769b0 Bug 778582 - Part 4. r=lucasr 2012-08-23 00:06:17 -07:00
Brian Nicholson
1d482fbaef Bug 778582 - Part 3. r=mfinkle 2012-08-23 00:06:17 -07:00
Brian Nicholson
df6a492458 Bug 778582 - Part 2. r=lucasr f=mfinkle 2012-08-23 00:06:17 -07:00
Brian Nicholson
bb89d6f0cc Bug 778582 - Part 1. r=lucasr 2012-08-23 00:06:17 -07:00
Robert Longson
2de3c5a082 Bug 785017 - Use NS_GetStaticAtom in svg content where appropriate. r=dholbert 2012-08-24 08:29:09 +01:00