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
Ryan VanderMeulen
bda1298f43
Merge m-c to autoland. a=merge
...
CLOSED TREE
2017-05-24 16:34:01 -04:00
Ryan VanderMeulen
30caacbb11
Merge inbound to m-c. a=merge
2017-05-24 16:32:59 -04:00
Ryan VanderMeulen
c66048750e
Backed out changeset 2b7bf0df3681 (bug 1360559) for test_bug533845.xul timeouts.
2017-05-24 15:24:07 -04:00
Greg Mierzwinski
54fc77403b
Bug 1360559 - Adjust mouse position in test_bug348236.html. r=jmaher
...
Adjusted by moving mouse 2 pixels down. This is done in preparation for Ubuntu 16.04.
MozReview-Commit-ID: Jrt4wAsiOfh
--HG--
extra : rebase_source : dc10f910fda4d6b8acfb248bad138c68599b4c93
2017-05-22 12:56:51 -04:00
Ting-Yu Lin
41dbaf6f6f
Bug 1363640 Part 7 - Update reftest expectations after enabling stylo on XBL documents. r=heycam
...
MozReview-Commit-ID: I5HNk22XvKi
--HG--
extra : rebase_source : baf89a4c80b7984a020e1ca507643f8680153f9f
2017-05-19 20:33:10 -07:00
Ting-Yu Lin
e28f16e90e
Bug 1363640 Part 2 - Move the logic in SupportsServoStyleBackend() to UpdateStyleBackendType(). r=heycam
...
SupportsServoStyleBackend() uses methods in nsIDocument, so it would be more
straightforward to do that in UpdateStyleBackendType().
Also, call StyloEnabled() before doing other logic so that the warning about
"no docshell" won't show up when stylo is built but disabled.
MozReview-Commit-ID: 9ZUYatPBv1r
--HG--
extra : rebase_source : ea130cdf2ef0b49d73bd688aeca1fc227431441c
2017-05-09 18:33:57 -07:00
Ting-Yu Lin
bd80f687dc
Bug 1363640 Part 1 - Move IsContentDocument() and IsTopLevelContentDocument() from nsDocument to nsIDocument. r=heycam
...
In this way, the callers who have nsIDocument don't need to cast to nsDocument.
MozReview-Commit-ID: 8zVUjkbrlaG
--HG--
extra : rebase_source : c444a103a430e3746508cc894902e677d58e65fe
2017-05-09 18:28:36 -07:00
L. David Baron
c84d27dd7e
Bug 1367190
- Fix bustage on a CLOSED TREE.
2017-05-24 10:17:19 -04:00
L. David Baron
76b64757a7
Bug 1367190
patch 3 - Store nsPresArena::mFreeLists as an array. r=mats
...
MozReview-Commit-ID: DDJetJaJMb4
--HG--
extra : transplant_source : r%2C1%CA%1B%3B%816/%A7%1A%82%28%E3%B6%EDj%A2W%B1
2017-05-24 09:41:41 -04:00
L. David Baron
e50b00e813
Bug 1367190
patch 2 - Remove nsPresArena::AllocateBySize, nsIPresShell::AllocateMisc, and nsPresContext::AllocateFromShell. r=mats
...
MozReview-Commit-ID: l2UQC7qOQ0
--HG--
extra : transplant_source : L%29d%C1%7Cc%86%2B%A2%B3%FE%EC%9D%A5%D9%CEdQ%2CL
2017-05-24 09:36:11 -04:00
L. David Baron
a852d0d5ce
Bug 1367190
patch 1 - Convert the 4 objects that use nsPresArena::AllocateBySize to use AllocateByObjectID. r=mats
...
MozReview-Commit-ID: 3LaG8Daon6V
--HG--
extra : transplant_source : %AB%00%3E%F6B%13%B8%84%C7%7B%24%08%8BU%8A%91%7DA%2C%A1
2017-05-24 09:35:26 -04:00
Sebastian Hengst
795da9ebf8
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: HGZE1dfSDNK
2017-05-24 11:25:03 +02:00
Xidorn Quan
a62f163117
Bug 1362255 - Import CSS tests from web-platform-tests. r=dbaron
...
MozReview-Commit-ID: CmfDYDWHzD9
--HG--
extra : source : d337ec3b65cedbe11116718341af2b7ac9b69c2f
2017-05-24 09:56:29 +10:00
Ryan VanderMeulen
27fd4cc7e2
Merge inbound to m-c. a=merge
2017-05-23 18:11:35 -04:00
Timothy Nikkel
c8ba76db41
Bug 1366875. Apply the same sync decoding heuristic to SVG <image> as we do to HTML <img>. r=mats
...
--HG--
rename : layout/svg/nsSVGImageFrame.cpp => layout/svg/nsSVGImageFrame.h
2017-05-23 14:11:13 -05:00
Boris Zbarsky
86f4888c39
Adjust stylo test expectations now that we've fixed the flags for the 'contain' property. No bug.
...
MozReview-Commit-ID: AP0ecb6KSX7
2017-05-23 21:49:10 -04:00
Manish Goregaokar
4f4bcfd98c
Bug 1366914 - Remove pref layout.css.background-clip-text.enabled; r=dholbert
...
MozReview-Commit-ID: 6XibTM1f1Rh
--HG--
extra : rebase_source : 4cc99452c8e5f1811d995735f2d6139581cba0ce
2017-05-22 18:57:21 -07:00
Ryan VanderMeulen
e096678430
Merge m-c to autoland. a=merge UPGRADE_NSS_RELEASE
...
--HG--
rename : dom/security/test/sri/iframe_style_crossdomain.html => dom/security/test/sri/iframe_style_crossdomain_legacy.html
rename : mobile/android/themes/core/content.css => mobile/android/themes/geckoview/content.css
rename : mobile/android/themes/core/images/accessiblecaret-normal-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-normal-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-normal-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-normal-xxhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-left-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-left-xxhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-hdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-hdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-xhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-xhdpi.png
rename : mobile/android/themes/core/images/accessiblecaret-tilt-right-xxhdpi.png => mobile/android/themes/geckoview/images/accessiblecaret-tilt-right-xxhdpi.png
rename : mobile/android/themes/core/images/dropmarker-right.svg => mobile/android/themes/geckoview/images/dropmarker-right.svg
rename : mobile/android/themes/core/images/dropmarker.svg => mobile/android/themes/geckoview/images/dropmarker.svg
rename : mobile/android/themes/core/images/cast-active.svg => mobile/android/themes/geckoview/images/videocontrols-cast-active.svg
rename : mobile/android/themes/core/images/cast-ready.svg => mobile/android/themes/geckoview/images/videocontrols-cast-ready.svg
rename : mobile/android/themes/core/images/exitfullscreen.svg => mobile/android/themes/geckoview/images/videocontrols-exitfullscreen.svg
rename : mobile/android/themes/core/images/fullscreen.svg => mobile/android/themes/geckoview/images/videocontrols-fullscreen.svg
rename : mobile/android/themes/core/images/mute.svg => mobile/android/themes/geckoview/images/videocontrols-mute.svg
rename : mobile/android/themes/core/images/pause.svg => mobile/android/themes/geckoview/images/videocontrols-pause.svg
rename : mobile/android/themes/core/images/play.svg => mobile/android/themes/geckoview/images/videocontrols-play.svg
rename : mobile/android/themes/core/images/scrubber.svg => mobile/android/themes/geckoview/images/videocontrols-scrubber.svg
rename : mobile/android/themes/core/images/unmute.svg => mobile/android/themes/geckoview/images/videocontrols-unmute.svg
rename : mobile/android/themes/core/scrollbar-apz.css => mobile/android/themes/geckoview/scrollbar-apz.css
rename : mobile/android/themes/core/touchcontrols.css => mobile/android/themes/geckoview/videocontrols.css
extra : rebase_source : a5b4c2c75991990af25c4686ff96c199834ff317
2017-05-23 13:41:47 -04:00
Ryan VanderMeulen
22d214ae4b
Merge autoland to m-c. a=merge
2017-05-23 10:32:42 -04:00
Xidorn Quan
399614af08
Bug 1363968 - Change how counter-{reset,increment} is parsed to align serialization of specified value with Servo and Blink. r=heycam
...
This also includes a small fix to manifest of the affected mochitest.
MozReview-Commit-ID: 1b8lba5JiHr
--HG--
extra : rebase_source : e435160f2e20b8cd4954ae5536c800dcddde33d4
2017-05-23 13:28:47 +10:00
cku
60f3f75961
Bug 1366434
- Part 2. Reftest of mask-mode/mask-composite automatic fill. r=heycam
...
MozReview-Commit-ID: LZHxd5pQzmR
--HG--
extra : rebase_source : b36b80de10f7969ba076282fdc03faf833a9c7d3
2017-05-23 18:08:48 +08:00
cku
c7f2ec2bda
Bug 1366434
- Part 1. Automatically repeat mask-mode and mask-composite to match the number of mask layers. r=heycam
...
To do this, we simply need to add them into nsRuleNode::FillAllBackgroundLists.
It's gecko only bug, stylist in stylo handle it correctly.
MozReview-Commit-ID: 6GkuMZnNEqt
--HG--
extra : rebase_source : f0460bc054fd4385c2218b71ebae69d6e5693bb3
2017-05-23 15:47:14 +08:00
Xidorn Quan
50afabec0b
Bug 1328507 - Enable mochitests disabled because of this bug. r=xidorn
...
MozReview-Commit-ID: EA27tfe33JQ
--HG--
extra : rebase_source : d1281bd37d06e8b35faf6fac7590e2c6b8e1338c
2017-05-23 14:51:21 +10:00
Shing Lyu
65cb773340
Bug 1359288 - Enable Android reftest to resume from crashes. r=jmaher
...
MozReview-Commit-ID: EqTOdEwfTWi
--HG--
extra : rebase_source : 36837b43159f484f911cf5183d81c3440d59736a
2017-05-10 10:38:48 +08:00
Xidorn Quan
877d656a36
Bug 1366657 - Set stylesheet and parent rules properly for keyframe rules. r=heycam
...
MozReview-Commit-ID: CdIm4IypeN0
--HG--
extra : rebase_source : c8bda43dc7844af93fdbef7268d206b8f91dcee9
2017-05-22 16:05:14 +10:00
Ryan VanderMeulen
c70bd0e2a0
Bug 1341102 - Update stylo test expectations after the landing of PR #16947 .
2017-05-22 20:29:22 -04:00
Wes Kocher
9a8d52f7af
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: AVwPRGa5re9
2017-05-22 16:38:46 -07:00
Wes Kocher
2933592c4a
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 7NiWtCjPk84
2017-05-22 16:26:12 -07:00