Commit Graph

20933 Commits

Author SHA1 Message Date
Botond Ballo
61e1214277 Bug 982141 - Factor out 'wantSubAPZC' into nsLayoutUtils. r=kats,tn
--HG--
extra : rebase_source : c23e9d3253991523f39d7437ab5f36172768813a
2014-04-04 10:13:30 -04:00
Botond Ballo
ddb7114443 Bug 982141 - Calculate frame metrics for a display port calculation. r=kats,tn
--HG--
extra : rebase_source : bbb27a00dfc190c9c78563b149ca10aa6bfb41d5
2014-03-19 13:15:54 -04:00
Botond Ballo
29dba10560 Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn
--HG--
extra : rebase_source : e5b29f38d38f88d6a214bdd1e2e31354018ccadd
2014-04-04 10:13:09 -04:00
Botond Ballo
76b93d9237 Bug 982141 - Expose the logic used to decide whether a scrollable frame should be async scrollable. r=tn
--HG--
extra : rebase_source : 6ce26d8d54bbf75c79b10fd8a8dc449b0d417387
2014-03-12 16:20:26 -04:00
Daniel Holbert
76f7a6c968 Bug 983427 part 5: Toggle switch to enable the code added in this bug & avoid reflowing flex items in bottom-to-top order. r=mats 2014-04-11 14:22:12 -07:00
Daniel Holbert
6c75ee7feb Bug 992397: Relax extreme testcases in test_flexbox_layout.html to allow an epsilon difference. r=mats 2014-04-11 14:22:11 -07:00
Daniel Holbert
44fd755c5a (no bug) Update ResolveFlexibleLengths() documentation & drop whitespace on blank line. comment/whitespace-only
(Prior to this commit, the documentation mentioned long-since-removed params aTotalFreeSpace and aItems.)
2014-04-11 14:22:10 -07:00
Ryan VanderMeulen
1087eac823 Backed out 6 changesets (bug 982141) for Windows and OSX bustage. CLOSED TREE
Backed out changeset 16540ab2d2cb (bug 982141)
Backed out changeset 2ad9ce9d904e (bug 982141)
Backed out changeset af219bb49c06 (bug 982141)
Backed out changeset ffe51d96e86e (bug 982141)
Backed out changeset 6642718ad3bb (bug 982141)
Backed out changeset 95b341d26f7b (bug 982141)
2014-04-10 15:27:42 -04:00
Botond Ballo
ff0051ba05 Bug 982141 - Make sure the primary async-scrollable frame has a displayport set. r=tn
--HG--
extra : rebase_source : cecfe35b5407d6bbe1709eb0a2abf55ab8503c2d
2014-03-19 13:29:24 -04:00
Botond Ballo
d9fcefd5b2 Bug 982141 - Introduce nsLayoutUtils::SetDisplayPortMargins, with an option to not repaint. r=tn
--HG--
extra : rebase_source : 7d8245831828d60df4fb6e20d98fd2b08d4e3857
2014-04-04 10:13:50 -04:00
Botond Ballo
f35d4684d5 Bug 982141 - Factor out 'wantSubAPZC' into nsLayoutUtils. r=kats,tn
--HG--
extra : rebase_source : d651c8b224c31518816a29afc003ef5ac6ed7cc7
2014-04-04 10:13:30 -04:00
Botond Ballo
f9d0608a84 Bug 982141 - Calculate frame metrics for a display port calculation. r=kats,tn
--HG--
extra : rebase_source : 23ac67b5f528726869f5fd3565afa957347b336d
2014-03-19 13:15:54 -04:00
Botond Ballo
ed1e60ff0b Bug 982141 - Move CalculateRootCompositionSize to nsLayoutUtils and clean it up a bit. r=tn
--HG--
extra : rebase_source : 8ffa71055b05836ce166b6b2c8c9896b6d08fdd5
2014-04-04 10:13:09 -04:00
Botond Ballo
803fc64902 Bug 982141 - Expose the logic used to decide whether a scrollable frame should be async scrollable. r=tn
--HG--
extra : rebase_source : 1e1c2c9377b7127683fe555450fcf2354934fe93
2014-04-10 14:42:58 -04:00
Ryan VanderMeulen
56dc0c1f4b Merge m-c to inbound. 2014-04-10 14:46:04 -04:00
Ed Morley
a7f50452e1 Merge latest green inbound changeset and mozilla-central 2014-04-10 17:55:29 +01:00
Ed Morley
b3a007e1f1 Backed out changeset 02d0214c5e37 (bug 738196) 2014-04-10 15:47:57 +01:00
L. David Baron
23b3461fe0 Bug 992324 patch 2 - Disable interruptible reflow in reftest harness. r=bzbarsky
Without this patch, mInterruptsEnabled is frequently (although not
always) initialized to true in nsPresContext::ReflowStarted while
running reftests; with the patch it is always initialized to false.
2014-04-09 21:47:58 -07:00
L. David Baron
21e24bf2c9 Bug 992324 patch 1 - Add a pref to disable interruptible reflow. r=bzbarsky 2014-04-09 21:47:58 -07:00
L. David Baron
9ebb6e6c1a Bug 991928 - Make warning about wrapping XUL boxes chrome-only. r=bzbarsky 2014-04-09 21:47:57 -07:00
L. David Baron
76043f3493 No bug - Add paragraph about the size of reftests. 2014-04-09 21:47:57 -07:00
Ryan VanderMeulen
14d6d2857b Backed out changeset c81707878977 (bug 974197) for Gaia integration test failures on a CLOSED TREE. 2014-04-09 22:14:13 -04:00
Geoff Brown
de169ff25c Bug 967704 - Update reftest manifests for Android 2.3; r=me 2014-04-09 08:38:45 -06:00
Geoff Brown
d0b48b9ecb Bug 962676 - Reset expected assertion counts for Android crashtests; r=blassey 2014-04-09 08:38:44 -06:00
Neil Deakin
9d2d95834a Bug 991542, draw windows drop shadows from panels in content shells, r=tn 2014-04-09 09:31:06 -04:00
Carsten "Tomcat" Book
72ff3fb580 Merge m-c to mozilla-inbound 2014-04-09 14:41:48 +02:00
Carsten "Tomcat" Book
aafe0a6459 merge b2g-inbound to mozilla-central 2014-04-09 14:27:34 +02:00
Timothy Nikkel
58350b714f Bug 987680. Change a reftest to expect scrollbars on top of non-positioned sibling content. Mark some other reftests as passing now. r=roc 2014-04-09 07:12:22 -05:00
Timothy Nikkel
8a292f0648 Bug 987680. Overlay scrollbars should be placed on top of content. r=roc
Bug 926292 accidentally put them in the background list if there were no positioned descendents they needed to be on top of it (because this was where non-overlay scrollbars went, which never made sense). If there are no positioned descendents overlay scrollbars should go on the top-most non-positioned list, which is outlines.
2014-04-09 07:12:21 -05:00
Matt Woodrow
43b07bbb44 Bug 991046 - Add some fuzzy to the test for windows 8. 2014-04-09 15:49:12 +12:00
Ms2ger
8065362e18 Bug 738196 - Part b: move StyleSheetList to WebIDL; r=bz 2014-04-10 13:24:26 +02:00
Matt Woodrow
0c8c199f11 Bug 991046 - Combine the display item clips when we flatten an nsDisplayOpacity. r=roc 2014-04-09 14:28:38 +12:00
Kyle Huey
41b19ee1f2 Back out bug 991812 for bustage on a CLOSED TREE. r=me 2014-04-08 17:26:33 -07:00
Kyle Huey
749ec8b15d Bug 991812: Remove uses of RefCounted in code that lives solely in Gecko. r=ehsan 2014-04-08 16:37:05 -07:00
Bobby Holley
840dd9cf8f Bug 913138 - Shut down imagelib at the end of layout shutdown. r=bsmedberg 2014-04-08 15:51:34 -07:00
Bobby Holley
0da90f7020 Bug 913138 - Shut down gfx at the end of layout shutdown. r=bsmedberg 2014-04-08 15:51:33 -07:00
Bobby Holley
b82938ad2f Bug 913138 - Release nsLayoutStatics when the layout module is unloaded. r=bsmedberg 2014-04-08 15:51:33 -07:00
Gijs Kruitbosch
d5f146615c Bug 979653 - fix dir attribute checks for url field in rtl mode, r=ehsan
--HG--
extra : rebase_source : 58b0ea3e75fd8237df5ab5fadaa2feaee9cb47b9
2014-04-08 22:47:39 +01:00
Boris Zbarsky
fdbb455d4f Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
3f26a82832 Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Ryan VanderMeulen
edd51f0af4 Backed out changeset 7be71c699b85 (bug 984226) for crashtest asserts. 2014-04-08 15:31:45 -04:00
Jonathan Watt
d88be3bc70 Bug 960524 - Get rid of Image::DeprecatedGetAsSurface (Moz2D migration). r=mattwoodrow 2014-04-10 09:49:53 +01:00
Jonathan Watt
9210ee2835 Bug 964731 - Convert ImageLayerD3D10 and CreateOptimalSurface/CreateOptimalMaskSurface to Moz2D. r=Bas 2014-04-10 09:49:49 +01:00
Tim Taubert
2d570228a2 Bug 616853 - Make the beforeunload prompt tab-modal r=dao,bz 2014-04-02 08:21:14 +02:00
Vicamo Yang
9fba03c823 Bug 975442: recognize as emulator if device name begins with 'emulator'. r=jgriffin 2014-04-09 10:14:07 +08:00
Kearwood (Kip) Gilbert
0c00e3b8dd Bug 984226 - Add parameter to OverflowChangedTracker::AddFrame to distingush between frames that need nsIFrame::UpdateOverflow called and frames that only have a transform that has changed. r=dbaron
- OverflowChangedTracker::AddFrame now accepts an enumerated type parameter to
  indicate if the overflow areas of children have changed (CHILDREN_CHANGED) or
  if the transform has changed (TRANSFORM_CHANGED).
- OverflowChangedTracker::Flush no longer falls back to calling
  nsIFrame::UpdateOverflow when a frame lacks a PreTransformOverflowAreas
  property.
- Added an additional change hint, nsChangeHint_ChildrenOnlyTransform, which
  results in TRANSFORM_CHANGED being passed in to
  OverflowChangedTracker::AddFrame.
- In nsIFrame::FinishAndStoreOverflow, the passed in overflow is now stored as
  the InitialTransformProperty for elements that are IsTransformed().
- Partially corrected Bug 926155, by only calling
  OverflowChangedTracker::AddFrame on parents of the sticky element during
  StickyScrollContainer::UpdatePositions, using CHILDREN_CHANGED.
2014-03-13 17:21:25 -07:00
Matt Woodrow
95f78d68ad Bug 974197 - Fire MozAfterPaint after the compositor has composited the frame. r=roc 2014-03-07 16:24:32 +13:00
James Kitchener
5341260c56 Bug 557478 - Defer mfrac operator spacing to outermost embellished operator. r=fredw 2014-04-07 06:56:00 +02:00
Neil Deakin
528631c8be Bug 610545, add cycle collection to TransitionEnder to prevent leak, r=smaug 2014-04-08 08:45:52 -04:00
Neil Deakin
b6f3539dc4 Bug 610545, check for a transition earlier to avoid assertion if a panel is opened while it is closing, r=neil 2014-04-08 08:45:52 -04:00
Neil Deakin
77a876d7d3 Bug 610545, arrow panels should animate when opening and when cancelling, r=neil,dao 2014-04-08 08:45:52 -04:00
Neil Deakin
7572adecf7 Bug 992229, convert device to css pixels before setting menupopup position after move or resize, r=tn 2014-04-08 08:45:52 -04:00
James Kitchener
69350b574c Bug 877563 - Operator spacing tests r=fredw 2014-04-04 17:55:00 +02:00
James Kitchener
470ade8f5e Bug 875563 - Zero dictionary lspace/rspace when not in (inferred) mrow r=fredw 2014-04-04 17:54:00 +02:00
Jonathan Kew
169fada5b8 bug 769194 - update reftests for @font-face src:local, now working on Android and B2G. r=jdaggett 2014-04-08 09:10:56 +01:00
Botond Ballo
c19f345e42 Bug 988882 - Special-case handling of root composition bounds calculation on Android when the toolbar is perma-visible. r=tn 2014-04-02 01:35:25 -04:00
Botond Ballo
01f4ede520 Bug 988882 - Rename PresShell::GetParentPresShell to GetParentPresShellForEventHandling. r=tn 2014-04-07 20:00:52 -04:00
Botond Ballo
b5d4ef51d8 Bug 988882 - Modify PresShell::GetCumulativeResolution to use GetParentPresContext instead of GetParentPresShell. r=tn 2014-04-07 19:59:23 -04:00
John Daggett
e22f4dc847 Bug 950526 - dirty frames after reparenting. r=dbaron 2014-04-08 14:13:28 +09:00
John Daggett
b09530ff53 Bug 950526 - add more reftests to cover first-letter, first-line scenarios. r=dbaron,heycam 2014-04-08 14:13:28 +09:00
John Daggett
2d1be2e695 Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-04-08 14:13:28 +09:00
Daniel Holbert
3a2377b08b Bug 983427 part 4c: If axes are reversed, compute flex container's baseline using the *last* flex line (which in reality is the first line). r=mats 2014-04-07 17:17:43 -07:00
Daniel Holbert
60596fc507 Bug 983427 part 4b: If axes are reversed, align baseline-aligned items with respect to to the flex-end edge (which is the "real" flex-start edge). r=mats 2014-04-07 17:17:43 -07:00
Daniel Holbert
bc07f71ba1 Bug 983427 part 4a: Expand FlexItem baseline accessor to let caller pick the edge as well as the axis. r=mats 2014-04-07 17:17:43 -07:00
Daniel Holbert
523dfed6f1 Bug 983427 part 3: If axes are reversed, swap "flex-start" and "flex-end" alignment (& treat "stretch" as a variety of "flex-start"). r=mats 2014-04-07 17:17:42 -07:00
Daniel Holbert
21b807e55f Bug 983427 part 2: If axes are reversed, link up our lists of FlexLines & FlexItems in reverse, too. r=mats 2014-04-07 17:17:42 -07:00
Daniel Holbert
a515ca6ad8 Bug 983427 part 1: Add FlexboxAxisTracker flag to indicate whether we've detected bottom-to-top flow & are internally reversing axes. r=mats 2014-04-07 17:17:42 -07:00
Chris Lord
9c5e7e0874 Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Aryeh Gregor
8224d6e2e8 Bug 927558 - Missing null check in Selection::GetPrimaryFrameForFocusNode; r=ehsan 2014-04-02 19:01:01 +03:00
Timothy Nikkel
df81b7d231 Backout 389ff4b5612c and d234394e0147 (bug 987680) for reftest failuires. 2014-04-07 04:52:36 -05:00
Timothy Nikkel
f36020916b Bug 987680. Change a reftest to expect scrollbars on top of non-positioned sibling content. Mark some other reftests as passing now. r=roc 2014-04-07 03:15:47 -05:00
Timothy Nikkel
cdf9e2e208 Bug 987680. Overlay scrollbars should be placed on top of content. r=roc
Bug 926292 accidentally put them in the background list if there were no positioned descendents that they needed to be on top of it (because this was where non-overlay scrollbars went, which never made sense). If there are no positioned descendents overlay scrollbars should go on the top-most non-positioned list, which is outlines for the current implementation.
2014-04-06 22:00:01 -05:00
Mats Palmgren
f4adc1db1d Bug 992447 - Make <select> have 'overflow-clip-box:padding-box!important' for now since 'content-box' doesn't really work there. r=roc 2014-04-04 19:39:00 +02:00
Phil Ringnalda
542c4dfcab Back out b9085d8ca22e (bug 987680) for b2g reftest failures and passes
CLOSED TREE
2014-04-06 23:11:35 -07:00
Timothy Nikkel
d56f39fcf9 Bug 987680. Overlay scrollbars should be placed on top of content. r=roc
Bug 926292 accidentally put them in the background list if there were no positioned descendents that they needed to be on top of it (because this was where non-overlay scrollbars went, which never made sense). If there are no positioned descendents overlay scrollbars should go on the top-most non-positioned list, which is outlines for the current implementation.
2014-04-06 22:00:01 -05:00
Bobby Holley
b4a8be6b33 Bug 986730 - Fix up a bunch of tests that assume that they can touch AC in content. r=mrbkap 2014-04-06 12:32:38 -07:00
Timothy Nikkel
4b020940a7 Bug 990631. When processing a native window move for a popup compare the new position with the actual position we expect to popup to be at. r=enndeakin
The ScreenPosition() (which looks at mScreenX/YPos) doesn't actually hold the screen position for anchored popups.
2014-04-04 18:59:03 -05:00
Ryan VanderMeulen
01e048154a Backed out changeset bf184a7a1d63 (bug 990608) for Android crashes.
CLOSED TREE
2014-04-04 15:20:49 -04:00
Chris Lord
5a2c48da2d Bug 990608 - Make tile size configurable. r=tn,nical,bgirard 2014-04-04 18:42:44 +01:00
Neil Deakin
ba71f5497a Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
Oleg Romashin
ea3f8c41bd Bug 968148 - Implement PointerCapture for pointer events. tests. r=smaug
--HG--
rename : layout/base/tests/test_bug582771.html => layout/base/tests/bug968148_inner.html
rename : dom/indexedDB/test/test_event_propagation.html => layout/base/tests/test_bug968148.html
extra : rebase_source : 723612a9487b7310daf56bfd0120f5ee971fe34e
2014-04-04 10:10:12 -07:00
Maksim Lebedev
518ac59f91 Bug 968148 - Implement PointerCapture for pointer events. r=smaug
--HG--
extra : rebase_source : 331cf187194c8827e4b75835e85b2d79fdc419c7
2014-04-04 10:09:10 -07:00
Daniel Holbert
6a7faff5d3 Bug 984786 part 8: Give NS_INLINE_DECL_*REFCOUNTING classes private destructor & MOZ_FINAL annotation where appropriate, in /gfx and /content/canvas. r=bjacob 2014-04-04 09:27:02 -07:00
Carsten "Tomcat" Book
8ef164f6c7 Backed out changeset bae32cf47dec (bug 988882) since it seems this breaks debug-bc tests 2014-04-04 13:23:20 +02:00
Carsten "Tomcat" Book
055dab2d1a Backed out changeset 17941c43375f (bug 991575) for test failures like reftests and others 2014-04-04 12:36:43 +02:00
Jonathan Watt
164b50056a Bug 991575 - Stop PresShell::GetReferenceRenderingContext from creating a Thebes backed gfxContext (Moz2D migration). r=mattwoodrow 2014-04-04 09:15:57 +01:00
Botond Ballo
69a1f77b38 Bug 988882 - Special-case handling of root composition bounds calculation on Android when the toolbar is perma-visible. r=tn 2014-04-02 01:35:25 -04:00
Mats Palmgren
76ea7c2156 Bug 990655 - Don't apply 'text-overflow' to nsComboboxControlFrame, its anon block deals with it. r=roc 2014-04-03 18:02:09 +00:00
Mats Palmgren
e933738778 Bug 967296 - Remove diagnostic code added in bug 946929. r=tn 2014-04-03 18:02:08 +00:00
Daniel Holbert
e1e2408909 Bug 991512: Add convenience methods to calculate outer main & cross size of a FlexItem. r=mats 2014-04-03 10:40:12 -07:00
Tatiana Meshkova
42cebf4c6d Bug 990869 - Allow to enable sub Apzc for non WIN gecko clients. r=kats 2014-04-02 18:40:00 +02:00
Brian Birtles
06110d67b2 Bug 964646 part 5 - Add OMTA version of test_animations.html keyframe tests; r=dbaron 2014-04-03 16:55:45 +09:00
Brian Birtles
628a1ffb0d Bug 964646 part 4 - Add OMTA version of test_animations.html animation list tests; r=dbaron
Tests for animation list handling on the compositor thread. Some checks are
currently marked todo_is because they depend on Bug 980769 in order to pass.
2014-04-03 16:55:44 +09:00
Brian Birtles
1547db730a Bug 964646 part 3 - Refactor OMTA test methods to include opacity too; r=dbaron
This patch takes the compareTransform utility methods and makes them more
generic so they can be used for testing opacity too (the other property
currently animated on the compositor thread).

The naming omta_is and omta_is_approx is intended to mirror is and is_approx in
test_animations.html.
2014-04-03 16:55:44 +09:00
Brian Birtles
8f264e90e2 Bug 964646 part 2 - Add OMTA version of test_animations.html fill mode tests; r=dbaron
This patch adds an additional mochitest for specifically targetting CSS
Animations that run on the compositor thread. The content of the test mimicks
test_animations.html but using properties whose animations are expected to run
on the compositor thread.
2014-04-03 16:55:44 +09:00
Brian Birtles
4d45c0227d Bug 964646 part 1 - Add common OMTA test runner to animation_utils.js; r=dbaron
Since off-main thread animation (OMTA) is not available on all platforms we
define a common wrapper function that runs OMTA tests only when available. This
patch further performs an internal check of basic OMTA operation so that
only a single error is produced if OMTA is unexpectedly unavailable.

Typical usage is:

  SimpleTest.waitForExplicitFinish();
  runOMTATest(function() {
    ... test code ...
    SimpleTest.finish();
  },
  SimpleTest.finish);

This can be easily wrapped with promises if needed but does not require using
promises.

The calls to waitForExplicitFinish and finish are not performed automatically
since this function may be integrated with test suites that do other work
outside the call to runOMTATest.
2014-04-03 16:55:44 +09:00
Brian Birtles
917d2e24b6 Bug 880596 part 9 - Fix comment about mFlushCount; r=dbaron
Two comments in AnimationCommon.h refer to 'mFlushCount' which was presumably
the old name for mAnimationGeneration. Also, one comment says
nsCSSFrameConstructor tracks this. This patch adjusts the comments to refer
to mAnimationGeneration and RestyleManager.

(The reference to nsTransitionManager::UpdateAllThrottleStyles() is still valid
since there is useful documentation accompanying that method despite the fact
that the relevant code is mostly contained in AnimationCommon.h since bug
914847. Eventually we will unify the structures of transitions and
animations to the the point that we can replace the
IMPL_UPDATE_ALL_THROTTLED_STYLES_INTERNAL macro in AnimationCommon.h with an
actual method. At that point we can move the documentation accompanying
nsTransitionManager::UpdateAllThrottleStyles and its references to
AnimationCommon.)
2014-04-03 14:57:28 +09:00
Brian Birtles
ae6e60dda5 Bug 880596 part 8 - Rename ElementAnimation to StyleAnimation; r=dbaron
We need a basic representation of animations from which we can derive subclasses
to represent specific cases such as transitions. For now we will retrofit
ElementAnimation for that purpose hence renaming it to StyleAnimation.

This patch removes the "using namespace mozilla::layers" line from
AnimationCommon.cpp since the unified build system concatenates several files
together before compiling making using declarations like this leak into other
files potentially creating ambiguities. Previously, when we were calling
ElementAnimation, 'Animation', there were ambiguities between
mozilla::layers::Animation and this new 'Animation' class. In general, it is
probably a good idea to limit the scope of these using declarations so I've kept
that change.
2014-04-03 14:57:28 +09:00
Brian Birtles
095840cb6d Bug 880596 part 7 - Move ElementAnimation to AnimationCommon; r=dbaron
This patch relocates ElementAnimation from nsAnimationManager.{h,cpp} to
AnimationCommon.{h,cpp} and in the process moves it into the mozilla::css
namespace.
2014-04-03 14:57:28 +09:00
Brian Birtles
c4ffbc205d Bug 880596 part 6 - Factor out common method for adding animations and transitions to a layer; r=dbaron
The loops for adding animations and transitions to a layer in
nsDisplayList::AddAnimationsAndTransitionsToLayer are now identical and so can
be factored out into a common method.

Since it is not possible to implicitly convert from
nsTArray<ElementPropertyTransition> to nsTArray<ElementAnimation> despite
ElementPropertyTransition being a subclass of ElementAnimation a templated
method is used. In the future, as animations and transitions share more and more
code, we should be able to remove the need for templates.
2014-04-03 14:57:28 +09:00
Brian Birtles
e4bdcd3cfb Bug 880596 part 5 - Make ElementAnimation::HasAnimationOfProperty no longer virtual; r=dbaron
ElementAnimation::HasAnimationOfProperty doesn't seem to be overridden anywhere.
I suspect it was a copy-paste mistake because the methods of the same name on
ElementAnimations, ElementTransitions, and CommonElementAnimationData are
virtual.
2014-04-03 14:57:28 +09:00
Brian Birtles
217cb32ecc Bug 880596 part 4 - Reuse ElementAnimation::HasAnimationOfProperty; r=dbaron
Now that ElementTransitionProperty inherits from ElementAnimation,
ElementTransitions::HasAnimationOfProperty can re-use
ElementAnimation::HasAnimationOfProperty in its definition of
ElementTransitions::HasAnimationOfProperty.

Similarly, in nsDisplayList::AddAnimationsAndTransitionsToLayer we can use this
method rather than drilling down to the appropriate segment by hand.
2014-04-03 14:57:27 +09:00
Brian Birtles
e503422f93 Bug 880596 part 3 - Remove ElementPropertyTransition::IsRunningAt and mIsRunningOnCompositor; r=dbaron
Both ElementPropertyTransition and ElementAnimation specify an IsRunningAt
method which have the same purpose but with two subtle differences:

a) ElementPropertyTransition::IsRunningAt checks if the transition is a removed
sentinel and if so returns false. This patch adds a check for a null start time
to IsRunningAt since I think in future we will want to allow null times in
various places to represent, for example, animations that are not connected to
a timeline. (However, ultimately we will probably not allow start times on
*animations* to be null, only on their associated player.)

Should we later use a different mechanism for marking sentinel transitions (e.g.
a boolean flag) this method should still be correct as it checks if aTime is
inside the transition interval before returning true.

b) ElementPropertyTransition::IsRunningAt returns false if the transition is in
the delay phase, that is, waiting to start. This patch changes this behavior so
that transitions are considered running even if they are in the delay phase.
This brings their behavior into line with animations and removes the need for
the ElementPropertyTransition::mIsRunningOnCompositor since it is only used to
determine when a transition in the delay phase has begun.

ElementAnimation::IsRunningAt also handles pause state and iterations but this
logic should still be correct for transitions which, in this area, only use
a subset of the functionality of animations since their pause state is always
playing and their iteration count is 1.
2014-04-03 14:57:27 +09:00
Brian Birtles
5e2f8ede42 Bug 880596 part 2 - Make ElementPropertyTransition inherit from ElementAnimation; r=dbaron
As part of moving towards more shared data structures for animation, this patch
makes ElementPropertyTransition inherit from ElementAnimation. At the same time
we switch from storing the target property, start/end values, start time, delay,
and timing function on the transition to the corresponding location in
ElementAnimation.

Since nsDisplayList::AddAnimationsAndTransitionsToLayer was already doing this
conversion in order to create animations to pass to the compositor thread, we
can remove the conversion code from there and just use the ElementAnimation data
structures as-is.

A number of assertions are added to verify that transitions are set up as
expected (namely, they have only a single property-animation with a single
segment). As we move to more generic handling of animations and transitions
these assertions should disappear.
2014-04-03 14:57:27 +09:00
Brian Birtles
19e2304b94 Bug 880596 part 1 - Separate delay from start time for transitions; r=dbaron
As a first step towards making CSS animations and CSS transitions use the same
data structures, this patch aligns their behavior with regards to start time and
delay handling.

Previously, ElementAnimation objects maintained separate mStartTime and mDelay
members whilst ElementPropertyTransition objects maintained a single mStartTime
property that incorporated the delay. This patch adds an mDelay member to
ElementPropertyTransition and stores the delay and start time separately.
Calculations involving ElementPropertyTransition::mStartTime are adjusted to
incorporate mDelay.
2014-04-03 14:57:27 +09:00
L. David Baron
4d2197bf3c Bug 975397 - Call TrackImage when constructing a new nsStyleBorder. r=heycam
I confirmed that the crashtest crashes in the harness without the patch.

--HG--
rename : layout/reftests/backgrounds/blue-32x32.png => layout/style/crashtests/blue-32x32.png
2014-04-02 22:56:19 -07:00
Masayuki Nakano
852403f45d Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano
5c4524957a Bug 989212 Rename nsEventStates to mozilla::EventStates r=smaug
--HG--
rename : dom/events/nsEventStates.h => dom/events/EventStates.h
2014-04-03 13:18:36 +09:00
Timothy Nikkel
cdb2189d90 Bug 989897. In order to properly compute root composition size view the root composition size first as layer pixels in the target layer, then convert to css pixels. r=kats
Since our goal is to use the root composition size to bound the layer size of the display port of the child layer this makes sense.
2014-04-02 17:46:38 -05:00
Ed Morley
d95ca1259e Merge mozilla-central and inbound 2014-04-02 18:24:05 +01:00
Xidorn Quan
0a8f327ab2 Bug 990297 - Refactor table initialization code in nsCSSProps::AddRefTable. r=dbaron 2014-04-02 11:47:55 -04:00
Carsten "Tomcat" Book
a715b7c75b merge b2g-inbound to mozilla-central 2014-04-02 15:57:57 +02:00
Ed Morley
0473cfe93f Backed out changeset b07bd3a55770 (bug 990628) since it needs to land on b2g-inbound alongside a moztt PR
--HG--
extra : rebase_source : 9fef0224bc628d4eced8b4bef92713bf82cc0796
2014-04-02 09:48:29 +01:00
Benoit Girard
46be5d6b45 Bug 980454 - Add reftest for will-transform:transform containing block behavior. r=roc 2014-04-02 16:47:14 +08:00
James Kitchener
28b2fc7a1a Bug 947557 - Call DidReflow() on <mprescripts/> frame. r=fredw 2014-04-01 02:56:00 +02:00
Jonathan Kew
0f6bc47357 bug 990628 - revert reftest manifest change now that the test here (and in bug 990627) should no longer fail on b2g 2014-04-01 21:45:35 +01:00
Ryan VanderMeulen
52484dbcb0 Merge inbound to m-c. 2014-04-01 16:45:00 -04:00
Ed Morley
92b47f1b0c Bug 990628 - Disable text/wordbreak-4a.html for failures after the landing of bug 987582; CLOSED TREE 2014-04-01 17:21:18 +01:00
Ed Morley
7466b67fa0 Bug 990627 - Disable first-letter/329069-2.html for failures after the landing of bug 987582 2014-04-01 17:18:52 +01:00
Simon Sapin
cb211f18e1 Bug 988780 - Refactor ParseGridTemplateAfterString() to not use CheckEndProperty() (layout/style/nsCSSParser.cpp). r=dbaron 2014-03-27 02:24:00 +01:00
Jonathan Kew
80b2de6b16 bug 990628 - revert reftest manifest change now that the test here (and in bug 990627) should no longer fail on b2g. r=mwu 2014-04-01 21:45:35 +01:00
Jonathan Kew
24e495594d bug 987668 - reftest for Polish hyphenation. r=smontagu 2014-04-02 07:38:00 +01:00
Cameron McCormack
c0b95085bb Bug 989965 - Resolve style for pseudo-elements correctly when style rules that have user action pseudo-classes on them are present. r=bzbarsky 2014-04-02 15:08:52 +11:00
Cameron McCormack
f456b184df Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron 2014-04-02 14:32:16 +11:00
Mark Hammond
763885adb1 Bug 987404 - Disable failing mochitest-browser tests in e10s. r=ted. 2014-04-02 10:53:55 +11:00
Ryan VanderMeulen
4b94de89bb Merge m-c to inbound. 2014-04-01 16:49:05 -04:00
Mike Kaply
daef6292e9 Backing out bug 889085 (dddfd63f1414, f8c14bd80676) due to regression bug 987783. r=roc 2014-04-02 10:03:08 -05:00
Masatoshi Kimura
613d093de9 Bug 989557 - Implement a fallback for CJK Compatibility Ideographs Standardized Variants. r=jfkthame
--HG--
rename : layout/reftests/fonts/gw432047-license.txt => layout/reftests/fonts/glyphwiki-license.txt
2014-04-01 02:30:26 +09:00
Ed Morley
09f32345e4 Backed out changeset 25877e8f89c2 (bug 610545) for browser-chrome failures 2014-03-31 16:05:04 +01:00
Ed Morley
c1270efc57 Backed out changeset efbf80a15a2b (bug 610545) 2014-03-31 16:04:44 +01:00
Anuj Agarwal
73eabdd963 Bug 975681 - Reftests for MathML mfrac. r=fredw 2014-04-01 08:35:15 -04:00
Anuj Agarwal
0ec82ed2e7 Bug 975681 - Mochitest for MathML mfrac. r=fredw 2014-04-01 08:34:51 -04:00
Neil Deakin
1c5ceca087 Bug 610545, check for a transition earlier to avoid assertion if a panel is opened while it is closing, r=neil 2014-03-31 08:42:33 -04:00
Neil Deakin
ce52b1b9cf Bug 610545, arrow panels should animate when opening and when cancelling, r=neil,dao 2014-03-31 08:42:32 -04:00
Jonathan Watt
ecdb8cca65 Bug 988818 - Stop creating a Thebes (gfxASurface) backed gfxContext in nsSVGImageFrame (Moz2D migration). r=longsonr 2014-03-31 12:53:54 +01:00
Jonathan Watt
4ea99f4230 Bug 988904 - Stop creating a Thebes gfxImageSurface in PresShell::PaintRangePaintInfo (Moz2D migration). r=mattwoodrow 2014-03-31 12:53:31 +01:00
Jonathan Kew
cf66ed437a bug 617008 - avoid creating a rendering context that we may not need. r=roc 2014-03-31 11:53:09 +01:00
Peter Van der Beken
17b498a5a1 Bug 988334 - Stop reusing SpecialPowers for different windows. r=jmaher.
--HG--
extra : rebase_source : ffeb4f2d49c6a20a95cc3ca0da63b49c10dee904
2014-03-24 21:12:41 +01:00
Paul Adenot
cfb673b6a0 Bug 946618 - Add native tests for cubeb. r=kinetik
--HG--
extra : rebase_source : 9b2e8e702ce5f8ea4d5416f3b45c91bc4cd94432
2014-02-25 14:21:59 +01:00
Jonathan Watt
fcf83c889b Bug 990683 - Stop calling DeprecatedGetCurrentAsSurface in nsLayoutUtils::SurfaceFromElement(HTMLVideoElement* aElement,...). (Moz2D migration.) r=mattwoodrow 2014-04-02 12:32:24 +01:00
Simon Sapin
bc4b99a25a Bug 989755: Fix up serialization of the grid-template shorthand. r=dholbert
* Refuse to serialize some combinations of values that the shorthand
  can not represent: 'grid-template-areas: (not none)' combined with
  'grid-template-rows: subgrid' or 'grid-template-columns: subgrid'.
  (The former used to cause an assertion failure.)
* Remove an extraneous trailing space that occured when a <track-list>
  was last. (ie. followed by an omitted <line-names>)
* Add tests for the result of this serialization.
2014-03-31 13:31:00 +02:00
Simon Sapin
f410d8a001 Bug 978478 part 2: Add support for repeat() in <track-list> (CSS Grid) r=dholbert 2014-03-31 22:49:51 -07:00
Simon Sapin
e6f3513409 Bug 978478 part 1: Add support for repeat() in <line-name-list> (CSS Grid) r=dholbert 2014-03-31 22:49:45 -07:00
Masayuki Nakano
a63f35fff1 Bug 984271 part.2 Rename nsEventStateManager to mozilla::EventStateManager r=smaug
--HG--
rename : dom/events/nsEventStateManager.cpp => dom/events/EventStateManager.cpp
rename : dom/events/nsEventStateManager.h => dom/events/EventStateManager.h
2014-04-01 13:09:23 +09:00
L. David Baron
4e6a059a99 Bug 470769 - Store computed styles of integer-valued properties as integers in nsROCSSPrimitiveValue, so they round-trip correctly. r=bzbarsky 2014-03-29 09:29:30 -07:00
Daniel Holbert
3fb4371541 Bug 989436 part 3b: Add some reftests with various cross-axis margins on baseline-aligned flex items, in a fixed-size flexbox. r=mats 2014-03-29 01:20:59 -07:00
Daniel Holbert
c8ac9ad684 Bug 989436 part 3a: Rename tests flexbox-align-self-baseline-horiz-[23].xhtml to -[45]. (no review)
--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-2-ref.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-4-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-2.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-4.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-3-ref.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-5-ref.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-3.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-5.xhtml
2014-03-29 01:20:58 -07:00
Daniel Holbert
0c3e690428 Bug 989436 part 2: Clone existing baseline-alignment reftest, with "flex-flow: wrap-reverse", to make sure baseline-alignment works with bottom-to-top cross axis. r=mats
--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-1.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-1a.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-1.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-1b.xhtml
2014-03-29 01:20:56 -07:00
Daniel Holbert
ae47fc3927 Bug 989436 part 1: Add a reftest to exercise all "flex-flow" values, with extra space left over on the final flex line. r=mats
--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-1-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-2-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-1.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-flow-2.html
2014-03-29 01:20:51 -07:00
Boris Zbarsky
9553dba3d6 Bug 987112. Remove the redundant and somewhat annoying parentObject argument to dictionary ToObject() methods. r=bholley 2014-03-29 01:45:10 -04:00
Timothy Nikkel
6006f990ab Bug 989574. Enable reftests in layout/reftests/invalidation on all platforms. r=dbaron
A mistake caused them to never be enabled (except on b2g).
2014-03-28 23:54:37 -05:00
L. David Baron
77915404c0 Bug 986807 patch 3 - Use preprocessor to avoid duplicating reftest default preference lists. r=ted
Note that the reordering in Makefile.in is because the addition to
PP_TARGETS must be before including rules.mk.  (Logically, I was moving
_DEST_DIR, _HARNESS_FILES, and the _HARNESS_PP_FILES chunk up, but diff
shows it the other way around.)
2014-03-28 20:13:25 -07:00
Timothy Nikkel
7236146d49 Bug 961431. Round the final screen position of the popup to pixels, not the offset between it's view and parent view. r=enndeakin 2014-03-28 20:00:27 -05:00
Bill McCloskey
11308f107e Bug 986653 - Add --e10s option to reftests (r=ted) 2014-03-18 16:31:28 -07:00
Bill McCloskey
04c455ac87 Bug 986691 - [e10s] Disable some layout tests (r=roc) 2014-03-28 11:25:11 -07:00
Kartikaya Gupta
0c67224bf9 Bug 948377 - Remove unwanted rounding in CalculateCompositedRectInCssPixels; add a CalculateCompositedSizeInCssPixels also. r=botond 2014-03-28 10:36:47 -04:00
Kartikaya Gupta
be80698012 Bug 980679 - Filter redundant scroll offset updates by scroll generation value. r=botond,tn 2014-03-28 08:21:19 -04:00
Neil Rashbrook
fe80fce47a Bug 514280 Consistently declare and define IID accessors r=bsmedberg 2014-03-28 08:45:02 +00:00
Ehsan Akhgari
345b35a6e8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
Ms2ger
b765dd44d3 Bug 984006 - Remove xpcom/ds from local includes; r=ehsan 2014-03-27 21:05:14 +01:00
Max Vujovic
5727154044 Bug 948265 - Rename intermediate space to filter space and change filter space origin to user space origin. r=mstange, r=longsonr 2014-03-26 16:21:48 -07:00
Simon Sapin
6064ae5c0e Bug 983175 - Part 2: Add style system support for 'subgrid' in the grid-template* properties. r=dholbert
http://dev.w3.org/csswg/css-grid/#subgrids
2014-03-27 11:54:40 -04:00
Simon Sapin
3f0ca1cfe4 Bug 983175 - Part 1: Refactor ParseGridLineNames (CSS Grid). r=dholbert
Return a CSSParseResult rather than a bool to distinguish between
an empty list of names '()' and the lack of a list.
2014-03-27 11:54:40 -04:00
Simon Sapin
0a31fb78d4 Bug 983175 - Part 0: Rename nsParsingStatus to CSSParseResult. r=dbaron 2014-03-27 11:54:40 -04:00
Ryan VanderMeulen
180f819eb9 Bug 919482 - Replace mozilla-banner.gif with a plain blue image in 163504-1*.html since we aren't trying to test individual pixel differences in resized image painting there. r=tn 2014-03-27 11:02:27 -04:00
Ryan VanderMeulen
b091b0dd52 Bug 909305 - Replace mozilla-banner.gif with a plain blue image in 163504-2*.html since we aren't trying to test individual pixel differences in resized image painting there. r=tn 2014-03-27 11:02:26 -04:00
Timothy Nikkel
385cfbb602 Bug 957668. Protect against a null frame. r=nullcheck CLOSED TREE 2014-03-26 23:20:23 -05:00
Timothy Nikkel
24f3430ec2 Bug 957668. Add comment based on review comment. DONTBUILD 2014-03-26 21:23:14 -05:00
Timothy Nikkel
af1fa4611b Bug 957668. Set the display port base rect in several places. r=roc 2014-03-26 21:46:24 -04:00
Timothy Nikkel
8ccbcd870e Bug 957668. Add and implement plumbing for a display port margins api. r=kats 2014-03-26 21:46:23 -04:00
Timothy Nikkel
90ca2854ab Bug 957668. Factor out a few helper functions. r=roc 2014-03-26 21:46:23 -04:00
Timothy Nikkel
79463c4f16 Bug 986413. Limit composition bounds used for display port calculation to root composition bounds. r=kats 2014-03-26 19:24:25 -04:00
Ryan VanderMeulen
beaad0859b Bug 980247 - Fix silly rebase error. r=fail 2014-03-26 15:38:08 -04:00
L. David Baron
67734de948 Bug 989560 patch 4 - Remove most uses of CheckEndProperty()/ExpectEndProperty(). r=heycam 2014-04-01 11:53:32 -07:00
L. David Baron
94c2eb86fa Bug 989560 patch 3 - Add one more ExpectEndProperty() call that is needed for variables. r=heycam
This adds a check that is currently present in most but not all
codepaths leading to this point, but which patch 4 will remove from many
of those codepaths.
2014-04-01 11:53:32 -07:00
L. David Baron
e7c2035cb7 Bug 989560 patch 2 - Don't accept an empty value for font-variant-alternates. r=heycam
Had patch 3 not been present, this would be needed to prevent a test
failure with patch 4 (which removes the ExpectEndProperty check from the
CSS_PROPERTY_PARSE_VALUE case in
CSSParserImpl::ParseProperty(nsCSSProperty) since its callers handle
checking for appropriate endings), since the way this function returns
success for empty values leads var() functions alone inside
font-variant-alternates to be rejected, since
CSSParserImpl::ParseProperty(nsCSSProperty) won't try reparsing with
variables.
2014-04-01 11:53:32 -07:00
L. David Baron
418dc99018 Bug 989560 patch 1 - Make it an error to have an empty item within an animation or transition shorthand. r=heycam
This is needed to make the test in the next patch (which tests that we
reject entirely-empty properties) pass.
2014-04-01 11:53:31 -07:00
L. David Baron
8592c4c03a Bug 988702 patch 3 - Fix missing UngetToken() calls in ParseCounterData(), and avoid evil CheckEndProperty() calls while I'm there. r=heycam
I tested that test_property_syntax_errors.html gives a failure on the
new test without the patch, and that the failure is not present with the
patch.
2014-04-01 11:53:31 -07:00
L. David Baron
0c81f40b4b Bug 988702 patch 2 - Test invalid CSS property values for their balanced-ness of () [] or {}. r=heycam
(This provides an easy mechanism for testing for missing UngetToken()
calls as in the following patch.)
2014-04-01 11:53:31 -07:00
L. David Baron
1d5f54dbab Bug 988702 patch 1 - Remove duplication between invalidGradientAndElementValues and the list of invalid values in background-image. r=heycam
Values that are already in invalidGradientAndElementValues don't also
need to be listed in an array that has invalidGradientAndElementValues
appended to it.
2014-04-01 11:53:31 -07:00
L. David Baron
8b0d19ca2d Bug 989688 patch 6 - Run the reftests in toolkit/content/tests/reftests/. r=enndeakin
This should have been added in
https://hg.mozilla.org/mozilla-central/rev/0c2c2c895e5d (bug 442419) or
perhaps also in bug 841001 when another test was added to this
directory.
2014-04-01 11:53:31 -07:00
L. David Baron
863f4a15c7 Bug 989688 patch 5 - Run the reftests in layout/reftests/view-source/. r=roc
This should have been added in
https://hg.mozilla.org/mozilla-central/rev/745c0c2aa1fe (bug 464339).

Furthermore, the image being missing was the result of using
checkin-needed on a non-GIT-style diff "containing" an image.

--HG--
rename : layout/reftests/view-source/reftests.list => layout/reftests/view-source/reftest.list
2014-04-01 11:53:31 -07:00
L. David Baron
39c4d936c7 Bug 989688 patch 4 - Only include the reftests in layout/reftests/css-valid/output/ once. r=jwatt
All three lines were added in
https://hg.mozilla.org/mozilla-central/rev/2eb1331a2bc4
2014-04-01 11:53:30 -07:00
L. David Baron
ef72a7da6e Bug 989688 patch 3 - Run the reftests in layout/reftests/css-invalid/form/. r=jwatt
This should have been added in
https://hg.mozilla.org/mozilla-central/rev/7fa9d642fe74 (bug 596515).

jhk, do you still happen to have a copy of the missing
form-dynamic-not-invalid-barred.html file?
2014-04-01 11:53:30 -07:00
L. David Baron
d1b1737dd6 Bug 989688 patch 2 - Run the reftests in layout/reftests/async-scrolling/. r=roc
This should have been added in
https://hg.mozilla.org/mozilla-central/rev/a888be20e9d7 (bug 975931).
2014-04-01 11:53:30 -07:00
L. David Baron
eea176941f Bug 989688 patch 1 - Only include the webcomponents reftest.list once. r=wchen
These duplicate lines were added in two changesets with only one
changeset between them:
https://hg.mozilla.org/mozilla-central/rev/08afb5a033eb
https://hg.mozilla.org/mozilla-central/rev/79b61f9909c0
2014-04-01 11:53:30 -07:00
L. David Baron
a6d999c810 Bug 989574 patch 2 - Fix comment to match code. 2014-04-01 11:53:30 -07:00
L. David Baron
0f609689eb Bug 989130 - Back out changeset fe119a83b1f2 (bug 942017) while leaving the corresponding test from changeset 3c63decb4e7e. r=jfkthame
This should be backed out for two reasons:

 (1) It caused a serious regression with bullets from list-style-image,
     which no longer affect the line box height and thus overlap.

 (2) The dependency on 'line-height: normal' doesn't make sense; there's
     no reason for whether line-height is 'normal' or not to affect the
     behavior of bullets.

I don't currently have time to figure out why Gecko behavior differs
from other browsers on bug 942017, but that should be re-analyzed and
the bug fixed in a different way.  At first glance, the code should
already be leading to the expected behavior, since the bullet ought to
have the same metrics and alignment as the block's influence on the line
box's height.  Why this isn't the case should be investigated.
2014-04-01 11:53:29 -07:00
Abel Lin
b82c67b50d Bug 980247 - Add a reftest for different continuations of a sticky element having the same offsets. r=dbaron 2014-03-26 14:46:47 -04:00
Abel Lin
0b1203962c Bug 980247 - Use offsets from GetNormalPosition() when updating continuations of position:sticky elements instead of assuming that they're all currently offset by the same amount. r=dbaron, r=corey 2014-03-26 14:45:17 -04:00
Boris Zbarsky
235a752941 Bug 610733. Vertically center the text in the combobox display area when a non-default height is set for the combobox. r=dbaron 2014-03-25 22:48:46 -04:00
Brian Birtles
827ab27605 Bug 986367 - Make paint_listener.js check for paint suppression; r=mattwoodrow
This patch adds an extra check for paint suppression when waiting for paint
events. This is because on some platforms (notably B2G) we can think all paints
have completed because paint suppression is in effect and as a result call the
callback too soon.

This patch use window.setTimeout(..., 0) to wait for paint suppression to finish
before preceding to check for pending paint events.

When the refresh driver is under test control, if we detect that paint events
are pending we need to force a refresh driver tick. This patch adds that tick.
I suppose we had previously never hit this situation before and never noticed
this.

This patch also rearranges the main loop so that early returns appear first and
calling the callback appears at the end.
2014-03-26 09:20:07 +09:00
Jeff Muizelaar
2f91140e71 Bug 980186. Tell automation.environment about the debugger. r=jgriffin
This lets it set the crash reporting envs properly.

--HG--
rename : layout/reftests/abs-pos/table-internal-5-ref.html => layout/reftests/abs-pos/table-internal-1-ref.html
rename : layout/reftests/abs-pos/table-internal-6-ref.html => layout/reftests/abs-pos/table-internal-3-ref.html
rename : layout/reftests/abs-pos/table-internal-7-ref.html => layout/reftests/abs-pos/table-internal-4-ref.html
rename : webapprt/test/chrome/mozpay-failure.html => webapprt/test/chrome/mozpay-success.html
extra : rebase_source : 903979ef854d1c1737ed4b2eb21be26b2bcb7017
2014-03-07 15:38:48 -05:00
Jonathan Griffin
e167be0896 Bug 979650 - Always build with Marionette for Firefox, b2g desktop, r=ted 2014-03-11 13:22:34 -07:00
Bobby Holley
8ce8fa17a7 Bug 987672 - Use a more reliable Function constructor and |bind| implementation for marquee event handler compilation. r=bz 2014-03-25 12:36:39 -03:00
Birunthan Mohanathas
7ac995a949 Bug 987320 - Remove unnecessary null checks for do_QueryFrame arguments. r=bz 2014-03-25 11:36:49 -04:00
Nicolas E. Bordenabe
98620a9c7e Bug 973345 - Include gradient values in the return value of getCSSValuesForProperty() for properties that can have an <image> value specified. r=bz 2014-03-25 11:36:48 -04:00
Carsten "Tomcat" Book
bb598f226f Backed out changeset b6c3d52bf61e (bug 791480) for breaking B2G ICS Emulator Reftest - 8 2014-03-25 14:36:48 +01:00
Carsten "Tomcat" Book
205e52b113 Backed out changeset 259991514082 (bug 791480) 2014-03-25 14:36:16 +01:00
Kartikaya Gupta
0e225bf776 Bug 984548 - Ifdef APZ overflow:hidden behaviour so it doesn't regress Fennec pending a proper fix. r=tn 2014-03-25 09:25:56 -04:00
Gorman Ho
f829937556 Bug 983285 - Add a generic destructor for property values allocated with new. r=kats, r=bz 2014-03-25 09:25:47 -04:00
Jonathan Kew
e1bd0b806a bug 827779 - reftest for modified hyphen-break rules. r=masayuki 2014-03-25 09:29:18 +00:00
Robert O'Callahan
a71360107a Bug 791480. Reenable test on Windows 7. r=dbaron 2014-03-25 22:15:49 +13:00
Robert O'Callahan
62432f22ec Bug 791480. Make reftests enter print mode before reftest-wait is removed, so canvas-print-callback tests can finish drawing before the test ends. r=dbaron
--HG--
extra : rebase_source : c545bfbfd4a449c4e880052da0e1e046e37eaf83
2014-03-25 22:11:27 +13:00
Jonathan Watt
d195236d65 Bug 959128 - Fix transforms of clipPath content for clipPath being used within SVG-in-OpenType glyph. r=heycam 2014-03-25 08:51:10 +00:00
Matt Woodrow
2cabdd6d95 Bug 976365 - Make 'perspective' create a containing block for absolute and fixed positioned children. r=dbaron 2014-03-25 11:45:43 +13:00
Ryan VanderMeulen
ccc7ff136b Bug 948389 - Replace mozilla-banner.gif with a plain blue image in 405577-1.html since we aren't trying to test individual pixel differences in resized image painting there. r=roc 2014-03-24 17:44:01 -04:00
Simon Montagu
3766f98942 Aways use the root span's writing mode when recursing into child spans in nsLineLayout::ApplyFrameJustification. Bug 986899, r=jfkthame 2014-03-24 10:50:13 -07:00
Simon Sapin
72897b9af2 Bug 984728 - Refactor grid-auto-flow parsing to use ParseBitmaskValues; r=dholbert 2014-03-24 14:26:04 +01:00
James Kitchener
3e0faecbe5 Bug 986799 - Handle rtl mtable padding properly. r=fredw 2014-03-24 08:58:29 -04:00
Simon Montagu
27a769cf38 Correction to typo in checkin for bug 789096. Bug 983691, r=jfkthame 2014-03-24 02:23:12 -07:00
L. David Baron
1c941712ca Bug 986807 patch 2 - Sync APZC/viewport prefs from bug 975931 from desktop reftest code to Android/B2G reftest code. r=roc 2014-03-23 18:44:50 -07:00
L. David Baron
44c7eeef75 Bug 986807 patch 1 - Sync lower-risk prefs over from desktop reftest code to Android reftest code. r=roc 2014-03-23 18:44:50 -07:00
L. David Baron
a085fede18 Bug 986409 - Skip fewer entire reftest directories on B2G. r=roc 2014-03-23 18:44:50 -07:00
L. David Baron
38aadb6a27 Bug 986406 - Don't skip entire reftest directories on Android. r=roc 2014-03-23 18:44:49 -07:00
L. David Baron
c6269e36e7 Bug 986404 - Mark test as failing due to scrollbars showing up. 2014-03-22 22:07:15 -07:00
L. David Baron
0797c82c4a Bug 986404: Disable fade-out of overlay scrollbars during reftest. r=mstange 2014-03-22 21:55:04 -07:00
Boris Zbarsky
4326c51942 Bug 955860 followup to add a pointer to the source of the tests. 2014-03-21 23:07:12 -04:00
Simon Sapin
6161867d62 Bug 984760 part 2: Use GridTemplateAreasValue though nsRefPtr pointers. r=dholbert 2014-03-21 23:06:16 +08:00
Simon Sapin
4d0c20f01f Bug 984760 part 1: Rename nsCSSValueGridTemplateAreas to css::GridTemplateAreasValue. r=dholbert 2014-03-21 23:06:13 +08:00
Simon Sapin
e83e296f58 Bug 981752 part 3: Add the grid shorthand. r=dholbert 2014-03-21 23:06:12 +08:00
Simon Sapin
48d0651e87 Bug 981752 part 2c: Add the grid-template shorthand. r=dholbert 2014-03-21 23:06:12 +08:00
Simon Sapin
4d9684360b Bug 981752 part 2b: Refactor grid-template-{columns,rows} parsing, preparing for the grid-template shorthand. r=dholbert
... and a bit of grid-auto-flow, for the grid shorthand.

* Avoid using CheckEndProperty() when possible
* Distinguish between "error" and "not a <track-size>"
* Split out parsing of a <track-list>, given its initial [<line-names>?]
2014-03-21 23:06:12 +08:00
Simon Sapin
c27572613c Bug 981752 part 1: Add the grid-column, grid-row and grid-area shorthands. r=dholbert 2014-03-21 23:06:12 +08:00
Jonathan Watt
bffb9388c5 Bug 985470 - Replace the Moz2D Matrix().Translate() calls with Matrix::Translation() for better perf. r=mattwoodrow
--HG--
extra : rebase_source : 7181564bdaa57a970a256e9676857a7195874631
2014-03-22 07:56:11 +08:00
Brian Birtles
9647a9f855 Bug 981508 - Fix comment in nsDisplayTransform::ShouldPrerenderTransformedContent; r=roc 2014-03-22 05:59:58 +08:00
Brian Birtles
880027c0e0 Bug 975261 part 5 - Fix OMTA animations with backwards fill; r=dzbarsky
When we have a backwards fill and we sample at *exactly* the start of the
animation on the next refresh driver tick, when we get to
RestyleManager::ComputeStyleChangeFor (or more specifically
ElementRestyler::CaptureChange) we notice that the style hasn't changed (since
the first frame of the animation produces the same value as the backwards fill)
and end up with an empty change list. As a result we never schedule a view
manager flush and rebuild the layer. Hence, the animation never gets sent to the
compositor thread. On the next tick we're already throttling the main thread.

This patch fixes this by applying the same approach as is used for transitions,
that is, explicitly marking which animations are running on the compositor
thread so we know if we need to trigger a layer transaction or not. This should
not only be more robust than the previous code but also facilitate aligning
animations and transitions code (bug 880596).
2014-03-22 05:59:58 +08:00
Brian Birtles
11a7708f98 Bug 975261 part 4 - Add test for starting OMTA animations with backwards fill; r=dzbarsky
This test reproduces a bug where we don't send an animation to the compositor
thread. The important step is the sample precisely at the start of the animation
interval.
2014-03-22 05:59:58 +08:00
Brian Birtles
d362de8251 Bug 975261 part 3 - Add test for transforms; r=dzbarsky
Adds a test for transform animations with a delay where there is already
a transform specified on the element.

This test used to fail but bug 828173 fixed it. It is included here as
a regression test.

(Prior to bug 828173 we were able to fix this by triggering
ForceLayerRerendering inside nsAnimationManager::nsFlushAnimations whenever we
detected *different* style rules but canThrottleTick=true)

The issue stemmed from the fact that when an element has a transform property,
LayerIsPrerenderedDataKey would get set on the layer because in
nsDisplayTransform::ShouldPrerenderTransformedContent we would only check for
the *presence* of an animation, not whether it is running. Then in
RestyleManager::DoApplyRenderingChangeToTree we wouldn't do an invalidating
paint because TryUpdateTransformOnly() returns true since it looks at
LayerIsPrerenderedDataKey.

Bug 828173 fixes this, at least in part, by checking if an animation is running.
This bug may resurface if we put animations with a delay on the compositor
thread hence it is worth including here.
2014-03-22 05:59:57 +08:00
Brian Birtles
036a91443e Bug 975261 part 2 - Trigger animations with a delay; r=dzbarsky
Animations with a delay are not put on the compositor thread until the end of
the delay phase. However, there is currently nothing that explicitly triggers
this transaction. It may occur due to flushes that arise from UI events but it
is not guaranteed.

This patch detects the end of a delay phase and turns off throttling for that
sample. It re-uses the mLastNotification member which is not ideal but
a subsequent patch in this queue removes this and replaces it with the approach
used for transitions.
2014-03-22 05:59:57 +08:00
Brian Birtles
dda03127b6 Bug 975261 part 1 - Add test for OMTA animations that start with a delay; r=dzbarsky 2014-03-22 05:59:57 +08:00
Chadd Williams
be019a3d12 Bug 980493 - Transition FrameMetrics::mScrollId to use a getter/setter. r=botond
--HG--
extra : histedit_source : 1c84496d4b61f019e6e6cc24591ee3a10434e4cc
2014-03-21 17:48:08 -04:00
Alessio Placitelli
93c7f6ceef Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-20 20:51:16 +01:00
James Kitchener
72e641d516 Bug 518592 - Fix single char <mi> frame type and add a test for dotless i. r=karlt 2014-03-21 08:49:51 -04:00
Edwin Flores
cab563a65a Bug 941298 - FFmpeg PlatformDecoderModule for Linux r=doublec,cpearce 2014-03-21 19:35:15 +13:00
Masatoshi Kimura
6a5ee8cce4 Bug 980307 - Remove DataContainerEvent dependency from accessibility. r=tbsaunde 2014-03-21 12:59:59 +09:00
Srirakshith Betageri
9e99311a3a Bug 955860. Implement the CSS.escape API for escaping CSS identifiers from script. r=bzbarsky 2014-03-20 23:19:43 -04:00
Robert O'Callahan
ae8e640786 Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats
--HG--
extra : rebase_source : e50c41da1a3cfc66f37e540b26fb8c9353ab5321
2013-09-20 22:22:11 +12:00
Robert O'Callahan
ae259da2ce Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst
--HG--
extra : rebase_source : 2d01b350d84f220add776341a9cbcda5ace2ef01
2014-03-12 09:11:39 +08:00
Robert O'Callahan
70d4bd7582 Bug 918189. Part 1: Implement GeometryUtils ConvertQuad/Rect/PointFromNode. r=mats
--HG--
extra : rebase_source : deade5e87ae77b3fe9efdfde9ba2f3254318f387
2014-03-12 09:11:38 +08:00
Robert O'Callahan
761e486c9d Bug 917755. Part 6: Add tests for getBoxQuads. r=matspal
--HG--
extra : rebase_source : 2e49345a3035cdbe5e4d2ee7573f3c30da38da6a
2013-09-20 22:21:42 +12:00
Robert O'Callahan
2467158ec9 Bug 917755. Part 5: Implement GeometryUtils GetBoxQuads. r=matspal
--HG--
extra : rebase_source : 6997773605684ad96e29b22fc10069d31385e63b
2014-03-12 09:11:38 +08:00
Robert O'Callahan
4976399874 Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal
--HG--
extra : rebase_source : 06e2c83a984d12fce29cd23b93dde54a2e05cf43
2013-09-20 22:21:03 +12:00
Daniel Holbert
3363b24a57 Bug 984786 part 1: Add MOZ_FINAL and private destructors to some refcounted classes in layout. r=dbaron 2014-03-21 09:16:20 +08:00
Timothy Nikkel
585af7072e Bug 874950. Fix variable name to fix the build. on a CLOSED TREE 2014-03-20 18:46:30 -05:00
Timothy Nikkel
a11a1c2c36 Bug 874950. Don't let fixed position conclude occlude async scrolled content. r=roc
It would be incorrect to occlude async scrolled content.

Instead of doing a lot of extra frame tree walking just use the flags on display items to tell if they are in fixed position subtrees.

Also, don't let the fixed position flag on display items get set if we start building display items inside a subdocument. If didn't do this non-fixed content in a subdocument that is in fixed content in the parent document would be marked as in fixed position, and no occlusion would occur at all. This means that the fix applies to slightly less cases which are less important so that a more important case works the same as before.
2014-03-20 18:23:16 -05:00
Timothy Nikkel
0071bffc0e Bug 874950. Record on display items if they are inside a fixed position subtree. r=roc 2014-03-20 18:23:16 -05:00
Ryan VanderMeulen
4f9ba420d3 Backed out 8 changesets (bug 917755) for bustage making inbound a CLOSED TREE.
Backed out changeset 98e31d225a5a (bug 917755)
Backed out changeset 43bceca43fb6 (bug 917755)
Backed out changeset 5117e3f594e7 (bug 917755)
Backed out changeset ada41f2f74b8 (bug 917755)
Backed out changeset 5272cfbd63f3 (bug 917755)
Backed out changeset f3bbd98021f7 (bug 917755)
Backed out changeset b049571a7cce (bug 917755)
Backed out changeset 472cb7738e14 (bug 917755)
2014-03-20 16:34:25 -04:00
Ryan VanderMeulen
bad51a5892 Backed out changesets 716f942b5798, 48edbd324d0f, 3e6446f6d0e6 (bug 918189) for bustage. 2014-03-20 16:33:54 -04:00
Robert O'Callahan
50315a03b2 Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats 2013-09-20 22:22:11 +12:00