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

9081 Коммитов

Автор SHA1 Сообщение Дата
Brian Birtles 02700078d5 Bug 1267018 - Split tests that rely on pref-based changes to Element.prototype into two files; r=heycam
MozReview-Commit-ID: KqLCYOknFRX
2016-05-02 09:28:45 +09:00
Aryeh Gregor f7bc47d59b Bug 1193762 part 7 - Use .get() when assigning to variables; r=froydnj
Unlike when returning an nsCOMPtr in a ternary operator or passing to a
function, I used .get() here, since the operation is actually unsafe and
deserves to be marked explicitly.
2016-05-01 21:29:23 +03:00
Bobby Holley ef87858910 Bug 1268748 - Implement {Resolve,Probe}PseudoElementStyle. r=heycam 2016-04-29 19:21:48 -07:00
Wes Kocher 56fe7c4bcb Merge m-c to fx-team a=merge
MozReview-Commit-ID: 3H9BxQQQnNI
2016-04-29 16:05:30 -07:00
Jared Wein e889366796 Bug 1268159 - Use GreD in addition to XCurProcD for browser_misused_characters_in_strings.js to cover more string files. r=gijs
MozReview-Commit-ID: IlC170W0nlG
* * *
[mq]: temp

MozReview-Commit-ID: GF0k4zvONPD
2016-04-29 09:28:48 -04:00
Ms2ger e54df95e1a Bug 1268290 followup: remove stray semicolon on a CLOSED TREE. 2016-04-28 11:37:01 +02:00
Emilio Cobos Álvarez 3a00e86293 Bug 1268290: stylo: Pass SheetParsingMode to Servo, r=bholley 2016-04-28 11:13:45 +02:00
Mantaroh Yoshinaga c34b85860e Bug 1134163 - Part2 - Modify animation tests which rely on animationstart timing. r=birtles
MozReview-Commit-ID: 2IaCejiFgY2

--HG--
extra : transplant_source : %1Dp%CA%B3%E2%D4%15%CDH%EA%CEzbdI-B2%3D%9C
2016-04-28 16:30:23 +09:00
Mantaroh Yoshinaga 240de53183 Bug 1134163 - Part1.Modify animationstart event timing in order to fire event after end of pending task. r=birtles
MozReview-Commit-ID: 8BwLRIKe1kV

--HG--
extra : transplant_source : %B0%C7f%92pi%E9cR%A8%A7%D2%EB%AEF0%A9%278%1E
2016-04-28 16:29:12 +09:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Cameron McCormack d222b3159d Bug 1268404 - Part 2: Implement ServoStyleSet::ResolveStyleForText. r=bholley 2016-04-29 14:04:16 +10:00
Cameron McCormack 3aadcf811c Bug 1268404 - Part 1: Split out ResolveStyleForText from ResolveStyleForNonElement and pass in the text node. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 022c4340ae Bug 1268390 - Part 3: Add support for doc style sheets in ServoStyleSet. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 9eeb5dc2a9 Bug 1268390 - Part 2: Add bindings for Servo_InsertStyleSheetBefore. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 2617364266 Bug 1268390 - Part 1: Factor out most of nsStyleSet::AddDocStyleSheet for re-use. r=bholley 2016-04-29 14:01:44 +10:00
Cameron McCormack 26c0413d34 Bug 1268392 - Make Servo_GetComputedValues take a node rather than an element. r=bholley 2016-04-29 14:01:44 +10:00
Christoph Kerschbaumer da0d241d98 Bug 1206961 - Use channel->AsyncOpen2() for imageLoader; Remove security checks from callsites (r=bz) 2016-04-27 19:41:13 +02:00
Bobby Holley 70f077146d Bug 1267833 - Pass the RawServoStyleSet to Servo_GetComputedValuesForAnonymousBox. r=heycam 2016-04-26 23:39:44 -07:00
Cameron McCormack 90c9880ccc Bug 1267564 - Implement a couple of Servo-backed style object methods. r=bholley 2016-04-27 12:34:49 +10:00
Cameron McCormack 75c6df145e Bug 1267560 - Get style structs from ServoComputedValues rather than the rule node, when using the Servo-backed style system. r=bholley 2016-04-27 12:34:49 +10:00
Markus Stange 161986900b Bug 550426 - Use background-position-x/y when detecting scroll-linked effects. r=dbaron
MozReview-Commit-ID: 6qDFcaEBYEF

--HG--
extra : rebase_source : 1bee538433c7cc5ca7cfef6fd73db44632cf8bed
2016-04-25 18:56:47 -04:00
Markus Stange 45015d5109 Bug 550426 - Use background-position-x/y in ActiveLayerTracker. r=dbaron
MozReview-Commit-ID: 4gBWTOLfX0i

--HG--
extra : rebase_source : b89a35fef04ed990d67c05ebd79528d9c4b4462b
2016-04-20 23:34:46 -04:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Boris Chiou 44367b12f2 Bug 1067769 - Part 12: Use Maybe<OwningAnimationTarget> in KeyframeEffect(ReadOnly) constructors. r=birtles
MozReview-Commit-ID: Euv76D6sIFX

--HG--
extra : rebase_source : 7ef6e5d70104942b21671e2143c107e678f400a7
2016-04-28 23:22:44 +08:00
Markus Stange 6950386ff3 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : c7c85abc9bb7ff1987d7372635c0a9702715b761
2015-12-16 12:27:20 +01:00
Markus Stange 72c6eb0561 Bug 550426 - Add support for {background,mask}-position-{x,y}, computed style additions. r=dbaron
MozReview-Commit-ID: 5GSsS7EYwfB

--HG--
extra : rebase_source : 93696befce34ea8c2d9b1bf4aed47debf7ea2b5f
2016-04-21 20:23:02 -04:00
Markus Stange 3bbd4e65d4 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA

--HG--
extra : rebase_source : d43ab6905e0b39e03680e2266e16737d0d445a31
2016-04-21 20:23:35 -04:00
Markus Stange 1a43349a44 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : cf90a8cf7c10ee90f4c312b7ff5c1107aa8571f2
2016-04-29 14:12:10 -04:00
Markus Stange 7189351aab Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O

--HG--
extra : rebase_source : 3c3e8860ea4ed61ef20a1ccc9450d9734cca1c01
2016-04-21 20:25:56 -04:00
Wes Kocher 6521757101 Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)

MozReview-Commit-ID: AlUihrLtlhL

--HG--
rename : layout/reftests/backgrounds/background-position-6b.html => layout/reftests/backgrounds/background-position-6.html
2016-04-29 14:47:43 -07:00
Markus Stange be2322f1ad Bug 550426 - Use background-position-x/y when detecting scroll-linked effects. r=dbaron
MozReview-Commit-ID: 6qDFcaEBYEF

--HG--
extra : rebase_source : b1055f871651f9dc71ba4e34f16afb06bf871b84
2016-04-25 18:56:47 -04:00
Markus Stange 1dbcb6b940 Bug 550426 - Use background-position-x/y in ActiveLayerTracker. r=dbaron
MozReview-Commit-ID: 4gBWTOLfX0i

--HG--
extra : rebase_source : bbda2f43f1cb2430a93c86b03a1f94cc4a1a932f
2016-04-20 23:34:46 -04:00
Markus Stange e8cb10c2d9 Bug 550426 - Fix test_transitions_per_property.html. r=dbaron
This adds testing for transitions on background-position-x/y, and makes sure we
no longer call check_distance for background-position, because
background-position is now a shorthand and no longer has its own distance
computation.

MozReview-Commit-ID: 82KVruCghGe

--HG--
extra : rebase_source : 65e52287c141044df8ae490d461ebef3e8d403ec
2015-12-16 12:27:20 +01:00
Markus Stange 7faa93d72a Bug 550426 - Add support for {background,mask}-position-{x,y}, computed style additions. r=dbaron
MozReview-Commit-ID: 5GSsS7EYwfB

--HG--
extra : rebase_source : b39afc56452665ed02d79124557a7b8d3b984350
2016-04-21 20:23:02 -04:00
Markus Stange de8b8de801 Bug 550426 - Add support for {background,mask}-position-{x,y}, StyleAnimation changes. r=dbaron
MozReview-Commit-ID: 8Qb0asWMgVA
***

--HG--
extra : rebase_source : 694f057c76a2632ed5b6280ddc84bd1cc34d3ecb
2016-04-21 20:23:35 -04:00
Markus Stange 10d8636821 Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
MozReview-Commit-ID: JgZIoj43aZv

--HG--
extra : rebase_source : 5c7663c042e6507f9979d769db26eef22dc8ba79
2016-04-29 14:12:10 -04:00
Markus Stange 83232444db Bug 550426 - Add support for {background,mask}-position-{x,y}, property_database.js changes. r=dbaron
MozReview-Commit-ID: 1vKeywCAF7O
***
test/property_database.js mask-position

--HG--
extra : rebase_source : 2710ce2f4a4365473ace7d0f0643c8d06d6b5372
2016-04-21 20:25:56 -04:00
CJKu 3acf2e463b Bug 1266948 - text-decoration-color: currentcolor should not use value from -webkit-text-fill-color; r=jfkthame
MozReview-Commit-ID: 2SfENZieSzQ

--HG--
extra : rebase_source : 3880f8fd6ae18e9f4b1cbf0a2f5eff48c060548b
2016-04-26 23:56:44 +08:00
Botond Ballo 992cbd5b93 Bug 735857 - Treat background-attachment:fixed as background-attachment:scroll if it's on a non-root element affected by a transform. r=mstange
MozReview-Commit-ID: 1lnQoD98xv3

--HG--
extra : rebase_source : 0cfd2c2a7926210775b6a1beff69ba32f2a10d6c
2016-04-25 17:20:13 -04:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Mats Palmgren adbc189b42 Bug 1264067 - [css-grid] Update tests that use 'fr' min-sizing. 2016-04-25 18:43:04 +02:00
Mats Palmgren 50649ed4b4 Bug 1264067 - [css-grid] 'fr' min-sizing is now invalid. r=dholbert 2016-04-25 18:43:04 +02:00
Daniel Holbert a7f628c506 Bug 1248708 followup: Use MOZ_ARRAY_LENGTH instead of ArrayLength for expression used at compile time, to fix MSVC 2013 bustage. (trivial/bustage-fix, no review)
MozReview-Commit-ID: A1thxdXB2RT
2016-04-25 09:06:54 -07:00
Wei-Cheng Pan daa8e38158 Bug 1259641 - Do not force reflow for all tabs when size mode changed. r=smaug
MozReview-Commit-ID: GoTCM60Hmlf

--HG--
extra : transplant_source : S%88%AD%A3%99%9Bk%D3%E4U%0302%82%87o3%28%FFK
2016-04-20 11:41:42 +08:00
Jeremy Chen f7a19af3e7 Bug 1248708 - Part2.2: render -webkit-text-stroke property. r=jfkthame 2016-04-23 01:40:39 +08:00
Jeremy Chen 84a70f3910 Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam 2016-04-23 01:40:39 +08:00
Ting-Yu Lin 87d7ee9f5c Bug 1262755 - Enlarge caret touch target by 59% for Fennec. r=capella,snorp
Enlarge the touch target of the caret to the left, bottom, and right by
59% (13px) per bug 1262755 comment 7.

Since the touch target becomes larger, the carets on the <input> in
previous test might cause the next test to fail on <textarea> because it
will press on the caret when trying to focus on <textarea>. Add <br>
elements to testAccessibleCarets.html to separate these test fields.

MozReview-Commit-ID: JIwmuHJ2QsQ

--HG--
extra : rebase_source : 6fbfede7cc0e395402b5858d74480dcdd5606c35
2016-04-22 18:23:47 +08:00
Ting-Yu Lin bcbf8175b8 Bug 1249201 Part 2 - Show carets continuously when panning or zooming. r=mats,sebastian
Add a pref "layout.accessiblecaret.always_show_when_scrolling" defaults
to true on all platforms except b2g. When it is set to false, the carets
will be hidden during scrolling, which is the current behavior before
applying this change.

The pref "layout.accessiblecaret.extendedvisibility" was added for
Fennec to keep ActionBar open when carets temporarily hiding during
panning or zooming. Now we make carets always show by default, so the
pref can be removed. However, the floating toolbar still need to be
notified when the scrolling begins, so we dispatch "scroll" instead.

In gtest, the preference changes were in the middle of the test
function. To make the preference change clearer, I add new pref changes
or move the existing ones to the beginning of the test functions.

The 250ms transition effect added in ua.css is per request of UX
designer in bug 1249201 comment 12.

MozReview-Commit-ID: 8NGvDLPbtNY

--HG--
extra : rebase_source : 3f7a9ebdf4c70b0282dbf9e8f18cbe5cca656dbe
2016-04-21 16:53:40 +08:00
Carsten "Tomcat" Book 55fea48a3f Backed out changeset 637e80ab4fca (bug 1262755) for rc4 android perma failures
--HG--
extra : rebase_source : 26893c1afaa1c4fc23808b92d8738d847d9ff5f3
2016-04-22 09:12:50 +02:00
Ting-Yu Lin 2d3ac9ab7f Bug 1262755 - Enlarge caret touch target by 59% for Fennec. r=capella,snorp
Enlarge the touch target of the caret to the left, bottom, and right by
59% (13px) per bug 1262755 comment 7.

Since the touch target becomes larger, the carets on the <input> in
previous test might cause the next test to fail on <textarea> because it
will press on the caret when trying to focus on <textarea>. Add two <br>
to testAccessibleCarets.html to separate the <input> and <textarea>.

MozReview-Commit-ID: JIwmuHJ2QsQ

--HG--
extra : rebase_source : 73b662980a5be55a4e3e31506437f2c26f65cd85
2016-04-15 17:10:02 +08:00
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