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

9081 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan c43f5c933c Bug 1260543 followup - Fix the function name in test_transitions_per_property.html. DONTBUILD
MozReview-Commit-ID: CKUpbBhN2KT

--HG--
extra : source : f2327d92b118737c4294ae61bd6d10631f0671ef
2016-04-22 12:01:16 +10:00
Xidorn Quan 1f5f8a54d0 Bug 1260543 - Treat currentcolor as computed value which is not interpolatable with actual color for text-emphasis-color and -webkit-text-fill-color. r=birtles
MozReview-Commit-ID: GUXEDHxOdNC

--HG--
extra : rebase_source : 83f47535dc6f5a1f5fe72f60ba4877ec9a16a6df
2016-04-08 13:43:09 +10:00
Bobby Holley 37c8b13e17 Bug 1266249 - Remove mHasCachedOutline. r=dbaron 2016-04-21 17:44:32 -07:00
Cameron McCormack cd6a2cb8f8 Bug 1266324 - Rename style const macro for unicode-bidi:bidi-override to be consistent with other style consts. r=jfkthame 2016-04-22 10:37:21 +10:00
Xidorn Quan 19931babd5 Bug 1097499 part 8 - Move CountGraphemeClusters to mozilla::unicode. r=emk
MozReview-Commit-ID: J9yR8RPs5u8

--HG--
extra : source : 7b937b3ba984e84da808cd072037726b56da1826
2016-04-22 09:18:41 +10:00
Xidorn Quan 68af7e6457 Bug 1097499 part 4 - Adjust computed value of writing-mode on text frames when text-combine-upright is used. r=heycam
MozReview-Commit-ID: KNRe0ZpzxGr

--HG--
extra : source : dfd24ab49704b6542207aaab5b1283a4db355e60
2016-04-22 09:18:41 +10:00
Xidorn Quan d5599a3104 Bug 1097499 part 3 - Add a separate anonbox for text nodes. r=heycam
MozReview-Commit-ID: 1GfoFEGhyka

--HG--
extra : source : 38b806fd0fa54934439db0de75600def43142272
2016-04-22 09:18:41 +10:00
Xidorn Quan 747a0b5474 Bug 1097499 part 2 - Add a macro to simplify usage of nsStyleContext::GetUniqueStyleData. r=heycam
MozReview-Commit-ID: IS8KUbkXp8m

--HG--
extra : source : 5ee7bfeb7ceafcfff6c0bbd90507ed0b7b8de351
2016-04-22 09:18:41 +10:00
Xidorn Quan b1521c643f Bug 1097499 part 1 - Control support of 'text-combine-upright: digits' via a separate pref. r=heycam
MozReview-Commit-ID: JerTsxaQCL4

--HG--
extra : source : 999d1d2997591935fa1259fa42a91658da8ee078
2016-04-22 09:18:41 +10:00
Bobby Holley 1c7f68df06 Bug 1258017 - Cleanup fixes for trunk. r=me 2016-04-21 13:56:40 -07:00
Daniel Holbert 9191a8ed82 Bug 1266248 part 2: Add assertion to verify that MapSinglePropertyInto() isn't called with a logical target-property. r=heycam
(This commit is effectively re-landing an assertion from changeset c1e9d6224c5a, aka bug 1208344 part 4. The rest of that patch is no longer needed, but this assertion is still useful.)

MozReview-Commit-ID: 7v5IwzS2CtP
2016-04-21 11:43:26 -07:00
Daniel Holbert 74158d9a7f Bug 1266248 part 1: Rename MapSinglePropertyInto() args, to make src-vs-target distinctions clearer. r=heycam
(This commit is effectively re-landing changeset b3a36d79154f, aka bug 1208344 part 3. This re-landed version of the patch simply has unbitrotting fixes for indentation changes.)

MozReview-Commit-ID: BszOC5wyvBA
2016-04-21 11:43:24 -07:00
Kartikaya Gupta 156fd531bc Bug 1266288 - Track changes to all margin properties for scroll-linked effects. r=mstange
MozReview-Commit-ID: D0wN1TdFdtM

--HG--
extra : rebase_source : 227cc71e5ffa3d980435de2e6ea9074d9cec4667
2016-04-21 11:41:17 -04:00
Mats Palmgren 784d6b392f Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert 2016-04-21 16:18:34 +02:00
Brian Birtles 383f4aa97c Bug 1265611 - Add tests for CSS animations; r=heycam
MozReview-Commit-ID: LTnRxQixqzJ
2016-04-21 17:05:47 +09:00
Brian Birtles 825d83d3fc Bug 1265611 - Don't trigger transitions for properties that are disabled; r=heycam
Currently if we have transition-property: 'all' and trigger a transition
on the 'color' property we will end up generating a transition on
-webkit-text-fill-color even if that property is disabled.

However, when we later call StyleAnimationValue::ToValue() in
nsTransitionManager::UpdateTransitions() to see if there are any transitions we
need to cancel, the comparison for currentValue != anim->ToValue() will pass
(since, as of the first patch in this patch series, ToValue() returns a null
value) so we end up cancelling the transition as soon as we create it).

Nevertheless, we will still trigger the warning introduced in the first patch
in this series when we call ToValue().

This patch stops us from creating transitions in the first place (and hence
triggering the warning). It also removes the code that suppresses transition
events for transitions on disabled properties since we should no longer be
generating such transitions in the first place (unless the pref is switched
while the transition is in motion which is probably not worth worrying about).

Note that we only test if the property is enabled for all content. This is
consistent with what we do throughout animation code including the existing
code in nsTransitionManager which iterates through shorthand sub-properties
using CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES with the flag
nsCSSProps::eEnabledForAllContent.

The test case in this patch doesn't actually fail without this change, all it
does it trigger the warning in StyleAnimationValue::ToValue() introduced
in the first patch in this series. It's still a useful regression test however,
particularly if we later upgrade the warning in StyleAnimationValue::ToValue()
to a fatal assertion.

MozReview-Commit-ID: H9swDKLyiOf
2016-04-21 17:05:46 +09:00
Brian Birtles 135b397103 Bug 1265611 - Crashtest; r=heycam
I have verified that without the fix in the first patch in this series this
test fails, but passes with the fix applied.

MozReview-Commit-ID: JmncnapbVLa
2016-04-21 17:05:46 +09:00
Brian Birtles 99ba8fd7de Bug 1265611 - Make TransitionProperty() and ToValue() safe when mProperties is not set; r=heycam
MozReview-Commit-ID: KIzE5jdvPfT
2016-04-21 17:05:46 +09:00
Daniel Holbert ad9794f615 Bug 1262049 part 2: Add -webkit-box-orient & -webkit-box-direction as aliases for -moz versions, in the style system (but not yet honored by flexbox layout). r=mats
MozReview-Commit-ID: 3WFB2cdXlNQ
2016-04-20 16:43:24 -07:00
Daniel Holbert dfb1c4c768 Bug 1262049 part 1: Back out bug 1208344 in its entirety, and mark -webkit-box-orient:vertical reftests as failing (for now). (no review)
This patch backs out changeset range 1f1884449dd4:0b5ed5e4a395 (all of the patches for bug 1208344) -- i.e. it backs out our support for "-webkit-box-orient".  This patch also adds "fails" annotations to two reftests that depend on that feature, to reflect reality that these tests are now expected to fail (for the moment).

MozReview-Commit-ID: F8zGGg8R0Rn
2016-04-20 16:43:24 -07:00
Daniel Holbert ed653d2220 Bug 1264787: Make nsCSSValue's AdoptListValue & AdoptPairListValue methods take a UniquePtr. r=heycam
MozReview-Commit-ID: 94aYEtySHsW
2016-04-20 10:37:06 -07:00
Mantaroh Yoshinaga 1a3a4d293d Bug 1259285 - Part1 - Move CSS/Web Animations-specific visibility handling. r=birtles
MozReview-Commit-ID: 5ZYUhvI1cqV

--HG--
extra : transplant_source : %85%01%5C%91%EB%C2%F9%F5a%82%5C%FCZKz%F7%2B%27%F7%9C
2016-04-20 09:05:29 +09:00
Jonathan Watt 8f6a52b6e5 Bug 1110460, part 8 - Support CSS animation of clip-path basic shapes. r=dholbert 2016-04-18 23:04:20 +01:00
Jonathan Watt 7d58efd0ec Bug 1110460, part 7 - Factor out code for adding two nsCSSValuePairList lists. r=dholbert 2016-04-15 13:28:32 +01:00
Mats Palmgren fd41a201a0 Bug 1265001 part 2 - Add some tests with uppercase N in An+B. 2016-04-19 22:12:16 +02:00
Mats Palmgren a41484d473 Bug 1265001 part 1 - Accept uppercase N when parsing An+B. r=heycam 2016-04-19 22:12:16 +02:00
L. David Baron b1db407049 Bug 1265591 patch 2 - Rename nsIPresShell::ReconstructStyleData to RestyleForCSSRuleChanges. r=heycam
MozReview-Commit-ID: BU3X0fBEKE3
2016-04-19 11:38:35 -07:00
Matteo Ferretti 3837790c7f Bug 1168113 - Anonymous custom content container should use absolute position. r=xidorn
MozReview-Commit-ID: JkfqzK6BsdE

--HG--
extra : rebase_source : 61a05f4ac4d030ecd266d44ea698a5fc1a9aac1a
2016-04-19 22:22:57 +08:00
CJKu f530904493 Bug 1261578 - Part 2. Correct text decoration color; r=jfkthame
MozReview-Commit-ID: LfZnmTnL5KY

--HG--
extra : rebase_source : 1bb95f3a8b59c2897f55e1f17ee8168366ca1cf5
2016-04-19 17:09:54 +08:00
CJKu ecc0333324 Bug 1261578 - Part 1. Correct text color in selection range; r=jfkthame
MozReview-Commit-ID: 9gBWQ00MtNC

--HG--
extra : rebase_source : a0ad39cd6e887926ce6d633b49d1fd936d91a797
2016-04-19 17:09:42 +08:00
CJKu a31594bc4d Bug 1264949 - crash test; r=jfkthame
MozReview-Commit-ID: 34wrJ2Qq4ch

--HG--
extra : rebase_source : 89b760fa361f517cc3f006a1e54c594fd30982cd
2016-04-19 13:41:14 +08:00
Cameron McCormack e5525cb6d8 Bug 1264830 - Part 5: Require all style structs be memmovable. r=bholley 2016-04-19 09:51:16 +10:00
Cameron McCormack 3e8238a070 Bug 1264830 - Part 4: Change nsStyleDisplay::mWillChange to use nsTArray. r=bholley
The initial value of nsStyleDisplay::mWillChange is represented by an
empty array, and will-change is not so common, so we change it to use an
nsTArray.
2016-04-19 09:51:16 +10:00
Cameron McCormack ce928d01ad Bug 1264830 - Part 3: Change nsStyleDisplay::{mTransitions,mAnimations} to use nsStyleAutoArray. r=bholley
nsStyleDisplay::{mTransitions,mAnimations} both always have at least one
element in it, so we change them to use nsStyleAutoArray rather than
nsTArray.
2016-04-19 09:51:16 +10:00
Cameron McCormack e7ae67f825 Bug 1264830 - Part 2: Change nsStyleImageLayers::mLayers to use nsStyleAutoArray. r=bholley
nsStyleImageLayers::mLayers always has at least one element in it, so we
change it to use nsStyleAutoArray rather than nsTArray.
2016-04-19 09:51:16 +10:00
Cameron McCormack 25fd6bca14 Bug 1264830 - Part 1: Add an nsStyleAutoArray array type, similar to AutoTArray<...,1> but memmovable. r=bholley
Existing uses of AutoTArray in style structs makes them non-memmovable.
We introduce this AutoTArray-alike class for use by those style struct
members that really do need to use an auto array's built-in allocation.
2016-04-19 09:51:15 +10:00
CJKu 1f80f6d497 Bug 1265154 - Fix compile error in MSVC 2013 caused by ArrayLength; r=heycam
MozReview-Commit-ID: DvyCNwTRiI7
2016-04-18 11:31:24 +08:00
Hiroyuki Ikezoe ec2666697b Bug 1263063 - Part 2: Add an assertion to ensure that iteration count is nonnegative and finite. r=dholbert
MozReview-Commit-ID: JvVaCVQAxW4

--HG--
extra : rebase_source : 3dbb36e471ec3354d5a060fb87dce006efc77994
2016-04-14 19:36:01 +09:00
Brian Birtles 658dbcfecc Bug 1264396 - Don't allow animation of 'display' property; r=heycam
MozReview-Commit-ID: HOVHXfoFv5l
2016-04-15 13:18:12 +09:00
Ting-Yu Lin 35c5e05787 Bug 1264533 - Correct the universal selector for summary to include all namespaces. r=bz
MozReview-Commit-ID: 7jtNayMA1CY

--HG--
extra : rebase_source : a1313ad90cbaefbeb8bce0c34a97e9b10663ca52
2016-04-14 14:27:52 +08:00
Jonathan Watt 2b1a2fcbe3 Bug 1264317 - Make the basic shape clip-path clipping use nsCSSValue::Array instead of nsCSSValueList. r=dholbert 2016-04-11 08:23:12 +01:00
CJKu 1cbaa6fc28 Bug 759568 - Part 4. mochitest for background-clip:text; r=heycom
MozReview-Commit-ID: 8DrBq8nNWfu
2016-04-14 16:28:07 +08:00
CJKu d2552e50a5 Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycam
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 16:28:06 +08:00
Carsten "Tomcat" Book ff1d585b2e Backed out changeset b68e6d1cf93a (bug 759568) for reftest failures 2016-04-14 08:57:57 +02:00
Carsten "Tomcat" Book fb0c59ae9f Backed out changeset 2d26ad2b9a09 (bug 759568) 2016-04-14 08:57:38 +02:00
Cameron McCormack c5e251b3b9 Bug 1247182 - Add an nsCSSRuleProcessor constructor that takes ownership of the given sheet array. r=birtles 2016-04-14 16:02:44 +10:00
CJKu 8866c08be5 Bug 759568 - Part 4. mochitest for background-clip:text; r=heycom
MozReview-Commit-ID: 8DrBq8nNWfu
2016-04-14 12:45:38 +08:00
CJKu eb3d4dc948 Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 12:45:37 +08:00
Cameron McCormack f892fa1b76 Bug 1247150 - Consistently use StyleSheetHandle::RefPtr* for outparams in nsLayoutStylesheetCache. r=dholbert 2016-04-14 09:55:47 +10:00
Cameron McCormack e08874be17 Bug 1264238 - Part 2: Sort nsCSSPropList.h entries. r=dholbert 2016-04-14 09:55:47 +10:00
Cameron McCormack c551f5828e Bug 1264238 - Part 1: Remove unused CSS_PROP_STUB_NOT_CSS macro. r=dholbert 2016-04-14 09:55:47 +10:00
Amit Chandra 8af819ed60 Bug 1262646 - Change the outparams passed to nsStyleUtil::AppendEscapedCSSString from nsString to nsAutoString. r=dholbert
MozReview-Commit-ID: AKaUMuwZLQu
2016-04-12 15:19:12 -07:00
Ting-Yu Lin 7379c19c84 Bug 1258657 Part 1 - Change summary default style to "display: list-item" to match html spec. r=bz
Per html spec, the disclosure triangle can be generated via "display:
list-item", I removed the code to generate the triangle in
SummaryFrame::SetInitialChildList(). That is, when a web page set
"display: block" to the summary, the triangle will disappear, too.

Now SummaryFrame does nothing and is going to be removed in Part 2.

Also summary element should not increment the counter as hinted as
"counter-increment: list-item 0" in the spec. Hence the change in
nsBlockFrame::RenumberListsFor().

The rendering hint in html spec:
https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements

MozReview-Commit-ID: DELGYFe3zGX

--HG--
rename : layout/reftests/details-summary/open-summary-block-style.html => layout/reftests/details-summary/open-summary-block-style-ref.html
extra : rebase_source : 4bd5493fb6a1108eea31aef1d89f563f781b753f
2016-04-13 13:34:14 +08:00
Jonathan Watt c14becf2d4 Bug 1110460, part 6 - Make StyleAnimationValue support css::URLValue backed nsCSSValue objects. r=dholbert 2016-04-07 22:30:12 +01:00
Jonathan Watt 5a146b5f32 Bug 1263962 - Expand on the StyleAnimationValue::ExtractComputedValue documentation. r=dholbert 2016-04-01 21:50:08 +01:00
Jonathan Watt 825baa7013 Bug 1263962 - Revert previous commit (f996f81bb492) for including unrelated changes. r=me 2016-04-01 21:47:39 +01:00
Jonathan Watt 802741bc7e Bug 1263962 - Expand on the StyleAnimationValue::ExtractComputedValue documentation. r=dholbert 2016-04-01 21:37:01 +01:00
Sebastian Hengst 2a9bc780d3 Backed out changeset 7ec8bfb9bbd4 (bug 759568) for failures in test_all_shorthand.html and more. r=backout 2016-04-12 17:55:52 +02:00
Sebastian Hengst 23c878d44a Backed out changeset 82179839a88c (bug 759568) 2016-04-12 17:55:28 +02:00
CJKu 02dad989ae Bug 759568 - Part 4. mochitest for background-clip:text; r=heycom
MozReview-Commit-ID: 8DrBq8nNWfu
2016-04-12 21:58:23 +08:00
CJKu a5da82483b Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-12 21:58:21 +08:00
Jonathan Watt 9480920b04 Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku 2016-03-31 12:46:32 +01:00
Boris Chiou 943d93e831 Bug 1182856 - Part 7: Test. r=cam
--HG--
extra : rebase_source : 334b585bb90b505ffbe37281eed00b44057d4a29
2016-04-07 02:11:00 +02:00
Boris Chiou 92e405bc20 Bug 1182856 - Part 6: Revise tests for display:none in test_transitions.html. r=heycam
--HG--
extra : rebase_source : cbf659d22ce0906f553b3cbea487ed50bef9b225
2016-04-11 00:25:00 +02:00
Boris Chiou 91b7c6e313 Bug 1182856 - Part 5: Avoid unnecessary transition update if display:none. r=heycam
--HG--
extra : rebase_source : 044ab18d5e26e56179bebe1721f19125f6167b3d
2016-04-12 01:55:00 +02:00
Boris Chiou 2224c763ce Bug 1182856 - Part 4: Refactor code in nsTransitionManager::StyleContextChanged(). r=heycam
--HG--
extra : rebase_source : 259dd969ce8b1629536c600994e368805643e735
2016-04-12 01:53:00 +02:00
Boris Chiou 2215896161 Bug 1182856 - Part 1: Add StopTransitionsForElement. r=heycam
Add a new API in nsTransitionManager, so we can cancel transitions for a
specific element easily. The purpose of this API is for cancelling transitions
without dispatching the event.

--HG--
extra : rebase_source : 07483aebb8513dcd39c5e1805480dcbe6d3945b3
2016-04-10 21:25:00 +02:00
Cameron McCormack 6b84ca3abb Bug 1261754 - Part 12: Move filter from nsStyleSVGReset to nsStyleEffects. r=dholbert 2016-04-12 15:52:43 +10:00
Cameron McCormack 672aaef5a4 Bug 1261754 - Part 11: Move opacity from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:43 +10:00
Cameron McCormack 0ef9faa708 Bug 1261754 - Part 10: Move mix-blend-mode from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack c2126abc67 Bug 1261754 - Part 9: Move clip from nsStyleDisplay to nsStyleEffects. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack 0718df89c3 Bug 1261754 - Part 8: Move box-shadow from nsStyleBorder to a new nsStyleEffects struct. r=dholbert 2016-04-12 15:52:42 +10:00
Cameron McCormack 6f4ce86293 Bug 1261754 - Part 7: Move pointer-events from nsStyleVisibility to nsStyleUserInterface. r=dholbert 2016-04-12 15:52:41 +10:00
Cameron McCormack cb363fa1df Bug 1261754 - Part 6: Move vertical-align from nsStyleTextReset to nsStyleDisplay. r=dholbert 2016-04-12 15:52:41 +10:00
Cameron McCormack d7db2f5ade Bug 1261754 - Part 5: Move text-rendering from nsStyleSVG to nsStyleText. r=dholbert 2016-04-12 15:52:41 +10:00
Cameron McCormack 5bd6866210 Bug 1261754 - Part 4: Move image-rendering from nsStyleSVG to nsStyleVisibility. r=dholbert 2016-04-12 15:52:40 +10:00
Cameron McCormack 6883fc4b42 Bug 1261754 - Part 3: Move quotes from nsStyleQuotes to nsStyleList and delete nsStyleQuotes. r=dholbert 2016-04-12 15:52:40 +10:00
Cameron McCormack d340c36d57 Bug 1261754 - Part 2: Make quotes computed values shareable between different structs. r=dholbert 2016-04-12 15:52:40 +10:00
Cameron McCormack cde55115b7 Bug 1261754 - Part 1: Improve static assertions for style struct bits. r=dholbert 2016-04-12 15:52:39 +10:00
Edgar Chen 0412b0b8c4 Bug 1237633 - Part 1: Percentages are not allowed in a <source-size-value>. r=jdm
MozReview-Commit-ID: E7XUZzq3jr1

--HG--
extra : rebase_source : 3eb2c291658b481b6305912da1314b2435369520
extra : histedit_source : 5eec35e16eb10beaed74968500b9735e1d196e72
2016-03-30 16:31:09 +08:00
Xidorn Quan ee9b377d01 Bug 1236828 part 3 - Allow setting position: absolute for top layer element and add test. r=heycam
MozReview-Commit-ID: 9BMGe88eq6g

--HG--
extra : rebase_source : ee9168f650f5d91725f16baecc6923c4883e6988
2016-04-11 15:58:10 +10:00
Cameron McCormack 7b70aa2a8c Bug 1261265 - Fix nsStyleContext::MoveTo flag assertions to allow mismatch on parents if bit is set on child. r=dholbert 2016-04-11 16:22:05 +10:00
Christoph Kerschbaumer 52a7f283b3 Bug 1256999 - Pass the right context to new channels for image loads. r=bz r=seth 2016-04-11 10:58:03 +02:00
Brian Birtles 344398e8f8 Bug 1260983 - Update animation properties when the style context changes; r=heycam
MozReview-Commit-ID: L4ugcD7BxNX
2016-04-01 09:31:51 +09:00
Brian Birtles 0daeae8037 Bug 1260976 - Remove some references to properties within nsTransitionManager; r=heycam
Although we know that the animation properties will always be filled in for
a transition in the cases where we need to query them (going forward we will
have a situation where an animation may only have frames, not properties, but
that will only happen when the animation isn't attached to an element or the
element is not attached to a document, but we don't run animations in that case
and cancel existing ones when we enter that state so although they *can* enter
that state, we'll never run these methods on them when they do), we still want
to move towards making frames the primary unit for interacting with animation
values since frames always exist and represent the public interface.

Ultimately it would be good to make the properties array on
a KeyframeEffect(ReadOnly) an encapsulated detail so that we can freely change
their structure (e.g. segments might not be the best setup, it might be better
to just have arrays of free-standing values to avoid the duplication of
values when segments are continuous).

This patch removes or encapsulates a few references to properties and
simplifies the code at the same time.


MozReview-Commit-ID: 3II36SYVoRE
2016-04-01 09:28:35 +09:00
Brian Birtles 093147a402 Bug 1260976 - Make nsTransitionManager use Keyframe objects to set up transitions; r=heycam
MozReview-Commit-ID: KHqoMELYyzQ
2016-04-01 09:27:57 +09:00
Brian Birtles 9552e36446 Bug 1260655 - Drop some no-longer-needed code for setting up CSS animations using AnimationProperty objects; r=heycam
MozReview-Commit-ID: JDzvQIxlsX6
2016-03-30 13:01:20 +09:00
Brian Birtles 8b6a1ba8ad Bug 1260655 - Use CSSAnimationBuilder::BuildAnimationFrames to set up CSS animations using Keyframe objects; r=heycam
MozReview-Commit-ID: BMLvYP8iIIa
2016-03-30 13:01:13 +09:00
Brian Birtles 17eaaf92c8 Bug 1260655 - Add methods to CSSAnimationBuilder to build a set of Keyframe objects; r=heycam
We will call this method in the next patch in this series.

MozReview-Commit-ID: E8QnGOIt91
2016-03-30 12:59:33 +09:00
Brian Birtles 26f427b48b Bug 1260655 - Allow StyleAnimationValue::UncomputeValue to produce values whose storage is independent of the passed-in computed value; r=heycam
When we go to switch CSS Animations over to using
KeyframeEffectReadOnly::SetFrames we will need a way to represent any filled-in
from/to values as nsCSSValue objects. These objects are built from the current
computed style. We currently use StyleAnimationValue::ExtractComputedValue for
this which returns a StyleAnimationValue. In order to convert this to an
nsCSSValue we can use StyleAnimationValue::UncomputeValue. However, in some
cases, the nsCSSValue objects returned by that method are dependent on the
passed-in StyleAnimationValue object.

This patch adds an overload to UncomputeValue that takes an rvalue
StyleAnimationValue reference and produces an nsCSSValue that is independent
of the StyleAnimationValue through a combination of copying data and
transferring ownership of data.

This patch also adjusts the return value for the case of filter and shadow
lists when the list is empty so that we return a none value in this case.
These are the only list types which are allowed to have a null list value.
Not only does this produce the correct result when these values are serialized
(the initial value for 'filter', 'text-shadow', and 'box-shadow' is 'none') it
also means that UncomputeValue should never return an nsCSSValue whose unit is
null which is important because when we later pass that value to BuildStyleRule
it will treat a null nsCSSValue as an error case (specifically, "longhand failed
to parse").

MozReview-Commit-ID: 4RoCn39ntiJ
2016-03-30 12:39:59 +09:00
Brian Birtles a9d4b99d8d Bug 1260572 - Replace AnimValuesStyleRule::AddEmptyValue with an overload of AddValue that takes an rvalue reference; r=heycam
In the next patch in this series, we would like to update the error handling of
the call to StyleAnimationValue::Interpolate in
KeyframeEffectReadOnly::ComposeStyle. Using AnimValuesStyleRule::AddEmptyValue
there, however, makes handling the error case difficult because we need a means
of clearing the allocated StyleAnimationValue.

However, simply using AnimationValuesStyleRule::AddValue means we will end up
doing needless allocations for StyleAnimationValue objects (the copy
constructor for which can result in performing potentially expensive heap
allocations, such as when lists are deep-copied).

Instead, we add a Move constructor to StyleAnimationValue and add an overload
of AnimValuesStyleRule::AddValue that takes an rvalue reference. This
provides a more consistent interface to AnimValuesStyleRule and avoids the
unnecessary allocations from copying StyleAnimationValue objects.

MozReview-Commit-ID: CaP1uPAgNnm
2016-03-30 08:59:01 +09:00
Bobby Holley 9a4350598d Bug 1261552 - Add FFI hooks to construct, copy, and destroy gecko style structs from servo. r=heycam 2016-04-04 23:14:31 -07:00
Bobby Holley a5883b607d Bug 1261552 - Introduce StyleStructContext, and make all style struct constructors take it. r=heycam 2016-04-04 23:14:29 -07:00
Bobby Holley 479711a580 Bug 1261552 - Introduce StaticPresData and hoist some shared functionality into it. r=heycam
The complexity around the font pref cache stuff is really annoying. If we
think it's unnecessary, we could remove it in a followup.
2016-04-04 23:14:27 -07:00
Bobby Holley 9e30bdaebc Bug 1261552 - Reimplement default placement-new for style structs. r=heycam
We require a pointer of the class type, rather than void*, to reduce
the risk of accidentally calling this overload instead of the PresContext
one.
2016-04-04 23:14:26 -07:00
Jeremy Chen 49cb886e74 Bug 1261568 - part1: take -webkit-text-fill-color into consideration while
building displaylist for text frame. r=jfkthame

--HG--
extra : commitid : 6qd1b5QuedD
extra : rebase_source : 4a445ebb92610944ad1b131fb4ba262d4b3cfc8b
2016-04-05 12:35:44 +08:00
Daniel Holbert 1089cfca11 Bug 1257688 part 5: Change "-webkit-box-flex" to alias its -moz equivalent, & change nsFlexContainerFrame to use it instead of flex-shrink & flex-grow in a -webkit-box. r=mats
MozReview-Commit-ID: DMA8cAoYMWq
2016-04-04 18:32:12 -07:00
Daniel Holbert 660ffa5f39 Bug 1257688 part 3: Change "-webkit-box-ordinal-group" to alias its -moz equivalent, & change nsFlexContainerFrame to respect it in a -webkit-box. r=mats
MozReview-Commit-ID: DMB8dk0q11T
2016-04-04 18:32:12 -07:00
Daniel Holbert 0394b69896 Bug 1257688 part 1: Change "-webkit-box-pack" & "-webkit-box-align" to alias their -moz equivalents, & change nsFlexContainerFrame to respect them in a -webkit-box. r=mats
MozReview-Commit-ID: HtwVbtaVf8v
2016-04-04 18:32:12 -07:00
Ting-Yu Lin 7b794c38a3 Bug 1259889 Part 2 - Load html.css lazily for pref changes. r=heycam
We need to re-evaluate html.css whenever "dom.details_element.enabled"
is changed to make the disclosure triangle for summary elements show up.
Reftests for details and summary will need the a live pref to work.

MozReview-Commit-ID: 9SN1fQBuwA7

--HG--
extra : rebase_source : c8eafde9d3a97908c44099219603f76087d484b9
2016-04-01 21:11:11 +08:00
Ting-Yu Lin 219e330768 Bug 1259889 Part 1 - Add @supports -moz-bool-pref for internal-only style sheets. r=heycam
This is a internal-only syntax for guarding rules from a boolean
preference. Nothing causes @supports rules to be re-evaluated except
html.css registered in Part 2.

This is needed for rendering the disclosure triangle of the
summary element by using "display: list-item".

Usage example:
@supports -moz-bool-pref("dom.details_element.enabled") {
  /* css rules */
}

MozReview-Commit-ID: HDCa8zHxYTA

--HG--
extra : rebase_source : b7a72a48166edf1d486014ff37363ed8be9127d9
2016-04-01 21:11:11 +08:00
Tobias Schneider 910b79dd54 Bug 1209273 - Part 1: Support for adjust-color CSS property. r=dbaron 2016-03-08 09:25:24 -08:00
Martijn Wargers 6cf6655ddf Bug 1249061 - Improve property/attribute handling for marquees. r=smaug 2016-04-01 14:24:48 +02:00
Daisuke Akatsuka defd7710ef Bug 1248532 - Part 2: Add tests for step-start. r=birtles
MozReview-Commit-ID: CIFKnlIF2hk

--HG--
extra : transplant_source : %B22d%D7%CDaZ%AC%FD%7D%F3%B1h%A6%BFtS.%91%B0
2016-04-01 14:01:55 +09:00
Daisuke Akatsuka 6c89bdf21b Bug 1248532 - Part 1: steps-start does not produce correct value at the beginning of the interval. r=birtles
MozReview-Commit-ID: F9b1HCfEqU6

--HG--
extra : transplant_source : %22xJ1%EBa%D6%7D%87%03%B84%2A5%CA9%93N%8A%16
2016-04-01 14:00:57 +09:00
Carsten "Tomcat" Book dc337845d1 Backed out changeset d5a9ff0ae110 (bug 1209273) for test failures in browser_rules_completion-new-property_02.js 2016-04-01 11:58:12 +02:00
Tobias Schneider af80c17051 Bug 1209273 - Part 1 - Support for color-adjust CSS property. r=dbaron 2016-03-10 10:51:00 +01:00
Nicholas Nethercote d376f9f82e Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
do_GetAtom() is currently just a synonym for NS_NewAtom().

--HG--
extra : rebase_source : f4409784f931616cbc300591e6b843d30805c273
2016-03-29 10:09:43 +11:00
Mats Palmgren 7b5cb65169 Bug 1025267 - Make some -moz- prefixed pseudo-classes chrome-only. r=bz 2016-04-01 02:08:15 +02:00
Carsten "Tomcat" Book 1696ce6feb Backed out changeset 073149564592 (bug 1209273) for causing merge conflicts to m-c
--HG--
extra : rebase_source : 0f07112a39ed369f38cf7d78a2e2424b5ae76825
2016-03-30 15:19:37 +02:00
Bobby Holley 3831864b3d Bug 1260310 - Create servo style contexts from ServoStyleSet. r=heycam 2016-03-29 22:16:38 -07:00
Bobby Holley 57b406bba3 Bug 1260310 - Generalize nsStyleContext to support resolving styles from either nsRuleNode or ServoComputedValues. r=heycam 2016-03-29 22:16:35 -07:00
Tobias Schneider 54290c6564 Bug 1209273 - Part 1 - Support for color-adjust CSS property. r=dbaron 2016-03-10 10:51:00 +01:00
Bobby Holley 3836b7c35b Bug 1258017 - Redesign and simplify rule tree GC. r=dbaron
The basic idea here is as follows:
* Rule nodes are reference-counted, but releasing them adds them to a linked
  list rather than freeing them. This allows for the reuse that motivated the
  original GC scheme.
* We get rid of the marking, and instead rely on the reference count.
* Sweeping no longer requires a complicated traversal. We just pop items
  off the free list until it's empty. When a child is destroyed, its parent
  may go onto the free list.
* We remove special handling for the root node, and use a regular reference-counted
  edge from the style set.
* The free list automatically asserts that it's empty (meaning all nodes have been
  freed) in its destructor, which runs when the style set is destroyed.
* We get rid of the list of style context roots on the style set. We still need
  a count though, because of the HasCachedStyleData check.
2016-03-28 08:59:22 -07:00
Bobby Holley d595820a75 Bug 1258017 - Use a RefPtr to hold onto the parent style context. r=dbaron 2016-03-28 08:59:21 -07:00
Bobby Holley 69d08c6cad Bug 1258017 - Use an nsCOMPtr to hold onto the nsIStyleRule. r=dbaron 2016-03-28 08:59:20 -07:00
takayuki_yamaguchi da0885219b Bug 1259675 - Clean up InternalTransitionEvent r=masayuki
MozReview-Commit-ID: 8fTJ4Z9yJGl

--HG--
extra : rebase_source : 7c461ee6124e4e7cce0a709b3dfe2c97c6df9e8f
2016-03-26 16:26:35 +09:00
Rob McAuley 4acbe0650b Bug 1244640 - implement AnimationEffectTiming iterations r=hiro
MozReview-Commit-ID: Iwq6vleUERo

--HG--
extra : rebase_source : 8eef9f68a8956db547f98ab253927cf01a3ecf50
2016-03-26 14:41:37 +09:00
Tetsuharu OHZEKI 34d28e65df Bug 1259676 - part3: rename from 'InternalAnimationEvent.pseudoElement' to 'InternalAnimationEvent.mPseudoElement'. r=masayuki
MozReview-Commit-ID: GBJtFdobipj

--HG--
extra : rebase_source : 528abb3d04e52547e6c4e13ea396e080406008b1
2016-03-26 13:37:20 +09:00
Tetsuharu OHZEKI 3aeb31cf0f Bug 1259676 - part2: rename from 'InternalAnimationEvent.elapsedTime' to 'InternalAnimationEvent.mElapsedTime'. r=masayuki
MozReview-Commit-ID: 4n5YQwxLeAx

--HG--
extra : rebase_source : 6c29d53092c7d1f84ef2ad38f44380c7579df270
2016-03-26 13:37:19 +09:00
Tetsuharu OHZEKI 693106452d Bug 1259676 - part1: rename from 'InternalAnimationEvent.animationName' to 'InternalAnimationEvent.mAnimationName'. r=masayuki
MozReview-Commit-ID: DK5Q477WoXu

--HG--
extra : rebase_source : 59f061c7835b6e2359ca937a06cf3890871a70ea
2016-03-26 13:37:19 +09:00
Cameron McCormack 72db41da62 Bug 1253788 - Don't reload inline chrome:// style sheets in nsXBLPrototypeResources. r=bzbarsky 2016-03-26 17:02:30 +11:00
Brendan Dahl 3c24d63475 Bug 1256084 - Don't force reflow on size mode change. r=heycam 2016-03-23 17:56:00 -04:00
Emilio Cobos Álvarez 218d5cde79 Bug 1259802: Add type replacement annotations to simplify rust binding generation for nsStyleStruct.h, r=bholley
This way or bindings are sane, and we don't have to bring in a lot of
the gfx code.
2016-03-25 11:46:21 -07:00
Bobby Holley 4639af5cdb Bug 1259677 - nsRuleNode passes wrong hash key to PLDHashTable when converting child list into child hash. r=bz 2016-03-25 09:52:50 -07:00
Jeremy Chen ca58c7482d Bug 1247777 - Part4.2: add compatible webkit prefixed properties in
CSS properties ordering check test. r=bz

--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:50 +08:00
Jeremy Chen b28e75fd40 Bug 1247777 - Part4.1: replace windows-style line endings with unix-style line endings. r=bz
This commit only replace windows-style line endings w/ unix-style ones.
"git diff -w" would see no difference in this commit.

--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:50 +08:00
Jeremy Chen 4134ed5760 Bug 1247777 - Part1: parse and compute -webkit-text-fill-color property. r=heycam
--HG--
extra : commitid : 3L1KflCYhR3
2016-03-25 15:54:49 +08:00
Daniel Holbert 2b7c7ca3d2 Bug 1236400 part 3: If webkit prefix support is enabled, skip CSS Parser code that converts "display: -webkit-box" directly to "display: flex". r=mats
This makes "display: -webkit-box" & "display: -webkit-inline-box" into bona
fide "display" values (instead of just aliases), when webkit prefix support is
enabled, and allows us to actually exercise the code added in the earlier
patches on this bug. (Note that when webkit prefix support is *disabled*, our
CSS Unprefixing Service strategy will instead have an opportunity to take
effect, for whitelisted sites, and it'll continue to convert "-webkit-box" to
"flex".)

MozReview-Commit-ID: BV93xs4ddbK
2016-03-24 09:55:11 -07:00
Daniel Holbert 37e8c9d5cc Bug 1236400 part 1: Add internal enum values to represent "display: -webkit-box" & "display: -webkit-inline-box". r=mats
These new enum values are added with same behavior as their modern flexbox
equivalents -- they're hooked up to NS_NewFlexContainerFrame, and they're
listed alongside the modern flexbox enums in 'switch' & 'if' statements.

There's one exception, which I call out with a comment at the end of the patch:
we don't treat -webkit-box the same as flexbox in IsFlexOrGridDisplayType(),
because that method is used to determine whether we should blockify
inline-level children of a flex/grid container, and we don't want to blockify
any children of a -webkit-box. (Instead, we want to wrap them in an anonymous
flex item. That happens in the next patch.)

MozReview-Commit-ID: 9BB4Ib2KpvE
2016-03-24 09:55:11 -07:00
Ting-Yu Lin 5a53907dfa Bug 1258177 - Make the list-item markers non-selectable. r=bz
MozReview-Commit-ID: GkkAknIA31t

--HG--
extra : rebase_source : 424b2b2821a158bae15bae7bb07d15ceb274c3fa
2016-03-20 17:26:02 +08:00
Brian Birtles a1ae304c59 Bug 1245748 - Add a variant of StyleAnimationValue::ComputeValues that takes an nsCSSValue; r=heycam
MozReview-Commit-ID: 83popM8E0Q4

--HG--
extra : rebase_source : efef274a8a2a21423e6c1931d9b92739272eb72a
2016-03-22 16:31:16 +09:00
Brian Birtles b411ad9926 Bug 1245748 - Add nsStyleContext parameter to StyleAnimationValue::ComputeValue(s); r=heycam
StyleAnimationValue::ComputeValue(s) will automatically look up the style
context of the supplied element. This is mostly fine, but when we start using
this method in scenarios where we are building the initial style context
(as happens later in this patch series) it can easily land us in a situation
where we iterate indefinitely.

It would be better, instead, to just explicitly pass in the style context we
want to use, as we already do for StyleAnimationValue::ExtractComputedValue.

MozReview-Commit-ID: ZoVBlBRRBI

--HG--
extra : rebase_source : 9012cc2e405fc887f070fbfaa2f9853289882862
2016-03-22 16:31:09 +09:00
Brian Birtles 5785877883 Bug 1245260 - Add crashtest; r=hiro
MozReview-Commit-ID: IBe0zbsCJJy

--HG--
extra : rebase_source : 9045ca886302026220dec365e63203c538c14e9a
2016-03-24 09:04:53 +09:00
Daniel Holbert 1c58c1673f Bug 1257661: Make the CSS parser accept "display:-webkit-inline-box" as an alias for "display:inline-flex". r=heycam
(We already map "display:-webkit-box" to "display:flex" in this way. This is just extending that existing support to cover the inline version.)

MozReview-Commit-ID: F7gH3QMSmn0

--HG--
extra : rebase_source : f97703f074ccdb5d97ad16c282be4d24c1fb0eff
2016-03-17 16:11:28 -07:00
Carsten "Tomcat" Book 5d83e31d04 merge mozilla-inbound to mozilla-central a=merge 2016-03-22 12:14:15 +01:00
Nick Alexander e90bd4aabb Bug 1256401 - Part 2: Remove references to b2gdroid. r=fabrice
MozReview-Commit-ID: 63yJGdgPbhe

--HG--
extra : rebase_source : 2256e0a12588703a83f4cba06971231ac3c64592
extra : amend_source : 1f35a04191f37225986bd7ff4d0b6b2c34a71b05
extra : histedit_source : 82d351700936c8e1297eeca91ce00f96340e2f2c
2016-03-18 14:41:51 -07:00
Xidorn Quan af785a12fd Bug 968761 - Treat nested calc() as plain parenthesis. r=dbaron
MozReview-Commit-ID: Lwd56FaaDWx

--HG--
extra : rebase_source : f57ac5695e6e06c568ff4cb54304a2fd5716fc41
2016-03-03 10:05:37 +08:00
Mats Palmgren 3128937295 Bug 1248371 - [css-grid] Require that each track has a definite min- or max-sizing function when the track list contains a repeat(auto-fill/fit) track. r=dholbert 2016-03-17 17:27:55 +01:00
Geoff Brown 29977660c0 Bug 1251013 - Update android_version annotations in test manifests - mochitest; r=jmaher 2016-03-17 10:00:48 -06:00
Jonathan Hao 7bee2c98a0 Bug 1235572 - Enforce SRI if content signature is enforced r=francois
* * *
[mq]: sri_fix

MozReview-Commit-ID: 8vY9J4j3Eog
* * *
[mq]: loadInfo

MozReview-Commit-ID: EZ8BUfCOXO6
* * *
[mq]: add-logs

MozReview-Commit-ID: 1jeyTq9nvlW

--HG--
extra : transplant_source : %8Dj%12f%16%F5%12%8E%FE%7C%02%274%2A%A0a%C8%CB2P
2016-03-16 11:13:26 +08:00
Cameron McCormack 7cc115e18c Bug 1256210 - Part 3: Remove agent sheet by the end of test_additional_sheets.html. r=dbaron 2016-03-17 13:17:10 +11:00
Cameron McCormack 3f7c51c2ae Bug 1256210 - Part 2: Convert test_additional_sheets.html and test_addSheets.html to mochitest-plain. r=dbaron
--HG--
rename : layout/style/test/chrome/additional_sheets_helper.html => layout/style/test/additional_sheets_helper.html
rename : layout/style/test/chrome/test_addSheet.html => layout/style/test/test_addSheet.html
rename : layout/style/test/chrome/test_additional_sheets.html => layout/style/test/test_additional_sheets.html
2016-03-17 13:17:10 +11:00
Cameron McCormack 69e11e6d9e Bug 1256210 - Part 1: Factor out getting of services in test_additional_sheets.html. r=dbaron
MozReview-Commit-ID: GuODc7fnYVj
2016-03-15 18:38:07 +11:00
Nicholas Nethercote a2f068b2ad Bug 1253085 - Remove the |PLDHashTable*| argument from PLDHash{HashKey,MatchEntry}. r=froydnj.
This is easy because it's never needed.

--HG--
extra : rebase_source : 78830dab41c40a1544fa55fc69ca9c1c6709d767
2016-03-16 15:33:44 +11:00
Mike Shal 49c5290021 Bug 1256033 - Remove layout/style/test/Makefile.in; r=glandium
The css_properties.js rule can be converted into gen-css-properties.py,
which we can install with TEST_HARNESS_FILES instead of the
mochitest.ini manifest.


MozReview-Commit-ID: F7nf71ORWsS
2016-03-11 19:28:02 -05:00
Boris Chiou efe45f15d3 Bug 1249219 - Part 3: Replace Pair<Element*, CSSPseudoElementType> with NonOwningAnimationTarget. r=birtles
--HG--
extra : rebase_source : 35e69a293cdb7a25ce579dbb453289ed3521e7e2
2016-03-21 16:49:50 +08:00
Mats Palmgren 725f3ced29 Bug 1258147 - Pierce through display:contents style context ancestors when looking for CB context to compare our writing-mode to. r=jfkthame 2016-03-21 16:56:07 +01:00
Xidorn Quan 60bcaa5c0b Bug 1257121 part 4 - Use return value rather than out param to return font metrics. r=jfkthame
MozReview-Commit-ID: 6xrHYbgHGVd

--HG--
extra : rebase_source : 4d0cea24689588d8a1daa1869502e31ac7c3dc56
2016-03-17 13:55:48 +08:00
Xidorn Quan f4ef02b391 Bug 1257121 part 1 - Use struct for passing some params of font metrics. r=jfkthame
MozReview-Commit-ID: FTJlYS3bbTa

--HG--
extra : rebase_source : f3df5f8ebe3f223abc62dc1ae1bf5f7830d63ab8
2016-03-21 11:59:36 +08:00
Daniel Holbert 00d43c6f13 Bug 1257938 part 3: Remove support for the "layout.css.sticky.enabled" pref (so we'll unconditionally support "position: sticky"). r=corey
MozReview-Commit-ID: 9jYcXkUvi8S
2016-03-20 23:06:53 -07:00
Daniel Holbert 42d59af359 Bug 1257938 part 2: Remove separation between test_position_sticky.html & its helper-file, now that it doesn't need to tweak a pref. r=corey
MozReview-Commit-ID: 7aUlaBP1OK
2016-03-20 23:06:42 -07:00
Daniel Holbert 0a77fd87dd Bug 1257938 part 1: Adjust automated tests to assume position:sticky is unconditionally supported. r=corey
MozReview-Commit-ID: IfQatzWq7q5
2016-03-20 23:05:34 -07:00
Ehsan Akhgari a36acab5c8 Bug 1256178 - Drop the moz prefix from the MozCSSKeyframeRule and MozCSSKeyframesRule interfaces; r=bzbarsky 2016-03-15 10:23:01 -04:00
L. David Baron 8c5857d870 Bug 1256500 - Root style contexts before calling ApplyStyleFixups. r=heycam
MozReview-Commit-ID: 8P4AyTCvhmW
2016-03-14 20:26:53 -07:00
Morris Tseng 0f88c1a15b Bug 594933 - Part 2: Add support for calc() to line-height. r=dbaron
--HG--
extra : commitid : ISfJfHKpK5Z
2016-03-15 10:37:37 +08:00
Morris Tseng 99b819272d Bug 594933 - Part 1: Let calc() supports number. r=dbaron
--HG--
extra : commitid : HWZIwem6z6u
2016-03-15 10:37:37 +08:00
L. David Baron 89ad8d0c53 Bug 1142531: Check more bits in nsStyleContext::MoveTo assertion. r=heycam
MozReview-Commit-ID: 455suOkmdj7
2016-03-14 10:27:05 -07:00
L. David Baron a1dea9b4fc Bug 1251797 - Don't fault struct out of rule tree if all of the potential physical property destinations already have a winning value in the cascade. r=heycam
I believe this is useful for cases like having logical properties in the
UA style sheet that are commonly overridden (e.g., margins on lists).

MozReview-Commit-ID: KxojbfMYq0f
2016-03-14 10:27:05 -07:00
L. David Baron c54f49142c Bug 649142 followup: Correct #undef. No review.
MozReview-Commit-ID: BjkVBufjlBQ
2016-03-14 10:27:04 -07:00
Ryan VanderMeulen da1885e860 Merge inbound to m-c. a=merge 2016-03-12 15:23:38 -05:00
malayaleecoder c10c9a9612 Bug 1252368 - Move resource files in layout/style/ into layout/style/res/ directory. r=nalexander
MozReview-Commit-ID: HdF06H2gJYY

--HG--
rename : layout/style/arrow-left.gif => layout/style/res/arrow-left.gif
rename : layout/style/arrow-right.gif => layout/style/res/arrow-right.gif
rename : layout/style/arrow.gif => layout/style/res/arrow.gif
rename : layout/style/arrowd-left.gif => layout/style/res/arrowd-left.gif
rename : layout/style/arrowd-right.gif => layout/style/res/arrowd-right.gif
rename : layout/style/arrowd.gif => layout/style/res/arrowd.gif
rename : layout/style/counterstyles.css => layout/style/res/counterstyles.css
rename : layout/style/forms.css => layout/style/res/forms.css
rename : layout/style/html.css => layout/style/res/html.css
rename : layout/style/noframes.css => layout/style/res/noframes.css
rename : layout/style/noscript.css => layout/style/res/noscript.css
rename : layout/style/number-control.css => layout/style/res/number-control.css
rename : layout/style/plaintext.css => layout/style/res/plaintext.css
rename : layout/style/quirk.css => layout/style/res/quirk.css
rename : layout/style/ua.css => layout/style/res/ua.css
rename : layout/style/viewsource.css => layout/style/res/viewsource.css
extra : rebase_source : c56048e17a72c75a456556ee2111841184a92edf
2016-03-11 00:57:34 +05:30
Bobby Holley abd6123240 Bug 1252611 - Hoist IsComplete/SetComplete into StyleSheet. r=dholbert 2016-03-10 22:18:59 -08:00
Bobby Holley 0ff743226a Bug 1252611 - Add a method to get the StyleSheetInfo for a given StyleSheet. r=dholbert
One of the annoying things about sharing algorithms on the superclass here is that
certain members live on StyleSheet and others live on StyleSheetInfo (a situation
resulting from the split between CSSStyleSheet and CSSStyleSheetInner). This allows
us to write general algorithms on StyleSheet that touch members on StyleSheetInfo
without paying the price of virtual dispatch.
2016-03-10 22:18:57 -08:00
Bobby Holley 3293dd162c Bug 1252611 - Hoist mDocument into StyleSheet. r=dholbert 2016-03-10 22:18:56 -08:00
Phil Ringnalda 3ceef3ef63 Back out 2 changesets (bug 1209273) for devtools failures in browser_css_autocompletion.js
Backed out changeset 85f7dbb76c15 (bug 1209273)
Backed out changeset 1901109091be (bug 1209273)
2016-03-10 21:32:50 -08:00
Tobias Schneider 9cfd13fa3d Bug 1209273 - Part 1: Support for color-adjust CSS property. r=dbaron
--HG--
extra : rebase_source : 72919e863a59f76d24fbae31870463025aee7a40
2016-03-10 10:51:00 -05:00
Xidorn Quan b8db274b17 Bug 1255659 part 2 - Add 'fullscreen' tag to tests which ever put window into fullscreen. r=smaug
MozReview-Commit-ID: EBynEGbpYQU

--HG--
extra : rebase_source : 1f777ff519e602403486d24e739b252a2dfc8428
2016-03-11 10:45:00 +08:00
Daisuke Akatsuka cb51780a6e Bug 1237173 - Part2: Change type of duration to Maybe<StickyTimeDuration>. r=birtles 2016-03-09 14:14:20 +09:00
Neil Deakin 038b1390a7 Bug 1246659, enable browser_bug453896.js in e10s, r=mconley 2016-03-09 09:11:56 -05:00
Ryo Motozawa d812d0d4c6 Bug 1244635 - Part4 Add enddelay tests in layout/style/test r=hiro
MozReview-Commit-ID: EUvAdiPudgZ

--HG--
extra : rebase_source : 91bf3aef8f5ea8da1b990b6363d7ab40bddb2aae
2016-03-08 10:31:40 +09:00
Brian Birtles c9d3c84ee0 Bug 1239945 part 8 - Add GetOrCreateAnimationCollection; r=dholbert
Rather than passing around a bool flag to indicate if we should be creating
an AnimationCollection when none is found, it would be a lot easier to read
if we simply introduce a separate method for this.

MozReview-Commit-ID: 6bg8jGoH5pL
2016-03-09 12:55:39 +09:00
Brian Birtles 065446fdcd Bug 1239945 part 7 - Move GetAnimationCollection to AnimationCollection; r=dholbert
By moving GetAnimationCollection to AnimationCollection itself, we can remove
a bunch of virtual methods on the animation managers, simplify call sites,
and provide better type safety by ensuring a correspondence between element
property names and concrete animation types.

One change in behavior, however, is that in doing this we can no longer
add any newly-created AnimationCollection to the corresponding manager's linked
list of collections inside GetAnimationCollection. Instead we take a bool
outparam to indicate if a new collection was created and leave managing the
linked list to the manager. This is just a temporary measure, however, since
by the end of this patch series will will eliminate this linked list altogether
along with this flag.

MozReview-Commit-ID: 1jsc4QcmVDg
2016-03-09 12:55:39 +09:00
Brian Birtles dd4f27f03e Bug 1239945 part 6 - Templatize AnimationCollection based on the concrete type of Animation stored; r=dholbert
This patch templatizes the type of Animation stored in an AnimationCollection.
This allows us to remove a number AsCSSAnimation() calls in nsAnimationManager.

This patch also removes the AnimationPtrArray typedef. In its place we
introduce OwningCSSAnimationPtrArray and OwningCSSTransitionPtrArray but we
don't use these as widely. There was some comment previously that the typedefs
in animation code make it hard to read, particularly when these typedefs don't
make it clear if the data type is an owning reference or not.

In doing this we need to templatize CommonAnimationManager as well and move the
implementation of its (few) methods to the header file. We may be able to
remove the need for templatizing CommonAnimationManager later in this patch
series depending on how we ultimately decide to handle the lifetime of
AnimationCollection objects.

CommonAnimationManager::GetAnimationCollection is a bit messy but this will be
significantly tidied up in subsequent patches in this series.

MozReview-Commit-ID: 3ywatY53pRR
2016-03-09 12:55:39 +09:00
CJKu 9799fb0aaa Bug 1243734 - Part 5. Add MOZ_ENABLE_MASK_AS_SHORTHAND compile flag; r=ted r=dbaron
MozReview-Commit-ID: 8KbrEXnJqlp
2016-03-09 11:15:09 +08:00
Mats Palmgren 35503fb698 Bug 1254000 - [css-grid] Enable Grid container properties in UA sheets to avoid warnings in the console. r=dholbert 2016-03-08 23:03:26 +01:00
Mats Palmgren 0524303c83 Bug 1253529 part 2 - [css-grid] Remove the 'grid-template' shorthand. r=dholbert 2016-03-08 23:03:26 +01:00
Bobby Holley 9440c9f754 Bug 1253149 - Use bool instead of int for boolean return values. r=SimonSapin 2016-03-05 19:58:04 -08:00
Bobby Holley 293f493107 Bug 1253149 - Remove the #ifdef __cplusplus bits from ServoBindings.h. r=SimonSapin 2016-03-05 19:58:03 -08:00
Phil Ringnalda cabee82044 Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
vincentliu 2b8952ed36 Bug 801176 - part3-v6: Keep CSSParser operations as threading safe. r=heycam
---
 dom/canvas/CanvasRenderingContext2D.cpp | 13 +++++---
 layout/style/ErrorReporter.cpp          |  9 +++++-
 layout/style/nsCSSParser.cpp            | 55 ++++++++++++++++++++-------------
 3 files changed, 51 insertions(+), 26 deletions(-)
2016-03-04 15:22:58 +08:00
Mats Palmgren 40399b7a96 Bug 1185140 - Change the expected computed display value to 'block' for flex items, also for table display types. r=bustage 2016-03-03 21:57:32 +01:00
Mats Palmgren 95cbb97e58 Bug 1185140 - [css-grid][flexbox] Make grid/flex item blockification happen before creating table pseudos, per the latest specs. r=dholbert
CSSWG resolution:
https://lists.w3.org/Archives/Public/www-style/2015Sep/0038.html
2016-03-03 19:37:58 +01:00
Nicholas Nethercote 933e726105 Bug 1252790 - Remove RuleHashTableOps. r=dbaron.
It's a confusing and non-standard way of doing things.

--HG--
extra : rebase_source : 0aa66f4d8b028a0b002a664f18ba3b98d936d00f
2016-03-03 09:21:49 +11:00
Mats Palmgren a6b962bbed Bug 1251999 - [css-grid] Reftests for repeat(auto-fill/fit, <fixed-size>) where <fixed-size> has one or more intrinsic sizing functions (one is allowed). 2016-03-02 23:39:34 +01:00
Mats Palmgren ed62d7ab53 Bug 1251999 - [css-grid] Update <fixed-size> parsing to the latest spec. r=dholbert 2016-03-02 23:39:34 +01:00
CJKu b33d045deb Bug 1252739 - nsStyleImageLayers::HasLayerWithImage should return true when we have mask-image:<element-reference> | <gradient>; r=dbaron
MozReview-Commit-ID: 876p0IfKoUi
2016-03-02 16:27:21 +08:00
Daisuke Akatsuka 0b1a2c1ae5 Bug 1248338 - Implement iterationStart; r=birtles 2016-03-02 16:23:34 +09:00
Christoph Kerschbaumer 9ab1648f67 Bug 1195172 - Use channel->ascynOpen2 layout/style/FontFaceSet.cpp (r=bz,cam) 2016-03-01 13:06:13 -08:00
CJKu 9aa8a082cd Bug 1243734 - Part 2. Set up gCSSProperties depends on mask-as-shorthand; r=dbaron
MozReview-Commit-ID: 4QBJtezm9Tt
2016-03-01 19:52:17 +08:00
CJKu 27044084c1 Bug 1243734 - Part 1. Use MOZ_ENABLE_MASK_AS_SHORTHAND to define the type of mask property; r=dbaron
MozReview-Commit-ID: FkPgdh8YHOC
2016-03-01 19:52:17 +08:00
Ting-Yu Lin 514007237a Bug 1097398 Part 1 - Move AccessibleCaret default assets to layout/style/. r=nalexander, r=heycam
Default AccessibleCaret assets were in editor for historical reasons. Because
ua.css references them, I move them to layout/style/ and add them in jar.mn so
that we don't have to package them in various products.

MozReview-Commit-ID: 7K7qr9FK784

--HG--
rename : editor/composer/res/accessiblecaret@1.5x.png => layout/style/res/accessiblecaret-normal@1.5x.png
rename : editor/composer/res/accessiblecaret.png => layout/style/res/accessiblecaret-normal@1x.png
rename : editor/composer/res/accessiblecaret@2.25x.png => layout/style/res/accessiblecaret-normal@2.25x.png
rename : editor/composer/res/accessiblecaret@2x.png => layout/style/res/accessiblecaret-normal@2x.png
rename : editor/composer/res/accessiblecaret_tilt_left@1.5x.png => layout/style/res/accessiblecaret-tilt-left@1.5x.png
rename : editor/composer/res/accessiblecaret_tilt_left.png => layout/style/res/accessiblecaret-tilt-left@1x.png
rename : editor/composer/res/accessiblecaret_tilt_left@2.25x.png => layout/style/res/accessiblecaret-tilt-left@2.25x.png
rename : editor/composer/res/accessiblecaret_tilt_left@2x.png => layout/style/res/accessiblecaret-tilt-left@2x.png
rename : editor/composer/res/accessiblecaret_tilt_right@1.5x.png => layout/style/res/accessiblecaret-tilt-right@1.5x.png
rename : editor/composer/res/accessiblecaret_tilt_right.png => layout/style/res/accessiblecaret-tilt-right@1x.png
rename : editor/composer/res/accessiblecaret_tilt_right@2.25x.png => layout/style/res/accessiblecaret-tilt-right@2.25x.png
rename : editor/composer/res/accessiblecaret_tilt_right@2x.png => layout/style/res/accessiblecaret-tilt-right@2x.png
extra : rebase_source : bb29652fcc47725feb44397a7f9f39c89b0161b6
2016-02-16 16:55:28 +08:00
Daniel Holbert 40bd6a6b1e Bug 1251848: Check StyleSheetHandles for being null-flavored before derefing them, in assertions within nsLayoutStylesheetCache::InvalidateSheet. r=bholley 2016-02-29 18:57:05 -08:00
Daniel Holbert e23c4f231b Bug 1247478: Rename FirstAdditionalAuthorSheet() to GetFirstAdditionalAuthorSheet(), since it can return null. r=heycam 2016-02-29 15:09:13 -08:00
Bogdan Postelnicu 5a04584913 Bug 1252039 - corrected MOZ_ASSERT expression in SeparatorRequiredBetweenTokens. r=dbaron
MozReview-Commit-ID: 89XUK8hKSSE

--HG--
extra : rebase_source : 53a336311edc4faabf20a829f58ed95461aa6cf6
2016-02-29 14:26:22 +02:00
Ryo Motozawa 35966647ca Bug 1244641 - Part 5: Add duration tests in layout/style/test. r=hiro
MozReview-Commit-ID: JrsLXlvjJa8

--HG--
extra : transplant_source : H%24%12%FF%01%40%97%02%23ym%88%C2%C6%08T%ACB%20%91
2016-02-27 06:41:40 +09:00
Bobby Holley 5c409b2ed2 Bug 1251496 - Forward stylesheet management to RawServoStyleSet. r=heycam 2016-02-28 00:25:34 -08:00
Bobby Holley 205b124ab5 Bug 1251496 - Introduce a servo-side data structure to represent the style set. r=heycam 2016-02-28 00:25:33 -08:00
Bobby Holley 90a86c1a2e Bug 1251496 - Hoist existing RefPtrTraits into a ServoBindingHelpers.h. r=heycam
I think we're going to have a fair number of things like this, so I'd rather
put them all in one place, rather that defining them in the header for the first
consumer that uses the type.
2016-02-28 00:25:32 -08:00
Timothy Nikkel 82b750a534 Backed out changeset 93f722efcdec (bug 1145903) for causing bug 1251796. 2016-02-27 12:53:28 -06:00