Граф коммитов

8044 Коммитов

Автор SHA1 Сообщение Дата
Wilmer Paulino 381dd720a9 Bug 1081362 - Change nsStyleBasicShape pointer to an nsRefPtr, to avoid leak in unexpected case. r=dholbert 2015-07-09 10:56:31 -04:00
Masatoshi Kimura 6c8654865c Bug 1176496 - Drop support for -moz-prefixed gradients. r=dbaron 2015-07-10 00:57:50 +09:00
Brian Birtles 5550db670f Bug 1150810 part 7 - Add Animation::SetTimeline; r=jwatt
--HG--
extra : commitid : 3QENfb2DzCC
extra : rebase_source : 4928061558e689ae40d0976b9dd13e480279c2d1
2015-04-28 17:21:58 +09:00
Brian Birtles 6d3dd1a595 Bug 1150810 part 4 - Store global on Animation; r=smaug, jwatt
The connection between an Animation and an AnimationTimeline is optional. That
is, it is possible to have an Animation without an AnimationTimeline. Until now
we have often just assumed the timeline will be set but eventually we need to
support the possibility of the timeline being null. Indeed, later in this patch
series we will set the timeline out-of-band (i.e. not in the constructor) using
SetTimeline which opens up the possibility that timeline will be null for
a period of time.

This patch paves the way for having an optional timeline by storing the global
used for, e.g. creating promises, on the Animation object itself.

--HG--
extra : commitid : Ew9Zp4t36lV
extra : rebase_source : 16c9de9525a3562ff10e41fdf1602384a4e366e3
2015-04-28 15:48:35 +09:00
Brian Birtles cd770f1b4b Bug 1150810 part 2 - Replace references to DocumentTimeline with AnimationTimeline; r=jwatt
This is needed not only for supporting other kinds of timelines, but also for
when we come to implement SetTimeline(AnimationTimeline* aTimeline).

--HG--
extra : commitid : B836jCSbgNL
extra : rebase_source : 2592e66b2a9009f85ec0189ebecf5dba3c9bf8e0
2015-04-28 11:29:13 +09:00
Brian Birtles cf56e70bfb Bug 1171817 part 16 - Always cancel transitions before removing them; r=dbaron
Earlier in this patch series we added an assertion to the destructor for
CSSAnimation and CSSTransition to check that the owning element has been
cleared when the animation is destroyed.

This assertion fails, however, for transitions because there are a two
code paths where a transition may be destroyed without being cancelled.
This patch adjusts those two code paths to ensure transitions are always
cancelled before being destroyed.

--HG--
extra : commitid : 6kwqrE1A55J
extra : rebase_source : 86df7ec85ede5d2015e0239efd90b531e16b8aa1
2015-07-09 08:05:16 +09:00
Brian Birtles 5fd77720f9 Bug 1171817 part 15 - Factor out common code for comparing owning elements into a separate class; r=dbaron
--HG--
extra : commitid : 2j2k4UORffU
extra : rebase_source : ab639c3c163670bc3a291f20d657bf2aef015d95
2015-06-09 11:13:54 +09:00
Brian Birtles 3c01d47be1 Bug 1171817 part 13 - Add override of HasLowerCompositeOrderThan for CSS transitions; r=dbaron
This patch is quite similar to the code added for CSS animations. We'll factor
out some the common code in a subsequent patch in this series.

--HG--
extra : commitid : LYlmnoyUUsn
extra : rebase_source : 8ffc3e4283887e53a3e00d7fa43536c4203a5c92
2015-06-09 11:13:54 +09:00
Brian Birtles 7e9ee48851 Bug 1171817 part 11 - Add CSSTransition::TransitionProperty(); r=dbaron
This patch adds a convenience method for getting the transition property for
a CSS transition (so we can use this when ordering CSS transitions).

We already have ElementPropertyTransition::TransitionProperty() so this might
seem to be redundant, however we add this now because:

* In the proposed CSS Transitions <-> Web Animations integration, the
  CSSTransition interface has a transitionProperty member so we'll need this
  function for that.
* Once we allow script to modify the transition, we'll need to track the
  original transition property for sorting purposes which is what this method
  should do.
* We'll possibly drop ElementPropertyTransition::TransitionProperty() in the
  future.

--HG--
extra : commitid : 9toNZe3xt0K
extra : rebase_source : d29addc5a82e3b4aedf6cc9191f48393c88b90d1
2015-06-09 11:13:54 +09:00
Brian Birtles d9691ad9cc Bug 1171817 part 10 - Override sequence numbers for transitions; r=dbaron
Similar to the earlier patch in this series that changed the sequence number
handling for animations, this patch re-uses Animation::mSequenceNum to store
the animation generation number when each transition was generated. When the
transition is cancelled it reverts to using the default animation composite
ordering.

--HG--
extra : commitid : 9wCREIUfPRz
extra : rebase_source : 85a20c1f8a4c9507606b479b8787b4aa2ec28821
2015-06-09 11:13:54 +09:00
Brian Birtles 4ac9e57a4f Bug 1171817 part 9 - Add override of HasLowerCompositeOrderThan for CSS animations; r=dbaron
This patch also extends the tests for Element.getAnimations(). It doesn't
actually exercise the code added (it's not actually called yet since it doesn't
need to be for Element.getAnimations) but simply provides a useful regression
and interop test.

--HG--
extra : commitid : KWpAsc2Aj54
extra : rebase_source : abe26dc3d79a50239c62dd156dc0a0aa29c11d52
2015-06-09 11:13:54 +09:00
Brian Birtles 855752164f Bug 1171817 part 8 - Override sequence numbers for CSS animations; r=dbaron
This patch re-uses Animation::mSequenceNum to store the index of CSS animations
within their corresponding animation-name property. When the animation is
removed from an animation-name property it reverts to using the default
animation composite order.

This patch also updates Animation::DoCancel to call UpdateTiming instead of
UpdateEffect. This is because UpdateTiming is responsible for updating the
sequence number (when custom composite order is not in effect). When we remove
an animation from animation-name it will be cancelled and at that point we
expect its sequence number to be cleared which will only happen if
UpdateTiming gets called.

--HG--
extra : commitid : 2KrTezItH3q
extra : rebase_source : 50de87465deef85558ca50de5e6286f7b5603051
2015-06-09 11:13:54 +09:00
Brian Birtles 2378ae7083 Bug 1171817 part 4 - Add const version of AsCSSAnimation/AsCSSTransition methods; r=dbaron
These will be needed for sorting animations and transitions in a const-correct
fashion.

--HG--
extra : commitid : BhuFfkAvse7
extra : rebase_source : a97039f06b9f257ccb9b6aa206653d6b5d5d43d4
2015-06-09 11:13:53 +09:00
Brian Birtles 8565613d78 Bug 1171817 part 3 - Add CSSTransition::GetOwningElement; r=dbaron
This patch applies the same treatment to CSS transitions that we applied to CSS
animations in the previous patch in this series.

--HG--
extra : commitid : 1XNVVYTh0C2
extra : rebase_source : 4e27eaaab5e2b734636fa29406b42ae799e1f493
2015-06-09 11:13:53 +09:00
Brian Birtles 916a2b1a0e Bug 1171817 part 2 - Add CSSAnimation::GetOwningElement; r=dbaron
In order to sort CSS animation objects correctly, we need to know which
element's animation-name property they appear in, if any. Normally that's
simply the target element of the animation's keyframe effect but it can differ
in the following cases:

1) When script modifies a CSSAnimation's effect to target a different element
   (or simply removes the effect altogether). In this case we use the
   *owning* element to determine the priority of the animation, not the target
   element.

   This scenario does not yet occur (bug 1049975).

2) When script creates a CSSAnimation object using the CSSAnimation constructor.
   In this case, the owning element should be empty (null) and we should
   determine the priority of the animation in the same way as any other
   Animation object.

   Again, this is not yet supported (or even specced) but will be eventually.

3) When script holds a reference to a CSSAnimation object but then updates the
   animation-name property such that the animation object is cancelled. In this
   case the owning element should be cleared (null) so we know to not to try and
   sort this with regard to any animation-name property.

   This is possible using code such as the following:

     elem.style.animation = 'a 5s';
     var a = elem.getAnimations()[0];
     elem.style.animation = 'b 5s';
     a.play(); // Bring a back to life
     document.timeline.getAnimations();
     // ^ At this point we need to know how to sort 'a' and 'b' which depends
     // on recognizing that a is no longer part of an animation-name list.

Until we implement bug 1049975, we could support sorting animations without
adding the reference to the owning element by setting a flag on the CSSAnimation
object but (having tried this) it turns out to be cleaner to just introduce this
reference now, particularly since we know we will need it later.

Note that we will also need this information in future to dispatch events to the
correct element in circumstances such as (1) once we separate updating timing
information (including events) from applying animation values.

--HG--
extra : commitid : 8o9bf6l7kj7
extra : rebase_source : 391a4e8769cc96584ebd625d4b1d0e873373fd41
2015-06-09 11:13:53 +09:00
Brian Birtles e1ae8c1a56 Bug 1171817 part 1 - Cancel animations when destroying the property holding them; r=dbaron
Prior to this patch we cancel animations in AnimationCollection::Destroy but
this is not called automatically when the property holding the collection is
destroyed via its destructor. When an element is unbound from the tree we
destroy its animation properties but don't call AnimationCollection::Destroy.
This means, that in such circumstances:

* We won't create animation mutation records for the removed animations
* Once we start registering animations with a timeline they won't have a
  chance to remove themselves from the timeline (meaning
  document.timeline.getAnimations()) will keep returning them
* Once we go to implement the animationcancel and transitioncancel events we
  won't fire them in this case (assuming we implement the queueing/dispatch of
  those events as part of the cancel code)

This patch addresses this by moving the call to cancel each animations to the
property destructor for the animation properties.

We do this first so we can land this change separately to ease bisecting any
regressions it might trigger.

--HG--
extra : commitid : KzukSO91RMH
extra : rebase_source : 54ed2aeb69d8bceca424c70c7f33d4bf92d54546
2015-06-09 11:13:53 +09:00
Cameron McCormack 9835a50961 Bug 1177563 - Test that we share agent rule processors across different documents. r=dbaron 2015-07-08 15:57:31 +10:00
Carsten "Tomcat" Book f5a2bf64b3 Backed out changeset 42e80a07acd6 (bug 1177563) for bustage on a CLOSED TREE
--HG--
extra : rebase_source : 4a68bf83cc2939f899b0c6f92efa58e3d5aab6a2
2015-07-08 09:44:16 +02:00
Cameron McCormack dc7071d1b8 Bug 1163257 - Only fail test_bug1160724.xul if we get a console warning about parsing 'transform'. r=dbaron 2015-07-08 16:53:45 +10:00
Cameron McCormack 6170b6835d Bug 1099448 - Don't accept box properties with invalid calc() or rgb() etc. function values. r=dbaron 2015-07-08 16:28:03 +10:00
Cameron McCormack f086e12dcb Bug 1177563 - Test that we share agent rule processors across different documents. r=dbaron
--HG--
extra : rebase_source : 119e78e4798a8044531f6fa288be7a0fc3ce9e43
2015-07-08 15:57:31 +10:00
Nicholas Nethercote f976bf5495 Bug 1179071 - Merge RemovingIterator into Iterator. r=froydnj.
The original motivation for the Iterator/RemovingIterator split was that
PLDHashTable Checker class would treat them differently. But that didn't end up
happening (see bug 1131308). So this patch merges them. This is a small code
size win now but it will become bigger when I add iterators to nsTHashTable and
nsBaseHashtable.

The only complication is that PLDHashTable::Iter() is now non-const, which is
a problem if you use it in a const method. So I added PLDHashTable::ConstIter()
which is used in just two places. It's a bit of a hack -- effectively a
const_cast -- but I don't think it's too bad.
2015-07-06 22:02:26 -07:00
Cameron McCormack 0cfecb2513 Bug 1118103 - Swap the aliasing direction of -moz-margin-start <-> margin-inline-start etc. r=dbaron 2015-07-03 12:22:56 +10:00
Ryan VanderMeulen de7e734bc6 Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-07 13:38:10 -04:00
Hiroyuki Ikezoe 8763061ac2 Bug 1175751 - Apply playback rate to compositor animations. r=bbirtles 2015-07-06 19:05:00 +02:00
Brian Birtles 3c2d6db2da Bug 1179111 part 5 - Remove Name() methods; r=jwatt
--HG--
extra : source : 22cafa2fd162a3cbe9af7fd13a92fd82cd3a2315
2015-07-01 15:19:04 +09:00
Brian Birtles f6547354f0 Bug 1179111 part 2 - Implement CSSTransition.transitionProperty; r=smaug, r=jwatt
--HG--
rename : dom/animation/test/css-transitions/file_effect-name.html => dom/animation/test/css-transitions/file_csstransition-transitionproperty.html
rename : dom/animation/test/css-transitions/test_effect-name.html => dom/animation/test/css-transitions/test_csstransition-transitionproperty.html
extra : source : 4eb184faf92c77013d5f8ce8968cff837910b6cf
2015-07-01 12:27:48 +09:00
Brian Birtles 6d8dd99dd0 Bug 1179111 part 1 - Implement CSSAnimation.animationName; r=smaug, r=jwatt
--HG--
rename : dom/animation/test/css-animations/file_effect-name.html => dom/animation/test/css-animations/file_cssanimation-animationname.html
rename : dom/animation/test/css-animations/test_effect-name.html => dom/animation/test/css-animations/test_cssanimation-animationname.html
extra : source : 144276fd40a14a560991baa2f5e7c45ce0e25042
2015-07-01 12:15:42 +09:00
Brian Birtles cc59f02cc9 Bug 1178186 part 1 - Add CSSAnimation and CSSTransition interfaces; r=smaug
--HG--
extra : source : 1e1ccffd51b824fb6b229def4ddb7cb1d8889bb6
2015-06-30 10:00:39 +09:00
Timothy Nikkel d5e3df046e Bug 1114526 - Make sure that CSS image invalidation also notifies rendering observers even if the image isn't visible (because the rendering observers might be visible). r=mattwoodrow
There is no retained rendering data for non-visible images, so FrameLayerBuilder::IterateRetainedData never calls it's callback, the callback is the only thing that calls nsSVGEffects::InvalidateDirectRenderingObservers. We need to call nsSVGEffects::InvalidateDirectRenderingObservers always.
2015-06-25 13:46:00 -04:00
Carsten "Tomcat" Book 0a19d00b4f Backed out changeset 1e1ccffd51b8 (bug 1178186) for suspicion of causing bc2 test failures on OSX browser_bug427559.js 2015-07-07 14:22:33 +02:00
Carsten "Tomcat" Book e059e2e009 Backed out changeset 144276fd40a1 (bug 1179111)
--HG--
rename : dom/animation/test/css-animations/file_cssanimation-animationname.html => dom/animation/test/css-animations/file_effect-name.html
rename : dom/animation/test/css-animations/test_cssanimation-animationname.html => dom/animation/test/css-animations/test_effect-name.html
2015-07-07 14:21:46 +02:00
Carsten "Tomcat" Book e24e15fa2a Backed out changeset 4eb184faf92c (bug 1179111)
--HG--
rename : dom/animation/test/css-transitions/file_csstransition-transitionproperty.html => dom/animation/test/css-transitions/file_effect-name.html
rename : dom/animation/test/css-transitions/test_csstransition-transitionproperty.html => dom/animation/test/css-transitions/test_effect-name.html
2015-07-07 14:21:42 +02:00
Carsten "Tomcat" Book 297c2b6a58 Backed out changeset 22cafa2fd162 (bug 1179111) 2015-07-07 14:21:33 +02:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Cameron McCormack f0182854d3 Bug 1179675 - Make FontFaceSet.cpp compile as part of UNIFIED_SOURCES. r=jdaggett
--HG--
extra : rebase_source : acd9fa6faefc58b30ce8f9393451620b5e09f427
2015-07-02 00:45:00 +02:00
Brian Birtles cd06229252 Bug 1179111 part 5 - Remove Name() methods; r=jwatt
--HG--
extra : commitid : JT0oaGODGja
extra : rebase_source : e0ff11f1f482599e5e2b7b0eac6cfbb71fd0e34b
2015-07-01 15:19:04 +09:00
Brian Birtles 9785afa349 Bug 1179111 part 2 - Implement CSSTransition.transitionProperty; r=smaug, r=jwatt
--HG--
rename : dom/animation/test/css-transitions/file_effect-name.html => dom/animation/test/css-transitions/file_csstransition-transitionproperty.html
rename : dom/animation/test/css-transitions/test_effect-name.html => dom/animation/test/css-transitions/test_csstransition-transitionproperty.html
extra : commitid : KNo4iwHLjhE
extra : rebase_source : 822b3be05ae47e34812d2df5e5ece11aa87d66a8
2015-07-01 12:27:48 +09:00
Brian Birtles 32835b13f5 Bug 1179111 part 1 - Implement CSSAnimation.animationName; r=smaug, r=jwatt
--HG--
rename : dom/animation/test/css-animations/file_effect-name.html => dom/animation/test/css-animations/file_cssanimation-animationname.html
rename : dom/animation/test/css-animations/test_effect-name.html => dom/animation/test/css-animations/test_cssanimation-animationname.html
extra : commitid : 76TxEcxKHRn
extra : rebase_source : d9a582b36112a18854cd291915329a6325754056
2015-07-01 12:15:42 +09:00
Brian Birtles e298fe6b44 Bug 1178186 part 1 - Add CSSAnimation and CSSTransition interfaces; r=smaug
--HG--
extra : commitid : K0U17zTMtAz
extra : rebase_source : e3b2dc3c503144763efe41ef71b9dc3793b3172f
2015-06-30 10:00:39 +09:00
Cameron McCormack 6ab982c427 Bug 1180083 - Avoid shadowing info() in test_property_database.html. r=dbaron 2015-07-07 09:50:53 +10:00
Jonathan Kew 5c409d64bb Bug 1177076 patch 3 - Change the initial value of 'caption-side' from 'top' (physical) to 'block-start' (logical). r=heycam 2015-07-03 11:37:44 +01:00
Jonathan Kew 4ebe732ab7 Bug 1177076 patch 1 - Add logical values for the caption-side property (though not yet handled by layout code). r=heycam 2015-07-03 11:37:25 +01:00
Jonathan Kew 2d27acf85f Bug 1179285 - Give text-combine-upright its own pref, separate from writing-mode (vertical-text), so that we can keep it disabled until we actually have a layout implementation backing the CSS property. r=dbaron 2015-07-02 13:27:33 +01:00
Matt Woodrow deee4bd9e9 Bug 1177149 - Don't force an invalidation for transform origin changes. r=dbaron
--HG--
extra : rebase_source : a4d7d4bcdf73cc342855d257fc433963c1a31d23
2015-07-02 13:47:05 -04:00
Lee Salzman 55553857ba Bug 771367 - Refactor GetAnimationContent and GetAnimationCollection into CommonAnimationManager to hide atom and pseudo-element voodoo. r=bbirtles
--HG--
extra : rebase_source : 4dd7ccea70aeb26850055388e6a8ec1aa90e5347
2015-07-01 14:43:13 -04:00
Lee Salzman 317af90588 Bug 771367 - Update test_animations_omta.html to support testing pseudo-elements. r=dbaron
--HG--
extra : rebase_source : 659f839d709a4955d7351c1200e6dcbf527c0c51
2015-07-01 12:08:30 -04:00
Lee Salzman 1201a3f336 Bug 771367 - Support compositor animation for pseudo-elements. r=dbaron
--HG--
extra : rebase_source : 9276e835dbc75aaaab718a871ed4eaa7c8389867
2015-07-01 11:55:51 -04:00
Cameron McCormack e5fd8052c4 Bug 1179078 - Recover from parse errors inside image values in border-image properly. r=dholbert 2015-07-01 16:42:31 +10:00
L. David Baron 38a633181f Bug 1176969 - Disable OMT animation for any frame in a preserve-3d scene rather than only frames whose parent and child are in a preserve-3d scene. r=mattwoodrow
frame->Preserves3D() is whether the frame's parent has transform-style:
preserve-3d, which means that the frame is part of the same 3-D scene as
its parent.  frame->Preserves3DChildren() is whether the frame itself
has transform-style: preserve-3d, which means that the frame is part of
the same 3-D scene as its children.

Neither of these are valid cases for doing off-main-thread (OMT)
animation because all of the layers in a preserve-3d scene are currently
siblings of each other, rather than preserving ancestor/descendant
relationships.  This means that it's not valid to animate transform of
the parent on the compositor because the compositor animation won't
update any of its children that have layers.  Likewise, it's not valid
to animate transform of the child on the compositor because the code
that sends transform information to the compositor doesn't handle the
accumulation of transforms needed to get the "right" transform for the
child (i.e., with the transforms of its ancestors up to the top of the
3-D scene merged in).

This means that we do OMT animation for slightly fewer cases with the
patch than we did without the patch.  This means it's pretty low risk in
terms of correctness, although there's a chance it might regress
performance on one of the (somewhat limited) set of cases where the
optimization was valid.  (Bug 779598 covers doing OMT animation for
preserve-3d cases, and depends on the work ongoing in bug 1097464.)

The animate-preserve3d-parent.html reftest doesn't fail without the
patch, since something seems to invalidate in the test; it was testing
the testcase that showed correct behavior when the mouse was moving, so
this isn't incredibly surprising (although that invalidation from mouse
movement is itself worth debugging).  The animate-preserve3d-child.html
test does fail without the patch, though.

(With an initial transform of none instead of the 30deg transform, both
tests also show an invalidation bug without the patch.)
2015-06-30 11:29:55 -07:00
Jonathan Kew 3907cf90fa Bug 789788 - Revise the don't-use-document-fonts option so that it will prefer generics (as configured in prefs) but ignore the 'cursive' and 'fantasy' values, but may still use page-specified fonts if necessary for fallback (e.g. icon fonts). r=dbaron 2015-06-27 22:23:05 -07:00
Cameron McCormack 7dfb435bf7 Bug 1072102 - Part 2: Tests. r=jdaggett 2015-06-27 11:41:10 +10:00
Cameron McCormack 55dbc6f840 Bug 1072102 - Part 1: Implement FontFaceSet load and check. r=jdaggett,bzbarsky 2015-06-27 11:41:10 +10:00
Cameron McCormack 69b3f6b78a Bug 1163879 - Remove FontFaceSet::mUnavailableFontFaces. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack d6783fa6d1 Bug 1161413 - Part 7: Test Font Loading API in a display:none iframe. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack 42cdaef960 Bug 1161413 - Part 5: Cancel font loads on FontFaceSet destruction. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack e32a5afe7f Bug 1161413 - Part 4: Move FontFaceSet ownership from nsPresContext to nsIDocument. r=smaug 2015-06-27 11:39:54 +10:00
Cameron McCormack 26d865db92 Bug 1161413 - Part 3: Only reflow from the font face loader if we have a pres context. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack 10e71c63e8 Bug 1161413 - Part 2: Create FontFace objects with a FontFaceSet rather than a pres context. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack 57866b6af6 Bug 1161413 - Part 1: Create FontFaceSet with a document rather than a pres context. r=jdaggett 2015-06-27 11:39:54 +10:00
Cameron McCormack a189a60c25 Bug 77999 - Remove stray printf.
--HG--
extra : rebase_source : bf97d39dce40b83fc7495badd9feea65f0a8bcf5
2015-06-27 02:33:58 +10:00
Muhsin A. Steiman 396e117958 Bug 1172012 - Fixes a copy & paste error in nsCSSValue.cpp. r=heycam 2015-06-05 11:25:00 +02:00
Cameron McCormack c9c0516dfa Bug 77999 - Followup build bustage fix.
CLOSED TREE
2015-06-26 14:22:52 +10:00
Cameron McCormack 910bb671cf Bug 77999 - Unified build fix followup. 2015-06-26 13:52:48 +10:00
Cameron McCormack 9bef88940c Bug 77999 - Part 5: Cache eAgentSheet and eUserSheet rule processors in the RuleProcessorCache. r=dbaron
Ignoring sheets added by add-ons, all sheets in the eAgentSheet and
eUserSheet levels should come from the nsLayoutStylesheetCache and thus
allow multiple documents to make use of a shared rule processor.
2015-06-26 13:52:48 +10:00
Cameron McCormack 6aad7b33a3 Bug 77999 - Part 4: Mark nsCSSRuleProcessors as ready for expiration from the RuleProcessorCache once no nsStyleSets are using them. r=dbaron
We want the RuleProcessorCache to start considering a given
nsCSSRuleProcessor as ready for expiration only once no nsStyleSets are
using it.
2015-06-26 13:52:47 +10:00
Cameron McCormack 61f1cd54f1 Bug 77999 - Part 3: Gather document rules and produce an nsDocumentRuleResultCacheKey in nsCSSRuleProcessors. r=dbaron 2015-06-26 13:52:47 +10:00
Cameron McCormack 7c894d7982 Bug 77999 - Part 2: Add RuleProcessorCache. r=dbaron 2015-06-26 13:52:47 +10:00
Cameron McCormack ea9aba1e83 Bug 77999 - Part 1: Add nsDocumentRuleResultCacheKey. r=dbaron 2015-06-26 13:52:47 +10:00
Cameron McCormack b26c6e1429 Bug 1170888 - Restyle the document in EnsureSafeToHandOutCSSRules if we previously cloned sheet inners outside of that method. r=bzbarsky 2015-06-26 13:49:58 +10:00
Cameron McCormack dd81f3c902 Bug 1169512 - Add and remove quirk.css rather than enable and disable a clone of it. r=jwatt 2015-06-26 13:49:58 +10:00
Cameron McCormack b7d968f6d7 Bug 1122253 - Support -moz-min-content etc. keywords in {,min-,max-}inline-size and their physical equivalents. r=bzbarsky 2015-06-25 08:40:38 +10:00
Boris Zbarsky f74dac01c5 Bug 1175192. Consistently allow identifiers to start with -- in the CSS parser. r=heycam 2015-06-24 10:17:05 -07:00
Jonathan Kew bf0753bc3c Bug 1077521 - Allow tables to use vertical writing modes. r=smontagu 2015-06-23 13:03:40 -07:00
Cameron McCormack ede6238ef4 Bug 804975 - Part 4: Cache reset structs on rule nodes for different font-size or writing mode values. r=dbaron 2015-06-23 11:48:18 +10:00
Cameron McCormack 56634d96ba Bug 804975 - Part 3: Support conditional cached reset structs on rule nodes. r=dbaron 2015-06-23 11:48:18 +10:00
Cameron McCormack 225f3dd70d Bug 804975 - Part 2: Add a RuleNodeCacheConditions class and use it instead of a boolean canStoreInRuleTree during style computation. r=dbaron 2015-06-23 11:48:18 +10:00
L. David Baron 909c6fa960 Bug 1169440 patch 5 - Adjust hints in CalcDifference methods to emit new nsChangeHint_ReflowChangesSizeOrPosition hint. r=heycam
Note that most of what is needed was actually taken care of by patch 1's
addition of the new hint to nsChangeHint_AllReflowHints.
2015-06-20 21:54:15 -07:00
L. David Baron b85494e6ac Bug 1169440 patch 4 - Add comment to nsStylePadding::DifferenceAlwaysHandledForDescendants. r=heycam 2015-06-20 21:54:15 -07:00
L. David Baron c874e3c159 Bug 1169440 patch 3 - Add nsChangeHint_ReflowChangesSizeOrPosition. r=heycam 2015-06-20 21:54:15 -07:00
L. David Baron 4be2a53ed5 Bug 1169440 patch 2 - Rename style struct MaxDifferenceNeverInherited to DifferenceAlwaysHandledForDescendants. r=heycam
This was added in bug 897763, but the current name no longer makes sense
in the context of the renaming in 2d8810ba0412 (bug 779968, patch 4).

(I think the old name was also missing a negation -- it meant hints that
were never *non*-inherited.)
2015-06-20 21:54:15 -07:00
Daniel Holbert 4502eec352 Bug 1176270: Handle self-assignment in StyleAnimationValue::operator=. r=dbaron
a=KWierso to land while checkins are metered
2015-06-19 15:56:12 -07:00
Cameron McCormack 0c42dab52b Bug 1175800 - Remove typedefs from nsComputedDOMStyle.cpp as they interfere with others under unified compilation. r=bzbarsky
--HG--
extra : rebase_source : cf9acc0012eae22322a653001bbdab1246264a5f
2015-06-18 16:52:49 +10:00
Nicholas Nethercote 7e43a049ee Bug 1174631 (part 2) - Replace nsCSSRuleProcessor's uses of PL_DHashTableEnumerate() with PLDHashTable::Iterator. r=dholbert.
--HG--
extra : rebase_source : e05d57211c8ba1c3fe0dfe4d8dda477d1df45b55
2015-06-10 21:28:14 -07:00
Nicholas Nethercote 5e7718ec13 Bug 1174631 (part 1) - Replace nsRuleNode's uses of PL_DHashTableEnumerate() with PLDHashTable::{,Removing}Iterator. r=dholbert.
--HG--
extra : rebase_source : 058c6a86d5806a8cb3eb0dc7b13af47da68f4d82
2015-06-10 19:13:15 -07:00
Michael Layzell 29c0d45bbb Bug 1167589 - Mark the members of CSSParsingEnvironment as MOZ_UNSAFE_REF. r=dbaron
--HG--
extra : rebase_source : 932c6dc1502114e3db05d8520143bc36a959de0e
2015-06-16 08:23:00 -04:00
Michael Layzell 440d7b28d4 Bug 1167663 - Mark nsCSSKeyframeStyleDeclaration/nsCSSPageStyleDeclaration::mRule as MOZ_NON_OWNING_REF. r=dbaron
--HG--
extra : rebase_source : 621a2d04d82fd50bf5dfa35bb2266f7462d4d6e1
2015-06-16 08:12:00 -04:00
Michael Layzell d5c9347475 Bug 1167665 - Mark css::Loader::mDocument as MOZ_NON_OWNING_REF. r=dbaron
--HG--
extra : rebase_source : 4cbfa9c3e9ffa81c58370d44f265bbe1e729d39b
2015-06-16 08:10:00 -04:00
Jonathan Kew 674cd507a1 Bug 1123299 - Allow <input type=number> to be displayed in vertical writing mode; but keep the spinner arrows arranged as for horizontal writing mode. r=dholbert 2015-06-16 11:07:22 +01:00
Cameron McCormack af75a2ac88 Bug 1171342 - Store contenteditable.css and designmode.css in the style sheet cache. r=jwatt 2015-06-16 11:34:48 +10:00
Cameron McCormack 426f0f8f78 Bug 1169514 - Part 3: Use a shared preference style sheet across all pres contexts. r=jwatt 2015-06-16 11:34:48 +10:00
Cameron McCormack 4c1cfc10bd Bug 1169514 - Part 2: Move noframes rules from the preferences style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Cameron McCormack 5492e00444 Bug 1169514 - Part 1: Move noscript rule from the preference style sheet to a cached UA style sheet. r=jwatt 2015-06-16 11:34:47 +10:00
Andrew McCreight a886770a11 Bug 861449 - Incremental css::Rule destroyer. r=dbaron
Destroying large arrays of css::Rules during page teardown can take
multiple milliseconds in incremental CC. To reduce CC pauses, this
patch introduces a new class nsIncrementalClearCOMRuleArray that uses
the deferred finalizer to incrementally destroy these rule arrays.
2015-06-15 12:34:23 -07:00
Xidorn Quan 7f4096ebd9 Bug 1171842 - Use jump table instead of nested if statements for peeking compute function of style struct. r=dbaron
--HG--
extra : source : c16172954389dff27f9fee7d4bacc949de662a4c
2015-06-12 14:32:46 +12:00
Karl Dubost 25ac1d8ffd Bug 1164783 - Change default style for input type=search to box-sizing: border-box. r=dbaron
--HG--
extra : rebase_source : 20845cd74b0855cee7a0ec1d094fc19c0f01d697
2015-06-10 14:58:55 +09:00
Karl Dubost ef020b95ee Bug 1164783 - Removing trailing spaces. r=dbaron
--HG--
extra : rebase_source : 668688e61ba94ebe2b3aafa80f3ddf9585db53ce
2015-06-10 14:54:57 +09:00
Tim Nguyen 79c10f9f1d Bug 1170000 - Add -moz-os-version: windows-win10 to test_media_queries.html. r=jimm
--HG--
extra : rebase_source : 36a92ac426d787495f3501e978d4598895108323
2015-06-09 13:23:00 -04:00
Kathy Brade 8b3f3fad35 Bug 418986 - Resist fingerprinting by preventing exposure of screen and system info. r=mrbkap, r=heycam 2015-06-07 09:02:00 -04:00
Simon Montagu 37f044b028 Bug 1113206: Make nsComboboxControlFrame and nsListControlFrame use logical coordinates and support vertical writing modes - patch by smontagu with additions by jfkthame. r=jfkthame,smontagu 2015-02-08 07:31:14 -08:00
Boris Zbarsky b54f8f42d0 Bug 1171970. Handle super-long lines in CSS files a bit more gracefully if they cause OOM when creating CSS error messages. r=heycam 2015-06-05 23:19:11 -04:00
Kyle Zentner 95a87c9836 Bug 1170173 - Parse CSS 'contain' property. r=dholbert
--HG--
extra : rebase_source : 73e15a3049f7e69fdecd7b45157df25fca949b0c
2015-06-04 16:38:00 +02:00
Chris Peterson 992e7e882e Bug 1171368 - Fix -Wunreachable-code-break warning in layout/style/nsCSSRuleProcessor.cpp. r=dholbert 2015-06-03 23:12:24 -07:00
Wes Kocher 42a8fdddc8 Merge m-c to inbound, a=merge 2015-06-04 18:29:42 -07:00
Nicholas Nethercote e6ec6218c6 Bug 1171282 - Avoid some unnecessary |operator new| null-checks in layout/. r=dholbert.
AllocateByObjectID() is infallible. Therefore the |operator new| of nsFrameList,
nsLineBox and nsRuleNode are too, as is nsRuleNode::CreateRootNode().

The patch also removes a couple of comments duplicated in both .h and .cpp
files.

--HG--
extra : rebase_source : 0b9e195fd547fdd53ddad7bb461ff5f5c2016fce
2015-06-03 23:45:11 -07:00
J. Ryan Stinnett 0db3f776d9 Bug 1169901 - View source menu covers full height. r=heycam
--HG--
extra : transplant_source : %D9%E0%F49%40%ED%9ET%A7o%1E%28F%FCm%D5%D1k%FB%B2
2015-06-02 18:09:46 -05:00
Eric Rahm 75c4bebb79 Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm cc58068318 Bug 1165515 - Part 5: Convert instances of PR_LOG_ALWAYS. r=froydnj
Most instances were converted to PR_LOG_INFO, some to PR_LOG_DEBUG, and some
to PR_LOG_ERROR.
2015-06-03 15:22:30 -07:00
Eric Rahm f50b813989 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00
Nicholas Nethercote 383a496bf6 Bug 1170416 (part 5) - Remove PLDHashTable::IsInitialized(). r=froydnj.
|mOps| is always non-null now, and there's no longer any distinction between
and uninitialized and initialized table. Yay.

--HG--
extra : rebase_source : 3d1fb72aee4dd21ff20db0ff3166d4e932ade897
2015-05-20 21:23:55 -07:00
Nicholas Nethercote e849e6588b Bug 1170416 (part 3) - Remove the PLDHashTable2 typedef. r=froydnj.
--HG--
extra : rebase_source : 9510ea47204fffa163cac43aeaaac6ae1ad80419
2015-05-19 16:46:17 -07:00
Kyle Zentner 3b4c44713c Bug 1169837 - Remove box-sizing: padding-box in FF UI & Gecko Tests. r=dholbert 2015-06-02 08:46:00 -04:00
Mats Palmgren cc260b44cf Bug 817406 part 1 - Let ApplyStyleFixups propogate 'direction' to the viewport. r=bz,heycam 2015-05-27 22:18:36 +00:00
Ryan VanderMeulen 7dfbf70ce7 Backed out changeset 4126c66c9a80 (bug 1166728) for Gaia sound_manager_test.js failures.
CLOSED TREE
2015-05-29 15:16:53 -04:00
Kyle Zentner f2ec992500 Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert 2015-05-29 09:17:00 -04:00
Ryan VanderMeulen 45b95898e0 Backed out changeset 541cd29ea626 (bug 1166728) because the updated patch wasn't posted to the bug. 2015-05-29 12:48:22 -04:00
Kyle Zentner 3bacc6993c Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert 2015-05-27 09:57:00 -04:00
Michael Layzell e3c4a77234 Bug 1168154 - Mark refcounted members of nsCSSValue::mValue as MOZ_OWNING_REF. r=heycam
--HG--
extra : rebase_source : b812e9ef0e5da1cf3a3e719125ca068f55006ee7
2015-05-25 10:47:00 -04:00
Michael Layzell 6fd724199e Bug 1168156 - Remove unused nsCSSValueTokenStream::mSheet. r=heycam 2015-05-28 09:02:00 -04:00
Michael Layzell 4a41f5a065 Bug 1168158 - Make URLValue::mString a smart pointer. r=heycam 2015-05-28 08:54:00 -04:00
Nicholas Nethercote 8c0a700fcd Bug 1168007 (part 4) - Use PLDHashTable2 in nsHTMLStyleSheet. r=froydnj.
--HG--
extra : rebase_source : b5123aaa12e35f9f3464a9f76528c0f1d5cb1b36
2015-05-18 20:43:18 -07:00
Birunthan Mohanathas 180b572edb Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj 2015-05-28 11:07:44 -07:00
Birunthan Mohanathas 470bd9148f Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj 2015-05-28 11:07:43 -07:00
Ryan VanderMeulen 47df1bbfe3 Backed out changeset dd96df1da2b5 (bug 1166728) for making test_bug320799.html permafail on Mulet.
CLOSED TREE

--HG--
extra : rebase_source : 4ff4ea2d22a0beb2af011cec40f90efba2e452b9
2015-05-28 11:01:18 -04:00
Kyle Zentner 2e3823f252 Bug 1166728 - Remove box-sizing: padding-box, as per CSS WG. r=dholbert
--HG--
extra : rebase_source : 6103761cd36cbba2c8e048db2a0d6cd75cad2020
2015-05-27 09:57:00 -04:00
Tim Nguyen 93dcf227cd Bug 1166867 - Support -moz-os-version: windows-win10. r=jimm 2015-05-21 12:16:00 +02:00
Phil Ringnalda 4454c8f924 Back out 2 changesets (bug 817406) for b2g reftest-7 bustage
CLOSED TREE

Backed out changeset 1499a08f564a (bug 817406)
Backed out changeset d2f3cb3c0233 (bug 817406)
2015-05-27 19:11:54 -07:00
Kang-Hao (Kenny) Lu 0cec7a05cb Bug 817406 (part 1) - Let ApplyStyleFixups propogate 'direction' to the viewport. r=bz,heycam 2015-05-27 22:18:36 +00:00
Mats Palmgren 5a2a4f8f08 Bug 997709 part 2 - Prevent the nsComboboxDisplayFrame from being blockified if the parent context has display:flex/grid. r=heycam 2015-05-27 22:18:36 +00:00
Ting-Yu Lin 2a47a562fb Bug 1161392 - Enlarge touch area for AccessibleCaret. r=roc
Porting the patch for Touch/SelectionCarets in bug 1021499 to
AccessibleCaret.
2015-05-27 16:37:28 +08:00
Michael Layzell 3fe7053458 Bug 1167588 - Mark Rule::mParentRule as MOZ_NON_OWNING_REF. r=dbaron
--HG--
extra : rebase_source : 511e42982b47f8516240cbb82d7fa2b21fb99e2e
2015-05-22 07:00:00 +02:00
Jonathan Watt 7f790e5e3c Bug 1168664 - Stop mistakenly using the transform reference box's width to calculate the Z component in ProcessMatrix3D. r=mattwoodrow 2015-05-25 11:13:42 +01:00
Cameron McCormack da76f68ddc Bug 1167418 - Check fallible AppendElements call in FontFaceSet. r=poiru 2015-05-27 10:41:11 +10:00
Jonathan Watt 13ebd5c893 Bug 923193, part 4 - Implement support for the 'transform-origin' property in SVG. r=heycam 2015-05-24 22:40:37 +01:00
Daniel Holbert fc985d746e Bug 1167782: Null-check pseudo element in nsHTMLCSSStyleSheet::RulesMatching(). r=dbaron 2015-05-26 16:44:52 -07:00
David Major b0aca35272 Bug 1167189: Cleanup NS_RUNTIMEABORT("OOM") in layout/. r=dbaron
--HG--
extra : rebase_source : 6fab38c5b192978f0a7cbfe88f865d15b6065a42
2015-05-26 17:04:24 -04:00
Jonathan Watt 594403a9a5 Bug 923193, part 3 - Add the style system code to support the 'transform-box' property. r=heycam 2015-05-15 22:43:25 +01:00
Botond Ballo 2e2a504271 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : source : 7468f9a3aa03520a29e138d4df431f0b5d90967c
2015-05-26 14:33:55 -04:00
Morris Tseng cfe882858c Bug 1166969 - Video element in the video document shouldn't be selected. r=roc 2015-05-24 22:50:00 +02:00
Frédéric Wang 2d8a6ecf05 Bug 947654 - Use font.*.x-math font preferences for MathML. r=karl, r=heycam
This also rearranges the list of default fonts and changes the preferred font to Latin Modern Math on all platforms.

--HG--
extra : rebase_source : 806b5f8ffcf5305e55f67c60756c438987646fd5
2015-05-25 02:40:00 +02:00
Phil Ringnalda 49dd872168 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo 9934d127c1 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : rebase_source : 4e915a12ba662ed45788238a5f0a45533888bd92
2015-05-25 20:45:17 -04:00
Nicholas Nethercote 01e0dbf44b Bug 1166598 (part 6) - Clean up nsStaticCaseInsensitiveNameTable. r=froydnj.
This patch simplifies nsStaticCaseInsensitiveNameTable greatly by taking
advantage of the following observations.

- |new| is infallible, so |new nsStaticCaseInsensitiveNameTable()| calls don't
  need their return value checked.

- nsStaticCaseInsensitiveNameTable::Init() checks if any of the added entries
  differ only in case, so the callers of that function don't need to do the
  same check.

- nsStaticCaseInsensitiveNameTable::Init() never returns false because
  moz_xmalloc() is infallible. (Its callers never check the return value
  anyway.) So it can be merged into the constructor. And
  ~nsStaticCaseInsensitiveNameTable() need not null-check |mNameArray|.

- PLDHashTable now has an initializing constructor and destructor, so these can
  be used in nsStaticCaseInsensitiveNameTable, thus avoiding manual
  PLD_HashTable{Init,Finish}() calls.
2015-05-05 21:13:53 -07:00
Phil Ringnalda 83030f8fc0 Merge f-t to m-c, a=merge 2015-05-24 12:15:26 -07:00
J. Ryan Stinnett e1f26b0e50 Bug 1067325 - Control syntax highlighting via a class. r=hsivonen 2015-05-23 18:17:50 -05:00
Phil Ringnalda d63c42b6f0 Back out 2 changesets (bug 1147766) for -Werror bustage
CLOSED TREE

Backed out changeset 10d6fcd9a4e0 (bug 1147766)
Backed out changeset 5754455de846 (bug 1147766)
2015-05-22 20:24:08 -07:00
Cameron McCormack b338e51cf4 Bug 1147766 - Part 2: Replace FixedStyleStructArray with mozilla::RangedArray. r=dbaron 2015-05-23 12:50:44 +10:00
Cameron McCormack ff106a4844 Bug 1147766 - Part 2: Replace FixedStyleStructArray with mozilla::RangedArray. r=dbaron 2015-05-23 12:50:44 +10:00
Cameron McCormack 93417eae1e Backed out changeset a6fa096f9853 and ec1c41143ff6 (bug 1147766) since I messed up the warning fix. 2015-05-23 15:51:14 +10:00
Cameron McCormack 343eb90c2c Bug 1147766 - Part 2: Replace FixedStyleStructArray with mozilla::RangedArray. r=dbaron 2015-05-23 12:50:44 +10:00
Daniel Holbert 1596e3c937 Bug 1167311: When we unprefix 'display:-webkit-box' on a whitelisted site, only set flag to unprefix '-moz-box' if we're parsing a series of declarations. r=dbaron 2015-05-22 12:47:01 -07:00
Kyle Zentner d9185dba03 Bug 1164918 - Allow multiple '.' per cell in grid-template-areas. r=dholbert 2015-05-21 15:28:00 -04:00
Brian Birtles 85627bb281 Bug 1164813 - Make nsAnimationManager update cached in-effect status even when there is no frame; r=dbaron 2015-05-22 13:46:26 +09:00
Eric Rahm 3925a960aa Bug 1165515 - Part 1: Convert PR_LOG to MOZ_LOG. r=froydnj 2015-05-21 13:22:04 -07:00
Nicholas Nethercote e90de3e5e0 Bug 1166586 (part 2) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj.
This patch converts easy cases, i.e. where the PL_DHashTableInit() call occurs
in a constructor and the PL_DHashTableFinish() call occurs in a destructor.

--HG--
extra : rebase_source : d8dc450f80ac23b8455141b471cc9ae823e1e384
2015-05-04 22:59:24 -07:00
Nicholas Nethercote 0fd018143a Bug 1166586 (part 1) - Remove all uses of PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
They're not needed now that there is (temporarily) PLDHashTable2, which has an
initializing constructor and a destructor.

--HG--
extra : rebase_source : 78d3eeb326935ad7a19e3bdf9b2092eb2a4208a7
2015-05-04 22:59:24 -07:00
Kyle Zentner c02e8d6ecf Bug 1164953 - Update CSS grid <line-names> to use brackets instead of parens. r=dholbert
--HG--
extra : rebase_source : 97b67ed32a193d376ac6bd7f652c98b8576293a7
2015-05-19 15:20:00 -04:00
Geoff Brown dd20f0b9ae Bug 1073761 - Increase timeout for test_value_storage; r=dholbert 2015-05-20 06:37:40 -06:00
Brian Birtles 480b79049d Bug 1166164 part 7 - Call pause directly when creating an initially-paused animation; r=jwatt
Now that calling pause from the idle state resolves the current time, we don't
need to worry about calling play first when creating a CSS Animation.

--HG--
extra : rebase_source : d139f32cc655936e197414641d9769e2619d7ade
extra : histedit_source : 8094a211a264cb2b1dcaf6a760e1d6fb9fea4b2b
2015-05-19 15:07:59 +09:00
Brian Birtles e293c228f5 Bug 1166164 part 6 - Make pausing from idle set the current time; r=jwatt, r=smaug
As proposed:

  https://lists.w3.org/Archives/Public/public-fx/2015AprJun/0013.html (item g)

And agreed upon here:

  https://lists.w3.org/Archives/Public/public-fx/2015AprJun/0031.html

--HG--
extra : rebase_source : baca2fa6b9ba94afb1bb3e072e33729774a34f19
extra : histedit_source : 8348f3e8029017dbe380e30dbfc2f66b201beaf0
2015-05-19 14:55:26 +09:00
Brian Birtles f73f30be29 Bug 1166164 part 5 - Make play() throw when it should seek to the end of an infinite effect; r=jwatt, r=smaug
--HG--
extra : rebase_source : dade110e0d071727ed5bfdb694415ae7980f4467
extra : histedit_source : 1d87ee7db7fd0ec9670fff546e4654fa07bf4f31
2015-05-19 14:00:48 +09:00
Brian Birtles 87aaa8fc5f Bug 1164330 - Rename time fraction to (iteration) progress; r=jwatt
--HG--
extra : rebase_source : ca36d4d5dab2d08d42c7daa1e6778cda1408f465
2015-05-13 13:57:35 +09:00
Eric Rahm 4879ae86f4 Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
Ting-Yu Lin 053054ff69 Bug 1068525 - Ignore zoom level for AccessibleCaret. f=mtseng, r=roc
We want AccessibleCaret be of the same size regardless of the zoom
level. We simply divide the caret's width, height, margin-left, and the
text selection bar's margin-left by current zoom level.

The margin-left of the caret is adjusted from -23px to -23.5px for better
looking.
2015-05-16 00:05:00 +08:00
Nicholas Nethercote eab9ff6d25 Back out all four patches from bug 1161377. r=me.
Due to Android startup regressions (bug 1163066) and plugin crashes (bug
1165155).

--HG--
extra : rebase_source : 380f79e67dff4c4eaa2614f286a4d0669666b652
2015-05-14 21:48:43 -07:00
Daniel Holbert 860520a96a (no bug) fix some end-of-line whitespace in nsStyleStruct.h. DONTBUILD, testing CLOSED TREE hook 2015-05-14 10:05:32 -07:00
Ehsan Akhgari 1a03395848 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Cameron McCormack c888a98f5a Bug 1162850 - Don't stop looking for style sheet load finishes after the FontFaceSet gets a DOMContentLoaded. r=jdaggett 2015-05-13 15:06:52 +10:00
Cameron McCormack bf9d92cf41 Bug 1163865 - Remove [Throws] from FontFaceSet.delete. r=smaug 2015-05-13 12:24:34 +10:00
Brian Birtles 3947001236 Bug 1161320 - Fix conflict between finishing and aborting a pause; r=jwatt
Animation::ResumeAt contains an assertion that, when we exit the play-pending
state, checks we either have a resolved start time or a resolved hold time.

That's normally true but if we are aborting a pause on animation that is
finished we can end up with a resolved start time (since we don't clear the
start time when we're aborting a pause) and a resolved hold time (either
because the regular finishing behavior set one, or, because play() applied
auto-rewinding behavior and set it).

In that case we should actually respect the hold time and update the start time
when resuming the animation. However, ResumeAt won't update the start time if it
is already set.

This patch fixes that by clearing the start time in DoPlay in the case where we
are aborting a pause and have a hold time.

--HG--
extra : rebase_source : 83f980d6cbc34375274f30f6527992b4fec7f639
2015-05-08 16:17:13 +09:00
Nicholas Nethercote ba79e01ad2 Bug 1161377 (part 3, attempt 2) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj.
--HG--
extra : rebase_source : 990907701818b7da2b4e8955c419bb61130e266f
2015-05-12 17:33:26 -07:00
Ting-Yu Lin 034c5058c3 Bug 1110039 - Part 2.2 - Add AccessibleCaret. r=roc
See AccessibleCaret.h for the class description.

Technical difference between AccessibleCaret and Touch/SelectionCarets:
The anonymous dom element containing a caret image will be created by
AccessibleCaret by using the API landed in bug 1020244 instead of being
created by nsCanvasFrame.
2015-05-04 21:25:00 +02:00
Eric Rahm e1ce2b6323 Bug 1162673 - Part 1: Remove instances of #ifdef PR_LOGGING in layout. r=froydnj
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-11 13:53:18 -07:00
Jonathan Kew 28d878bacb Bug 1159305 - patch 1 - Provide logical accessors for nsStylePosition and nsStyleSides fields. r=dbaron 2015-05-11 11:35:47 +01:00
Mike Taylor 34a5833776 Bug 1160281 - Add support for -webkit-transform-origin via CSS Unprefixing Service. r=dholbert
--HG--
extra : rebase_source : cfeb214d5e1e49c173aac2bd86ca6a4b15e0a677
2015-05-08 12:28:00 +02:00
Nicholas Nethercote 0323a0a1b5 Backout c375efe78e07 (bug 1161377 part 3) for (probably) increasing the static constructor count and regressing Fennec start-up time. r=me. 2015-05-10 22:16:18 -07:00
Cameron McCormack 45163479b0 Bug 1163446 - Followup to add the actual test. 2015-05-11 12:27:08 +10:00
Cameron McCormack 8f153827fb Bug 1163446 - Drop reference to FontFace once a FontFaceBufferSource is loaded. r=jdaggett 2015-05-11 11:24:49 +10:00
Cameron McCormack 9ee0f2b698 Bug 1163449 - Remove OOM check when creating new nsFontFaceLoader. r=jdaggett 2015-05-11 11:24:48 +10:00
Geoff Brown 4bb32f5282 Bug 1140454 - Skip some tests on Android 4.3 Debug for intermittent failures; r=me,trivial 2015-05-09 20:04:44 -06:00
Cameron McCormack e5aebc613f Bug 1162855 - Traverse FontFaceSet's mUserFontSet's pointer back to the FontFaceSet. r=smaug 2015-05-09 14:48:04 +10:00
Cameron McCormack 184c096a54 Bug 1154148 - Create a FontFaceSet's UserFontSet eagerly. r=jdaggett 2015-05-09 14:46:49 +10:00
Cameron McCormack de60edbd6b Bug 1152647 - Part 2: Ignore requests to add/delete a rule-backed FontFace to/from a FontFaceSet. r=jdaggett 2015-05-09 14:46:31 +10:00
Cameron McCormack 4a5c18c675 Bug 1152647 - Part 1: Test. r=jdaggett 2015-05-09 14:46:22 +10:00
Daniel Holbert 91fe116984 Bug 1162608: Import cssfixme's radial-gradient unprefixing fix into CSSUnprefixingService. r=hallvors
Source:
 https://github.com/hallvors/css-fixme/issues/9
 92d9e44a38
2015-05-08 09:09:00 -07:00
L. David Baron aeb644fc87 Bug 1161049 patch 2 - Add comments reflecting what CanPerformOnCompositorThread doesn't check. r=birtles 2015-05-08 15:56:36 +02:00
L. David Baron 41e16d701f Bug 1161049 patch 1 - Back out changeset 962e15b81684 (part of bug 947753) in order to fix the bug a different way. r=mstange
This patch seems to be leading to too many complications; it requires us
to predict whether a layer that would be created for an element will use
off-main-thread compositing prior to the creation of that layer, which
has led to complications on both Mac (fixed by the other patches in bug
947753) and Android (bug 1161049).
2015-05-08 15:56:36 +02:00
Nicholas Nethercote 17348fdef0 Bug 1161377 (part 3) - Convert some easy PL_DHashTable{Init,Finish} cases. r=froydnj.
This patch converts easy cases, i.e. where the PL_DHashTableInit() call occurs
in a constructor and the PL_DHashTableFinish() call occurs in a destructor.
2015-05-04 22:59:24 -07:00
Nicholas Nethercote 77943547dc Bug 1161377 (part 2) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
They're not needed now that there is an initializing constructor and a
destructor.
2015-05-04 22:59:24 -07:00
Simon Montagu 7125c3b356 Bug 645642: use text-align: match-parent in list items, options and file inputs, r=dbaron 2015-04-28 22:56:22 -07:00
Simon Montagu 28f7cf644c Bug 645642: implement text-align: match-parent, r=dbaron 2015-05-07 11:25:16 -07:00
Daniel Holbert e51467c3d8 Bug 1132748 part 4: Extend CSS unprefixing mochitest to cover -webkit prefixed gradient expressions. (no review) 2015-05-07 09:04:42 -07:00
Daniel Holbert c985dbd7a5 Bug 1132748 part 3: Tweak imported cssfixme code to fit CSSUnprefixingService API. r=hallvors 2015-05-07 09:04:42 -07:00
Daniel Holbert 491e78592b Bug 1132748 part 2: Import cssfixme gradient-unprefixing code. r=hallvors
Source: https://github.com/hallvors/css-fixme/blob/fd91a1e259/cssfixme.htm
2015-05-07 09:04:42 -07:00
Daniel Holbert 07645d8b7d Bug 1132748 part 1: Add CSSUnprefixingService API for handling prefixed gradient expressions, with stub JS implementation. r=dbaron 2015-05-07 09:04:42 -07:00
Daniel Holbert 7788a8ede7 Bug 1162319: Refactor mochitest for CSS Unprefixing Service, to support testcases with different serialization in specified vs. computed style. (no review, test-only) 2015-05-07 09:04:42 -07:00
Boris Zbarsky 7b0970e937 Bug 1161034. Make test_animations_pausing pass even when we're doing mainthread compositing. r=birtles 2015-05-07 11:08:34 -04:00
Tom Tromey 8e26488934 Bug 1152033 - Expose CSS lexer to js. r=heycam, r=bz
--HG--
extra : rebase_source : 1eaabcb6629c185f2e18f27b8c09d9a11611869a
2015-05-04 10:28:00 -04:00
Tom Tromey fb09be63fd Bug 1112014 - Avoid false negatives in CssPropertySupportsType. r=heycam
IGNORE IDL

--HG--
extra : rebase_source : 97bfb3d5faadf2969a317510a909656c809c33ed
2015-05-04 07:39:00 -04:00
Boris Zbarsky 4d0e24cedf Bug 1161036 part 1. Stop setting the layout.css.font-loading-api.enabled preference to true in the test harness. r=heycam
--HG--
rename : layout/style/test/test_animations_async_tests.html => layout/style/test/file_animations_async_tests.html
2015-05-05 13:38:56 -04:00