Commit Graph

24838 Commits

Author SHA1 Message Date
Jonathan Kew
4643ccf86b Bug 1119475 followup - Add test files that were accidentally omitted when landing the patches above.
DONTBUILD because these tests are not yet enabled on trunk anyway.
2015-02-17 13:58:56 +00:00
Xidorn Quan
47cc8000ad No bug - Mark css-ruby/line-breaking-1 a known assertion for windows. r=dbaron
--HG--
extra : amend_source : bbb6a15a603bad14ae410db9a01ddc93fbb361b6
2015-02-18 00:52:10 +13:00
Xidorn Quan
63dca2f736 No bug - Fix fuzzy in reftest css-ruby/float-handling. CLOSED TREE 2015-02-17 21:24:08 +13:00
Xidorn Quan
e1f92f47fd Bug 1055676 part 5 - Reftests for ruby-align. r=roc
--HG--
extra : source : ba7069cb559ce1be1a8f8cbeb7412db280497019
2015-02-17 18:01:49 +13:00
Xidorn Quan
52a720752f Bug 1055676 part 4 - Expand ruby boxes in respect of ruby-align. r=roc
--HG--
extra : source : b10ac646968af93ea53d8006a5fc5ccbdc358f45
2015-02-17 18:01:49 +13:00
Xidorn Quan
72af284d7c Bug 1055676 part 3 - Adjust justification gap assigning algorithm for ruby-align. r=roc
--HG--
extra : source : 875a16b52371b7a3fad4fb1447abbf4a65d877e4
2015-02-17 18:01:49 +13:00
Xidorn Quan
2c8b47f530 Bug 1055676 part 2 - Move inter-frame justification assignment to an independent function. r=roc
--HG--
extra : source : 8e0084f1fcc9daba3780cbef92b73d6234ad5180
2015-02-17 18:01:49 +13:00
Xidorn Quan
fd409a084e Bug 1055676 part 1 - Parse and compute ruby-align property. r=heycam
--HG--
extra : source : 1045566a325c979c076a4c1fe490046734e408db
2015-02-17 18:01:49 +13:00
Kartikaya Gupta
a2d821499e Bug 1131840 - Add an EventRegionsOverride flag to force an empty hit region. r=roc,botond 2015-02-16 21:30:02 -05:00
Kartikaya Gupta
1f5d00564d Bug 1131840 - Replace the shouldForceDispatchToContent flag with a bitset enum. r=roc,botond 2015-02-16 21:30:02 -05:00
Xidorn Quan
88bbe2f95c Bug 1132008 part 4 - Fix reftests which rely on the old rtc sizing method. r=dbaron
--HG--
extra : source : b856985e95d7bd2cf2f8f403e65511f44409f2a9
2015-02-17 14:25:18 +13:00
Xidorn Quan
ae056a1701 Bug 1132008 part 3 - Remove unused code in nsLineLayout. r=dbaron
This code was originally introduced in bug 1055665 part 3.

--HG--
extra : source : a784dd2fe15b67f5e9f0ea380db1bfb6d65ad211
2015-02-17 14:25:18 +13:00
Xidorn Quan
c82b0849b3 Bug 1132008 part 2 - Sync bounds of <rt>s in line layout. r=dbaron
--HG--
extra : source : cd29b50ebcc6839c63acbaf9cab4893103967eda
2015-02-17 14:25:18 +13:00
Xidorn Quan
91dbc29cc5 Bug 1132008 part 1 - Calculate bsize of rtc according to its children. r=dbaron
--HG--
extra : source : e07fd183c24ea7133faa62bc5837e6d30589f05e
2015-02-17 14:25:18 +13:00
Xidorn Quan
ef1761e1f6 Bug 1133617 - Reftest Analyzer: Use process_log() directly instead of log_pasted() for log from url or param. r=dbaron DONTBUILD
--HG--
extra : source : feda36730b72911921c9806ca897c512a4d82e1f
2015-02-17 14:05:23 +13:00
Cameron McCormack
abd9c48b25 Bug 1131994 - Part 4: Don't fail test_value_computation.html on min-{block,inline}-size:calc(-1%). r=dbaron 2015-02-17 11:36:36 +11:00
Cameron McCormack
7aca412d0e Bug 1131994 - Part 3: Fix bad invalid_values in property_database.js for max-{block,inline}-size. r=dbaron 2015-02-17 11:36:36 +11:00
Cameron McCormack
93694cce8a Bug 1131994 - Part 2: Fix logical axis and offset property computed value lookup in tests. r=dbaron 2015-02-17 11:36:36 +11:00
Cameron McCormack
2f76611861 Bug 1131994 - Part 1: Support border-block-{start,end} shorthands in Declaration::GetValue. r=dbaron 2015-02-17 11:36:36 +11:00
L. David Baron
3b82e74b9d Bug 960465 patch 22 - Remove implementation of nsRestyleHint_ChangeAnimationPhase. r=birtles 2015-02-17 11:15:06 +13:00
L. David Baron
0307211fae Bug 960465 patch 21 - Replace one use of nsRestyleHint_ChangeAnimationPhase with nsRestyleHint_AllHintsWithAnimations so that we can remove the rest. r=birtles 2015-02-17 11:15:06 +13:00
L. David Baron
cbf5e33e73 Bug 960465 patch 20 - Allow pseudo-elements for style attribute replacement in RuleNodeWithReplacement. r=birtles
I confirmed that we're actually using this codepath by manually testing
<input type=color>:  it works with the patch, but if I comment out the
call to nsHTMLCSSStyleSheet::PseudoElementRulesMatching from
nsStyleSet::RuleNodeWithReplacement, then the color swatch breaks, which
proves that we're depending on the code.

I think I included this in the queue because it is needed for patch 22,
although I've forgotten the full reasoning.
2015-02-17 11:15:05 +13:00
L. David Baron
dbad586939 Bug 960465 patch 19 - Remove users of eRestyle_ChangeAnimationPhase. r=birtles 2015-02-17 11:15:05 +13:00
L. David Baron
e7d3fa23a5 Bug 960465 patch 18 - Remove aElementOrPseudoElement parameter to ReparentStyleContext (added in bug 1057129). r=birtles 2015-02-17 11:15:05 +13:00
L. David Baron
d5bb664bcf Bug 960465 patch 17 - Remove separate animation and non-animation phases of restyling. r=birtles
Note that this means that when we start transitions, we post restyles
that are processed during the current restyling operation, rather than
in a later phase.  This depends on patch 11, which makes the transition
manager skip style changes that it posts while starting transitions, to
ensure that this doesn't lead to an infinite loop.  This also depends on
patch 16, which only consumes restyle data for the primary frame, to
ensure that the animation restyles posted are processed properly.  It
also depends on patch 14, which makes us retain data on finished
transitions, to avoid triggering extra transitions on descendants when
both an ancestor and a descendant transition an inherited property, and
the descendant does so faster.

This fixes a known failure in layout/style/test/test_animations.html and
test_animations_omta.html (as visible in the patch).  I believe this is
because this patch changes us to compute keyframe values for animations
on top of a style context *with* animation data rather than one without,
which means what we're computing them on top of changes each time.  (The
purpose of patch 3 was to avoid this in the case where avoiding it
matters, i.e., implicit 0% and 100% keyframes.)
2015-02-17 11:15:05 +13:00
L. David Baron
a64d974c3e Bug 960465 patch 16 - Only consume restyle data for the primary frame. r=birtles
This is needed for patch 17, which removes restyling phases, so that
when the transition manager posts a restyle to undo the covering done by
the cover rule, that restyle doesn't get consumed by an inner frame.
2015-02-17 11:15:04 +13:00
L. David Baron
a184423c03 Bug 960465 patch 15 - Switch debugging user of IsProcessingAnimationOnlyStyleUpdate() to InAnimationOnlyStyleUpdate() so that I can remove the former. r=birtles 2015-02-17 11:15:04 +13:00
L. David Baron
5ff37bf6f6 Bug 960465 patch 14 - Retain finished transitions until the next style change or until removed from transition-property. r=birtles
Note that this increases memory use for completed transitions since we
don't throw away the data when the transitions complete.  That said,
this matches what we do for CSS Animations, and it's needed (once we
switch to the new rules for starting transitions) to maintain the
invariant that unrelated style changes don't trigger transitions.

The storage issues could be optimized in the future if it turns out to
be a problem, but I think that's unlikely, given that we'll never store
more than one for any element+property combination.
2015-02-17 11:15:04 +13:00
L. David Baron
2d81da517e Bug 960465 patch 13 - Remove the cover rule code, which became unused in the previous patch. r=birtles 2015-02-17 11:15:04 +13:00
L. David Baron
f214a231fe Bug 960465 patch 12 - Instead of using the full style covered by the cover rule as the parent style for descendents when we've tried starting transitions, use the after-change style. r=birtles
This switches to the new rules for how transitions start on descendants
when also starting on ancestors.
2015-02-17 11:15:03 +13:00
L. David Baron
4518b8f2b8 Bug 960465 patch 11 - nsTransitionManager should skip style changes that it posted while starting transitions. r=birtles
This will be needed when (in later patches) we stop separating animation
phases.
2015-02-17 11:15:03 +13:00
L. David Baron
0921901e69 Bug 960465 patch 10 - Invalidate the collection's style rule when we stop some but not all transitions. r=birtles 2015-02-17 11:15:03 +13:00
L. David Baron
2907f101d5 Bug 960465 patch 9 - Move the addition of the cover rule into nsTransitionManager::StyleContextChanged so that later patches can make it other than just addition of a rule. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
d8e15051e2 Bug 960465 patch 8 - Get a style that is the correct "after-change style" for once we stop using animation phases. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
07a4a43e7a Bug 960465 patch 7 - Use SetInAnimationOnlyStyleUpdate for ProcessPendingRestyles runs that are only updating animation data. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
f96bade422 Bug 960465 patch 6 - Add the new mechanism for avoiding starting spurious transitions as a result of animations: flush animation styles only before doing other restyle processing. r=birtles 2015-02-17 11:15:02 +13:00
L. David Baron
b99c33a3b5 Bug 960465 patch 5 - Make SMIL animations participate in the animation-only style flush. r=birtles
This is needed to prevent these reftests from failing:
  layout/reftests/svg/smil/smil-transitions-interaction-1a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-1b.svg
  layout/reftests/svg/smil/smil-transitions-interaction-2a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-2b.svg
  layout/reftests/svg/smil/smil-transitions-interaction-4a.svg
  layout/reftests/svg/smil/smil-transitions-interaction-4b.svg
The mIsCSS path fixes the a tests, and the !mIsCSS path fixes the b tests.

This is because this patch series changes the way in which transitions
interact with other types of animations to depend on those animations
being flushed in the animation-only style flush.  (The relevant call is
added in patch 6, though we don't really depend on it until patch 17.)
2015-02-17 11:15:02 +13:00
L. David Baron
3545426b12 Bug 960465 patch 4 - Track whether there are any pending non-animation restyles. r=birtles
This depends on bug 1087536 patch 3, which posts animation restyles
using the eRestyle_CSSTransitions and eRestyle_CSSAnimations hints.

This is used by patch 6.
2015-02-17 11:15:02 +13:00
L. David Baron
b374a55e13 Bug 960465 patch 3 - Use style without animation for base values for CSS animations (refixes bug 686656 in the new architecture). r=birtles
This is needed to make the tests for bug 686656 in test_animations.html
pass.

Note that once the rest of bug 960465 happens this will start producing
slightly different results in edge cases, since we will only be skipping
animation styles for the element itself and not for ancestors.  However,
both old and new behaviors are incorrect, since per spec we should be
updating the base values dynamically (bug 1064915).
2015-02-17 11:15:01 +13:00
L. David Baron
fe815e18a8 Bug 960465 patch 2 - Add method to return a modified version of a style context, with all or part of the animation data removed. r=birtles
This is used in patch 3.
2015-02-17 11:15:01 +13:00
L. David Baron
dcd9c6ff16 Bug 960465 patch 1 - Add parameter to skip animations work to ResolveStyleWithReplacement. r=birtles
This is used in patch 2.
2015-02-17 11:15:00 +13:00
Xidorn Quan
42c795f067 Bug 1133573 - Fix available size calculation of ruby text container. r=roc
--HG--
extra : source : 8d3b16b31e7e7369264155e51f93a0116e6b892e
2015-02-17 11:07:55 +13:00
Carsten "Tomcat" Book
635a599417 Merge mozilla-central to mozilla-inbound 2015-02-16 16:14:51 +01:00
Carsten "Tomcat" Book
92151b28e6 merge mozilla-inbound to mozilla-central a=merge 2015-02-16 15:59:56 +01:00
Jonathan Kew
360dbfa656 Bug 1119475 - tests pt 3 - Modify reftest for textarea padding on Windows Vista and later. r=heycam
--HG--
rename : layout/reftests/writing-mode/ua-style-sheet-textarea-1a-ref.html => layout/reftests/writing-mode/ua-style-sheet-textarea-1c-ref.html
2015-02-16 11:59:31 +00:00
Jonathan Kew
5bf74fd508 Bug 1119475 - tests pt 2 - More reftests for logical properties in UA stylesheets (form controls). r=heycam 2015-02-16 11:59:31 +00:00
Jonathan Kew
9e3fabbb81 Bug 1119475 - tests pt 1 - Reftests for logical properties used in UA stylesheets. r=heycam 2015-02-16 11:59:31 +00:00
Jonathan Kew
e4566700fa Bug 1119475 - pt 3 - Replace physical with logical properties in quirk.css. r=heycam 2015-02-16 11:59:31 +00:00
Jonathan Kew
f667381395 Bug 1119475 - pt 2 - Replace physical with logical properties in forms.css. r=heycam 2015-02-16 11:59:31 +00:00
Jonathan Kew
6464b395d8 Bug 1119475 - pt 1 - Replace physical with logical properties in html.css. r=heycam 2015-02-16 11:59:31 +00:00