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

12210 Коммитов

Автор SHA1 Сообщение Дата
Manish Goregaokar 555536eb67 Bug 1367904 - Part 18: stylo: Move binding functions to ServoBindingList.h; r=bustage
We generate stubs in nonstylo mode if these are in this file

MozReview-Commit-ID: 4gCGtlTSvg2
2017-07-18 00:20:05 -07:00
Manish Goregaokar d60a2ee956 Bug 1367904 - Part 18: stylo: Mark visited failures as expected; r=jryans
MozReview-Commit-ID: 7NPypw2ldSJ
2017-07-17 21:01:40 -07:00
Manish Goregaokar 27f49a8a16 Bug 1367904 - Part 17: stylo: Clean up GetContext, call it UpdateWithElementState; r=bholley
MozReview-Commit-ID: I23w5hFatk8
2017-07-17 21:01:33 -07:00
Manish Goregaokar 2508f1fac9 Bug 1367904 - Part 16: stylo: Stop using mStyleIfVisited in Servo; r=bholley
MozReview-Commit-ID: JxoMr6fz7lh
2017-07-17 21:01:23 -07:00
Manish Goregaokar cdb73416fd Bug 1367904 - Part 14: stylo: Remove FFI calls for fetching style structs from ServoComputedValues; r=bholley
MozReview-Commit-ID: 2HrVZl9HZu1
2017-07-17 21:01:10 -07:00
Manish Goregaokar 3597e8df2e Bug 1367904 - Part 13: stylo: Flatten ServoComputedValues into ServoStyleContext; r=bholley
This patch also removes the duplication of style contexts during the
restyle, because otherwise pointer equality of ServoComputedValues stops
holding (and we assert on that in a few places)

MozReview-Commit-ID: 7Evc1p8ZfM2
2017-07-17 21:01:02 -07:00
Manish Goregaokar d909c5cea0 Bug 1367904 - Part 11: stylo: Use ServoStyleContext in ServoStyleSet/ServoRestyleManager; r=bholley
MozReview-Commit-ID: JJOBixTSCZq
2017-07-17 21:00:54 -07:00
Manish Goregaokar f33beecc59 Bug 1367904 - Part 10: stylo: Switch Gecko over to ServoStyleContext; r=bholley
MozReview-Commit-ID: EmopKVjEzlz
2017-07-17 21:00:46 -07:00
Manish Goregaokar ead2d89220 Bug 1367904 - Part 6: stylo: Introduce ComputedValuesInner; r=bholley
MozReview-Commit-ID: 7BU0Pzhuul3
2017-07-17 21:00:39 -07:00
Manish Goregaokar c2b070c584 Bug 1367904 - Part 5: stylo: Make GetBaseComputedValuesForElement return a style context; r=bholley
MozReview-Commit-ID: K5WpWc26xNZ
2017-07-17 21:00:32 -07:00
Manish Goregaokar 387babf22c Bug 1367904 - Part 4: stylo: Replace real ComputedValues with bindgenned ComputedValues2; r=bholley
MozReview-Commit-ID: GRkycXueUVr
2017-07-17 21:00:25 -07:00
Manish Goregaokar 25536ab88d Bug 1367904 - Part 3: stylo: Use RawOffsetArc in ComputedValues; r=bholley
MozReview-Commit-ID: 1zexSgkcQv0
2017-07-17 21:00:14 -07:00
Manish Goregaokar ab2615effa Bug 1367904 - Part 1: stylo: Create C++-side ServoComputedValues; r=bholley
MozReview-Commit-ID: 1k7KFShSHAY
2017-07-17 21:00:07 -07:00
Hiroyuki Ikezoe e18f89a758 Bug 1381431 - Crashtest that takes snapshots. r=emilio
This test case takes snapshots so that the snapshots were handled during
animation-only restyle without prior patches in this patch series. That means
this test crashed without those prior patches.
To be clear, below assertions were hit respectively.

  debug_assert!(!shared_context.traversal_flags.for_animation_only()) in
  invalidate_style_if_needed()

  debug_assert!(element.has_current_styles(&*data) in Servo_ResolveStyle()

MozReview-Commit-ID: AfwQiNcVWji

--HG--
extra : rebase_source : b744bbe0b91ac2bc8c714a5161f3c29bfa5a9cd8
2017-07-18 20:56:15 +09:00
Hiroyuki Ikezoe 607348ba52 Bug 1381431 - Allow that restyle hints other than animation hints remain for flushing throttle animations. r=emilio
MozReview-Commit-ID: GMkgvaK0mAu

--HG--
extra : rebase_source : 76b9cc6ab1b49b8e3b59c96915f9b72ccbe19970
2017-07-18 20:56:15 +09:00
Emilio Cobos Álvarez 8ea66df98c Bug 1381276: Reftest. r=jryans
MozReview-Commit-ID: IJUFMtWNETe

--HG--
extra : rebase_source : 33939817156e422138ddd510814b90ecb9363c41
2017-07-16 16:20:38 +02:00
Brad Werth cda3222945 Bug 1359834 Part 3: Force changes to shape-outside to trigger reflow and overflow recalculation. r=dholbert
MozReview-Commit-ID: 7EgYZIu7aZ9

--HG--
extra : rebase_source : ab56ff5a7c6be8972e6a3a8fd4afc84c0fe390c8
2017-07-14 17:26:30 -07:00
Brad Werth dce3ff515e Bug 1359834 Part 2: Define a new nsChangeHint_ReflowHintsForFloatAreaChange hint and use it for float changes. r=dholbert
MozReview-Commit-ID: 692GBiRUTab

--HG--
extra : rebase_source : 4b3413bb0468037ab5eb25101b7c2a54cdc63d9e
2017-07-14 17:20:35 -07:00
Brad Werth 5e7b4d5092 Bug 1359834 Part 1: Change nsStyleDisplay::CalcDifference to early exit when hinting nsChangeHint_ReconstructFrame. r=dholbert
If we'll be reconstructing frames for the subtree in question, then we'll also
be reflowing and repainting that whole subtree. So all of this function's
other changehints become unnecessary and redundant.

MozReview-Commit-ID: 7R9lARBU7vZ

--HG--
extra : rebase_source : 69904e5920b01c54ffee2698518448bed800994a
2017-07-14 17:16:47 -07:00
Emilio Cobos Álvarez cb320a6d5d Bug 1380918: Update expectations. r=me
MozReview-Commit-ID: 70Z2xx8RjQ9
2017-07-17 12:20:49 +02:00
Emilio Cobos Álvarez 75746a851c Bug 1380789: followup: Fixup alignment in macro definitions. r=whitespace-only
MozReview-Commit-ID: qNrmZMdKTE
2017-07-15 16:19:40 +02:00
Emilio Cobos Álvarez d18cca3dc7 Bug 1380789: Uplift the type assertions to nightly. r=heycam
I don't think there has been going any type confusion so far, but worth catching
them sooner than later.

MozReview-Commit-ID: CBzSFDnUokh
2017-07-15 16:10:21 +02:00
Wes Kocher 70f22fba79 Bug 1381045 - Remove CSS source text from parsing errors. r=bholley a=bustage
MozReview-Commit-ID: EJGdEc50Gpl
2017-07-15 01:10:13 -07:00
Hiroyuki Ikezoe a4f183c102 Bug 1371450 - Crash test. r=emilio
The crash test causes a panic in Servo_ResolveStyle on debug build without this
patch series.  The reason why we send mouse move event twice is that one for
E10S and the other one is for non-E10S. It seems to be caused by being
requestIdleCallback processed on different timing.

MozReview-Commit-ID: 7cBmwhE9HDk

--HG--
extra : rebase_source : a74aa277e2b161b1e4f8da27293cf89ddc3821e1
2017-07-15 13:16:15 +09:00
Hiroyuki Ikezoe 439420deeb Bug 1371450 - Recreate style context only if the element was restyled during the traversal. r=emilio
MozReview-Commit-ID: CBYTB5FeikP

--HG--
extra : rebase_source : e40d357ae70f9852e5b90eb6f3c41565bf1570a6
2017-07-15 13:16:11 +09:00
Hiroyuki Ikezoe 654bcef113 Bug 1371450 - Preserve restyle hints after ForThrottledAnimationFlush restyle. r=emilio
Those remaining restyle hints are needed for normal traversal later.

MozReview-Commit-ID: DswGYGQwgfw

--HG--
extra : rebase_source : e493d964454315e1c9d1dcf7a028976eef1e60a9
2017-07-15 13:09:35 +09:00
Hiroyuki Ikezoe c040adf510 Bug 1371450 - Rename TraversalRestyleBehavior::ForAnimationOnly to TraversalRestyleBehavior::ForThrottledAnimationFlush. r=birtles,emilio
ForAnimationOnly is somewhat misleading, it means actually we process
*only* animation-only restyle without normal restyle. The purpose of
ForAnimationOnly is for updating throttled animations to get correct position
of the animations when we need to handle events. Currently we do also update
unthrottled animations though.

MozReview-Commit-ID: HBCCluKrZs9

--HG--
extra : rebase_source : bb37080e44b161b8b0210e3ba3c055604cf43a72
2017-07-15 13:08:47 +09:00
Jonathan Chan 4a6248b9a6 Bug 1355380 - Part 2: Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. r=manishearth
Both Servo and Gecko store the specified value of the image-orientation
property as a single-precision float, but Gecko does the conversion to radians
and the computation to identify which quarter-turn the angle is closest to
using doubles.

We add Angle::radians64 to perform the conversion to radians using doubles,
just as Gecko does, and then update image_orientation to perform the
computation the same exact way Gecko does in
nsStyleImageOrientation::CreateAsAngleAndFlip. This lets the previously failing
reftests pass.

We also update Gecko_SetImageOrientation to take an orientation directly
instead of an angle (otherwise we'd be doing the which-quarter-turn-is-closest
computation twice).

Finally this lets us re-enable the reftests for image-orientation previously
marked as fails-if(styloVsGecko||stylo).

MozReview-Commit-ID: 2zMMzQlsYEC

--HG--
extra : rebase_source : 99ed023e940193d4ad735a9ee27e45929a1efda1
2017-07-10 11:32:08 -07:00
Jonathan Chan 016ee566a7 Bug 1355380 - Part 1: Have nsStyleImageOrientation::CreateAsAngleAndFlip handle negative angles correctly. r=manishearth
Previously we just took the input angle mod 2π, which will leave negative input
angles as negative. By checking if the input mod 2π is negative and if so
adding 2π and then taking that mod 2π again we can ensure that we end up with a
an angle in the range [0, 2π].

We only do this if the result of the initial mod is negative because this adds
rounding error that is enough to mess up whether 135 is determined to be closer
to 90 or 180, for example.

We add a test for this as well.

Also fix property_database.js to account for this (we assert that -90deg should
compute to the same value as the initial value, but it should actually compute
to 270deg).

MozReview-Commit-ID: Faf0f7wIEg3

--HG--
extra : rebase_source : 6b2d15f90e541fcb8b6083e15772eee514603e57
2017-07-07 16:03:37 -07:00
Nazım Can Altınova 53247946bc Bug 1341802 - Update test expectations after servo/servo#17737 r=me 2017-07-14 18:10:12 -07:00
Wes Kocher ee45f814bb Merge m-c to autoland, a=merge
MozReview-Commit-ID: GOb2bgdUd36
2017-07-14 17:27:36 -07:00
Wes Kocher e9fa5c772a Merge inbound to central, a=merge
MozReview-Commit-ID: 8nlqm5dHCUQ
2017-07-14 17:14:43 -07:00
Josh Matthews 4d369649f6 Bug 1380488 - Share CSS source line between all same-line errors. r=heycam 2017-07-14 10:53:11 -04:00
Andrew McCreight bf7fff95f0 Bug 1379786, part 4 - Use GetIsSystemPrincipal() method instead of going through secman in CHECK_PRINCIPAL_AND_DATA. r=mrbkap
MozReview-Commit-ID: INBsjjxbXZz

--HG--
extra : rebase_source : fd6d491d01acc70be1bf51e25ec31bbcde81344a
2017-07-10 15:00:03 -07:00
J. Ryan Stinnett 835cab2d73 Bug 1380082 - Don't Stylo check pref directly in tests. r=xidorn
Stylo might be enabled by either env var or pref.  Use the existing
DOMWindowUtils method to test for Stylo instead of the pref to get an accurate
value.

MozReview-Commit-ID: 8p22xCBjHjo

--HG--
extra : rebase_source : 1a5524e22be07a712838ac5a2ac0bec0cc65dfa7
2017-07-12 13:03:15 -05:00
Ryan VanderMeulen 019bd042fc Merge autoland to m-c. a=merge 2017-07-14 09:16:03 -04:00
Andrea Marchesini 50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
Sebastian Hengst e501c9c454 Backed out changeset ed0d72af39b8 (bug 1359834) for failing mochitest test_inherit_computation.html. r=backout 2017-07-14 10:26:50 +02:00
Cameron McCormack 2a1c9069d0 Bug 1380224 - Part 1: Check custom properties for differences in Servo-backed style contexts. r=emilio
MozReview-Commit-ID: IVyiTNxPDT9

--HG--
extra : rebase_source : 3047eb79f4602510251b3453362ffb683f9b818c
2017-07-13 16:49:14 +08:00
Brad Werth 12c3fd32a2 Bug 1359834 Part 1: Force changes to shape-outside to trigger float reflow, similar to other float changes. r=dholbert
MozReview-Commit-ID: 7EgYZIu7aZ9

--HG--
extra : rebase_source : a611fcd77d926f1076dfa38b9b7ebf732021aa46
2017-07-12 12:28:29 -07:00
Xidorn Quan 61344f3471 Bug 1355715 - Use empty atom rather than 'empty' atom for none namespace. r=bholley
MozReview-Commit-ID: Kqqs198wLUw

--HG--
extra : rebase_source : da6ba0587de2dc6b12769a2d80080e9b60526ebd
2017-07-14 15:31:15 +10:00
Xidorn Quan b5363842c5 Bug 1363349 followup - Update test expectations for stylo.
MozReview-Commit-ID: 3RGl1AWR1jd
2017-07-14 14:14:50 +10:00
Xidorn Quan 2b1d414ed0 Bug 1364274 part 3 - Adjust test expectation. r=heycam
MozReview-Commit-ID: GagkRtB8PGv

--HG--
extra : rebase_source : beb99889b8f8c10dda6a95bd9ae45d0bbe789d86
2017-07-05 14:08:45 +10:00
Xidorn Quan d8a0bd5c97 Bug 1364274 part 2 - Move HAS_TEXT_DECORATION_LINES bit computation back to ApplyStyleFixups. r=heycam
MozReview-Commit-ID: vsLnXvJ9UI

--HG--
extra : rebase_source : 37923ac7ab91c75245d14dafa7bef623ce92603b
2017-07-04 16:54:11 +10:00
Xidorn Quan 180940d947 Bug 1364274 part 1 - Propagate style bits from Servo ComputedValues to ServoStyleContext. r=heycam
MozReview-Commit-ID: KewMPDdX8iy

--HG--
extra : rebase_source : 7e38904b7c5f229e5527b02008cac6459a8bcdc8
2017-07-04 16:49:50 +10:00
Xidorn Quan a0d0686267 Bug 1378287 - Skip parent-display-based display type fixup for all anonymous boxes. r=bz
MozReview-Commit-ID: C4R3sVl83jJ

--HG--
extra : rebase_source : 60eda1019d5aeab0d4faa51a098c2e684fdcbb79
2017-07-05 16:21:10 +10:00
Xidorn Quan 8b68a498ad Bug 1380800 - Correct index check in ServoStyleSheet.deleteRule. r=heycam
MozReview-Commit-ID: GZz0g9x4WdS

--HG--
extra : rebase_source : 8afed2ae8feee82d4636f34d196e8ac40b6ab68b
2017-07-14 13:24:47 +10:00
Kevin Hsieh 35eb1b48d9 bug 1363349 (part 2) - accept calc expressions in webkit gradient r=dholbert
MozReview-Commit-ID: IhXyWoJI9Nb

--HG--
extra : rebase_source : 7cbd0018efd49f15e5ab3b45f4af3ff32e0c0de1
2017-07-12 21:42:02 -07:00
Kevin Hsieh 60a08a4706 bug 1363349 (part 1) - refactor CSSCalc.h to share code better, via a templated ReduceCalcOps class r=dholbert
MozReview-Commit-ID: IvU2StpKHLm

--HG--
extra : rebase_source : 28eded78186364632c9429e0aff2950945249fe1
2017-07-12 18:13:07 -07:00
Wes Kocher 4c5920f4e7 Merge autoland to central, a=merge CLOSED TREE
MozReview-Commit-ID: 4B0VujwK8WG
2017-07-13 15:51:26 -07:00
Dão Gottwald 8f5c440b72 Backed out changeset 5a5d8de65b70 (bug 1379938) on CLOSED TREE 2017-07-13 23:16:12 +02:00
Carsten "Tomcat" Book 260b5f956f merge mozilla-inbound to mozilla-central a=merge 2017-07-13 16:35:22 +02:00
Dão Gottwald 0f2337c0c7 Bug 1379938 - Rename the -moz-windows-accent-color-applies media query and make -moz-win-accentcolor available without it. r=jimm
MozReview-Commit-ID: BkDrm6KtiP3

--HG--
extra : rebase_source : 1c0deb5b77e1ce83a8f157c100606c563d61577c
2017-07-13 11:08:27 +02:00
Emilio Cobos Álvarez 1f95192fbe Bug 1380492: Test. r=bholley
MozReview-Commit-ID: 8oNoEQ6H5K3
2017-07-13 10:20:10 +02:00
Cameron McCormack 0b0b5836f7 Bug 1376964 - Part 9: Use gfxFontSrcPrincipal in the user font set and cache. r=jfkthame
MozReview-Commit-ID: LRRFbkhbgts

--HG--
extra : rebase_source : 19164df382db8a4e5e868c4725a0f7c0968ddaa5
2017-07-08 18:00:24 +08:00
Cameron McCormack 9a03f16595 Bug 1376964 - Part 6: Use gfxFontSrcURI in the user font set and cache. r=jfkthame
MozReview-Commit-ID: 7eWOTs4kF4v

--HG--
extra : rebase_source : 88ee203da88f3ec5419db7dee87337802d6212ae
2017-07-08 14:10:05 +08:00
Cameron McCormack 5d2c03ca7b Bug 1376964 - Part 4: Call FontLoadAllowed ahead of time and cache the results for style worker threads. r=jfkthame
Handling a document's node principal changing is done in part 9.

MozReview-Commit-ID: 1gPtRpddys5

--HG--
extra : rebase_source : f0b4d07481ae7215117b86c474f14658b61d6f06
2017-07-07 13:35:28 +08:00
Cameron McCormack ddde8c491b Bug 1376964 - Part 2: Record the docshell's "private browsing" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: 3j0RISufybF

--HG--
extra : rebase_source : 1760c11c3f25fc04c0fc6516d8e23d283d567831
2017-07-05 17:41:01 +08:00
Cameron McCormack e0895d8727 Bug 1376964 - Part 1: Record the docshell's "bypass cache" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: FW19nms4ZEB

--HG--
extra : rebase_source : d09bfd4fc64cd7c9d9c46b926f8a7d939f98c5c7
2017-07-05 17:33:46 +08:00
Carsten "Tomcat" Book 23670f34ad Merge mozilla-central to autoland 2017-07-13 16:39:36 +02:00
Fernando Jimenez Moreno 5196e276c8 Bug 1367274 - Update test expectations for test_computed_style.html. r=xidorn
MozReview-Commit-ID: 75fCumq4KrT

--HG--
extra : rebase_source : 9ad049456356f0214579b2016a10e26604ed4923
2017-07-13 14:34:43 +02:00
Nazım Can Altınova 115d62bf0a Bug 1341802 - Update test expectations for servo/servo#17692 r=me
MozReview-Commit-ID: GDrzV9W2pXj
2017-07-12 15:54:00 -07:00
Jonathan Chan 9a920e6268 Bug 1375153 - Move nsStyleContext::mComputingStruct and AutoCheckDependency to GeckoStyleContext. r=manishearth
These are only used in Gecko mode.

MozReview-Commit-ID: DKQBwatbu62

--HG--
extra : rebase_source : 32fb108832e973bef04ef9c18d8ccc22059b58e4
2017-06-21 11:46:11 -07:00
Xidorn Quan faff62bad1 Bug 1348488 part 2 - Update mochitest expectations. r=heycam
MozReview-Commit-ID: HQ0krmMVhnP

--HG--
extra : rebase_source : 3961d7d976afc76c80832e660f33dcf6f2be8f12
2017-07-10 20:11:24 +10:00
Xidorn Quan 2325d06b36 Bug 1348488 part 1 - Capitalize name of tree pseudo-elements to match other anonboxes. r=heycam
MozReview-Commit-ID: 5TRHwTwkY0O

--HG--
extra : rebase_source : 714b7ecb7c817a14e1f3649d74b5f339dd5e570d
2017-07-10 10:26:25 +10:00
Carsten "Tomcat" Book 18f3dbf742 Backed out changeset aaacb772bada (bug 1376964) for bustage - error C2143: syntax error 2017-07-12 12:41:57 +02:00
Carsten "Tomcat" Book 12b87e384a Backed out changeset c0e5f138b42a (bug 1376964) 2017-07-12 12:41:39 +02:00
Carsten "Tomcat" Book 23de9ec977 Backed out changeset 6bfb66a2c03e (bug 1376964) 2017-07-12 12:41:35 +02:00
Carsten "Tomcat" Book 614a232c25 Backed out changeset d9a88d8324ff (bug 1376964) 2017-07-12 12:41:31 +02:00
Carsten "Tomcat" Book 4177255107 Backed out changeset 041b34959d76 (bug 1376964) 2017-07-12 12:41:25 +02:00
Wei-Cheng Pan ef1ad5c8c6 Bug 1366964 - Update style context generation after style resolved. r=heycam
Adds another restyle generation which represents the dirty state of raw
style changes, so that getComputedStyle() wont be confused by optimizations
made by style engines.

MozReview-Commit-ID: 7RYeNCzFygO

--HG--
extra : rebase_source : e2a6bd73f4b2b71115abe68b5cce95be57cbd9b2
2017-05-23 14:13:47 +08:00
Cameron McCormack 82079904e6 Bug 1376964 - Part 9: Use gfxFontSrcPrincipal in the user font set and cache. r=jfkthame
MozReview-Commit-ID: LRRFbkhbgts

--HG--
extra : rebase_source : 1dac8a8e9a817edb086bb75f9f842c1d4df37a1a
2017-07-12 16:36:42 +08:00
Cameron McCormack 47621aa57e Bug 1376964 - Part 6: Use gfxFontSrcURI in the user font set and cache. r=jfkthame
MozReview-Commit-ID: 7eWOTs4kF4v

--HG--
extra : rebase_source : 9cb5a0f71ad756b224ebc01d13437a8113e53bb1
2017-07-12 16:36:14 +08:00
Cameron McCormack a6f94afca7 Bug 1376964 - Part 4: Call FontLoadAllowed ahead of time and cache the results for style worker threads. r=jfkthame
Handling a document's node principal changing is done in part 9.

MozReview-Commit-ID: 1gPtRpddys5

--HG--
extra : rebase_source : def889e9ae4a428ccc02f9b5ac18f2ce640dc652
2017-07-12 16:35:46 +08:00
Cameron McCormack bb7733edcd Bug 1376964 - Part 2: Record the docshell's "private browsing" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: 3j0RISufybF

--HG--
extra : rebase_source : 265a46c59b14af4d9e66688942408533c1cb94e1
2017-07-12 16:35:44 +08:00
Cameron McCormack 1f2b492e8c Bug 1376964 - Part 1: Record the docshell's "bypass cache" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: FW19nms4ZEB

--HG--
extra : rebase_source : c6407c336cd3187ed66781f717bff079616c97ba
2017-07-12 16:35:44 +08:00
Emilio Cobos Álvarez dc33155ad6 Bug 1379505: Allow calling GetBaseComputedStylesForElement for an unstyled element. r=boris
Before this refactoring, getComputedStyle could have side effects, and left the
style data in the element, so we could never arrive there without data.

There are a few crashtests that caught this, but this was already broken if you
called animate() on an element deep in a display: none subtree.

MozReview-Commit-ID: 1AvOvhAyOP3

--HG--
extra : rebase_source : 0a920df8809961f784026a14a624d8eafb4cc79f
2017-07-10 13:33:21 +02:00
Carsten "Tomcat" Book e011fd3d19 Backed out changeset 99c0d338a5f3 (bug 1376964) for bustage 2017-07-12 10:33:05 +02:00
Carsten "Tomcat" Book 071507c082 Backed out changeset 04e9846700ae (bug 1376964) 2017-07-12 10:32:24 +02:00
Carsten "Tomcat" Book 532a99b12a Backed out changeset 20866468f52d (bug 1376964) 2017-07-12 10:32:20 +02:00
Carsten "Tomcat" Book 625eb4c653 Backed out changeset 292d20d46d1f (bug 1376964) 2017-07-12 10:32:16 +02:00
Carsten "Tomcat" Book c897b5dc70 Backed out changeset b7424dfa039c (bug 1376964) 2017-07-12 10:32:11 +02:00
Cameron McCormack 2fe9111db4 Bug 1376964 - Part 9: Use gfxFontSrcPrincipal in the user font set and cache. r=jfkthame
MozReview-Commit-ID: LRRFbkhbgts

--HG--
extra : rebase_source : 0fa11b180383795272e7a5daf87a41a5c51ec221
2017-07-12 13:03:35 +08:00
Cameron McCormack 0732a234be Bug 1376964 - Part 6: Use gfxFontSrcURI in the user font set and cache. r=jfkthame
MozReview-Commit-ID: 7eWOTs4kF4v

--HG--
extra : rebase_source : eba5d82be3cbbeaa64a7e5f677ba365ac8aeac29
2017-07-12 13:03:35 +08:00
Cameron McCormack b2cd9f4a51 Bug 1376964 - Part 4: Call FontLoadAllowed ahead of time and cache the results for style worker threads. r=jfkthame
Handling a document's node principal changing is done in part 9.

MozReview-Commit-ID: 1gPtRpddys5

--HG--
extra : rebase_source : 5b1d40af5ad0484440075e7229dc9ae3d5a13764
2017-07-12 13:03:35 +08:00
Cameron McCormack 4f22849692 Bug 1376964 - Part 2: Record the docshell's "private browsing" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: 3j0RISufybF

--HG--
extra : rebase_source : a4d3ebbed3e0bd8fd9416e44704340dbfbb16dc8
2017-07-12 13:03:35 +08:00
Cameron McCormack e90c1651ea Bug 1376964 - Part 1: Record the docshell's "bypass cache" flag on FontFaceSet. r=jfkthame
MozReview-Commit-ID: FW19nms4ZEB

--HG--
extra : rebase_source : 882032102cc8096556e7607759c0297430ed04cd
2017-07-12 13:03:35 +08:00
Brian Birtles ca33c400b5 Bug 1370123 - Make aContent parameter to nsComputedDOMStyle::GetPresShellForContent const; r=xidorn
MozReview-Commit-ID: 8eZ7JmgE1XY

--HG--
extra : rebase_source : 75137336edaab18b1b6a8d321fafc954e9c44f9c
2017-06-19 12:21:17 +09:00
Brian Birtles 1fe4c641fc Bug 1379582 - Disable frames() timing function using a pref on release/beta channels; r=hiro
MozReview-Commit-ID: 4B8NwMAfyrS

--HG--
extra : rebase_source : 08becf963a57eda8e335b1c43672b25a25dbd81d
2017-07-12 08:41:58 +09:00
Sebastian Hengst 534b714ff2 Backed out changeset a5f2d33a9de3 (bug 1355380) for failing mochitest layout/style/test/test_value_computation.html. r=backout 2017-07-12 00:10:32 +02:00
Sebastian Hengst 313b7a8917 Backed out changeset f2836ff575eb (bug 1355380) 2017-07-12 00:09:56 +02:00
Nicholas Nethercote c86dc10505 Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:

- a 16-bit C string literal, which is then converted to an 8-bit string in
  order for the lookup to occur;

- an 8-bit C string literal converted to a 16-bit string, which is then
  converted back to an 8-bit string in order for the lookup to occur.

This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.

The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.

Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.

The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Jonathan Chan f49acecfb4 Bug 1355380 - Part 2: Make Servo's rounding of image-orientation values agree with Gecko's, and pass orientations directly as an enum instead of as angles. r=manishearth
Both Servo and Gecko store the specified value of the image-orientation
property as a single-precision float, but Gecko does the conversion to radians
and the computation to identify which quarter-turn the angle is closest to
using doubles.

We add Angle::radians64 to perform the conversion to radians using doubles,
just as Gecko does, and then update image_orientation to perform the
computation the same exact way Gecko does in
nsStyleImageOrientation::CreateAsAngleAndFlip. This lets the previously failing
reftests pass.

We also update Gecko_SetImageOrientation to take an orientation directly
instead of an angle (otherwise we'd be doing the which-quarter-turn-is-closest
computation twice).

Finally this lets us re-enable the reftests for image-orientation previously
marked as fails-if(styloVsGecko||stylo).

MozReview-Commit-ID: 2zMMzQlsYEC

--HG--
extra : rebase_source : c6ead4358a2b4fb052f6144959cea0ba79b985e2
2017-07-10 11:32:08 -07:00
Jonathan Chan 3b1150a8cb Bug 1355380 - Part 1: Have nsStyleImageOrientation::CreateAsAngleAndFlip handle negative angles correctly. r=manishearth
Previously we just took the input angle mod 2π, which will leave negative input
angles as negative. By checking if the input mod 2π is negative and if so
adding 2π and then taking that mod 2π again we can ensure that we end up with a
an angle in the range [0, 2π].

We only do this if the result of the initial mod is negative because this adds
rounding error that is enough to mess up whether 135 is determined to be closer
to 90 or 180, for example.

We add a test for this as well.

MozReview-Commit-ID: Faf0f7wIEg3

--HG--
extra : rebase_source : 6a83824bdc8104f0d58d6e2b11cf6bfd6bfef7f0
2017-07-07 16:03:37 -07:00
Bobby Holley 509fba7d22 Bug 1379893 - Null-check the presshell in Gecko_GetStyleContext. r=emilio
MozReview-Commit-ID: EWTmhXnl64P
2017-07-11 10:42:57 -07:00
Xidorn Quan 02a9b7a416 Bug 1364289 - Update mochitest expectation. r=manishearth
MozReview-Commit-ID: jgwZ7zStZM

--HG--
extra : rebase_source : f891b99c14c49abd89a249f91005d8df9630bd40
2017-07-11 13:53:33 +10:00
Cameron McCormack 81de43d854 Bug 1376406 - Make ::before and ::after the only pseudos that do parent display-based style fixup. r=dbaron
MozReview-Commit-ID: Hxq8v1NSYvc

--HG--
extra : rebase_source : c5998f82446f078dcead1c6aa49d6b38296929ce
2017-07-11 10:38:23 +08:00
Josh Matthews 5e234de828 Bug 1352669 - Address failing CSS parser error tests. r=emilio
MozReview-Commit-ID: KfcpLYLIIve
2017-07-10 16:24:00 -04:00
Josh Matthews e0c37f0ed3 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter. r=emilio
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-10 17:52:00 -04:00
Hiroyuki Ikezoe ff401a20cf Bug 1379529 - drop AllowResolveStaleStyles flag. r=emilio
It's no longer used since bug 1357142.

MozReview-Commit-ID: LqNQTux2OZl

--HG--
extra : rebase_source : 6022601c76b5cec8cab2ac1039e489c624044329
2017-07-11 07:51:34 +09:00
J. Ryan Stinnett 987e7462ad Bug 1377975 - Test cascading pseudos during link transitions. r=hiro
MozReview-Commit-ID: LLNhhfIvPuy
2017-07-10 16:24:00 -05:00
Hiroyuki Ikezoe 247abcf7b1 Bug 1360398 - Do not fill computed values in missing keyframes for CSS animations during generating Keyframes. r=birtles
MozReview-Commit-ID: C2dYneoB09g

--HG--
extra : rebase_source : 13e31e0eb370086cef45cde79783dfee8192a7f1
2017-07-10 17:19:23 +09:00
Xidorn Quan aa1f5767c8 Bug 1372464 - Use ComputedValues rather than element to get style rule list. r=heycam
MozReview-Commit-ID: JPBbhrxG0Lh

--HG--
extra : rebase_source : 5bec19320bd8fa04efc37bd9301f6f9ecb95ca19
2017-07-10 09:38:58 +10:00
Emilio Cobos Álvarez 4358a07aad Bug 1379433: Test. r=heycam
MozReview-Commit-ID: EsDTzjLkqVk

--HG--
extra : rebase_source : 9dd98c3d058fafa993b60d7f15012c1ffedcc0ad
2017-07-09 04:16:20 +02:00
Sebastian Hengst d00887532b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IZdWUL0ee1b
2017-07-09 11:19:35 +02:00
Ralph Giles 2108ee3e4e Bug 1368083 - Pass -isysroot to bindgen. r=gps
When cross-compiling, rust-bindgen needs the -isysroot
flag we pass to the C++ compiler to find the correct
headers. Add a new BINDGEN_CFLAGS environment variable
for passing this and other relevant options, and reformat
its contents in toolchain.configure so we can use autoconf-
style template substitution to poke it into a bindgen.toml
file to be read by build scripts like build_gecko.rs.

Set this variable from the macosx/cross-mozconfig.common
to the same extra flags we pass to CXX so automation
builds work correctly with --enable-stylo.

MozReview-Commit-ID: 7wabObiFtVb

--HG--
extra : rebase_source : eeba30e3d64112da65e2e6830ef5fc1b54965529
2017-07-06 11:34:03 -07:00
Ehsan Akhgari 4390e804ca Bug 1379308 - Improve the hash key generation for two of the hashtables in nsCSSRuleProcessor.cpp; r=mats 2017-07-07 20:34:46 -04:00
Tom Tromey 28e8f458a9 Bug 1306887 - keep SourceMap response header on CSS style sheets; r=bz,heycam
When loading a style sheet, if the SourceMap (or legacy X-SourceMap)
response header was seen, record it and make it available to chrome
scripts.

MozReview-Commit-ID: 3wtUADzgrI3

--HG--
extra : rebase_source : 25ed09e264d4b3a679ae970c709dedd4d50e2324
2017-06-28 16:51:46 -07:00
Nazım Can Altınova b7a6fecc24 Bug 1341802 - Update test expectations for servo/servo#17630 r=me
MozReview-Commit-ID: 12z0j9IayGd
2017-07-07 00:09:12 -07:00
Hiroyuki Ikezoe f0c746144f Bug 1374175 - Return no damage if there is no display property changes. r=heycam
MozReview-Commit-ID: 8VUu7UcnMmb

--HG--
extra : rebase_source : 5f56cf1a17a5aabcd5d7fcf4d25ac2fa09fe1b8c
2017-06-29 13:22:42 -07:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Wes Kocher a9eb08898f Backed out changeset f220d8060c14 (bug 1352669) for build bustage CLOSED TREE a=bustage
MozReview-Commit-ID: INYGT4WT1pO
2017-07-06 14:56:06 -07:00
Wes Kocher a394cec826 Backed out changeset 40ac529f9ea0 (bug 1352669) for build bustage CLOSED TREE
MozReview-Commit-ID: GvzTtvlt4qi
2017-07-06 14:55:26 -07:00
Josh Matthews decbe41e0b Bug 1352669 - Address failing CSS parser error tests.
MozReview-Commit-ID: KfcpLYLIIve
2017-07-06 13:20:59 -07:00
Josh Matthews 723b20d420 Bug 1352669 - Hook up Stylo CSS parser to Gecko error reporter.
MozReview-Commit-ID: 3r5Z6KiPgRM
2017-07-06 13:15:08 -07:00
J. Ryan Stinnett 0338ac2a6a Bug 1371457 - Update animation restyle tests. r=hiro
Update the various animation restyle tests to check the new animation only data
inside the restyle marker.

MozReview-Commit-ID: HEe8x45IhHj

--HG--
extra : rebase_source : fdaa5855e94d68ce2a70d00fde11582c9a538f45
2017-06-29 10:14:31 -07:00
J. Ryan Stinnett ba1293b3ca Bug 1371457 - Add restyle markers for Stylo. r=bholley,gregtatum
Add restyle markers to `PrepareAndTraverseSubtree` to cover both initial styling
and part of the work of restyling.  Also add restyle markers around the post
traversal work in `DoProcessPendingRestyles`.

A new marker is also added around the change hint processing after the post
traversal.

MozReview-Commit-ID: 43PSyCJLikR

--HG--
extra : rebase_source : 923dd3d5526a7d68ab08f86e6dc233c9c61fa97f
2017-06-28 12:03:18 -07:00
Carsten "Tomcat" Book 2178a22de4 Merge mozilla-central to autoland 2017-07-06 11:24:24 +02:00
Carsten "Tomcat" Book 7857fa0a5e merge mozilla-inbound to mozilla-central a=merge 2017-07-06 11:18:05 +02:00
Xidorn Quan d5f6047810 Bug 1372790 - Change uint8_t to back some enum and reorder some fields in StyleSheet to make it more compact. r=heycam
MozReview-Commit-ID: DddIzhJqmcZ

--HG--
extra : rebase_source : da357c220cea45fcc5af3b8a7421a0b699a01026
2017-06-14 14:26:48 +10:00
Brian Birtles 462794f6fe Bug 1377053 - Crash test for interpolating zero-length lists in add_weighted; r=hiro
MozReview-Commit-ID: DJJlKNZ4GKD

--HG--
extra : rebase_source : a62c269e93ad9840eb50f3acea06c9764658385d
2017-07-06 06:28:11 +09:00
Kartikaya Gupta 4826f32d87 Bug 1377169 - Turn gfxRect into a typedef. r=jrmuizel
One thing to note here is that the Scale function on gfxRect has a
different implementation than that in gfx::Rect which is replacing it.
The former just scales the width/height directly whereas the latter
scales the XMost/YMost and recomputes the width/height.

MozReview-Commit-ID: 5FImdIaNfC3

--HG--
extra : rebase_source : 98662d2a52ff9652ec60b066641a07c6d5ee8e08
2017-07-05 11:22:00 -04:00
Carsten "Tomcat" Book b72c4833d5 merge mozilla-inbound to mozilla-central a=merge 2017-07-05 13:01:22 +02:00
Daisuke Akatsuka d455bb09bd Bug 1371115 - Part 12: implements nsStyleImage type properties animatable. r=birtles,hiro
In this patch, implements following properties:

* background-image
* border-image-source
* mask-image

MozReview-Commit-ID: 30RdO0fMNr8

--HG--
extra : rebase_source : d4490b4d64e22a3bc1f022c37edc20363f7c0269
2017-07-05 13:53:47 +09:00
Daisuke Akatsuka c91507eebc Bug 1371115 - Part 7: implements nsStyleBorder type properties animatable. r=hiro
In this patch, implements following properties:

* -moz-border-bottom-colors
* -moz-border-left-colors
* -moz-border-right-colors
* -moz-border-top-colors

To realize, we introduced a binding method Gecko_GetMozBorderColors.

MozReview-Commit-ID: JeseSyl8rMG

--HG--
extra : rebase_source : 118b6659a7be58f7b84e6024bfeea0a13dad66c0
2017-07-05 13:53:07 +09:00
Phil Ringnalda 22cb9f77bb Merge m-c to m-i
MozReview-Commit-ID: H6zGgEm7oOM
2017-07-04 20:32:07 -07:00
Emilio Cobos Álvarez 7ae63d2e3b Bug 1378190: Try to make ServoRestyleManager easier to follow. r=heycam
MozReview-Commit-ID: B9bw23n2jUe

--HG--
extra : rebase_source : 2fbd43cee1c3b0efafaa51ef6755adcfe6f31598
2017-07-04 19:16:04 +02:00
Bobby Holley 88c42c5965 Bug 1378005 - Stop synchronously clearing serving data on style set teardown. r=emilio
MozReview-Commit-ID: 3B2qV84peCv
2017-07-04 15:02:18 -07:00
Cameron McCormack a43aba7200 Bug 1377256 - Part 2: Crashtest. r=m_kato
MozReview-Commit-ID: HRP49wF2Ibe

--HG--
extra : rebase_source : 3e9f922f9613d07d8e594dc806f04c2fa5fcb14e
2017-07-05 07:16:22 +08:00
Mats Palmgren 977a9e5f89 Bug 1376498 part 4 - Make all nsClassHashtable::RemoveAndForget() consumers use Remove() instead. r=froydnj
MozReview-Commit-ID: G64YQLlgm6r
2017-07-05 02:01:45 +02:00
Carsten "Tomcat" Book 75c2b6acd0 Merge mozilla-central to mozilla-inbound 2017-07-04 11:09:13 +02:00
Carsten "Tomcat" Book 8e3fa527c9 merge mozilla-inbound to mozilla-central a=merge 2017-07-04 10:48:33 +02:00
Ehsan Akhgari 740fbc891f Bug 1378000 - Remove nsStyleCoord::HashValue(); r=bholley
This method is dead code.
2017-07-03 21:55:18 -04:00
Nazım Can Altınova 590f9aa3d2 Bug 1341802 - Update test expectations after servo/servo#17268 r=me
MozReview-Commit-ID: 20Vpsj7QqbX

--HG--
extra : rebase_source : 2bf11a9ec1d46a8950a72fee0145d8548c718ad0
2017-07-03 19:07:36 -07:00
Brad Werth 59d8436475 Bug 1368381 Part 1: Add a test that exercises rule insertion within cloned import rule sheets. r=xidorn
MozReview-Commit-ID: EtkwO6IM0sb

--HG--
extra : rebase_source : 429119be8b9a04185a43941e8899b7ed101c7b73
2017-07-03 14:47:23 -07:00
Brian Birtles f6eddc29f3 Bug 1365472 - Use animated class names when doing selector matching in Servo; r=heycam
Using SVG SMIL it is possible to animate the class attribute of an element using
markup such as the following:

  <style>
    .red {
      fill: red;
    }
  </style>
  <svg>
    <circle cx="50" cy="50" r="30" fill="blue">
      <set attributeName="class" to="red" begin="1s"/>
    </circle>
  </svg>

In Gecko, Element::GetClasses handles this case by looking for an animated class
string when the element in question is an SVG element.

This patch causes our Servo bindings to use GetClasses when querying attribute
values for selector matching.

Note that animating the class attribute is *not* expected to affect attribute
selectors such as `circle[class="red"]`. It does in Chrome, but that is due to
a Blink bug where animating attributes using SMIL affects the result of
getAttribute:

  https://bugs.chromium.org/p/chromium/issues/detail?id=735820

This patch adjusts the behavior for both the GeckoElement case and the
ServoElementSnapshot case.

MozReview-Commit-ID: DAFWHSH1aYB

--HG--
extra : rebase_source : 292c4e2fb419818ea851aca12790ff7e70f2e1d4
2017-06-27 10:55:03 -07:00
Emilio Cobos Álvarez 7651afbdb1 Bug 1376352: Test. r=heycam
MozReview-Commit-ID: K0QCJgwhEMN

--HG--
extra : rebase_source : 64e8e14fd63fb161ba063756ec1062262ffc8c66
2017-07-03 11:09:44 +02:00
Emilio Cobos Álvarez f2f6c6b1cd Bug 1372041: Assert we're on the main thread when addreffing/releasing stylesheets. r=me
MozReview-Commit-ID: 6ccJB6YFcpF
2017-07-02 19:22:37 +02:00
Emilio Cobos Álvarez cc52408041 Bug 1372041: Update test expectations. r=heycam
MozReview-Commit-ID: 1c6nxk65OgE
2017-07-02 17:19:09 +02:00
Emilio Cobos Álvarez aa8fc8476c Bug 1372041: Refactor @import so it also respects the stylesheet's media properly. r=heycam
MozReview-Commit-ID: EBmd8nG877t
2017-07-02 17:19:08 +02:00
Emilio Cobos Álvarez f16a67fdd4 Bug 1372041: Refactor a bunch of stuff so link rel="media" is honored. r=heycam
This still leaves one annoying refactoring of @import so we also fix it for
them.

MozReview-Commit-ID: 4s0WExDEH75
2017-07-02 17:19:07 +02:00
Christoph Kerschbaumer 6f4056bbdb Bug 1377173 - Use srcdoc instead of data: URI for two tests within layout. r=smaug 2017-06-29 11:16:49 -07:00
Nazım Can Altınova 1727815ec6 Bug 1341802 - Update test expectations for servo/servo#17616 r=me
MozReview-Commit-ID: 8276N81ntiv

--HG--
extra : amend_source : 0f40a9f0dd750dfce36ece2928246802b9038d97
2017-07-05 22:11:34 -07:00
Fernando Jimenez Moreno 9e515dc3c7 Bug 1370502 - stylo: Implement ServoStyleRule::SelectorMatchesElement. r=emilio
MozReview-Commit-ID: JMoBRHzDQZq

--HG--
extra : rebase_source : eed6bdf6a64ee10464abdcb7b120ecdd6a2698a7
2017-07-04 15:37:34 +02:00
Brian Birtles 3dc4567a4a Bug 1377010 - Test case for getting the computed style for a node in a document in the bfcache. r=bholley
MozReview-Commit-ID: 1bVAFqpL8gk
2017-07-01 08:23:29 -07:00
Bobby Holley 2cbc04879c Bug 1366544 - Update expectations. r=me
MozReview-Commit-ID: BkcxkBcg03c
2017-06-30 23:32:40 -07:00
Nazım Can Altınova 761893bfa4 Bug 1366544 - stylo: Implement -moz-prefixed linear gradients. r=Manishearth
MozReview-Commit-ID: JnBZxEA0D7T
2017-06-30 23:30:48 -07:00
Mantaroh Yoshinaga 704c140ee1 Bug 1374564 - Skip serialize shadow's fourth value when property is text-shadow or drop-shadow of filter. r=hiro
MozReview-Commit-ID: CoZj0WPCL8w

--HG--
extra : rebase_source : 45730cebe6e9da5b0617f74369e575b2c32a4911
2017-06-30 15:11:33 -07:00
Matt Brubeck befea242af Bug 1348489 - stylo: Implement :-moz-window-inactive. r=emilio
MozReview-Commit-ID: Ga68eqQQoxN

--HG--
extra : rebase_source : 72f0c1f1d883fd487437e0755b03c79e5de923ac
2017-06-28 13:09:32 -07:00
Boris Zbarsky be85bb2045 Bug 1364242 followup: we pass caret-color-on-visited now as well. 2017-06-30 11:16:35 -07:00
Boris Zbarsky 6cccc9defa Bug 1364242 tests. r=jryans
MozReview-Commit-ID: 3rgvgoRY1lc
2017-06-30 10:15:51 -07:00
Ting-Yu Lin 3ea291f24f Bug 1377196 Part 2 - Add AppendAllXBLStyleSheets to ServoStyleSet. r=heycam
MozReview-Commit-ID: HSQnBk8djil

--HG--
extra : rebase_source : 458787e519c556b659591ab3f627e71a5f87e60d
2017-06-29 16:09:22 -07:00
Ting-Yu Lin 51d252c459 Bug 1377196 Part 1 - Store nsBindingManager* in ServoStyleSet. r=heycam
We need to call nsBindingManager's method from ServoStyleSet in a later
patch.

Also, we call nsStyleSet::SetBindingManager() immediately after we call
nsStyleSet::Init(). Therefore, we could pass binding manager to Init()
directly, and delete SetBindingManager().

MozReview-Commit-ID: 43WTpW3mSKX

--HG--
extra : rebase_source : f24f6085c51dfae1a969aee1e073720097d240d5
2017-06-29 13:43:59 -07:00
Xidorn Quan d821a177db Bug 1378814 - Don't return None in get_pseudo_style if not probing. r=emilio
MozReview-Commit-ID: 5CziNBwYZSa

--HG--
extra : rebase_source : b9f25db83e8f82562b78b3b9f3801d484e4d7512
2017-07-07 16:02:17 +10:00
Cameron McCormack 93c4d245a2 Bug 1353312 - Don't use conditions when caching a struct with no rules. r=dbaron
MozReview-Commit-ID: 2Q1xWcDY10T
2017-07-05 23:23:10 -04:00
Emilio Cobos Álvarez d60f90df95 Bug 1383001: Yet another crashtest. r=heycam
MozReview-Commit-ID: 1B0IloRjVha
2017-07-24 11:26:06 +02:00
Emilio Cobos Álvarez 456487c25b Bug 1383001: Crashtests for this and bug 1383319. r=heycam
MozReview-Commit-ID: CDWKn1ygZ6S
2017-07-24 11:26:05 +02:00
Nazım Can Altınova 899e4b181b Bug 1356124 - Part 2: Update test expectation for font-variant-alternates property r=emilio
MozReview-Commit-ID: 1ucufYmYSVP

--HG--
extra : rebase_source : cb7b6efff6d77cdfb0dbc9852f5bce068899b2d0
2017-06-28 15:53:48 -07:00
Nazım Can Altınova ef63a6f3c8 Bug 1356124 - Part 1: Fix font-variant-alternates property r=emilio
MozReview-Commit-ID: 9gfGBKcqTbD

--HG--
extra : rebase_source : bd19b6026043d13124add5d99672e634c0a371c6
2017-06-28 09:48:56 -07:00
Jonathan Watt 0f6107d4a9 Bug 1344910, part 2 - Add a '-moz-win-accentcolortext' color keyword to color text that will be drawn over an accent color background. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9l2NsQlewIJ
2017-06-29 18:57:46 -07:00
Jonathan Watt 33a8a677ca Bug 1344910, part 1 - Add a '-moz-win-accentcolor' color keyword to expose the Win10 accent color. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9jMMVnnSF5h
2017-06-29 18:57:01 -07:00
Jonathan Watt 66f3169b87 Bug 1344917, part 2 - Add tests for the '-moz-windows-accent-color-applies' media query. r=heycam
MozReview-Commit-ID: 5lzVIVucvj2

--HG--
extra : rebase_source : ab2d2197ddf3528b6af212c00c8d3edb6ed1fc06
2017-06-08 15:05:37 +01:00
Jonathan Watt c9118ba223 Bug 1344917, part 1 - Add a '-moz-windows-accent-color-applies' media query. r=heycam
The '-moz-windows-accent-color-applies' media query matches when the Windows 10
accent color should be used as the background of the title bar.

MozReview-Commit-ID: GM7nZij6MhQ

--HG--
extra : rebase_source : ee8089ef876d0887e2c0d063015145d17eefa612
2017-06-08 14:49:21 +01:00
Sebastian Hengst 6ff9f4b79d Backed out changeset 5487628d6625 (bug 1348489) for Windows bustage: no 'object' file generated at mozilla/ServoBindings.h(169). r=backout on a CLOSED TREE 2017-06-29 22:25:27 +02:00
Matt Brubeck bcc57075e0 Bug 1348489 - stylo: Implement :-moz-window-inactive. r=emilio
MozReview-Commit-ID: Ga68eqQQoxN

--HG--
extra : rebase_source : c3a03b1ca900b7219ad4494bf7c458659566cc37
2017-06-28 13:09:32 -07:00
Brad Werth c1da2c2f60 Bug 1371453 Part 4: Add a test demonstrating we can handle bad URLs in import rules. r=xidorn
MozReview-Commit-ID: 60fCVwVeax6

--HG--
extra : rebase_source : de8c3aa8df3ec80a7a7d9e85864347eeaaae7ec9
2017-06-27 11:23:13 -07:00
Brad Werth 4b56b19f2c Bug 1371453 Part 3: Change CSSImportRule definition so that media is optional, since in Servo it is derived from an optional stylesheet. r=bz,heycam
MozReview-Commit-ID: Gc4igqA1H0

--HG--
extra : rebase_source : dde1568c421e36edc736a1cb4c44158d09143f8b
2017-06-27 16:25:07 -07:00
Brad Werth c5cfde3395 Bug 1371453 Part 2: Update ConstructImportRule callsites and other affected code to tolerate ServoImportRules with no attached raw sheet. r=xidorn
MozReview-Commit-ID: HOLPcRvjnq1

--HG--
extra : rebase_source : 1097bae19d1d78d35985b77c1b2b7911a33e24ca
2017-06-27 11:10:47 -07:00
Brad Werth 18d0567044 Bug 1371453 Part 1: Relax the logic ServoCSSRuleList::InsertRule to fail soft when processing an @import rule with a malformed URL. r=xidorn
MozReview-Commit-ID: Ejt3CzETGPU

--HG--
extra : rebase_source : e805e56c1f4b64082ebddb9a3d58327da6f2993f
2017-06-23 11:54:00 -07:00
Fernando Jimenez Moreno fbdfb5e7b1 Bug 1377068 - temporarily disable layout/style/test/test_variables.html. r=xidorn
--HG--
extra : rebase_source : 09e142143bf188f3ae896d3dfee2ec3db72f8b66
2017-06-29 00:41:00 +02:00
Sebastian Hengst 832110b1c2 Backed out changeset 99dfc776b001 (bug 1375555) for failing layout/style/test/test_variables.html on stylo. r=backout 2017-06-29 05:46:01 +02:00
Fernando Jimenez Moreno 24ef72b473 Bug 1375555 - Part 3: Update test expectations. r=emilio
MozReview-Commit-ID: Iv2OLcrzEgw

--HG--
extra : rebase_source : 59fd70d5d8407f96d3de67f52167371b2b6d9ecb
2017-06-28 19:25:10 -07:00
Fernando Jimenez Moreno 3d1c324f20 Bug 1375555 - Part 2: Implement indexed getter for custom property names. r=emilio
MozReview-Commit-ID: Ckc85EJcngM

--HG--
extra : rebase_source : 981549d451837a254d0bc755db2e2e69a4f1ce5a
2017-06-28 19:25:10 -07:00
Fernando Jimenez Moreno 50ad987cc6 Bug 1375555 - Part 1: Get custom props count from Servo side for nsComputedDOMStyle::GetLength. r=emilio
MozReview-Commit-ID: DYY37HGqRq0

--HG--
extra : rebase_source : a605cfbf512e095a91cdd3e2d0e6a45f1e31d558
2017-06-28 19:25:10 -07:00
Emilio Cobos Álvarez 22eedb837d Bug 1375969: Fix MightHave{State,Attribute}Dependency for XBL. r=heycam
MozReview-Commit-ID: 8I29pMHq4uf
2017-06-28 18:45:34 -07:00
Boris Chiou e291a0ea21 Bug 1375812 - Add crashtest for interpolation between interpolatematrix and none. r=birtles
MozReview-Commit-ID: 4Dg5KfyHLRB

--HG--
extra : rebase_source : 461a796a4685a8fa5ed29135a9f377f1ccd6fe54
2017-06-27 08:42:56 -07:00
Xidorn Quan 747d424555 Bug 1375944 - Increment font set generation when font-face is synchronously loaded in post-traversal. r=heycam
MozReview-Commit-ID: IJO6Uggpca4

--HG--
rename : layout/reftests/fonts/Ahem.ttf => layout/style/test/Ahem.ttf
extra : rebase_source : 0fc61d16412ff48eb50129bc614607a647293542
2017-06-28 11:14:18 -07:00
Cameron McCormack a0ce63693c Bug 1372061 - Change StyleChildrenIterator FFI functions to use placement new/delete. r=bholley
MozReview-Commit-ID: BEWvJcaJxA

--HG--
extra : rebase_source : 48b4982001a305b95a88578cb278c3c6e4beac70
2017-06-27 23:56:13 -07:00
Kartikaya Gupta 56edc85a6e Bug 1376782 - Replace gfxPoint with a typedef to PointDouble. r=jrmuizel
This also moves the WithinEpsilonOf function from gfxPoint into
PointTyped, and changes call sites that are using
gfxPoint::Transform(Matrix4x4) to use Matrix4x4::TransformPoint(Point)
instead, which should be equivalent.

MozReview-Commit-ID: 3Z0bsU41rQt

--HG--
extra : rebase_source : 390e8de546d641d324e7125a06d0b8b51a48b946
2017-06-28 11:42:23 -04:00
Matt Brubeck 8f14d009f9 Bug 1367312 - stylo: Implement :-moz-lwtheme* pseudo-classes. r=emilio
MozReview-Commit-ID: 4T6Tn1VEwXP

--HG--
extra : rebase_source : c2dd0b62757c3da5380414fa3214248b9328d38a
2017-06-28 09:04:49 -07:00
Bobby Holley 834849b377 Bug 1376655 - Move EnsureSameStructsCached to GeckoStyleContext. r=emilio 2017-06-28 10:08:37 -07:00
Bobby Holley 83be980ecc Bug 1376655 - Don't call EnsureSameStructsCached in ServoRestyleManager. r=emilio 2017-06-28 10:08:37 -07:00
Bobby Holley 5681b4713c Bug 1376655 - Use ServoStyleContext in more places. r=emilio 2017-06-28 10:08:36 -07:00
Nazım Can Altınova 90fd16c2e2 Bug 1355364 - Update test expectations for font-language-override descriptor in @font-face r=me
MozReview-Commit-ID: KMA2BkvzmW0

--HG--
extra : rebase_source : 8d1670577ecae4309211edc84f45525d11ed675b
2017-06-27 13:23:06 -07:00
Brad Werth 289d2a885e Bug 1367996 Part 1: Make ServoStyleSheet::ReparseSheet call nsDocument::StyleRuleAdded and StyleRuleRemoved methods. r=heycam
MozReview-Commit-ID: CnGqHEpkM45

--HG--
extra : rebase_source : 9e35223058b793fa5b8f423bafcebaac0fe2c5f6
2017-06-19 17:49:27 -07:00
Bobby Holley 7f8bab3fa9 Bug 1376245 - Hand the already-resolved style directly to servo when creating generated content. r=emilio,r=birtles
This avoids a lot of expensive machinery when we've already computed the style.
2017-06-27 11:39:53 -07:00
J. Ryan Stinnett 3fa0d59862 Bug 1357715 - Skip DevTools tests on Stylo that use shadow DOM. r=heycam
MozReview-Commit-ID: DXT7yDgPjCM

--HG--
extra : rebase_source : c44be4de23bf722fb9d43bddf0b69ea41ce11127
2017-06-21 12:59:06 -05:00
Brad Werth 24c2d55a31 Bug 1376295 Part 1: Allow null raw sheets in ServoStyleSheet memory calculations. r=xidorn
MozReview-Commit-ID: 2UmLRlUmOR8

--HG--
extra : rebase_source : c7a0b40c36de11b29c9912638925b780a8ce0415
2017-06-27 10:09:07 -07:00
Carsten "Tomcat" Book 9c5ccdbab2 Merge mozilla-central to autoland 2017-06-27 15:15:58 +02:00
Carsten "Tomcat" Book 4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Boris Zbarsky c35d7eef58 Bug 1324618 part 10. Fix style resolution for pseudo-elements to actually pass through the right parent style. r=emilio
MozReview-Commit-ID: 1UVJj9l0tKi
2017-06-26 23:35:09 -07:00
Carsten "Tomcat" Book f68e06052b Backed out changeset a33ae6fa707d (bug 1324618) 2017-06-27 10:39:36 +02:00
Boris Zbarsky b02e1fa770 Bug 1324618 part 10. Fix style resolution for pseudo-elements to actually pass through the right parent style. r=emilio
MozReview-Commit-ID: 1UVJj9l0tKi

--HG--
extra : rebase_source : 9fa9d69b35f6aabd67d2e488ad6c10d6d5acd927
2017-06-26 23:35:09 -07:00
Emilio Cobos Álvarez eaa4d32db8 Bug 1373018: followup: Fix indentation in nsStyleContext::Destroy. r=whitespace-only
DONTBUILD

MozReview-Commit-ID: AHOAL9rutnu
2017-06-26 15:34:36 -07:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura b515c9c804 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Sebastian Hengst dfc1ad2562 Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE 2017-06-25 18:30:13 +02:00
Masatoshi Kimura 2e04751921 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher e02435a31e Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00