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

11277 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack f22c4ebfdc Bug 1358968 - Part 1: Store in nsCSSAnonBoxList.h whether an anon box skips parent display-based style fixups. r=bz
MozReview-Commit-ID: 3DlGa5sH4eX

--HG--
extra : rebase_source : b46a018ccc7aa0e9c7580c96cecc68959c246b7c
2017-04-24 16:17:28 +08:00
Wes Kocher 5ddbffd2b7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: EdAdRAuMmuz
2017-04-28 16:49:11 -07:00
Wes Kocher f1ae056d77 Merge inbound to central, a=merge
MozReview-Commit-ID: I6PDL3TWDB0
2017-04-28 16:35:05 -07:00
Emilio Cobos Álvarez 90236f99ab Bug 1360508: Allow fixups on text styles to be reflected. rpending=heycam a=orange
MozReview-Commit-ID: Eh6shYiv4RC
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-28 20:19:03 +02:00
Emilio Cobos Álvarez 2e7660653c Bug 1360508: Adjust text-combine properly. r=jryans
Text style is always resolved via ServoStyleSet::ResolveStyleForText, either
from the frame constructor initially, or from
ServoRestyleManager::ProcessPostTraversalForText.

So text-only adjustments should go there instead. Since that doesn't call into
cascade(), all the code that passes `pseudo` there is dead code we can remove.

MozReview-Commit-ID: jpbBYpLlUL
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-28 20:18:00 +02:00
Luis de Bethencourt da3a2f5255 Bug 1357932 - Add test for box-position keyword ordering, in serialization of specified CSS gradients. r=dholbert 2017-04-27 17:00:46 +01:00
Luis de Bethencourt 0114f51efb Bug 1357932 - Make AppendCSSGradientToBoxPosition() output horizontal keywords first, for better interop. r=dholbert 2017-04-27 14:48:42 +01:00
Xidorn Quan 3b7a0c0e74 Bug 1355394 part 4 - Adjust test expectations. r=heycam
MozReview-Commit-ID: 9Xm6HVb5yge

--HG--
extra : rebase_source : 3e5f068a628726bbb2ad38b8cc97cd71d8b012a9
2017-04-26 19:41:01 +08:00
Xidorn Quan a82f5a5ae1 Bug 1355394 part 3 - Implement CSSOM support for @supports. r=heycam
MozReview-Commit-ID: AV1t6mIFF0J

--HG--
extra : rebase_source : b69ba50070290aef27dfe00866da8a59d3c8520f
2017-04-26 15:59:29 +08:00
Xidorn Quan 3c5ec261f5 Bug 1355394 part 2 - Move GetRules function into macro. r=heycam
MozReview-Commit-ID: AlQ5os4s26v

--HG--
extra : rebase_source : 49d19b5915cb38a1809d54f0aee9a2825f604eef
2017-04-26 15:57:57 +08:00
Xidorn Quan 1489bc2c0e Bug 1355394 part 1 - Add separate CSSSupportsRule base class. r=heycam
MozReview-Commit-ID: 3rCRn6YQ8Gx

--HG--
extra : rebase_source : 657d41029e65c647f7ea92c2cb34126496015e88
2017-04-26 16:55:36 +08:00
J. Ryan Stinnett 6251d8b696 Bug 1359603 - Set text combined bit on the context for Servo as well. r=heycam
We want to set style bits on `nsStyleContext` regardless of which engine is
providing the style source.  The moves the bit set up to `SetStyleBits` which
runs for both sources.

MozReview-Commit-ID: 8N6oUyxz1Xs
2017-04-27 13:01:28 -05:00
Emilio Cobos Álvarez c083216e60 Bug 1341102: Update expectations for gradient interpolation hints (servo/servo#16628). r=emilio
MozReview-Commit-ID: FJ2Eci14i4f
2017-04-27 18:55:00 +02:00
Emilio Cobos Álvarez 0f424ea1d6 Bug 1331047: Update test expectations. r=emilio
MozReview-Commit-ID: Lo62Wxd1WZ7
2017-04-27 17:17:08 +02:00
Emilio Cobos Álvarez 689b8d5205 Bug 1331047: Look at the style with animations in ResolveStyleLazily. r=hiro
MozReview-Commit-ID: 1p4D5p0jymb
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:30 +02:00
Emilio Cobos Álvarez 64fb6d73e1 Bug 1331047: Fix test_animations_event_order.html so that we actually have pseudo-elements. r=hiro
Took me more time than what I'd like to admit to figure this out.

MozReview-Commit-ID: FpphYwxAVC2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:21 +02:00
Emilio Cobos Álvarez d77548d239 Bug 1331047: Implement the new traversal semantics for stylo. r=bholley,hiro
MozReview-Commit-ID: 4BXx9JpGZKX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-27 17:06:11 +02:00
Carsten "Tomcat" Book e1e203f1f5 Merge mozilla-central to autoland 2017-04-27 16:36:41 +02:00
Emilio Cobos Álvarez ac51e27e7f Bug 1359779: Also look at pseudo frames in nsComputedDOMStyle::DoGetStyleContextNoFlush. r=heycam
MozReview-Commit-ID: IvAehgyv18T

--HG--
extra : rebase_source : 402256a885c9f787f2fcfacb07a27a9db679fafb
2017-04-26 13:54:44 +02:00
Emilio Cobos Álvarez 78e287ee32 Bug 1336863: Update expectations. r=heycam
MozReview-Commit-ID: 9tAOkyBnJuz

--HG--
extra : rebase_source : 28a104fd7cf6aeaacf7d88d0ba006ca9d59b9c7a
2017-04-27 13:06:27 +02:00
Emilio Cobos Álvarez e868552184 Bug 1336863: Flush stylesheets in RestyleForCSSRuleChanges if not under an update. r=heycam
This also moves the NoteStyleSheetsChanged to RecordStylesheetChange, which
makes more sense, and stopped special-casing author styles, since it's not
needed now.

MozReview-Commit-ID: 9WKFa0JxqlU

--HG--
extra : rebase_source : 5803620c98309bd2fbb542158e69ef3ddcee9a4b
2017-04-25 21:03:18 +02:00
Brian Birtles (:birtles) 9325ab468e Bug 1355348 - Fix hazard bustage by duplicating code in Gecko_GetStyleAttrDeclarationBlock and Gecko_GetSMILOverrideDeclarationBlock on a CLOSED TREE; r=me a=bustage-fix 2017-04-27 11:54:26 +02:00
Brian Birtles f0f2cdbc20 Bug 1355348 - Convert stylo assert in nsComputedDOMStyle::DoGetStyleContextNoFlush to a warning; r=hiro
This allows us to run SMIL tests that include a combination of additive and
non-additive animation.

MozReview-Commit-ID: 2uVN184h7Ge

--HG--
extra : rebase_source : f6a3dc70e20c09cbfdb8cc3149e2820575866b89
2017-04-26 13:00:12 +09:00
Brian Birtles ba8b6f981e Bug 1355348 - Add constructor to AnimationValue; r=hiro
We will use this later in this patch series to simplify the creation of SMIL's
ValueWrapper objects.

MozReview-Commit-ID: 7EF9CN2SdwQ

--HG--
extra : rebase_source : e7cf5adc4c3f72dcc4b99625a8d0cb1a2d17f7d4
2017-04-26 13:00:11 +09:00
Brian Birtles f37fe9b84d Bug 1355348 - Move ServoComputedValuesWithParent to separate file; r=hiro
We will use this type later in this patch series in nsSMILCSSProperty so this
patch moves it to a separate file so it can be re-used.

MozReview-Commit-ID: 4Z7YbsQ9xz4

--HG--
extra : rebase_source : 0f6f7248d1a4dfc77360829f3a0e6ed263f156db
2017-04-26 13:00:11 +09:00
Brian Birtles a7d2fa0411 Bug 1355348 - Add SMIL restyles in the stylo pretraverse; r=heycam
MozReview-Commit-ID: mwjkKr6wsr

--HG--
extra : rebase_source : 23324e128041f6d190312958dab093da382863f3
2017-04-26 13:00:11 +09:00
Brian Birtles f8eabbbd4d Bug 1355348 - Add FFI for getting SMIL override styles; r=heycam
MozReview-Commit-ID: 7grK3meDOZD

--HG--
extra : rebase_source : 2abaf2f99b5850f3b1a07c667e9801c8dc14b30b
2017-04-27 11:09:55 +09:00
Boris Chiou 8b5ffbd690 Bug 1359719 - Update mochitest expectations for frames timing function. r=xidorn
MozReview-Commit-ID: DcFhvxE2qXC

--HG--
extra : rebase_source : 21226c7f96360309ba6a1d58511199369045f539
2017-04-26 16:00:10 +08:00
Wes Kocher 226702fd85 Merge m-c to autoland a=merge
MozReview-Commit-ID: LOGgOErcV9L
2017-04-26 17:43:38 -07:00
Wes Kocher c90904f9bf Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: 9HQViJrDT6S
2017-04-26 17:30:31 -07:00
Mats Palmgren ef94ae96c4 Bug 1359205 - Make XUL pseudo values nsICSSAnonBoxPseudo* instead of nsIAtom* and assert that IsTreePseudoElement() got a pseudo tag of the right type. r=bz
MozReview-Commit-ID: G2WFsNV4Fjz
2017-04-26 17:54:43 +02:00
Mike Conley 73847411fd Bug 1357169 - Manual back out of changeset eecb0af8a88f (bug 418833). r=mats
This also puts the Gecko-drawing of the checkbox / radio frames inside
nsGfxRadioControlFrame and nsGfxCheckboxControlFrame behind the
MOZ_WIDGET_ANDROID pragma for now.

MozReview-Commit-ID: BEyRfEmwjZY

--HG--
extra : rebase_source : fe42a65f55d822a2c7babd95898ec7520cc01616
extra : source : 9e2440ee6715204e88c7ae709a96ef7e1f707bdc
2017-03-31 09:47:57 -04:00
Bobby Holley ec12dfdca7 Bug 1348802 - Update test expectations. r=me 2017-04-25 17:23:23 -07:00
Emilio Cobos Álvarez ff655e4906 Bug 1355351: Update stylo test expectations due to missing pseudo-element style updates. r=emilio
MozReview-Commit-ID: 7GxLedWwdXw

--HG--
extra : rebase_source : f6df2b4d0919b9c090dfe2052e80f55609a4a830
2017-04-25 17:53:46 +02:00
Emilio Cobos Álvarez a47ba261fc Bug 1355351: Look for the frame for ::before and ::after pseudos. r=heycam
MozReview-Commit-ID: 7Hm2IGsl323

--HG--
extra : rebase_source : 4e55234e433cbe732b0ceaf9c1f8318b5c6b4640
2017-04-16 22:59:29 +02:00
Manish Goregaokar ed8b20527d Bug 1341102 - Update test expectations; r=emilio
MozReview-Commit-ID: JyT97bbnyLa
2017-04-25 15:08:02 -07:00
Daniel Holbert 2a04b01eb4 Bug 1357117 followup: update stylo-failures.md for test_specified_value_serialization.html changes. a=me
MozReview-Commit-ID: 8NS9fXfZ4iD
2017-04-25 13:53:08 -07:00
Wes Kocher e6b22abf42 Bug 1357117 - Update stylo expectations a=me
MozReview-Commit-ID: AHo80HbOgj1
2017-04-25 13:07:57 -07:00
Daniel Holbert 5f50f9f8fe Bug 1357117 part 3: Serialize -webkit-linear-gradient() expressions using the (less-expressive) -webkit-linear-gradient syntax, instead of -moz-linear-gradient. r=heycam
Specifically:
* This patch uses a flag added in a prior patch to let us use the author's
  chosen prefix (-webkit or -moz) when serializing.  (We treat the -moz version
  as a special case, because that makes it more straightforward to unsupport
  -moz if/when we can.)
* This patch makes us share the linear-gradient() side-or-corner serialization
  codepath when serializing points for -webkit-linear-gradient. (The
  alternative is the -moz-linear-gradient codepath, which defaults to
  serializing with percent values 0%/100% for sides & corners -- and raw
  percentages are invalid in -webkit-linear-gradient(), so we can't share that
  codepath.) Notably, we have to skip the "to " token that the
  linear-gradient() codepath would normally print out -- that was a late
  addition to the spec and so it only exists in the unprefixed modern syntax.
  (Instead, -webkit-linear-gradient syntax is implicitly "from" the given
  point).


MozReview-Commit-ID: 9Oqo8nG1XDU

--HG--
extra : rebase_source : b15218d9cd97d3371e89365fc472d0bcd2672861
2017-04-25 11:48:41 -07:00
Daniel Holbert 4613644133 Bug 1357117 part 2: Add flag to distinguish between -moz & -webkit prefixed gradient expressions. r=heycam
This patch doesn't change our behavior -- we won't actually act on the new flag
until the next patch in this series.

MozReview-Commit-ID: EONsLM54eG1

--HG--
extra : rebase_source : cabd4a140d575794a8a656c47692bb9d3a02de88
2017-04-25 11:48:39 -07:00
Daniel Holbert f77ada324d Bug 1357117 part 1: Change linear-gradient serialization code to group space separator with the "to" token. r=heycam
This patch doesn't change our behavior -- we'll still produce the same serialization that we would've before.

MOTIVATION: A later patch will make us share this codepath to serialize into
-webkit-linear-gradient() syntax.  That syntax uses the same representation for
points as unprefixed modern linear-gradient() (with box-side-or-corner keywords
"top", "right", etc.), but it does *not* use the word "to".  So we'd like to
allow "to"-and-its-subsequent-space-character to be optional. Hence, this patch
groups the space together with "to", rather than as a prefix on the next token,
so that we can skip right to printing the point (without a leading space)
when we add support for -webkit-linear-gradient() serialization.

MozReview-Commit-ID: 5fCzx4NmpcC

--HG--
extra : rebase_source : 9f8b5c801b2f4352dd2ace3b79c40edb1795b361
2017-04-25 11:48:37 -07:00
cku 015e4aa234 Bug 1351015 - Not assuming nsStyleImage::ComputeActualCropRect always return true. r=heycam
nsStyleImage::ComputeActualCropRect may return false under 4 conditions
1. mType is not eStyleImageType_Image.
   This function is design to be used when mType is eStyleImageType_Image.
   Replace this 'if' check by MOZ_ASSERT.
2. nsStyleImage::GetImageData() returns nullptr
   This function will return true if this image refers to a local-ref resource.
3. GetImage returns failure or does not return a valid imgIContainer.
   It's possible. Please refers to the comment in imgReqestProxy::GetImage
   at [1].
4. imageSize is empty
   It's possible too. By giving a malformed image to a style image, we will hit
   this condition. And this is right what we met in this bug.

Since ComputeActualCropRect may actaully return false, we should remove the
NS_ASSERTION that assume it will always return true.

[1]
https://hg.mozilla.org/mozilla-central/file/7f1f1559cd8d/image/imgRequestProxy.cpp#l513

MozReview-Commit-ID: KHTFQJjiLtT

--HG--
extra : rebase_source : c4e119dd250094115ab23c323ca49f9ebc296698
2017-04-22 03:28:20 +08:00
cku 3b844ebe75 Bug 1341703 - Part 4. Re-enable bordering reftests. r=manishearth
MozReview-Commit-ID: B7CCCnmo2k7

--HG--
extra : rebase_source : 1cd5cf0a461a7b48490034bb79d7c185613917f7
2017-04-17 16:12:52 +08:00
cku 10c26c73a2 Bug 1341703 - Part 3. Handle nsStyleBorder::CalcDifference off main thread. r=heycam
Image loading status can be accessed in main thread only, so we can not use
nsStyleImage::IsLoaded in nsStyleBorder::CalcDifference, which might be executed
on a background thread.

The drawback of this change is we may paint a border-image, once, even before it
was actually loaded, which is a waste, because we have nothing to draw yet.

PS:
We did not check nsStyleImage::IsLoaded in both background-image and mask-image's
CalcDifference.

MozReview-Commit-ID: 5knH6dZziL8

--HG--
extra : rebase_source : 8e854960bfec130fe06e57b5e898651814e7f36e
2017-04-18 15:04:35 +08:00
Jeremy Chen 3e5064f08f Bug 1348173 - stylo: combined gecko side patch for -moz-border-*-colors support. r=heycam
MozReview-Commit-ID: 53gWkWKJNmV

--HG--
extra : rebase_source : 5bd1ddaf954533094c77a3ca5bdf9f3c3441056f
2017-04-25 14:50:44 +08:00
Iris Hsiao 28a432c0ec Backed out changeset 9c7c061b959f (bug 1348173) for hazard busted 2017-04-25 14:24:10 +08:00
Cameron McCormack 6334a97290 Bug 1341102 - Update stylo test expectations. r=me 2017-04-25 11:51:02 +08:00
Hiroyuki Ikezoe e788bc7b46 Bug 1358965 - Drop unnecessary static_cast. r=birtles
MozReview-Commit-ID: 1V1ISqv2uo1

--HG--
extra : rebase_source : 7ca59d60d577c076ad58411e3a05d7d3dec460ed
2017-04-25 12:24:51 +09:00
Hiroyuki Ikezoe 1abf302a6d Bug 1358965 - Don't call UpdateEffectProperties and UpdateTransitions() for null computed values. r=birtles
MozReview-Commit-ID: 9NfR2Dzq92g

--HG--
extra : rebase_source : 55226af51b811afc6b5f821551550d81b344a80f
2017-04-25 11:29:43 +09:00
Iris Hsiao 3b17383f8d Merge mozilla-central to autoland 2017-04-25 11:28:40 +08:00