Commit Graph

14079 Commits

Author SHA1 Message Date
David Zbarsky
68b3e0e5bf [Bug 785454] Remove nsPresShell::GetFrameForPoint r=smaug 2012-08-25 00:09:48 -04:00
Boris Zbarsky
31276eb444 Bug 753517 part 4. Set up auto-generation of CSS2Properties.webidl from nsCSSPropList.h and enable Paris bindings for CSSStyleDeclaration and CSS2Properties. r=khuey,peterv,dbaron 2012-08-23 21:08:09 -07:00
Boris Zbarsky
8b4fc28fc2 Bug 753517 part 3. Expose the API needed for Paris bindings on nsDOMCSSDeclaration and nsICSSDeclaration. r=dbaron,peterv 2012-08-23 21:08:08 -07:00
Benjamin Smedberg
b8603666c1 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

CLOSED TREE
2012-08-24 13:08:15 -04:00
Yury
b3e51b2f82 Bug 776208 - Plugin preview overlay. r=johns,jaws,margaret, sr=joshmoz 2012-08-24 16:18:16 -04:00
David Zbarsky
2d8138a241 Log when we can't use async animations due to pseudos, no bug, r=cjones 2012-08-24 15:08:18 -04:00
Kyle Huey
1a68eab98d 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
583084b3a2 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 Girard
9c58fbf74c Bug 785287 - Profiler: Add the document URL in DoReflow. r=roc
--HG--
extra : rebase_source : 816fc213bdc9e3201913f8df944a2a84e6f33bfc
2012-08-23 22:07:21 -04:00
Chris Lord
d844099677 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
db96f622c9 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
Neil Deakin
77315c2961 Bug 582719, remove unused GetParentMenu method that was missed by 1ca7e8b00fbb 2012-08-24 08:41:20 -04:00
Yury
51f5276dad 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
df4654c650 Bug 781279 - Forget update plugin geometry frame when presentation detaches. r=roc 2012-08-24 23:12:21 +12:00
Chris Lord
f823b5376f 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
c7a3425c40 bug 784837 - call SetPrimaryFrame earlier during nsSubDocumentFrame::Init. r=roc 2012-08-24 10:16:15 +01:00
Bobby Holley
7d93b33884 Bug 784560 - Fix more tests. r=mccr8 2012-08-23 11:45:28 -07:00
Chris Lord
302322fd64 Bug 771154 - Invalidate only the frame rect when new frames come into view. r=roc
Instead of forcing a full-layer invalidation when new frames appear, invalidate
only the bounds of the frame. Invalidating untrusted geometry still causes a
full-layer invalidation.
2012-08-23 12:14:47 +01:00
Chris Lord
97efc4771c Bug 781516 - Fix invalidation caused by unprocessed merged frames. r=roc
As clip items aren't processed, they have no associated layer entries. This is
a problem when a clip item's underlying frame is the same as one that gets
merged into a container layer, as display-item data will be created, but no
layer entry will be added. This will cause it to be removed on the next
layer-build, and cause a full invalidation.

Fix this by adding an 'mIsMergedFrame' entry to DisplayItemDataEntry and setting
it on all merged frames in BuildContainerLayerFor. This property stops the
entry from being removed when it gets updated.
2012-08-23 09:30:53 +01:00
David Zbarsky
6b65174cd9 Bug 784846 - The ShouldPrerender check for async animations is wrong r=mattwoodrow 2012-08-23 02:05:27 -04:00
Cameron McCormack
d9f9abdf58 Bug 782610 - Fix format of @supports tests. r=dbaron 2012-08-23 11:25:05 +10:00
Cameron McCormack
a71153c4eb Bug 782591 - Ensure needPaddingProp is always initialized in nsHTMLReflowState::InitOffsets. r=roc 2012-08-23 11:24:19 +10:00
Cameron McCormack
d2c8e91b44 Bug 655877 - Part 38: Ignore the non-SVG frames when propagating SVG changes through a tree. r=longsonr 2012-08-23 11:23:23 +10:00
Cameron McCormack
838d438629 Bug 705184 - Count unexpected reftest crash dump files as test failures. r=dbaron 2011-12-05 14:06:42 +11:00
Andrew Halberstadt
b36ba7fadb Bug 784810 - Disable browser.tabs.remote for b2g reftests, r=jgriffin 2012-08-22 17:24:57 -04:00
Matt Brubeck
f7d1450ef6 Bug 783565 - Don't look for mobile doctype or handheldFriendly if there is also a meta viewport tag [r=jwir3] 2012-08-22 13:17:09 -07:00
Ehsan Akhgari
57ac5ddc72 Merge the landing of bug 579517 to mozilla-inbound 2012-08-22 12:12:15 -04:00
Ed Morley
1a47184b94 Merge mozilla-central to mozilla-inbound 2012-08-22 10:37:32 +01:00
Ed Morley
a227f14256 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-22 10:28:02 +01:00
Ryan VanderMeulen
f1085efff7 Merge the last PGO-green inbound changeset to m-c. 2012-08-21 21:59:12 -04:00
David Zbarsky
5c1df7f323 Move mStyleRule and mStyleRuleRefreshTime from ElementAnimations/ElementTransitions to CommonElementAnimationData, no bug, r=dbaron over irc 2012-08-21 21:48:47 -04:00
David Zbarsky
bd4bdc3b0a Bug 784239 - Perform async animations even when not all properties can be asyncified r=roc 2012-08-21 21:48:47 -04:00
Olli Pettay
91f7a34c34 Bug 783015 - Chrome refreshdriver runs all the time, r=khuey 2012-08-21 16:14:06 -07:00
Ehsan Akhgari
21445f3dd7 Bug 768503 follow-up: fix the comment to match what the code does now
DONTBUILD
2012-08-21 17:09:10 -04:00
Ehsan Akhgari
878ac92bd4 Bug 688575 - Disable layout/base/tests/bug482484.html on Windows because of focus issues which cause it to fail intermittently 2012-08-21 15:05:25 -04:00
Ehsan Akhgari
ec3a2c158e Bug 689435 - Disable layout/base/tests/bug644428-1.html on Windows because of focus issues which cause it to fail intermittently
--HG--
extra : rebase_source : bac1343efa68c1833ce517bb7b63a61406ace14e
2012-08-21 14:01:21 -04:00
L. David Baron
1e82c1e242 Fix reftest bustage from changeset aa86bacc7e57. (Bug 691950) 2012-08-20 23:01:57 -07:00
L. David Baron
9d9cf183f9 Move the imported css3-namespace test suite in with other test suites imported from the CSSWG repository, and make the importing script import it. (Bug 691950)
--HG--
rename : layout/reftests/css-namespace/prefix-001.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-001.xml
rename : layout/reftests/css-namespace/prefix-002.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-002.xml
rename : layout/reftests/css-namespace/prefix-003.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-003.xml
rename : layout/reftests/css-namespace/prefix-004.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-004.xml
rename : layout/reftests/css-namespace/prefix-005.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-005.xml
rename : layout/reftests/css-namespace/prefix-006.xml => layout/reftests/w3c-css/received/css3-namespace/prefix-006.xml
rename : layout/reftests/css-namespace/ref-lime-1-block.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-1-block.xml
rename : layout/reftests/css-namespace/ref-lime-1-generic.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-1-generic.xml
rename : layout/reftests/css-namespace/ref-lime-1.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-1.xml
rename : layout/reftests/css-namespace/ref-lime-2-generic.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-2-generic.xml
rename : layout/reftests/css-namespace/ref-lime-2.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-2.xml
rename : layout/reftests/css-namespace/ref-lime-3.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-3.xml
rename : layout/reftests/css-namespace/ref-lime-5.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-5.xml
rename : layout/reftests/css-namespace/ref-lime-6.xml => layout/reftests/w3c-css/received/css3-namespace/ref-lime-6.xml
rename : layout/reftests/css-namespace/scope-001.xml => layout/reftests/w3c-css/received/css3-namespace/scope-001.xml
rename : layout/reftests/css-namespace/scope-002.xml => layout/reftests/w3c-css/received/css3-namespace/scope-002.xml
rename : layout/reftests/css-namespace/support/fail.css => layout/reftests/w3c-css/received/css3-namespace/support/fail.css
rename : layout/reftests/css-namespace/support/scope-002a.css => layout/reftests/w3c-css/received/css3-namespace/support/scope-002a.css
rename : layout/reftests/css-namespace/support/scope-002b.css => layout/reftests/w3c-css/received/css3-namespace/support/scope-002b.css
rename : layout/reftests/css-namespace/support/syntax-007.css => layout/reftests/w3c-css/received/css3-namespace/support/syntax-007.css
rename : layout/reftests/css-namespace/syntax-001.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-001.xml
rename : layout/reftests/css-namespace/syntax-002.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-002.xml
rename : layout/reftests/css-namespace/syntax-003.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-003.xml
rename : layout/reftests/css-namespace/syntax-004.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-004.xml
rename : layout/reftests/css-namespace/syntax-005.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-005.xml
rename : layout/reftests/css-namespace/syntax-006.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-006.xml
rename : layout/reftests/css-namespace/syntax-007.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-007.xml
rename : layout/reftests/css-namespace/syntax-008.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-008.xml
rename : layout/reftests/css-namespace/syntax-009.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-009.xml
rename : layout/reftests/css-namespace/syntax-010.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-010.xml
rename : layout/reftests/css-namespace/syntax-011.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-011.xml
rename : layout/reftests/css-namespace/syntax-012.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-012.xml
rename : layout/reftests/css-namespace/syntax-013.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-013.xml
rename : layout/reftests/css-namespace/syntax-014.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-014.xml
rename : layout/reftests/css-namespace/syntax-015.xml => layout/reftests/w3c-css/received/css3-namespace/syntax-015.xml
2012-08-20 22:41:49 -07:00
L. David Baron
62da7d5e53 Treat argument of :-moz-locale-dir() case-insensitively. (Bug 741293) r=smontagu 2012-08-20 22:41:47 -07:00
Chris Pearce
6631a2867f Bug 783824 - Don't stash the presentation (discard it if it was stashed) when subdoc frames are destroyed if the presentation is being destroyed. r=roc 2012-08-21 17:07:03 +12:00
David Zbarsky
41867d1baa Bug 783893 - Clean up async animation code r=roc 2012-08-21 00:06:47 -04:00
David Zbarsky
fbb04700b6 Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Andrew Halberstadt
a8758eb38d Bug 778072 - Add pref for reftests to use iframe mozbrowser. r=cjones 2012-08-17 11:45:39 -04:00
L. David Baron
75df834e0b Do first (small) round of importing W3C reftests into tree. (This provides a test for bug 782401.) 2012-08-20 19:23:32 -07:00
L. David Baron
d9baa3a527 Add missing SkipUntil call in @supports parsing. (Bug 782401) r=heycam
Fixes http://test.csswg.org/source/contributors/opera/submitted/css3-conditional/at-supports-030.html
2012-08-20 19:23:32 -07:00
L. David Baron
8861dbb7d3 Only do hyphenation when the language was specified explicitly, rather than using an encoding-inferred language. (Bug 702121, patch 2) r=jfkthame 2012-08-20 19:23:32 -07:00
L. David Baron
1eef1584d8 Track whether nsStyleVisibility::mLanguage came from explicit information in the document. (Bug 702121, patch 1) r=jfkthame 2012-08-20 19:23:32 -07:00
L. David Baron
77d40fe387 Accept unitless lengths in quirks mode for bottom, just as for left/top/right. (Bug 776591) r=bzbarsky 2012-08-20 19:23:31 -07:00
Doug Sherk
b018fea56e Bug 780397: Convert FrameMetrics.mViewportScrollOffset from nsIntPoint to gfx::Point r=roc 2012-08-21 21:37:15 -07:00
Doug Sherk
036b842c46 Bug 775447: Rip out old checks for DOM touch listeners r=cjones 2012-08-21 21:37:09 -07:00