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

10558 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 95a8ef9e62 Bug 1333001. Ensure that ImportRule in fact always has a non-null mMedia. r=heycam 2017-01-24 10:02:46 -05:00
Brad Werth 5ef9727540 Bug 1328420 Part 8: Uplift SizeOfIncludingThis into StyleSheet, with override in CSSStyleSheet. r=heycam
MozReview-Commit-ID: 5f1WldhnP2

--HG--
extra : rebase_source : 28fb1718028961dd5fe3e25c8deeb38ebfd6ee87
2017-01-23 16:42:31 -08:00
Brad Werth f9a4e85ea6 Bug 1328420 Part 7: Uplift List debug method into StyleSheet. r=heycam
MozReview-Commit-ID: 7aqC6N6cZst

--HG--
extra : rebase_source : 059b441aa12c77aee5734d61a244248b5ccd06d8
2017-01-23 16:40:28 -08:00
Brad Werth 9fd72f68f3 Bug 1328420 Part 6: Implement ServoStyleSheet destructor. r=heycam
MozReview-Commit-ID: iVaza2s7d

--HG--
extra : rebase_source : 354979d2cb3d5ef95f2063f6c3a3c1dd3774c91f
2017-01-23 16:37:59 -08:00
Brad Werth 6f5346abb4 Bug 1328420 Part 5: Uplift AppendStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: CwNGWsJi65G

--HG--
extra : rebase_source : e493df5984f92b4d2b3c9bbf153f24ac2dffc441
2017-01-23 16:23:40 -08:00
Brad Werth 98d1dbc01c Bug 1328420 Part 4: Uplift SetOwningDocument into StyleSheet. r=heycam
MozReview-Commit-ID: 3TnTaFYkZS3

--HG--
extra : rebase_source : 1f15b8228f2dcccd0b00b41248617f5dac66f226
2017-01-24 13:12:40 -08:00
Brad Werth ceca427e5f Bug 1328420 Part 3: Uplift the first child to StyleSheet via a new method, abstracting out the inner sheet concept (which is not present in Stylo sheets). r=heycam
MozReview-Commit-ID: KUeIlOhAJXr

--HG--
extra : rebase_source : 2308ae457161a106b6258feae95b95c4e6160e9b
2017-01-23 15:52:56 -08:00
Brad Werth 4870857c07 Bug 1328420 Part 2: Uplift mNext into StyleSheet. r=heycam
MozReview-Commit-ID: 1yHUtEAJZnl

--HG--
extra : rebase_source : b5987c9f9d26ecfc14e76c719784bbe0ea66791d
2017-01-23 15:36:09 -08:00
Brad Werth f85fc3564c Bug 1328420 Part 1: Uplift parent pointer and accessor to StyleSheet class. r=heycam
MozReview-Commit-ID: C63yRZM3ORC

--HG--
extra : rebase_source : 92f7628506176d728e4b2ac4ae804729bc3738b3
2017-01-24 13:09:33 -08:00
L. David Baron 37f705d303 Bug 1333158 - Remove StyleSheet::GetDocument in favor of the identical GetAssociatedDocument. r=bz
(GetAssociatedDocument was recently renamed in bug 1332353.)

Note that the inconsistency between the Rule and CSSParser method names
is slightly bothersome.

MozReview-Commit-ID: L1SBIV86H4s

--HG--
extra : transplant_source : %60%BE%A8%B9%2BP9%8E_%8AX%28%DE%E7%12%83%1A%0E%FF%FD
2017-01-23 13:12:03 -08:00
Boris Zbarsky cce1668e68 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -05:00
Boris Zbarsky b39cdf67a8 Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8 2017-01-24 20:33:54 -05:00
Olli Pettay 59658da793 Bug 1323777, make GetDisplayMode more null-safe, r=bdahl 2017-01-25 23:32:50 +02:00
Xidorn Quan a0cd4629d7 Bug 1334938 - Re-enable stylo in stylo builds. r=emilio
MozReview-Commit-ID: y7u7QNHYii

--HG--
extra : rebase_source : 31bc928249d80cdd56fd59bcaa04af54653f39b4
2017-01-30 12:09:25 +11:00
cku 4079b78d13 Bug 1336924 - Part 2. add invalidate test cases for transform-box. r=xidorn
Spec:
https://drafts.csswg.org/css-transforms/#transform-box
Only accept border-box, fill-box and view-box.

MozReview-Commit-ID: KEzfW2m3hCC

--HG--
extra : rebase_source : 5a4f4f2fec158baca5ef72480001508592ab23b0
2017-02-06 16:31:05 +08:00
cku 0b28243527 Bug 1336924 - Part 1. add invalidate test cases for shape-outside's shape-box. r=xidorn
spec:
https://drafts.csswg.org/css-shapes-1/#shape-outside-property
svg box values(fill-box/stroke-box and view-box) are not valid for shape-box.
MozReview-Commit-ID: 3yct8P0PFFM

--HG--
extra : rebase_source : e96af28468f7e4216b726df093eed4f9deaee2fd
2017-02-06 16:30:05 +08:00
Mantaroh Yoshinaga 1ba8149d5d Bug 1336899 - Should not fire the transitioncancel after ending CSS Transition. r=birtles
MozReview-Commit-ID: IrqNNjVg0xg

--HG--
extra : rebase_source : 769e4646375d41b5621ee71c8f0ce5eb44bae8d1
2017-02-06 16:21:01 +09:00
Daniel Holbert c151164a28 Bug 1259348 part 2: Simplify logic in CSSParserImpl::LookupKeywordPrefixAware. r=mats
MozReview-Commit-ID: D9WoQ9vXTGJ

--HG--
extra : rebase_source : 16a582106a3e4cae1e328329d19d223f94802a78
2017-02-03 14:56:15 -08:00
Daniel Holbert c280ee0009 Bug 1259348 part 1: Remove CSSUnprefixingService.js and associated code (since it's been supplanted by built-in webkit-prefixed-CSS support). r=mats
MozReview-Commit-ID: CXCJJWhHc8G

--HG--
extra : rebase_source : a09745ce568c9afde78065d9e837da958e7b252e
2017-02-03 14:56:13 -08:00
Emilio Cobos Álvarez 403026c62b Bug 1209697: Part 1, Clear ancestor intrinsic sizes when our block size changes. r=dholbert
MozReview-Commit-ID: 9LnMm6KDcDP

--HG--
extra : rebase_source : 18afc92f75d3af0fce4dadb3e3f1314a65677034
2017-01-22 13:57:26 +01:00
Boris Zbarsky fde7c43bb1 Bug 1332704. Have ~nsDocument actually clear the self-pointer from _all_ its sheets, and reenable Rule::IsKnownLive bits that depends on that pointer being managed correctly. r=heycam 2017-01-23 11:15:58 -05:00
Carsten "Tomcat" Book e12cc94275 merge mozilla-inbound to mozilla-central a=merge 2017-01-23 11:15:58 +01:00
Xidorn Quan e9127937e6 Bug 1326189 part 5 - Add reftest for caret-color with :visited. r=dholbert
MozReview-Commit-ID: Fw1gnUQSRbq

--HG--
extra : rebase_source : 6b06582d65b0e61f3f0721e4af6b2c686664428c
2017-01-20 17:16:54 +11:00
Xidorn Quan 9c07cf28a2 Bug 1326189 part 4 - Support caret in test_visited_reftests. r=dholbert
MozReview-Commit-ID: I7zaJw1S4ZC

--HG--
extra : rebase_source : 1fc4b8683d9eb10b6e9d90902bf6d177b7ac50cd
2017-01-20 17:27:18 +11:00
Xidorn Quan 18085fdd3d Bug 1326189 part 3 - Make test_visited_reftests support needs-focus. r=dholbert
MozReview-Commit-ID: XCy3kVh5FN

--HG--
extra : rebase_source : c81fce0505ec806f3d93adf4eee474a9cadd58a0
2017-01-20 17:15:02 +11:00
Xidorn Quan 07539165c0 Bug 1326189 part 2 - Rewrite test_visited_reftest mochitest with async function to make it clearer. r=dholbert
This patch is a refactor, and should not change any behavior other than
providing a potentially better failure message.

MozReview-Commit-ID: 9ow1XwBtGDZ

--HG--
extra : rebase_source : 5e968e38e924e7c741cf1d3a5c414650d2b093b0
2017-01-20 16:52:01 +11:00
Xidorn Quan 451f629809 Bug 1326189 part 1 - Apply :visited style for caret-color. r=dholbert
MozReview-Commit-ID: DQqSdCz2TEC

--HG--
extra : rebase_source : 6600f3fddd08dbb79d7a43b7ba49c19f3abc3b54
2017-01-19 23:07:25 +08:00
Xidorn Quan 309caad5d8 Bug 1330172 part 2 - Fix serialization of property declaration with variable reference. r=heycam
MozReview-Commit-ID: ATDj4lHrtR1

--HG--
extra : rebase_source : 0cf558db29680bcfe76beda2ed097bb515f91f0f
2017-01-20 22:35:12 +11:00
Xidorn Quan 79730fa65d Bug 1330172 part 1 - Fix serialization of CSS-wide keyword in variable. r=heycam
MozReview-Commit-ID: KvpwRjfFF2z

--HG--
extra : rebase_source : 4aaf85d874311b7db7281def0e2c16b17c4455c0
2017-01-20 22:34:06 +11:00
Xidorn Quan c3e6a81bc4 Bug 1316236 - Treat perspective(0) as perspective(infinity). r=dholbert
MozReview-Commit-ID: H9xlpjxrzht

--HG--
extra : rebase_source : 5060ae56163446a9dd6ae816c548ecd987a6e33e
2017-01-20 12:45:33 +11:00
Xidorn Quan 4c82679e32 Bug 1328512 followup - Update expectation of style system tests for stylo. DONTBUILD
MozReview-Commit-ID: HKifm8Vx7ah

--HG--
extra : source : 3fecdfd0f6464e38a62da39273ac5d0e1eef1755
2017-01-23 17:07:16 +11:00
Boris Zbarsky f40fa57e5c Bug 851892 followup. Disable most of Rule::IsKnownLive for now to reopen CLOSED TREE 2017-01-20 13:57:42 -05:00
Boris Zbarsky 41da750c3e Bug 851892 part 20. Remove the remaining bits we added to support a mix of WebIDL and non-WebIDL rules. r=peterv 2017-01-13 10:41:05 -05:00
Boris Zbarsky bbf09020fb Bug 851892 part 19. Convert CSSCounterStyleRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky b7f22f88b0 Bug 851892 part 18. Convert CSSKeyframesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky fa5fe536da Bug 851892 part 17. Convert CSSKeyframeRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 284cc54462 Bug 851892 part 16. Convert CSSFontFeatureValuesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 5398bc5f13 Bug 851892 part 15. Convert CSSFontFaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky b1b80495aa Bug 851892 part 14. Convert CSSPageRule to WebIDL. r=peterv,heycam
The PutForwards bit is a new feature, but easy enough to implement here.
2017-01-13 10:41:04 -05:00
Boris Zbarsky 4ce77bc3a3 Bug 851892 part 13. Convert media, supports, and moz-document rules to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 2daa8920fe Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky d274f30b35 Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 03dbb8c08b Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 7f64e99cc4 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 0da388ba25 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 4fe3d0c6dd Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 1d545c87da Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 0591cf1be7 Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam,smaug 2017-01-13 10:41:02 -05:00
Boris Zbarsky 637e48e6e3 Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv,smaug
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky 6e795d159b Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 65f894384a Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug 2016-11-30 18:18:14 -05:00
Sebastian Hengst 3c9c348769 Backed out changeset 9a4b96c10b23 (bug 851892) for build bustage. r=backout on a CLOSED TREE 2017-01-20 19:31:31 +01:00
Sebastian Hengst c2dff8d692 Backed out changeset 795ebf4423ba (bug 851892) 2017-01-20 19:30:59 +01:00
Sebastian Hengst 63caf1fba9 Backed out changeset 3be6690b9f0a (bug 851892) 2017-01-20 19:30:50 +01:00
Sebastian Hengst 1c3bfd1016 Backed out changeset 2c2afe732553 (bug 851892) 2017-01-20 19:30:46 +01:00
Sebastian Hengst 7f2820fd7b Backed out changeset 271c7cd7b59a (bug 851892) 2017-01-20 19:30:41 +01:00
Sebastian Hengst 24246c7ba1 Backed out changeset 659550973d4d (bug 851892) 2017-01-20 19:30:37 +01:00
Sebastian Hengst bcb6968086 Backed out changeset 9ef39356f62c (bug 851892) 2017-01-20 19:30:32 +01:00
Sebastian Hengst 6a2dfd7d83 Backed out changeset b975a988fb33 (bug 851892) 2017-01-20 19:30:28 +01:00
Sebastian Hengst e21b4b941f Backed out changeset 9dee4f98503c (bug 851892) 2017-01-20 19:30:23 +01:00
Sebastian Hengst e533169d2c Backed out changeset eab8ccda41b8 (bug 851892) 2017-01-20 19:30:19 +01:00
Sebastian Hengst d4070f77eb Backed out changeset 31103a03f2c2 (bug 851892) 2017-01-20 19:30:14 +01:00
Sebastian Hengst 927a298938 Backed out changeset 1bbbc436690d (bug 851892) 2017-01-20 19:30:10 +01:00
Sebastian Hengst 7185ac1f02 Backed out changeset 34c280ac5f73 (bug 851892) 2017-01-20 19:30:05 +01:00
Sebastian Hengst d93216e56b Backed out changeset 332bb85695a9 (bug 851892) 2017-01-20 19:30:01 +01:00
Sebastian Hengst 9815df27fe Backed out changeset 430f2759de65 (bug 851892) 2017-01-20 19:29:56 +01:00
Sebastian Hengst 72128a359b Backed out changeset 76136a4cadcc (bug 851892) 2017-01-20 19:29:52 +01:00
Sebastian Hengst 715a24f4ba Backed out changeset 663ad79f5c13 (bug 851892) 2017-01-20 19:29:47 +01:00
Sebastian Hengst 530e4006d3 Backed out changeset f62d345e9d41 (bug 851892) 2017-01-20 19:29:42 +01:00
Sebastian Hengst d310ee3521 Backed out changeset c79e8bee853e (bug 851892) 2017-01-20 19:29:38 +01:00
Boris Zbarsky 7b5144e947 Bug 851892 part 20. Remove the remaining bits we added to support a mix of WebIDL and non-WebIDL rules. r=peterv 2017-01-13 10:41:05 -05:00
Boris Zbarsky 0c99ca4a95 Bug 851892 part 19. Convert CSSCounterStyleRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 86f140582c Bug 851892 part 18. Convert CSSKeyframesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 85811452d4 Bug 851892 part 17. Convert CSSKeyframeRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky ffb7175144 Bug 851892 part 16. Convert CSSFontFeatureValuesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky aa1b340502 Bug 851892 part 15. Convert CSSFontFaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky c6365390a7 Bug 851892 part 14. Convert CSSPageRule to WebIDL. r=peterv,heycam
The PutForwards bit is a new feature, but easy enough to implement here.
2017-01-13 10:41:04 -05:00
Boris Zbarsky 85499be2bd Bug 851892 part 13. Convert media, supports, and moz-document rules to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 2132f0075d Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky a5709a4cb8 Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 1e1b760bf1 Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 7d89c9b854 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 4cc8d36e13 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky e1ec75387e Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 18c01c8290 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky bae3c90b82 Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam,smaug 2017-01-13 10:41:02 -05:00
Boris Zbarsky ec2fad773f Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv,smaug
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky 5bb4a84030 Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky e92f7dfbdc Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam,smaug 2016-11-30 18:18:14 -05:00
Carsten "Tomcat" Book 0cbb58ed4f merge mozilla-inbound to mozilla-central a=merge 2017-01-20 15:25:25 +01:00
Phil Ringnalda 63883b4e5f Merge m-c to m-i 2017-01-19 22:12:33 -08:00
Boris Zbarsky 89948607fd Bug 1332353. Make it clearer when a stylesheet is really owned by its mDocument. r=heycam 2017-01-19 23:49:44 -05:00
Wes Kocher 336f27142f Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3pEpsd3DljH
2017-01-19 16:47:25 -08:00
Carsten "Tomcat" Book 3b3ce27e84 Merge mozilla-central to mozilla-inbound 2017-01-19 16:35:21 +01:00
Carsten "Tomcat" Book 709bd29d0a merge mozilla-inbound to mozilla-central a=merge 2017-01-19 16:05:22 +01:00
Xidorn Quan 1305bbb18d Bug 1332193 - Fix several properties to return NeutralChange hint. r=heycam
MozReview-Commit-ID: GDNRy6vqmL8

--HG--
extra : rebase_source : 8705d493d33f6593846bea93ccb0b39c269688dd
2017-01-19 19:13:02 +11:00
Mark Banner 16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Xidorn Quan f7243c73aa Bug 1331903 part 3 - Force a recreation of the display subtree after testing each property in test_*_computation.html. r=heycam
MozReview-Commit-ID: 5W1tTBLpxvh

--HG--
extra : rebase_source : 53b98f2f386b74f4529115811725203c3e6c67f1
2017-01-19 16:49:49 +11:00
Xidorn Quan caab955875 Bug 1331903 part 2 - Do not add -moz-binding to gChildRule3 in test_inherit_computation.html. r=heycam
MozReview-Commit-ID: DIMW0KZeHo1

--HG--
extra : rebase_source : b4a564dc180cbeac38d2883262d7201ed71c26df
2017-01-19 16:49:05 +11:00
Xidorn Quan 92c1125f2e Bug 1331903 part 1 - Fix test_inherit_computation.html test for width and inline-size. r=heycam
MozReview-Commit-ID: HoGM5x7xVMK

--HG--
extra : rebase_source : 3b419e81561a669bdd5b0ee3877ec110f465bf4b
2017-01-19 22:33:33 +11:00
Timothy Nikkel 3ae338fa8f Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond 2016-12-25 00:18:08 -06:00
Ryan VanderMeulen 4eacb032f5 Merge autoland to m-c. a=merge 2017-01-18 09:24:55 -05:00
Cameron McCormack c5eaaabab2 Bug 1324663 - stylo: More crashtest annotation adjustments. r=me
MozReview-Commit-ID: DLHMu3nmLKO
2017-01-18 15:09:00 +08:00
Ting-Yu Lin 6240680e1f Bug 1331850 - Swap ClosestSide and FarthestSide in StyleShapeRadius. r=heycam
Make them match the order in nsCSSProps::kShapeRadiusKTable.

MozReview-Commit-ID: FOMelaA5sYv

--HG--
extra : rebase_source : b72b58c2f8388577389b73756d6e58d92c6f0c91
2017-01-18 12:01:57 +08:00
Astley Chen 01e184df82 Bug 1331296 : Part 4 - Remove CSS parser support of -moz-calc(). r=heycam
MozReview-Commit-ID: k5ENlCAXZf

--HG--
extra : rebase_source : 751aac202ed3c97847a1520f4f122ad8802a4a57
2017-01-18 10:50:31 +08:00
Astley Chen 8ce1c2ecff Bug 1331296 : Part 1 - Remove or unprefix -moz-calc() from layout tests. r=heycam
MozReview-Commit-ID: HKCS8Uqv1Cs

--HG--
extra : rebase_source : 1d49bf139db6204cf31fa6820cced7f5b8a17af6
2017-01-18 10:50:19 +08:00
Emilio Cobos Álvarez 3455634fb0 Bug 1331213: Implement the bulk of media query evaluation. r=heycam
Two main notes:

 * The nsStringBuffer bit goes untested, since it's only used on windows and
   there's no way I can test it, please review with care.

 * I haven't implemented yet the "enumerated" media queries. I'd want to do it
   as a follow-up, because I'm running out of time, and it requires some
   investigation.

MozReview-Commit-ID: 1pBbzyIViPk
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:20:13 +01:00
Emilio Cobos Álvarez 672bb172f2 Bug 1331213: Add an API to drop a nsCSSValue in the stack. r=heycam
The getter function may create an nsCSSValue with allocated stuff, and we don't
want to leak it.

MozReview-Commit-ID: DYkUD8CW88E
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:20:08 +01:00
Emilio Cobos Álvarez 1aed15b692 Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam
The setup is quite different to Servo-land, so add a comment about the different
setup.

Also, check viewport rules when flushing stylesheets. I believe that the
previous behavior is plain wrong, though I haven't taken the time to come up
with a test case.

In any case, it doesn't hurt any of both back-ends.

MozReview-Commit-ID: 46gtTkesOsr
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:20:03 +01:00
Emilio Cobos Álvarez 367ac14b53 Bug 1331213: Add an API to get nsMediaFeatures::features. r=heycam
We can't use the generated ones if we want a windows build.

MozReview-Commit-ID: 200LNgWl5Lm
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:19:57 +01:00
Emilio Cobos Álvarez c17c6d769f Bug 1331213: Export nsMediaFeatures.h and nsMediaList.h. r=heycam
We're going to bindgen them really soon.

MozReview-Commit-ID: 97E8z4YdFV9
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:19:52 +01:00
Florian Quèze 85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Emilio Cobos Álvarez c5efe3a064 Bug 1331272: Crashtest. r=bholley
MozReview-Commit-ID: 1bM83JuvtSm
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-16 20:32:31 +01:00
Emilio Cobos Álvarez 5d9ff23a95 Bug 1331581: Clean up nsMediaFeatureValueGetter. r=heycam
MozReview-Commit-ID: DlmGk2JSJ1l
2017-01-19 12:55:18 +01:00
Carsten "Tomcat" Book 7cb92b4443 merge mozilla-inbound to mozilla-central a=merge 2017-01-16 16:35:14 +01:00
Hiroyuki Ikezoe abd87081bf Bug 1330190 - Part 4: Resolve styles without animations in case of GetStyleContextForElementWithoutAnimation(). r=heycam
Now we skip nsAnimationManager::UpdateAnimations() and
EffectCompositor::UpdateEffectProperties() in case of
GetStyleContextForElementWithoutAnimation().

MozReview-Commit-ID: 4rF6n3XtMQq

--HG--
extra : rebase_source : b71e6a080df9ad730a4ee0b67d217d7f74df7de8
2017-01-16 17:41:20 +09:00
Hiroyuki Ikezoe 082a3da7a4 Bug 1330190 - Part 3: Add ResolvePseudoElementStyleWithoutAnimation. ?heycam r=heycam
This has the same functionality of ResolveStyleWithoutAnimation() but for pseudo
element instead.

MozReview-Commit-ID: I34lrfqdtuP

--HG--
extra : rebase_source : 5467923c4a4cb06e8999a1116cc2da9b2ed89c5e
2017-01-16 16:57:16 +09:00
Hiroyuki Ikezoe 37f87086c5 Bug 1330190 - Part 2: Add a new function named ResolveStyleWithoutAnimation. r=heycam
Unlike the other one this function does not need an old nsStyleContext.
This function just resolves style without all animation data in the first place.
The existing ResolveStyleWithoutAnimation is renamed to
ResolveStyleByRemovingAnimation.

MozReview-Commit-ID: 1RmCQNw0MmW

--HG--
extra : rebase_source : eaf55ecac77f6bb803b1f9508444bf34106d6da3
2017-01-16 16:57:13 +09:00
Hiroyuki Ikezoe 35cfe1a88f Bug 1330190 - Part 1: Add nsComputedDOMStyle::GetStyleContextForElementWithoutAnimation. r=heycam
We need another variant of GetStyleContextForElement() that does not consider
animation rules at all to get the base styles of the target element (i.e.
styles without animations).
In subsequent patches we also skip nsAnimationManager::UpdateAnimations() and
EffectCompositor::UpdateEffectProperties() to avoid (indirect) recursive calls
for resolving style of the same element.

MozReview-Commit-ID: G5olgXIMtvY

--HG--
extra : rebase_source : 1d08e649a4355262e2d83102c7b2de22cd7a67a1
2017-01-16 16:57:09 +09:00
Xidorn Quan 92f187a889 No bug - Change test_clip-path_polygon.html to use standard mode.
MozReview-Commit-ID: HPBjMMlJP4V

--HG--
extra : source : 12a8afbfe87f4efb16f219459a2d19b537161171
2017-01-16 18:05:49 +11:00
Phil Ringnalda c477aa8bd9 Merge m-i to m-c, a=merge 2017-01-15 12:34:02 -08:00
Phil Ringnalda 686006613e Backed out 20 changesets (bug 851892) for load failures in Android crashtest-4
Backed out changeset b9c4115cdeac (bug 851892)
Backed out changeset 5f491bf49b85 (bug 851892)
Backed out changeset 9bf5bcb3e8c5 (bug 851892)
Backed out changeset a9cab46e8b45 (bug 851892)
Backed out changeset 73858e15c8c0 (bug 851892)
Backed out changeset a25638588b6b (bug 851892)
Backed out changeset d58e0e5069ef (bug 851892)
Backed out changeset d8da2a3d8f10 (bug 851892)
Backed out changeset a8da3c34983f (bug 851892)
Backed out changeset 29cf8acbd21e (bug 851892)
Backed out changeset c53cd7bdf8b3 (bug 851892)
Backed out changeset e841a2796375 (bug 851892)
Backed out changeset 2eab85b00159 (bug 851892)
Backed out changeset ca4b1fb9cae4 (bug 851892)
Backed out changeset 74c0ba66f108 (bug 851892)
Backed out changeset 719bb9f41e5b (bug 851892)
Backed out changeset d6aa4c6192df (bug 851892)
Backed out changeset dc81a167a75d (bug 851892)
Backed out changeset 65422477b3a5 (bug 851892)
Backed out changeset 3089dd379077 (bug 851892)
2017-01-15 11:50:10 -08:00
Emilio Cobos Álvarez 7a40386fed Bug 1330874: Preserve neutral style changes for stylo. r=heycam
Since we use the presence of a change hint to determine whether we should
recreate a style context, we can't just strip them out on CalcStyleDifference.

MozReview-Commit-ID: GLhbTc2W3d7
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-15 16:10:01 +01:00
Phil Ringnalda 082d6bd9df Merge m-i to m-c, a=merge
MozReview-Commit-ID: 1NtOkt6oQ7d
2017-01-14 09:38:58 -08:00
Hiroyuki Ikezoe 66779abf27 Bug 1330824 - Drop skip-if from test cases that failed due to animation property handling for stylo. r=heycam
These test cases will not crash once the below PR gets merged into stylo tree.
https://github.com/servo/servo/pull/15022

MozReview-Commit-ID: LwU3RfhfVfH
2017-01-14 15:03:47 +09:00
Wes Kocher f8a62a9ce6 Merge m-c to inbound, a=merge
MozReview-Commit-ID: ASajzspkOe1
2017-01-13 15:48:34 -08:00
Manish Goregaokar a14215063b Bug 1297322: stylo: Hook property parsing into Gecko prefs; r=heycam
MozReview-Commit-ID: 7evWOUFwa3K

--HG--
extra : rebase_source : 7144248eee3f8af6863a4a401b6e504d3704e597
2017-01-09 16:05:18 -08:00
Manish Goregaokar 881c76ca8f Bug 1297322: stylo: Expose property-pref mappings; r=heycam
MozReview-Commit-ID: 7evWOUFwa3K

--HG--
extra : rebase_source : bb4913d1353c689bc18b0173aa940036b04eecbb
2017-01-09 16:05:18 -08:00
Manish Goregaokar cb2f1fea06 Bug 1331316 - stylo: support 1-arg CSS.supports(); r=heycam
MozReview-Commit-ID: 8di024Rxttn

--HG--
extra : rebase_source : 71b46d1f0950c96adb14c450e929d4b85b82e225
2017-01-15 23:09:42 -08:00
Boris Zbarsky 2e450c06d0 Bug 851892 part 20. Remove the remaining bits we added to support a mix of WebIDL and non-WebIDL rules. r=peterv 2017-01-13 10:41:05 -05:00
Boris Zbarsky f035fcf088 Bug 851892 part 19. Convert CSSCounterStyleRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky e5e72465fa Bug 851892 part 18. Convert CSSKeyframesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky d195e29770 Bug 851892 part 17. Convert CSSKeyframeRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 04f7e7401b Bug 851892 part 16. Convert CSSFontFeatureValuesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 3cbcb3bbc9 Bug 851892 part 15. Convert CSSFontFaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 34027d6d12 Bug 851892 part 14. Convert CSSPageRule to WebIDL. r=peterv,heycam
The PutForwards bit is a new feature, but easy enough to implement here.
2017-01-13 10:41:04 -05:00
Boris Zbarsky 53db7fe244 Bug 851892 part 13. Convert media, supports, and moz-document rules to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 12d9bfeec4 Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 596effcfff Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 72579551f8 Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky cea6088d45 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 13b4594e28 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 52920d72fc Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky f7a5133a06 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 1bde6ae3c2 Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 56e3ade4f8 Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky ff9df2fc65 Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky b428dc3b24 Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam 2016-11-30 18:18:14 -05:00
Boris Zbarsky 0c844d909c Back out bug 851892 for Windows build bustage on CLOSED TREE 2017-01-13 11:47:22 -05:00
Boris Zbarsky b8b31711eb More bug 851892 static analysis placation on CLOSED TREE 2017-01-13 11:25:29 -05:00
Boris Zbarsky d89603c419 Bug 851892 followup to placate static analysis and reopen the CLOSED TREE. 2017-01-13 11:08:01 -05:00
Boris Zbarsky b3100153cc Bug 851892 part 20. Remove the remaining bits we added to support a mix of WebIDL and non-WebIDL rules. r=peterv 2017-01-13 10:41:05 -05:00
Boris Zbarsky 3bbf9711a6 Bug 851892 part 19. Convert CSSCounterStyleRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 20af0376fd Bug 851892 part 18. Convert CSSKeyframesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 7659de2826 Bug 851892 part 17. Convert CSSKeyframeRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 31b541487b Bug 851892 part 16. Convert CSSFontFeatureValuesRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky 633ebb9323 Bug 851892 part 15. Convert CSSFontFaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:04 -05:00
Boris Zbarsky d4cc45490a Bug 851892 part 14. Convert CSSPageRule to WebIDL. r=peterv,heycam
The PutForwards bit is a new feature, but easy enough to implement here.
2017-01-13 10:41:04 -05:00
Boris Zbarsky 546d9dad1b Bug 851892 part 13. Convert media, supports, and moz-document rules to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 440a3a3356 Bug 851892 part 12. Convert CSSStyleRule to WebIDL. r=peterv,heycam,mccr8
The .style PutForwards bit is coming along for the ride; I did check that Chrome
already implements this, so we're not the only ones.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 3379caebf7 Bug 851892 part 11. Convert CSSImportRule to WebIDL. r=peterv,heycam,mccr8
Note that the .media PutForwards is a new feature coming along for the ride now
that we're using the spec IDL.
2017-01-13 10:41:03 -05:00
Boris Zbarsky 64dbc532d5 Bug 851892 part 10. Convert CSSNamespaceRule to WebIDL. r=peterv,heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 8cfef678c8 Bug 851892 part 9. Add a CSSRule Web IDL interface. r=peterv,heycam
Note that this explicitly drops CSSRule.UNKNOWN_RULE.
2017-01-13 10:41:03 -05:00
Boris Zbarsky c2d6f05094 Bug 851892 part 8. Get rid of css::Rule::GetDOMRule. r=heycam 2017-01-13 10:41:03 -05:00
Boris Zbarsky 75a4f847c1 Bug 851892 part 7. Push the nsIDOMCSSRule implementation up to css::Rule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky edd491c862 Bug 851892 part 6. Make css::Rule inherit from nsIDOMCSSRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky 2f515d8b8a Bug 851892 part 5. Get rid of DOMCSSStyleRule. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky d4570e4e2e Bug 851892 part 4. Make css::Rule wrappercached. r=heycam,peterv
Note that this increases the size of css::Rule by three words, unfortunately.
2017-01-13 10:41:02 -05:00
Boris Zbarsky 87ecdeb643 Bug 851892 part 2. Remove the now-unused GetExistingDOMRule method. r=heycam 2017-01-13 10:41:02 -05:00
Boris Zbarsky b775cd73c7 Bug 851892 part 1. Make all CSS rules cycle-collected. r=heycam 2016-11-30 18:18:14 -05:00
Carsten "Tomcat" Book d69139ac79 merge mozilla-inbound to mozilla-central a=merge 2017-01-13 10:20:25 +01:00
Bobby Holley e69afdcb2e Bug 1323671 - Reenable crashtests. r=me 2017-01-12 17:37:30 -08:00
Xidorn Quan f2f4bed2bc Bug 1328512 followup - Adjust expectation of several style system tests for stylo. DONTBUILD
MozReview-Commit-ID: DxfhNY6wf7e

--HG--
extra : source : e5f4d2cf019df56556cdb8d3007583ea9b2b5b49
2017-01-13 11:52:29 +11:00
Xidorn Quan a8e64a94e1 Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
MozReview-Commit-ID: 3uS9s5ZrPFd

--HG--
extra : rebase_source : ff64b4468ee99ba08fd8638298a27711b7fb6393
2017-01-12 12:23:37 +11:00
Cameron McCormack 08b7dde285 Bug 1330909 - Remove unused ListEnumData struct. r=xidorn
MozReview-Commit-ID: KSpORr80TTP

--HG--
extra : rebase_source : fb775fc5af8a2c911e938ffb0d1c47de46d02e2b
2017-01-13 16:38:14 +08:00
Hiroyuki Ikezoe bcd83bc12f Bug 1330513- Check that mCSSValueList is null in case of filter and shadow in StyleAnimationValue::Add(). r=boris
The StyleAnimationValue for filter and shadow has no mCSSValueList in case of
initial style.

MozReview-Commit-ID: JigQQBbx77x

--HG--
extra : rebase_source : b2bb513424a7d089c8dfb6b880dd7c7239280efb
2017-01-12 19:42:14 +09:00
Carsten "Tomcat" Book 3ad97e202a merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Bobby Holley 004deddec2 Bug 1330401 - Don't render explicit children of bound elements with no insertion points. r=bz 2017-01-11 21:08:03 -08:00
Boris Zbarsky cb9a17ea4c Bug 1330060 part 3. Update comment to correctly describe when we may have a Gecko style decl in Gecko_GetServoDeclarationBlock. r=heycam 2017-01-11 19:03:16 -05:00
Boris Zbarsky 635056e199 Bug 1330060 part 2. Gecko_GetServoDeclarationBlock should use Element::GetInlineStyleDeclaration instead of reinventing it. r=heycam 2017-01-11 19:03:16 -05:00
Cameron McCormack 9f99f387ac Bug 1324663 - stylo: Adjust expectations now that we've disabled style context tree structure assertions. r=me
MozReview-Commit-ID: EORVNMWW7gu
2017-01-11 20:35:12 +08:00
Nicholas Nethercote 0b2b65edc8 Bug 1325503 - Remove Windows {XP, Server 2003, Vista} support from widget/. r=jimm.
I did my best to remove as much stuff as possible in this patch. The starting
point was to remove all the IsVistaOrLater() and IsWin7OrLater() calls, but I
also grepped for various strings and found some other removable stuff that way.
I may have still missed some things.

Notable things done by this patch.

- It removes numerous blocklist entries.

- It removes CanComputeVirtualKeyCodeFromScanCode(), because it's always true
  now.

- It removes ShowXP{Folder,File}Picker(), even though these were available as
  fallbacks on Vista+. The "when platform is built without the longhorn SDK"
  condition in the comment above nsFilePicker::ShowXPFolderPicker() sounds like
  it won't ever happen any more.

- It removes the config.trim_on_minimize preference. This requires adding a
  bool sHaveInitializedPrefs variable; previously the lack of pref
  initialization was indicated by the tri-state sTrimOnMinimize variable having
  the value 2.

Notable things *not* done by this patch.

- ClearThemeRegion() still exists. The comment suggests that it is XP/Vista
  only, but the code suggests otherwise. jimm thinks the comment is wrong.

- The comment in WinWakeLockListener::Callback() suggests that the StartTimer()
  call is no longer needed to block the screen saver. I'm uncertain about this
  and so I think it's best left to a follow-up.

--HG--
extra : rebase_source : f46645907d237423fd6115ab1b4725b023a0dce3
2016-12-23 13:13:31 +11:00
Xidorn Quan c6411b5c55 Bug 1329533 - Enable test_value_storage.html for stylo. DONTBUILD
MozReview-Commit-ID: BKazdZjeqgV

--HG--
extra : rebase_source : 75ff072515afc74226cf931142a5847a9d261fab
extra : source : a59d450727b2ab621890b388f0be5dd63ed4dab5
2017-01-10 16:12:21 +11:00
Wes Kocher 105aea2522 Merge m-c to inbound a=merge
MozReview-Commit-ID: G24aq5fbYNd
2017-01-09 16:44:58 -08:00
Cameron McCormack 466ecf05e1 Bug 1324705 - stylo: Update some crashtest assertion expectations. r=emilio
These were fixed by https://github.com/servo/servo/pull/14922.

MozReview-Commit-ID: 3Ypfq0BmkIY

--HG--
extra : rebase_source : c32e69303826b65059dcae963ddce94f5f4c40f8
2017-01-09 17:34:16 +08:00
Cameron McCormack 9560e97767 Bug 1323665 - Part 2: Allow StyleSheet.disabled CSSOM access to disable/enable a ServoStyleSheet. r=xidorn
Now that bug 1290209 has landed, we can make StyleSheet.disabled work in Servo
styled documents.  This fixes a bunch of test crashes due to the assertion no
longer firing.

MozReview-Commit-ID: 6sLrdrxWlvK

--HG--
extra : rebase_source : cf8ab29f98fbba6be837a38ffe2a03ed9b33b701
2017-01-09 17:44:30 +08:00
Cameron McCormack 4a5ea32ba0 Bug 1323665 - Part 1: Adjust some ServoStyleSet assertions. r=xidorn
We're incorrectly asserting that a sheet is applicable when we remove it from
the style set, but we'll actually cause the sheet to be not applicable just
before we remove it from the style set.  (Note how nsStyleSet doesn't assert
this in RemoveStyleSheet.)  Also, we were missing a corresponding assertion
in AddDocStylesSheet.

MozReview-Commit-ID: E5qwxwrA74F

--HG--
extra : rebase_source : 1915553a0aa6f45b347db34feace35802983b05a
2017-01-09 17:42:52 +08:00
Cameron McCormack d628134419 Bug 1323706 - stylo: Re-enable one test now that StyleSheet.media works. r=xidorn
We no longer crash, though we still have a couple of assertions.

MozReview-Commit-ID: 189zGH1LdLY

--HG--
extra : rebase_source : 0c3c59b7f154b6c94681c62f1d537d748fec466a
2017-01-09 16:43:18 +08:00
Manish Goregaokar 960f182e2f Bug 1317208 - Stylo: Store servo computed values for animation properties; r=birtles,heycam
MozReview-Commit-ID: IoQLN5tdIBw

--HG--
extra : rebase_source : da6a19192b639feaef828d2849fc8e4f8085c0f4
2016-11-30 17:34:54 -08:00
Xidorn Quan e7b267ea34 Bug 1328512 part 3 - Change stylo mochitest task to run all style system mochitests rather than tagged ones. r=gps
MozReview-Commit-ID: 7rUHpTFQflF

--HG--
extra : rebase_source : 72a62e1a582afc59ef6cc9c1488862efb14dedc8
2017-01-04 16:37:08 +11:00
Xidorn Quan 6d87099ce5 Bug 1328512 part 2 - Skip crashing/timeout mochitests on stylo. r=heycam
MozReview-Commit-ID: IzjGHfnTi60

--HG--
extra : rebase_source : a897a9a8bbf971e2962bcc5c2336c913884e6d16
2017-01-09 11:45:32 +11:00
Xidorn Quan 780e1de0b0 Bug 1328512 part 1 - Reorder some items slightly. r=heycam
MozReview-Commit-ID: HFLBml0V0YZ

--HG--
extra : rebase_source : af3b6cdd193285619a6324d1b54c87f843bd0add
2017-01-04 15:52:23 +11:00
Ryan VanderMeulen 1e6f972917 Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
Xidorn Quan bab46fee29 Bug 1326145 - Remove HAVE_CPP_AMBIGUITY_RESOLVING_USING. r=froydnj
MozReview-Commit-ID: FVDZjTJ4ZhA

--HG--
extra : rebase_source : 8767112e8969cd9a3c4c118a01bec6b174024a7f
2016-12-29 18:05:20 +11:00
Iris Hsiao 7e248d8cc9 Merge mozilla-central to autoland 2017-01-06 11:13:22 -05:00
Iris Hsiao 7adb57a57f merge autoland to mozilla-central a=merge 2017-01-06 11:06:17 -05:00
Xidorn Quan cddd3c28b2 Bug 1329076 followup - Fix bustage.
MozReview-Commit-ID: ESupMqRP4ff
2017-01-06 22:10:08 +11:00
Ting-Yu Lin 53633b1c42 Bug 1320014 Part 14 - Convert NS_SIDE_TO_HALF_CORNER to a constexpr function. r=mats
MozReview-Commit-ID: 4MQu8omCdcg

--HG--
extra : rebase_source : 0bce3eb380c2bacd5a4576e1a57c96afb8b57160
2017-01-05 16:23:16 +08:00
Ting-Yu Lin 9a76c43bf0 Bug 1320014 Part 13 - Convert NS_SIDE_TO_FULL_CORNER to a constexpr function. r=mats
MozReview-Commit-ID: 4r4jEN2LklH

--HG--
extra : rebase_source : 8a60bbb322f586af1a859b9408b10685169913e7
2017-01-05 16:13:34 +08:00
Ting-Yu Lin 78cc3f541d Bug 1320014 Part 12 - Convert NS_SIDE_IS_VERTICAL to a constexpr function. r=mats
MozReview-Commit-ID: GFdigJKppuR

--HG--
extra : rebase_source : d3a66d22d99d2988d5c3c44bc1da51e30efa8d1a
2017-01-05 16:07:02 +08:00
Ting-Yu Lin 160ed71c4e Bug 1320014 Part 11 - Convert NS_FULL_TO_HALF_CORNER to a constexpr function. r=mats
Because the new function checks types, we need to change the fullCorner type
in nsComputedDOMStyle::GetEllipseRadii() and
StyleAnimationValue::ExtractComputedValue() from uint8_t to |Corner| to fix
build error.

MozReview-Commit-ID: 5NuFE3yA2QD

--HG--
extra : rebase_source : 8f94209b24bd909839358cd502f462edb9ce3116
2017-01-05 14:59:17 +08:00
Ting-Yu Lin cf828e1584 Bug 1320014 Part 10 - Convert NS_HALF_TO_FULL_CORNER to a constexpr function. r=mats
MozReview-Commit-ID: 1PECc7hm249

--HG--
extra : rebase_source : 7784720bb9ae061689cba0b30c0aebc779d818b1
2017-01-05 14:39:58 +08:00
Ting-Yu Lin 229d433359 Bug 1320014 Part 9 - Convert NS_HALF_CORNER_IS_X to a constexpr function. r=mats
MozReview-Commit-ID: 3d2opSIjAUc

--HG--
extra : rebase_source : 03e55f0458dd305fa782ca1e46c32069045e86e9
2017-01-05 14:30:14 +08:00
Ting-Yu Lin df030594f6 Bug 1320014 Part 8 - Move NS_FOR_CSS_HALF_CORNERS to Types.h and rewrite it. r=mats
MozReview-Commit-ID: 5UkZUSe5stP

--HG--
extra : rebase_source : e8c33473a39088d9bd807920630500b31ac6228f
2017-01-05 12:03:23 +08:00
Ting-Yu Lin 797609894a Bug 1320014 Part 7 - Convert half corner indices #define to an enum. r=mats
MozReview-Commit-ID: 8lNtjV14WTN

--HG--
extra : rebase_source : dbfa992a2ee3cab2f639fb5a68463a673410ade6
2017-01-05 11:31:38 +08:00
Ting-Yu Lin 2dada2d6e0 Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
MozReview-Commit-ID: ERAwdxKZPf7

--HG--
extra : rebase_source : 53eb8d15ecd0d9d8fd0c7b88872b210b54104725
2017-01-04 18:15:30 +08:00
Ting-Yu Lin 5c9728b639 Bug 1320014 Part 5 - Remove NS_FOR_CSS_CORNERS. r=mats
Remove NS_FOR_CSS_FULL_CORNERS implementation, and rename NS_FOR_CSS_CORNERS
to NS_FOR_CSS_FULL_CORNERS.

MozReview-Commit-ID: 2kmPUZDz3bj

--HG--
extra : rebase_source : a8374d10c9f398b0593d7338be210a1fde25bdc4
2017-01-04 17:52:43 +08:00
Ting-Yu Lin d4db857fcf Bug 1320014 Part 2 - Rename Corner to LogicalCorner, and move it to nsStyleCoord.h. r=mats
To avoid confusion with the mozilla::css::corner, rename ::Corner to
mozilla::LogicalCorner, and move it to nsStyleCoord.h. Also, append
LogicalCorner prefix to all the enum values to match the coding style.

It also fixed the build error preemptively in a later patch that removing
::css namespace from mozilla::css::corner.

MozReview-Commit-ID: BbRYFuT3v4W

--HG--
extra : rebase_source : b8891eaa475c803de9a2137cb5e9a5a4bde37b9f
2017-01-04 16:52:12 +08:00
Xidorn Quan cd5b8893bf Bug 1326167 - Hook ServoStyleSheet and ServoCSSRuleList into cycle collection. r=bz
MozReview-Commit-ID: 6n1rjB8aMqp

--HG--
extra : rebase_source : 8bab3247e2ef101c190881ec4d19a8bb543587e0
extra : source : 3e774461c2cf59f3835806c1e6441c0ef263aec4
2017-01-06 15:14:28 +11:00
Tomer Cohen d0e2761f49 Bug 849404 RTL support for text/plain documents r=dbaron
The addition of unicode-plaintext to the pre element will make RTL text to appear from right to left. The html[dir] pre rule will make sure that this addition won't break the 'switch page direction' functionality.

MozReview-Commit-ID: 2JXJjqt2iuX

--HG--
extra : rebase_source : 98c85228ce50fa145bfaa77051532f69e92ba98d
2016-12-24 01:59:12 +02:00
Wes Kocher 0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
Hiroyuki Ikezoe 0e03cf5f82 Bug 1328535 - Remove range-checking assertion for aDilutionRatio, in color animation code. r=dholbert
Some cubic-bezier functions, e.g. cubic-bezier(0,-0.5,0,0), produce values out
of range of [0, 1].

MozReview-Commit-ID: 9ZTsTRTcUaI

--HG--
extra : rebase_source : 7edf0c4d2702a502a9c0422be83ce7229751e815
2017-01-05 09:05:57 +09:00
Phil Ringnalda d105fd40fd Merge m-c to autoland 2017-01-04 19:01:49 -08:00
Phil Ringnalda c83d1d7ce9 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 51FMtH1yTe6
2017-01-04 18:33:32 -08:00
Boris Zbarsky e080ecc8e9 Bug 1298588 part 16. Remove StyleStructContext. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky e95482db38 Bug 1298588 part 15, gecko piece. Rip out the initial() methods on style structs in stylo. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 85a6ca2630 Bug 1298588 part 10, gecko piece. Pass through useful default styles to apply_declarations(). r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 99d2e96def Bug 1298588 part 9, gecko piece. Pass through useful default styles to cascade(). r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky eebd58fd31 Bug 1298588 part 7, gecko piece. Stop using initial_values in general in Gecko glue code. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky bd53996269 Bug 1298588 part 6, gecko piece. Stop using initial_values when doing inheritance in Gecko glue code. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 9f8934b143 Bug 1298588 part 4, gecko piece. Recreate the default computed values for a document as needed. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky 6104ba14f9 Bug 1298588 part 3, gecko piece. Add a default ComputedValues member to PerDocumentStyleData. r=bholley 2017-01-04 14:52:26 -05:00
Boris Zbarsky a3a6e58c68 Bug 1298588 part 2, gecko piece. Pass through an nsPresContext to the PerDocumentStyleData constructor. r=bholley 2017-01-04 14:52:26 -05:00
Boris Zbarsky d6ee8eb8a9 Bug 1298588 part 1. Make StyleStructContext work with a const nsPresContext. r=bholley 2017-01-04 14:52:26 -05:00
Xidorn Quan 97d13f46a3 Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron
I think there are three advantages of this change:
1. removes some dependencies from layout / painting code to pre-computed
   value stuff in the style system;
2. makes it easier to audit usage of specific fields in style structs
   (which is probably a side effect of the first one);
3. potentially improves performance since it doesn't go through the
   unnecessary general logic in ExtractComputedValue.

Also, combined with the part before, we get a unified list for visited-
dependent properties so that we can ensure the assertion here and the
style difference calc code are consistent.

MozReview-Commit-ID: 5B9aN7CfRgI

--HG--
extra : rebase_source : ac80eaea2474b9ec4b47b1cc9a5bdd2e61f6ec4d
2016-12-31 00:57:37 +11:00
Xidorn Quan 801cd27579 Bug 1303241 part 1 - Move visited-dependent style fields into a list file. r=dbaron
MozReview-Commit-ID: K4kc8ByNGoT

--HG--
extra : rebase_source : 0225be937ea2706ec43f56211550b966859afc8c
2017-01-05 11:22:36 +11:00
Phil Ringnalda c4d1ea9a14 Merge m-c to m-i
MozReview-Commit-ID: JYNBUrs2zC5
2017-01-03 18:46:43 -08:00
Phil Ringnalda 82ebc0c5ea Merge m-i to m-c, a=merge
MozReview-Commit-ID: FEe5yZfka5J
2017-01-03 18:40:26 -08:00
Olli Pettay 0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Ray Lin 22a003ad67 Bug 1322512 - force <audio controls> to have horizontal writing-mode, so that its control bar is never an orthogonal flow. r=dholbert
MozReview-Commit-ID: 4hLOYrBtiGc

--HG--
extra : rebase_source : be6bf19989c458ca46f3172ffbec6c023e71c9bd
2016-12-23 15:21:46 +08:00
Tim Nguyen d7db347638 Bug 1322938 - Basic implementation of HTMLDialogElement. r=smaug, masayuki
MozReview-Commit-ID: AU92mq2QZIc
2016-12-23 16:01:50 +01:00
Cameron McCormack 171e45e09c Bug 1328223 - stylo: Ignore invalid URLs from @import rules. r=emilio
MozReview-Commit-ID: BTEPxCXiR9O
2017-01-03 18:35:15 +08:00
Timothy Nikkel 216c1f3917 Backed out changeset c2f49fba3f4d (part 3 of bug 1317562) for causing bug 1325910. 2017-01-02 16:49:29 -06:00
Cameron McCormack 3c057d1a75 Bug 1323717 - Re-enable 1290994-4.html. r=manishearth
MozReview-Commit-ID: 1LRTnuK0ulh

--HG--
extra : rebase_source : da27637bb01b0946c759e52bd3ea01560f959b55
2017-01-02 15:44:23 +08:00
Daniel Holbert 2c23d97ecd Bug 1326574: Add some needed includes/forward-declarations in layout/style, to preemptively fix unified bustage. r=xidorn
MozReview-Commit-ID: 2vM3aiR87T3

--HG--
extra : rebase_source : 8bff626c7f283b67b5178bae06ab5606b24c0119
2016-12-31 16:10:45 -08:00
Xidorn Quan c26fcf05e4 Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
MozReview-Commit-ID: 1n3TC3CVY7U

--HG--
extra : rebase_source : 6b402a2493f58d114a9898a4d556587fdc98a9ee
2016-12-30 02:03:29 +11:00
Jeremy Chen 213197e5e1 Bug 1328540 - trim trailing whitespaces. r=jeremychen
Trim trailing whitespaces for files that are touched in this bug:

  gfxTextRun.h
  gfxTextRun.cpp
  nsTextFrame.cpp
  nsCSSProps.cpp

MozReview-Commit-ID: FmiW2QiCoFv

--HG--
extra : rebase_source : cbc9ae8c3c4410d1fe79c027d4ccf11b45c8bd19
2017-01-04 23:55:16 +08:00
Jeremy Chen f735dd2d2c Bug 1328540 - convert NS_STYLE_HYPHENS_* to an enum class. r=xidorn
MozReview-Commit-ID: BwTzbA29Y3H

--HG--
extra : rebase_source : fc07d2c881a8ccc618fd1776d1e977c051b0032f
2017-01-04 23:55:16 +08:00
cku 06b5fc97f9 Bug 1329091 - Keep mask style value to determine whether cached mask layer is corrupt. r=mstange
MozReview-Commit-ID: J2CFFi5pN7H

--HG--
extra : rebase_source : 44f6568e986bee87582558791d29dd7c0d63b29b
2017-01-06 17:53:30 +08:00
Xidorn Quan d1ef4e2659 Bug 1329076 part 3 - Add :-moz-browser-frame pseudo-class. r=heycam
MozReview-Commit-ID: 8W9jqD4iJlN

--HG--
extra : source : fcb6a787f0cd4dc015af8801f9820fd3dbcf389d
2017-01-06 21:12:08 +11:00
Xidorn Quan 76040295f6 Bug 1329076 part 2 - Move some pseudo-classes which depend on only the element to an independent function. r=heycam
I'm a bit concerned about the additional, probably un-inlineable, function call
in this path. I'm not sure how hot this path would be.

MozReview-Commit-ID: 6eFuUP5EHbV

--HG--
extra : source : 98708fba89b0be9da67aebcd2ed28bb491c5979e
2017-01-06 21:12:08 +11:00
Xidorn Quan 1b2b0886c9 Bug 1329076 part 1 - Change a bit about the code struct of pseudo-class matching in SelectorMatches. r=heycam
MozReview-Commit-ID: GE8rvA6DVp7

--HG--
extra : source : f5fb600d5d8864965de368caf022b358e4a9faf9
2017-01-06 21:12:08 +11:00
Cameron McCormack 076ab88629 Bug 1290209 - Part 9: Don't return early from Loader::PrepareSheet for a ServoStyleSheet. r=xidorn
MozReview-Commit-ID: 8NXajQ6pMqi
2017-01-06 15:05:24 +08:00
Cameron McCormack 13ce7a2e81 Bug 1290209 - Part 8: Move CSSStyleSheet::SetEnabled up to StyleSheet. r=xidorn
MozReview-Commit-ID: 7shpy5ghnVR
2017-01-06 15:05:24 +08:00
Cameron McCormack e1710ec7c9 Bug 1290209 - Part 7: Rename an argument. r=xidorn
MozReview-Commit-ID: DQ3gTkgnDR2
2017-01-06 15:05:24 +08:00
Cameron McCormack ff8152efd2 Bug 1290209 - Part 6: Move CSSStyleSheet::mMedia up to StyleSheet. r=bzbarsky
MozReview-Commit-ID: LZraHzme6vj
2017-01-06 15:05:24 +08:00
Cameron McCormack 47b15a4d16 Bug 1290209 - Part 5: Change nsMediaList's style sheet pointer from a CSSStyleSheet to a StyleSheet. r=xidorn
MozReview-Commit-ID: LdtTfnNCewU
2017-01-06 15:05:24 +08:00
Cameron McCormack dac9bf75bf Bug 1290209 - Part 4: Delete trailing spaces in nsMediaList.cpp. r=xidorn
MozReview-Commit-ID: KIOoUliYCFG
2017-01-06 15:05:24 +08:00
Cameron McCormack 804359296a Bug 1290209 - Part 3: Move media queries related class implementations from CSSStyleSheet.cpp to nsMediaList.cpp. r=xidorn
MozReview-Commit-ID: DA8lAPCXTkm
2017-01-06 15:05:24 +08:00
Cameron McCormack 867a329fd4 Bug 1290209 - Part 2: Remove unused friend declaration. r=xidorn
MozReview-Commit-ID: LJKv2oiGO4u
2017-01-06 15:05:24 +08:00