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

11732 Коммитов

Автор SHA1 Сообщение Дата
Fernando Jimenez Moreno 3a2e1cf12d Bug 1370501 - stylo: Implement ServoStyleRule::GetSpecificity. r=emilio
MozReview-Commit-ID: Kxa7Q3Yw4It

--HG--
extra : rebase_source : 4af8753c6c9d83d34ea2f13cd4cac04595ac7432
2017-06-12 14:54:44 +02:00
Fernando Jimenez Moreno 1c57cc83d0 Bug 1370501 - stylo: Fix ServoStyleRule::GetSelectorTextFromIndex. r=emilio
MozReview-Commit-ID: 6STojaOLggZ

--HG--
extra : rebase_source : 39e3949e17c018795e9565124c14f9b7c96f4b53
2017-06-12 14:54:39 +02:00
Nazım Can Altınova f80a6fcb2c Bug 1355724 - stylo: Update test expectations for :active and :hover quirk r=emilio
MozReview-Commit-ID: 9nm2PnK9T7R

--HG--
extra : rebase_source : 1608c1b6e67a0416fcc906d0bc2a503d2452f449
2017-06-10 22:34:51 +03:00
Nazım Can Altınova b90d026edb Bug 1355724 - stylo: Fix propagation of quirks mode information to servo side r=emilio
It was getting inial value from gecko side before and that was always
eCompatibility_NavQuirks. Created an FFI to fetch quirks mode.

MozReview-Commit-ID: 1lXsM9hwldZ

--HG--
extra : rebase_source : 17093f4cd46cc630d36535b01c8924e67ec98b3f
2017-06-10 17:22:23 +03:00
Jeff Hajewski 21dd3e708d Bug 1371354: Changes macro defined NS_SYTLE_IMAGELAYER_ to enum class StyleImageLayer; r=manishearth
MozReview-Commit-ID: DgvenevRHg2
2017-06-09 16:53:34 -07:00
Jessica Jong e105f0644d Bug 1311857 - Adjust CSS for date/time widget internals to prevent them from overflowing the widget. r=dholbert
MozReview-Commit-ID: FhHdjGayUB1

--HG--
extra : rebase_source : e8de2487583e30fbd5618988f051fd73928917b9
2017-04-21 16:18:19 +08:00
Cameron McCormack e3babb3936 Bug 1369954 - Part 5: Add FFI function for checking whether an element has XBL-created anonymous content. r=emilio
MozReview-Commit-ID: 2ZXyBzxkfsA
2017-06-09 21:18:11 +08:00
Cameron McCormack 2b2b1ce4d9 Bug 1369954 - Part 2: Remove unused Gecko_GetParentElement. r=emilio
MozReview-Commit-ID: 6MluHzBDDxO

--HG--
extra : rebase_source : 83432b6a05f8d02a47ed089fcf28b57b30b49a9e
2017-06-09 11:20:30 +08:00
Cameron McCormack 3c93a04152 Bug 1369954 - Part 1: Rename Gecko_GetParentNode to Gecko_GetFlattenedTreeParentNode. r=emilio
MozReview-Commit-ID: 66XOnRQpqHT

--HG--
extra : rebase_source : fc5a1250191b21cad8e1ca94272fb8a855baf4ae
2017-06-09 17:15:08 +08:00
Jonathan Hao dca1a28633 Bug 1217238 - Reduce time precision when privacy.resistFingerprinting is on. r=mystor
This patch is adapted from Tor bug 1517.

To offer some protection against timing attacks by JS content pages, in this
patch we round the various time-exposing APIs (such as Date and
Event.timeStamps) to the nearest 100 ms when the pref "privacy.resistFingerprinting" is on.

MozReview-Commit-ID: eGucM9nGTn

--HG--
extra : rebase_source : 3ee600b07943f3954e9a2a9561391f2f7821bb86
2017-06-06 11:45:14 +08:00
Brian Birtles f7f386ac4e Bug 1371196 - Round font-weight when interpolating, don't floor; r=hiro
The spec says,

 font weight: interpolated via discrete steps (multiples of 100). The
 interpolation happens in real number space and is converted to an integer by
 rounding to the nearest multiple of 100, with values halfway between
 multiples of 100 rounded towards positive infinity.[1]

However, our implementation pre-dates this spec text (bug 528234 landed Nov 2009
whereas the spec was updated in Mar 2012[2]).

This patch rounds the result by simply adding 50 to the result before we floor
it (which is good enough in this case because we don't need to worry about
negative values).

It also slightly simplifies the logic by re-using Clamp from MathAlgorithms.h.

[1] https://drafts.csswg.org/css-transitions/#animtype-font-weight
[2] 00c6286109

MozReview-Commit-ID: BjCg7MG70hW

--HG--
extra : rebase_source : 879ea18d7d1a49ff425d6e467081983a130a65e3
2017-06-09 12:19:47 +09:00
Wes Kocher 1be06aea28 Merge m-c to autoland, a=merge
UPGRADE_NSS_RELEASE

MozReview-Commit-ID: ItWcUAUYyaj

--HG--
extra : amend_source : fc43f23f0e12d5f88d72be9526a953d8015e6975
2017-06-08 18:44:32 -07:00
Manish Goregaokar 02cc1f82e0 Bug 1364162 - Part 2: stylo: Make all attribute selectors respect case insensitivity; r=SimonSapin
MozReview-Commit-ID: 1sCnU2fG1IB
2017-06-08 18:32:04 -07:00
Wes Kocher cf0077dc65 Merge autoland to m-c a=merge
MozReview-Commit-ID: BfLXAwELA2k
2017-06-08 18:35:34 -07:00
Carsten "Tomcat" Book 247a47fac9 Merge mozilla-central to mozilla-inbound 2017-06-08 15:16:36 +02:00
Ben Kelly 7d8dea31fc Bug 1369350 Add additional delay to test_dont_use_document_colors.html since nsPresContext delays applying prefs. r=dbaron 2017-06-08 05:47:16 -07:00
Hiroyuki Ikezoe 5626c5dfa9 Bug 1358966 - Serialize multiple AnimationValue(s) for sub properties of a shorthand into single shorthand string. r=birtles,manishearth
MozReview-Commit-ID: KihUZRSD6pg

--HG--
extra : rebase_source : 8a75edcde8acf5c47981ef009d7a3c2b1d40c777
2017-06-09 06:19:38 +09:00
Hiroyuki Ikezoe ee1e77aa75 Bug 1358966 - Drop a redundant include for DeclarationBlockInlines.h. r=birtles
MozReview-Commit-ID: Av21Kes51z8

--HG--
extra : rebase_source : 0eec580400f4b0c72f13b11ad708c9e87f5a8b18
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 9af90ec795 Bug 1358966 - Use Servo_GetAnimationValues. r=birtles
MozReview-Commit-ID: 7ag2IFUViDX

--HG--
extra : rebase_source : d545bf833a4bc428bf9141ff4cdfac05f4c453e1
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe 55195fc497 Bug 1358966 - Add a new FFI to convert PropertyDeclarationBlock into nsTArray<RefPtr<RawServoAnimationValue>>. r=birtles
With this function we can get multiple RawServoAnimationValue(s) for shorthand
properties.

MozReview-Commit-ID: GPqmsOfVB0

--HG--
extra : rebase_source : a822f574eeb552ad72748bbe4b89f6139621c880
2017-06-09 06:19:37 +09:00
Hiroyuki Ikezoe b8392ab3cc Bug 1358966 - Drop RawGeckoAnimationValueList. r=birtles
We no longer use it.

MozReview-Commit-ID: 5C0YbzQo6WP

--HG--
extra : rebase_source : 8244c3d22227dab3538fa1d00014d64e2f4d22bc
2017-06-09 06:19:36 +09:00
Hiroyuki Ikezoe 5fb6419612 Bug 1358966 - Drop parent style argument from Gecko_UpdateAnimations. r=birtles
MozReview-Commit-ID: KG0EPjTtqGH

--HG--
extra : rebase_source : a95c5dd11f29c9c07a6bffa885c8febb1c056143
2017-06-09 06:19:36 +09:00
Xidorn Quan 7f22b593d5 Bug 1345709 - Lowercase color keyword in specified value. r=heycam
MozReview-Commit-ID: d5cbTvSpQt

--HG--
extra : rebase_source : 0bd6e318e4372ab5c26bf2db28e75486b28419f0
2017-06-06 14:48:33 +10:00
Cameron McCormack 3e80edcca3 Bug 1365162 - Part 6: Add FFI function for matching :lang(). r=emilio
MozReview-Commit-ID: 4iFDJpzQ3p8

--HG--
extra : rebase_source : 8230d7aaed631ebf9be91b7ab099806b2a22eaae
2017-06-07 12:27:58 +08:00
Cameron McCormack 84f883b1fb Bug 1365162 - Part 5: Factor out :lang() matching function. r=emilio
MozReview-Commit-ID: KhCd90UPatX

--HG--
extra : rebase_source : f0514a8ee96c9b97e8a4fb98c56f2c256349ec00
2017-06-07 12:17:31 +08:00
Cameron McCormack 9f79fac590 Bug 1365162 - Part 4: Add FFI functions for getting the relevant lang attribute value for an element or snapshot. r=emilio
MozReview-Commit-ID: 6xL0FI2qrG1

--HG--
extra : rebase_source : cdaf7ea69d654fd5e6b763d109273ae3dfed92cc
2017-06-07 12:16:52 +08:00
Cameron McCormack 8dfd22578a Bug 1365162 - Part 3: Record on snapshots whether the element supports lang="" attributes. r=emilio
MozReview-Commit-ID: KpzwsKpBiOO

--HG--
extra : rebase_source : c7c5b85d37f1276b04cfd3c0b538f2f6e55f95af
2017-06-07 11:11:44 +08:00
Ryan VanderMeulen 9b7a73b65a Merge m-c to autoland. a=merge
UPGRADE_NSPR_RELEASE UPGRADE_NSS_RELEASE

--HG--
extra : amend_source : a59e53ba2f8db608f613f21ad6da2b5be8814aa4
2017-06-07 22:55:56 -04:00
Hiroyuki Ikezoe cdde6f6108 Bug 1368889 - Post animation restyle hint againt pseudo element instead of its parent. r=birtles
To traverse pseudo elements in animation-only restyle, the pseudo element
itself needs the animation-only dirty bit.

MozReview-Commit-ID: 11RfVqnPXfJ

--HG--
extra : rebase_source : d048c9a053c03bf3fef46fcbfd9cbd5f60204e1d
2017-06-08 10:22:25 +09:00
Mats Palmgren 7dd909a5ce Bug 1367207 part 4 - Use LookupRemoveIf() to avoid a second hashtable lookup for Remove(). r=dholbert
MozReview-Commit-ID: 6EYkiKpLHvI
2017-06-07 15:22:41 +02:00
Mats Palmgren b6cdce350c Bug 1367207 part 2 - Update mFrameToRequestMap/mRequestToFrameMap more efficiently on frame removal. r=dholbert
Specifically:
* Factor out updating mFrameToRequestMap/mRequestToFrameMap to helper functions.
* Deal with mFrameToRequestMap directly in DropRequestsForFrame to avoid
  a second hashtable Get().
* Use RemoveAndForget() to remove the entry upfront and iterate that instead of
  making an nsTArray copy.  And don't remove entries from the array while
  iterating - the array will be deleted when the nsAutoPtr goes out of scope.

MozReview-Commit-ID: 7Z7FMXMvM14
2017-06-07 15:22:41 +02:00
Mats Palmgren a99de96d28 Bug 1367207 part 1 - Add a nsIFrame bool:1 member to track whether the frame has some image requests associated with it. Skip the call to DropRequestsForFrame() on frame destruction if the bit isn't set. r=dholbert
MozReview-Commit-ID: 5CLpsQgJkCv
2017-06-07 15:22:41 +02:00
Manish Goregaokar b54d85dfda Bug 1370734 - Whitelist ThreadSafeGetDefaultFontHelper; r=bustage
MozReview-Commit-ID: 96EmHaniGda
2017-06-07 16:33:19 -07:00
Manish Goregaokar 14874cee6d Bug 1371408 - stylo: MediaList getter should return null when string is not found; r=bholley
MozReview-Commit-ID: Ic17C29dX33

--HG--
extra : rebase_source : 169d6949b4e90ddf83d144748828e368be9b9b29
2017-06-08 13:32:25 -07:00
Brad Werth 2bbab90d60 Bug 1367523 Part 3: Re-enable layout/style/test/test_stylesheet_clone_font_face.html. r=heycam
MozReview-Commit-ID: J7oWXP7KnHx

--HG--
extra : rebase_source : d7394696669cf88d0c812b847edac2649aeebc33
2017-05-30 17:55:42 -07:00
Brad Werth ab169a136f Bug 1367523 Part 2: Gecko-side implement the CounterStyle and FontFaceRule clone functions. r=heycam
MozReview-Commit-ID: HHGgItSdyZ5

--HG--
extra : rebase_source : 197f6c3b4b10551ad6942a361b9c8e2c9e3d0ed2
2017-05-22 17:21:09 -07:00
Matt Brubeck 08a58f27a1 Bug 1367310 - Update stylo test expectations. r=xidorn
MozReview-Commit-ID: Kn79g3cfQTr

--HG--
extra : rebase_source : 71cea79f3198e1a1b467d3cfbf942ff4890b3f6a
extra : amend_source : 9849e17b3bf124d814d2d2ebe4e2bb64175ce5ac
2017-06-07 11:20:13 -07:00
Ting-Yu Lin 2923be5074 Bug 1290276 Part 8 - Update test expectations after implementing XBL <stylesheet> for stylo. r=heycam
Disable 461917-1.xhtml under dom/xul/crashtests/ because I cannot reproduce
it locally.

Annotate assert-if on some crashtests (bug 1370830). Other modifications are
all removal of fails-if.

MozReview-Commit-ID: 6Q2A5M5rOry

--HG--
extra : rebase_source : b282a919fcda6287fe2eaa6b139a11f2663ad578
2017-05-31 16:44:38 -07:00
Ting-Yu Lin 414fb7a11d Bug 1290276 Part 6 - Add FFI functions to allow various XBL data to be used from servo side. r=heycam
MozReview-Commit-ID: 9yG7xrXXuRn

--HG--
extra : rebase_source : 724c55fb8d424524e5408eead53d7b380197eff6
2017-06-05 14:00:27 +08:00
Ting-Yu Lin ee880dc08d Bug 1290276 Part 4 - Make ServoStyleSet::RawSet() return a pointer. r=heycam
In next part, we'll use ServoStyleSet to host XBL stylesheets. The raw set
is not available until the resources are loaded, so it's easier to tell that
by checking whether the pointer is nullptr or not.

MozReview-Commit-ID: Hqydd55FPO9

--HG--
extra : rebase_source : 6df6c2666aea2ca8a8065d4f4d9b552ec7b3e6fe
2017-06-05 11:57:13 +08:00
L. David Baron 53383e2d5c Bug 1369260 - Remove use of MOZ_ASSERT_IF in layout. r=heycam
As I've said before, as module owner I prefer that MOZ_ASSERT_IF not be
used in the module because I consider it to be unreadable.  However, a
few uses have crept in, and this patch removes them.

I consider it to be unreadable because the name looks like a name that
uses smalltalk-ish naming conventions, i.e., with a part of the name
corresponding to each parameter, in order.  However, the parameters are
in the order opposite the name.

This was written primarily with the vim commands:
:%s/MOZ_ASSERT_IF(\([^,]*\),/MOZ_ASSERT(!\1 ||/
:wn
followed by manual cleanup for indentation and removal of !!.

MozReview-Commit-ID: G6rLbOn7k8d
2017-06-06 22:27:17 -07:00
Matt Brubeck 78af557ec8 Bug 1365163 - Remove pref layout.css.display-flow-root.enabled. r=mats
MozReview-Commit-ID: AA3tKHCQ5E0

--HG--
extra : rebase_source : 9a7b16043e4aff09a4997138a9016e2f7f791f58
2017-06-05 15:59:22 -07:00
Brad Werth 49ed79f4ce Bug 1369903 Part 3: Ensure that Loader enables all cloned stylesheets, and checks modified state of all stylesheets, regardless of backend. r=emilio
MozReview-Commit-ID: EEnFeaw2r0u

--HG--
extra : rebase_source : 1ff76aee934c6fe191105ce397c0e191e9802acb
2017-06-05 09:24:25 -07:00
Brad Werth 06dbc28572 Bug 1351117 Part 1: Change an assert on nsLayoutStylesheetCache::Shutdown into a warning, since it only notes that the cache was never used. r=heycam
MozReview-Commit-ID: 5dHMnjE8ufl

--HG--
extra : rebase_source : 0d251371af654882e3d83c8634fa6951d26da359
2017-06-05 13:57:36 -07:00
Manish Goregaokar 1d3666a615 Bug 1370458: Disallow floats, negative numbers, and long values in hashless color quirk; r=xidorn
MozReview-Commit-ID: FAwr9rgj58c

--HG--
extra : rebase_source : 4a8e77964d309afad78955a6f1a1c8b14bf06481
2017-06-05 23:47:30 -07:00
Emilio Cobos Álvarez fef4819503 Bug 1369277: Update test expectations. r=me
MozReview-Commit-ID: C7i5uv60tQD
2017-06-06 12:56:17 +02:00
Manish Goregaokar 9a7d8d5e4a Bug 1341102 - Update stylo expectations; r=orange 2017-06-06 00:18:40 -07:00
Cameron McCormack 63592a379a Bug 1365159 - Part 3: Bindings config update. r=heycam
MozReview-Commit-ID: 67r3lq7Ept3

--HG--
extra : rebase_source : b2eb0d717321e977ba57717c08aab1ca2a9ebad5
2017-06-06 10:28:47 +08:00
Cameron McCormack faef490277 Bug 1365159 - Part 1: Record :-moz-browser-frame and :-moz-table-border-nonzero state on snapshots. r=emilio
MozReview-Commit-ID: BEglHnXhpYJ

--HG--
extra : rebase_source : 0b10b26a8ef0c504e38be89b87ea319af7a31d3f
2017-06-05 14:19:30 +08:00
Matt Brubeck 35c025c6fe Bug 1367315 - stylo: Update :dir selector test failures. r=Manishearth
MozReview-Commit-ID: K1ncDKP5IoV

--HG--
extra : rebase_source : 36bd8f1f32121b69588b6ab9c676146ee1e2240f
2017-06-05 12:38:21 -07:00