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

57485 Коммитов

Автор SHA1 Сообщение Дата
J. Ryan Stinnett 226671a98b Bug 1328509 - Add visited pseudo crashtests. r=emilio
Rename and duplicate a crashtest to better cover each variation of a single
:link or single :visited style on a pseudo-element.

MozReview-Commit-ID: JMFXD7nk9fH
2017-05-25 10:12:04 -05:00
J. Ryan Stinnett e1b39c2e80 Bug 1328509 - GetContentStateForVisitedHandling can access state directly. r=dbaron
While studying `GetContentStateForVisitedHandling` for adaptation to Stylo, I
noticed it calls through to `GetContentState`, which depends on external state
such as private browser, etc.

However, there's no need to call `GetContentState` here since this function
always clears both unvisited and visited if either is set.

MozReview-Commit-ID: JLwKnowQbJ2
2017-05-25 10:12:01 -05:00
Emilio Cobos Álvarez 5c6703111a Bug 1367553: Avoid import hell in StyleSheet.h. r=emilio
MozReview-Commit-ID: DR4xURkcFcA

--HG--
extra : rebase_source : 0e72cfcc678ede7c2d645a7a618fe593cfbaa55d
2017-05-25 16:11:13 +02:00
Emilio Cobos Álvarez 69601ee10e Bug 1367553: Provide the kind of change that the stylesheet suffered to RecordStyleSheetChange. r=heycam
I plan to use it for now to force a full document restyle when a standalone rule
changes or something like that.

In practice, we can do better sometimes, and we may just want to propagate to
the StyleSet all the style change notifications in order to have access to the
rule that changed and all that...

But for now this seemed easier than adding other four or five functions to
StyleSetHandle.

MozReview-Commit-ID: 2BEIliGu4mO

--HG--
extra : rebase_source : 386a1b9fe5ffc5fefbf20678068573ea195043f0
2017-05-24 04:28:58 +02:00
Emilio Cobos Álvarez d4ee389879 Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
MozReview-Commit-ID: 2ut8SAwNGN2

--HG--
extra : rebase_source : d9f7d7f1da7b38e595021795ee902e63746c8161
2017-05-24 02:53:08 +02:00
bechen 97ab63e82a Bug 1361655 - Add new reftest to verify the first and last frame for short.mp4. r=jwwang
Since the ref-sample made by linux, the mac and windows platforms need fuzzy.
And on windows platform, the first frame is different to other platform, skip it first.
Android platform somehow can not load the video src.

MozReview-Commit-ID: A0VbEcNSmck

--HG--
extra : rebase_source : 266f0012d460b8fd6b62ac1d2878dc9aa686f9a8
2017-05-17 16:54:16 +08:00
Emilio Cobos Álvarez 8004ac9538 Bug 1366157: Update expectations. r=me
MozReview-Commit-ID: JsmSy7Z95p4
2017-05-25 15:28:10 +02:00
Phil Ringnalda 4dcbd3095c Backed out 2 changesets (bug 1367553) for build bustage
CLOSED TREE

Backed out changeset 3e6c9a752596 (bug 1367553)
Backed out changeset 1ee24478fa16 (bug 1367553)

MozReview-Commit-ID: B805jBJYcqL
2017-05-25 06:13:01 -07:00
Emilio Cobos Álvarez 38735b0dbd Bug 1367553: Provide the kind of change that the stylesheet suffered to RecordStyleSheetChange. r=heycam
I plan to use it for now to force a full document restyle when a standalone rule
changes or something like that.

In practice, we can do better sometimes, and we may just want to propagate to
the StyleSet all the style change notifications in order to have access to the
rule that changed and all that...

But for now this seemed easier than adding other four or five functions to
StyleSetHandle.

MozReview-Commit-ID: 2BEIliGu4mO

--HG--
extra : rebase_source : 926f8442fbd17c7ffa7f72b6b4a515a28b9aa18b
2017-05-24 04:28:58 +02:00
Emilio Cobos Álvarez e2b5e966dc Bug 1367553: Move dirty style tracking to the StyleSet. r=heycam
MozReview-Commit-ID: 2ut8SAwNGN2

--HG--
extra : rebase_source : 5f84d20bd197cd2203093ef4b57cb6b8ce2eb15f
2017-05-24 02:53:08 +02:00
Cameron McCormack e958203c53 Bug 1366157 - stylo: Implement getDefaultComputedStyle. r=emilio
MozReview-Commit-ID: GKr06ylK4tA

--HG--
extra : rebase_source : 04907d98d62a0b06f7d3753aaedf999b63483a77
2017-05-24 14:37:47 +08:00
Xidorn Quan 05e5c16a8e Bug 1341102 - Update test expectations.
MozReview-Commit-ID: KM7B3cDsrcZ
2017-05-25 21:09:00 +10:00
Xidorn Quan dec344e5c0 Bug 1188074 part 2 - Allow origin and clip values to appear anywhere in an image layer shorthand property. r=heycam
MozReview-Commit-ID: 1mPG1ua5aSI

--HG--
extra : rebase_source : dab47404b74e3a5bb74488ac2e8ac656afb967b1
2017-05-25 13:57:56 +10:00
Xidorn Quan 9f08fcb484 Bug 1188074 part 1 - Refactor ParseImageLayersItem a bit to check whether a slot is filled before checking whether the keyword matches. r=heycam
This matches how Servo handles this, which should be faster when the
value is valid, because we can skip checking lots of keyword tables
in many cases.

MozReview-Commit-ID: C1pGwbKTi0c

--HG--
extra : rebase_source : fb142b903a098621f5db442f4f43ac4adf1dfa04
2017-05-25 13:38:47 +10:00
Shing Lyu 5d8a5a598c Bug 1361645 - Change reftest condition stylo to styloVsGecko r=dbaron
MozReview-Commit-ID: 3ekoU1zg8xA

--HG--
extra : rebase_source : f62c84516f5ac0d4b4d0c876514b72fa786ec542
2017-05-25 11:26:12 +08:00
Shing Lyu 8196904840 Bug 1361645 - Added the styloVsGecko reftest condition r=dbaron
MozReview-Commit-ID: CJlly5Ffclq

--HG--
extra : rebase_source : a1c236d07474e63df2bd82c40701d9fc73daa87b
2017-05-03 11:36:21 +08:00
Emilio Cobos Álvarez 2cd0700c52 Bug 1341102: update expectations for servo/servo#17021. r=me
MozReview-Commit-ID: 78wVzSvcECP
2017-05-25 10:36:45 +02:00
Xidorn Quan c5cd332799 Bug 1341102 - Disable test_animations_omta.html.
MozReview-Commit-ID: FuaWnL00js
2017-05-25 17:20:45 +10:00
Xidorn Quan b75363105d Bug 1341102 - Update mochitest expectation.
MozReview-Commit-ID: 3GqnsEhR5fG

--HG--
extra : rebase_source : 8bd0cc7b41ceb9570bc1cf90bf29bbc82b7b787c
2017-05-25 15:42:03 +10:00
Boris Chiou b3eae39f6c Bug 1328503 - Enable test_transitions_replacement_on_busy_frame.html on stylo. r=hiro
MozReview-Commit-ID: L59R9i8BKtj

--HG--
extra : rebase_source : 23319f55a7a776f3ba93f06fcb1ea3a75b94547d
2017-05-25 11:34:15 +08:00
Brad Werth d8932eaa27 Bug 1339629 Part 17: Add mochitests to test that css rules are distinct after stylesheet cloning. r=heycam
MozReview-Commit-ID: FsT1rft6Mjw

--HG--
extra : rebase_source : 59d34d5d38b9a8d6c37853faea91754a5a532438
2017-05-24 12:11:22 -07:00
Brad Werth b3cfbf5951 Bug 1339629 Part 16: Mark a crashtest as failing, to be fixed in a later bug. r=heycam
MozReview-Commit-ID: Iw0JsZIx1zg

--HG--
extra : rebase_source : 3e0e1de0f59d3990d8f3ea0e1ad987fcf3f8c8ac
2017-05-23 15:21:49 -07:00
Brad Werth f8b7752f61 Bug 1339629 Part 15: Add reftests to test other css rules clone properly when stylesheet is cloned. r=heycam
MozReview-Commit-ID: GYBwRpDoPMD

--HG--
extra : rebase_source : aa29427ab4227daefdbb225304c05e340f861bb4
2017-05-23 21:47:24 -07:00
Brad Werth 8b7a13bba0 Bug 1339629 Part 14: Add reftests to verify we clone css group rules when we clone the stylesheet. r=heycam
MozReview-Commit-ID: CcMiDhXtaVT

--HG--
rename : layout/reftests/stylesheet-cloning/style_rule_clone.html => layout/reftests/stylesheet-cloning/style-rule-clone.html
extra : rebase_source : fd1f5b62d191d8876f34f89d747d3eade1fd7172
2017-05-24 16:45:34 -07:00
Brad Werth 159967604d Bug 1339629 Part 13: Consolidate stylesheet cloning tests into a named directory. r=heycam
MozReview-Commit-ID: 2t2H49RCS7M

--HG--
rename : layout/reftests/bugs/1348481-3.html => layout/reftests/stylesheet-cloning/style_rule_clone.html
extra : rebase_source : 91c500f48c7d597320ec94901f4fab33fbcdeec5
2017-05-18 11:58:19 -07:00
Brad Werth 7e38654ee0 Bug 1339629 Part 12: Define UUID for ServoStyleSheet, which is needed for tests. r=heycam
MozReview-Commit-ID: GVUcZ7L0Ro5

--HG--
extra : rebase_source : e198e1d17e3304ff9c8f8b1c91ef0ab6f9720104
2017-05-18 16:36:44 -07:00
Brad Werth 47826ded85 Bug 1339629 Part 11: Call EnsureUniqueInner from ServoCSSRuleList when a StyleSheet is set. r=heycam
MozReview-Commit-ID: cvdITwpREk

--HG--
extra : rebase_source : 1b3745d2b10337a6a93fe700f4d18efd526ce03b
2017-05-18 15:48:48 -07:00
Brad Werth 50e3299bf1 Bug 1339629 Part 10: Implement ServoStyleSet::EnsureUniqueInnerOnCSSSheets. r=heycam
MozReview-Commit-ID: GuUqKYrV60z

--HG--
extra : rebase_source : 6a433ab77e2295450cc68ad0dc9d2e55ba08976a
2017-05-15 17:11:08 -07:00
Brad Werth 450a0513e2 Bug 1339629 Part 9: Uplift EnsureUniqueInnerOnCSSSheets and SetNeedsRestyleAfterEnsureUniqueInner into StyleSetHandle, and eliminate CSSStyleSheet::EnsureUniqueInner. r=heycam
MozReview-Commit-ID: LH7vTKUmuv8

--HG--
extra : rebase_source : 35d2e23978150001c2a6293a8749065dd49eed4a
2017-05-15 16:30:10 -07:00
Brad Werth 1af9f090ed Bug 1339629 Part 8: Uplift ClearRuleCascades into StyleSheet. r=heycam
MozReview-Commit-ID: CCYIYjWrw86

--HG--
extra : rebase_source : c9f3e4bced29d46ab9c906e58e97465e60fda5ae
2017-05-18 14:21:11 -07:00
Brad Werth 0d3ac0a207 Bug 1339629 Part 7: Ensure ServoStyleSets keep sheets informed of the stylesets they are part of. r=heycam
MozReview-Commit-ID: EH9GO749LlN

--HG--
extra : rebase_source : 3d1d53475971a1254bac6e0b4afee26ba704abea
2017-05-23 17:02:51 -07:00
Brad Werth a13dd3c171 Bug 1339629 Part 6: Uplift mStyleSets into StyleSheet. r=heycam
MozReview-Commit-ID: G8xQ5gLJ3dr

--HG--
extra : rebase_source : 76ebce99d0e2570a6893691c7bc6f86a11a06f9d
2017-05-15 16:27:15 -07:00
Brad Werth eeb0549a75 Bug 1339629 Part 5: Change CSSStyleSet::mStyleSets to use StyleSetHandles. r=heycam
MozReview-Commit-ID: 7KFbhh4fCW9

--HG--
extra : rebase_source : 772367fb7fcdaa494ada7e01237ee1262af53ee1
2017-05-15 15:01:23 -07:00
Brad Werth 2a2c39ef1d Bug 1339629 Part 4: Uplift CloneFor into StyleSheetInfo, and EnsureUniqueInner into StyleSheet. r=heycam
MozReview-Commit-ID: 4aZJYAsmZ2h

--HG--
extra : rebase_source : 196529a87197a569694428269a3f3244fa25cf38
2017-05-15 16:19:17 -07:00
Brad Werth e8877f1e1a Bug 1339629 Part 3: Uplift mDirty into StyleSheet. r=heycam
MozReview-Commit-ID: iZKdg0fWss

--HG--
extra : rebase_source : 7cc93bc4054e887e75d758f0bff7978dc6f92f2e
2017-05-15 14:48:24 -07:00
Phil Ringnalda 30a91cb819 Backed out 6 changesets (bug 1328509) for Windows 7 failures in test_visited_reftests.html
Backed out changeset 8388d8c76fed (bug 1328509)
Backed out changeset 182a88607e08 (bug 1328509)
Backed out changeset 008efac7764b (bug 1328509)
Backed out changeset c2ce10b8bc37 (bug 1328509)
Backed out changeset 65bbc73c87aa (bug 1328509)
Backed out changeset e20d3d5170c2 (bug 1328509)

MozReview-Commit-ID: BSmqdFP1Zom
2017-05-24 22:12:53 -07:00
Hiroyuki Ikezoe b190c5e59f Bug 1328505 - Enable test_animations_styles_on_event.html on stylo. r=boris
MozReview-Commit-ID: IQuW53NaYrU

--HG--
extra : rebase_source : e2e8f25c607e91a16f535637ead793554a1d5fd5
2017-05-25 08:57:18 +09:00
Hiroyuki Ikezoe 2d49c4d158 Bug 1358266 - Disable table-overflowed-by-animation.html on stylo until bug 1365851 is fixed. r=boris
MozReview-Commit-ID: Kt3SqAl2jo9

--HG--
extra : rebase_source : 50562f064513a3e03d1016a9653db9b75dba7b86
2017-05-25 11:20:11 +09:00
J. Ryan Stinnett b7d59262d8 Bug 1328509 - Enable visited tests for Stylo. r=emilio
MozReview-Commit-ID: HnbVmwMMCMO
2017-05-24 21:20:07 -05:00
J. Ryan Stinnett 56b5ec82a0 Bug 1328509 - Wire up visited values in ServoStyleSet::GetContext. r=emilio
Create an extra style context using the visited values (if they exist).  This
mirrors the logic Gecko performs in nsStyleSet::GetContext for visited support.

MozReview-Commit-ID: EiJQXDgz8tX
2017-05-24 21:20:06 -05:00
J. Ryan Stinnett 831e231177 Bug 1328509 - Add visited reftest for attr / state change. r=xidorn
MozReview-Commit-ID: ILDy3hDv53Y
2017-05-24 21:20:05 -05:00
J. Ryan Stinnett af42205c0e Bug 1328509 - Add visited pseudo crashtests. r=emilio
Rename and duplicate a crashtest to better cover each variation of a single
:link or single :visited style on a pseudo-element.

MozReview-Commit-ID: JMFXD7nk9fH
2017-05-24 21:20:05 -05:00
J. Ryan Stinnett 8b8439d4f3 Bug 1328509 - GetContentStateForVisitedHandling can access state directly. r=dbaron
While studying `GetContentStateForVisitedHandling` for adaptation to Stylo, I
noticed it calls through to `GetContentState`, which depends on external state
such as private browser, etc.

However, there's no need to call `GetContentState` here since this function
always clears both unvisited and visited if either is set.

MozReview-Commit-ID: JLwKnowQbJ2
2017-05-24 21:20:04 -05:00
Boris Chiou d897bdc993 Bug 1361663 - Part 2: Add tolerance because we use different ways for interpolation on the main/compositor thread. r=birtles
On the main thread, we use Servo backend, and the type of computed::Length is
|app_units::Au| (i.e. i32).
However, on the compositor thread, we use Gecko backend, and the type of
the length in nsCSSValue is |float|, so there might be some difference.
Use "0.5 / 60" because we round the interpolated result to the nearest
integer, and convert it into an app unit value, so the tolerance could be
this value.

MozReview-Commit-ID: EBceiO7keH1

--HG--
extra : rebase_source : aa4e3ac68fed1bcbdb51d93b403a15b0304c144d
2017-05-24 17:07:10 +08:00
Kartikaya Gupta 88d6c78bc4 Bug 1341992 - Only do hit-testing with the ignore-root-scroll-frame flag on zoomable platforms. r=tnikkel
The ignore-root-scroll-frame flag is generally needed on Fennec, or possibly
other zoom-enabled platforms, when we have them. It allows hit-testing things
outside the main thread's notion of what is visible, because that might occur
when the user zooms out.

For largely historical reasons, we are passing this flag around in other scenarios,
such as when doing hit-tests for touch events, because in the past touch events
and zooming only happened on Fennec, so it didn't matter. Now that we have
touch events enabled on other platforms, such as Windows, we need to make the
distinction clearer.

MozReview-Commit-ID: BlHjtjFYgzv

--HG--
extra : rebase_source : cbfeab4666b5556ba0b38f3abdf666d63945b9a1
2017-05-24 16:23:03 -04:00
Xidorn Quan 918f0728dc Bug 1366735 part 3 - Remove SetCounterStyleDirty. r=heycam
When the counter style in the style struct changes, CalcDifference
would return ReconstructFrame, which should cause corresponding use
node to be reconstructed. That means a use node with retired counter
style should always be destroyed in the next flush, so it makes no
sense to reset them anymore.

However, we would still need to mark counter lists dirty because
otherwise their content may not get update when there are changes to
counter styles which are still valid.

MozReview-Commit-ID: FnBPx81StzG

--HG--
extra : rebase_source : 2adf7b64484746a5f416b7902df2ac718a3fdeab
2017-05-23 10:08:50 +10:00
Xidorn Quan 46dd59904a Bug 1366735 part 2 - Use the new struct in stylo. r=heycam
MozReview-Commit-ID: trgd0lKLP1

--HG--
extra : rebase_source : 8216769c7ee2a323d2af2080dd97cac3489af82d
2017-05-23 00:32:05 +10:00
Xidorn Quan 1dd9b6bad1 Bug 1366735 part 1 - Change counter functions to use struct rather than nsCSSValue::Array. r=heycam
MozReview-Commit-ID: 4FiOxCOsjtD

--HG--
extra : rebase_source : 0a2ef777045603fe591ba3a74259699a2339cede
2017-05-22 22:51:20 +10:00
Xidorn Quan 50097c0cfe Bug 1341102 - Update test expectations.
MozReview-Commit-ID: EM8FcemDFMR
2017-05-25 09:18:28 +10:00
Botond Ballo ae4b8838b4 Bug 1352863 - Add a CoordOf metafunction that maps point and rect types to their coordinate type. r=kats
The approach taken is to implement the metafunction by specialization as usual,
and then wrap it into an alias template. This avoids having to write "typename"
and "::Type" at the use site.

MozReview-Commit-ID: VLOxb4Gu0z

--HG--
extra : rebase_source : 65e4c255eeb5646e351692e6d4f91d3e6c8e5789
2017-05-19 19:54:25 -04:00