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

6610 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 5784adf50e Merge mozilla-central to autoland 2016-07-08 12:18:14 +02:00
Jet Villegas b98f6dff7f Bug 1285317: Reftest 518172-1b.html and 518172-2b.html should be fuzzy== on e10s and non-e10s. r=mstange 2016-07-07 14:14:28 -07:00
Hiroyuki Ikezoe d6944d301d Bug 1278136 - Part 2: We should not check whether the animation can run on the compositor or it's paused when determining if we should create a stacking context. r=birtles,mattwoodrow
We should create a stacking context for any transform or opacity animations
that are either "in effect" (what we currently do) OR "current", i.e.
scheduled to run or running. *BUT* for now, we don't create any stacking
context in before phase without fill:backwards or fill:both because the
property never wins in cascade until the animation gets "in effect".  This
restriction will be removed in a subsequent patch in this bug after landing
bug 1279403.

MozReview-Commit-ID: 8RyLJNPtoKI

--HG--
rename : layout/reftests/css-animations/stacking-context-transform-animation-ref.html => layout/reftests/css-animations/stacking-context-animation-ref.html
extra : rebase_source : 0d9c8d9e03ca0d400e9b376b9416fbabffd10034
2016-06-27 12:52:53 +09:00
Markus Stange f8e66e0cdf Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : histedit_source : 5390eeebfe9a2791d9ac8e91ec1dfec4ec7b4118
2016-06-02 15:41:51 -04:00
Khaled Hosny 76d9e4ca41 Bug 1283932 - reftests, r=jfkthame 2016-07-06 10:10:26 +01:00
Astley Chen c9de3d6a41 Bug 1283679 - fix misspelled mask-composite:subtract keyword. r=dbaron
MozReview-Commit-ID: 67UEtupOLoM

--HG--
extra : rebase_source : d5c27da11ae0be79ef551c70cfeb17dcf1c3db67
2016-07-04 11:17:13 +08:00
Carsten "Tomcat" Book 5f79b99ba6 Merge mozilla-central to autoland 2016-07-04 13:09:12 +02:00
Kevin Chen 8cb77ec6fc Bug 1264809 - (Part 3) Add reftest. r=dholbert 2016-07-01 00:44:00 +02:00
Carsten "Tomcat" Book fcff88e7a8 Merge mozilla-central to autoland 2016-07-01 11:20:25 +02:00
Matt Woodrow e6469da752 Bug 1269321: Part 4 - Add tests. r=thinker
--HG--
extra : rebase_source : 4a6756ea08ac3f949fd2ad3a50aa5160921e446e
2016-06-30 18:10:49 +02:00
Fariskhi Vidyan ccd59b67bf Bug 1280425 part 1: Remove support for deprecated value "defer" in SVG preserveAspectRatio. r=dholbert
MozReview-Commit-ID: I74zfSuwsKH

--HG--
extra : rebase_source : 189fd634cc2c7a1bc99804e05c99b1e0fd3e3f9e
2016-06-30 17:28:33 -07:00
Xidorn Quan 8bb94fa4a4 Bug 1141895 part 2 - Use unprefixed unicode-bidi values in internal code. r=jfkthame
MozReview-Commit-ID: 1o2NEe8eiSX

--HG--
extra : rebase_source : b09e931fc8e318ceda224fe9c02dd7931c75f8ed
2016-06-30 16:25:31 +10:00
Matt Woodrow b4b0f124bf Bug 1283827 - Flatten transform-style:preserve-3d when combined with opacity. r=dbaron
This matches the behaviour required by the latest editor's draft spec and matches what blink is planning on shipping soon.
It may not be an entirely web compatible change, but we expect only a small number of websites to be affected. See
the bug for more details.
2016-07-02 14:47:12 +02:00
Xidorn Quan c353935ab6 Bug 1160847 part 3 - Restore virtual bidi control characters for reordering. r=jfkthame
This patch mainly consists of two parts, one for resolving and the other
for reordering.

In the resolving part, the added code stores the lowest embedding level
of all bidi formatting characters precede a frame to the bidi data of
that frame when necessary.

In the reordering part, virtual frame is restored from the information
stored above before asking the bidi engine to reorder frames

Collapsing a run of continuous virtual formatting characters into one
virtual character with the lowest embedding level among them should work
because a character with a higher embedding level than either of its
neighbors should not affect the reordering result of any other part of
the sequence. (No formal proof of this theorem, though)

MozReview-Commit-ID: LQjRu0mWsZP

--HG--
extra : source : 5d0cf1cbd270e9963d848a23b37528ed503ed6a0
2016-06-29 17:47:18 +10:00
Xidorn Quan 90c5357c7f Bug 1160847 part 2 - Add glue to nsBidiPresUtils to use support for bidi isolate in nsBidi. r=jfkthame
This patch is mainly based on smontagu's wip patch. Some non-trivial differences:

* BidiParagraphData.mIsolateCount and related code are not added in this patch.
  I investigated uses of this field in the wip patch, and it seems to me none of
  them makes sense:
  1. in the fast path of nsBidiPresUtils::ResolveParagraph, if there would be
     any isolate character in the surrounding text, there must exist more than
     one runs, which indicates the isolate count condition is redundant.
  2. in handle of br frame in nsBidiPresUtils::TraverseFrames, based on my
     understanding of "CSS Writing Modes Level 3" section "2.4.4. Paragraph
     Breaks Within Embeddings and Isolates", the resolving should happen
     unconditionally.

* {control,override}Char in nsBidiPresUtils::TraverseFrames are assigned
  unconditionally when in a bidi inline container, so that we can properly
  handle it when there are continuations. I suspect this was the reason of
  regressions in dynamic reftests from the wip patch mentioned in comment 1.

MozReview-Commit-ID: LUdBAapA48e

--HG--
extra : source : 28fa56b841de689691375e8e2d5e56014921b48e
2016-06-29 17:47:00 +10:00
Mason Chang 328a9da0c1 Bug 1282626. Windows skia reftest fuzzing. r=lsalzman 2016-06-27 18:12:57 -07:00
Jonathan Kew afecdbf505 Bug 1281424 - Reftest to check that text-orientation:upright does not override bidi in sideways-* modes. r=xidorn 2016-06-27 18:39:47 +01:00
Daniel Holbert a5625a56b5 Bug 1280422: Remove unneeded "box-sizing: padding-box" CSS from 3 reftests, now that it's become invalid CSS. (test only, no review.)
As it happens, these testcases don't actually have any padding.  So for them,
"box-sizing: padding-box" is equivalent to the default "content-box" behavior,
anyway.  So, this change (and the unsupporting of 'padding-box') doesn't impact
these tests' rendering.

MozReview-Commit-ID: JPTwmahnOti
2016-06-20 09:28:29 +01:00
cku 894e7d0ebb Bug 1272859: Part 2. SVG mask on border area reftest r=mstange
MozReview-Commit-ID: Cl8FoMTqt2v

--HG--
extra : rebase_source : b53fe1a5131e25cfe73748c7d174f466c8f9e724
2016-05-30 01:28:15 +08:00
Sebastian Hengst 4263e756aa Backed out changeset cafa7213ef23 (bug 594876) 2016-06-17 20:15:54 +02:00
Andrew Comminos ba38522840 Bug 594876 - Fuzz reftests with noise from enabling layers acceleration on Linux. r=nical
MozReview-Commit-ID: JnkOB3gg5hk

--HG--
extra : rebase_source : 13d50608ea23e72cf91fb7c37458f135b80416b3
2016-06-17 15:02:04 +01:00
Timothy Guan-tin Chien 9ed4429e08 Bug 1231701 - Ship our own variant of EmojiOne on Windows and Linux, r=glandium, r=dolske, r=jfkthame, r=gerv
This patch bundles a color font named "EmojiOne Mozilla", and turn on
the necessary code for including the bundled font, on Linux and Windows.
With that, users of Linux and Windows <=8.0 is able to see color Emoji
on Firefox without support from System.

The font bundled is the v0.2.1 version, generated from the project repo
in

https://github.com/mozilla/emojione-colr

with artwork from the original EmojiOne font and Twemoji,
under CC BY 4.0 license.

Test files, about:license page, and the packager instruction are
modified accordingly.

MozReview-Commit-ID: 2mmxnA0vS3u
2016-06-15 21:58:49 +01:00
Mason Chang b912ea2340 Bug 1279064 - Skia reftest fuzzing for skia content on windows. r=lsalzman 2016-06-08 10:51:27 -07:00
Gordon Su 4b24a929e8 Bug 1271126 - Fixed the ParseHTMLInteger function to handle INT32_MIN. r=smaug 2016-06-12 16:18:55 -04:00
Tooru Fujisawa 2e9d18cb2f Bug 382721 - Part 5: Add testcases for dashed/dotted borders. r=jrmuizel 2015-08-06 11:42:09 +09:00
Tooru Fujisawa bae631b707 Bug 382721 - Part 3: Improve spacing and corner interaction of dashed/dotted border. r=jrmuizel 2015-08-06 11:42:09 +09:00
Carsten "Tomcat" Book 6697f3e22c Backed out changeset f7cfef76a52c (bug 382721) for android c3 perma failures
--HG--
extra : rebase_source : 3179c9982aa1fec85323bfd08cf7eed8818dfc44
2016-06-10 15:38:58 +02:00
Carsten "Tomcat" Book d02a177069 Backed out changeset 63f10496a3e4 (bug 382721)
--HG--
extra : rebase_source : af456f047e9be536b0bfd15947d52e42e17b7db0
2016-06-10 15:38:35 +02:00
Tooru Fujisawa 73cafd1729 Bug 382721 - Part 5: Add testcases for dashed/dotted borders. r=jrmuizel 2015-08-06 11:42:09 +09:00
Tooru Fujisawa 6e4ae65190 Bug 382721 - Part 3: Improve spacing and corner interaction of dashed/dotted border. r=jrmuizel 2015-08-06 11:42:09 +09:00
Mats Palmgren 0629ddead0 No bug - [css-grid] Remove superfluous runTest call. r=me 2016-06-10 02:56:23 +02:00
Markus Stange ddeab1616a Bug 1276161 - Reftests. r=lsalzman
MozReview-Commit-ID: 9PyuKmzuxiO

--HG--
extra : amend_source : f359e03db6a6c6b5d5b7856c17eb063de8e31437
2016-06-09 16:53:17 -04:00
Sotaro Ikeda 6ec321d0df Bug 1256475 - Use libyuv for non scaling YUV color conversion r=jrmuizel 2016-06-08 18:46:42 -07:00
Jonathan Chan 42ba4360c9 Bug 1043537 - Don't show resize handle for generated content. r=Enn
MozReview-Commit-ID: IZHqb9IwaAl
2016-06-07 10:22:04 -07:00
Sebastian Hengst f8ebb731be Backed out changeset e2881c49e123 (bug 382721) for crashtest failures in 730559.html. r=backout on a CLOSED TREE 2016-06-08 11:08:32 +02:00
Sebastian Hengst f29c1e7fc6 Backed out changeset e8d313145a59 (bug 382721) 2016-06-08 11:07:46 +02:00
Tooru Fujisawa 673c010895 Bug 382721 - Part 5: Add testcases for dashed/dotted borders. r=jrmuizel 2015-08-06 11:42:09 +09:00
Tooru Fujisawa eaa08acdfa Bug 382721 - Part 3: Improve spacing and corner interaction of dashed/dotted border. r=jrmuizel 2015-08-06 11:42:09 +09:00
James Willcox c9dc698ba2 Bug 1275094 - Disable opaque-fractional-displayport reftests on Android r=mstange 2016-06-08 00:26:09 -05:00
Phil Ringnalda 305ac3c2cf Back out c88f2cb8e4fa (bug 1256475) for Android failures in test_imagebitmap_extensions.html
CLOSED TREE
2016-06-06 22:26:25 -07:00
Sotaro Ikeda d7880ceea1 Bug 1256475 - Use libyuv for non scaling YUV color conversion r=jrmuizel 2016-06-06 20:10:59 -07:00
Hiroyuki Ikezoe d85954cbf5 Bug 1277991 - We don't need to check ShouldBlockAsyncTransformAnimations() when we just want to know whether the frame has transform animations or not. r=birtles
MozReview-Commit-ID: HYZCKoK62Fq

--HG--
extra : rebase_source : 5e389ab4f9695312f05515b3432d8cf285fbec2f
2016-06-06 11:27:27 +09:00
Astley Chen 728a8aaccd Bug 1258286: Part 2 - update w3c css masking mask-repeat ref test case. r=heycam
--HG--
extra : rebase_source : 2185d9144d7ee0b117249e61dc677e0f20d636ad
2016-06-01 11:13:48 +08:00
L. David Baron 1bddf4ac22 Remove commented-out subdirectories that were listed purely hypothetically to avoid their confusing people in the future. No bug.
(See bug 859301 comment 56 for an example of the problem this causes.)

--HG--
extra : amend_source : 88cd9b67f4f833f07ac34aeb6483cf83f9b339d3
extra : transplant_source : 0N%B9%D7%D5%91%22%BC%8D%5C%03%FD%E5Z%0C%E1%BF%91X%EA
2016-06-03 20:08:41 -07:00
Ethan Lin a36668bf0e Bug 889964 - Part 3. Turn on background reftest. r=dbaron
---
 layout/reftests/w3c-css/submitted/reftest.list | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2016-06-04 18:36:49 -07:00
Ethan Lin 6f80a75912 Bug 889964 - Part 2. Add reftest for boarder image: round. r=dbaron
---
 .../border-image-repeat-round-1-ref.html           | 100 +++++++++++++++++++++
 .../background/border-image-repeat-round-1.html    |  27 ++++++
 .../border-image-repeat-round-2-ref.html           | 100 +++++++++++++++++++++
 .../background/border-image-repeat-round-2.html    |  27 ++++++
 .../w3c-css/submitted/background/border.png        | Bin 0 -> 849 bytes
 .../w3c-css/submitted/background/reftest.list      |   6 +-
 6 files changed, 259 insertions(+), 1 deletion(-)
 create mode 100644 layout/reftests/w3c-css/submitted/background/border-image-repeat-round-1-ref.html
 create mode 100644 layout/reftests/w3c-css/submitted/background/border-image-repeat-round-1.html
 create mode 100644 layout/reftests/w3c-css/submitted/background/border-image-repeat-round-2-ref.html
 create mode 100644 layout/reftests/w3c-css/submitted/background/border-image-repeat-round-2.html
 create mode 100644 layout/reftests/w3c-css/submitted/background/border.png
2016-06-04 18:36:49 -07:00
Astley Chen 279351854b Bug 1278020 - enable selectors4 reftest. r=dbaron 2016-06-04 10:10:41 +08:00
Mason Chang a6148730bf Bug 1274726. Part 2: Reftest for prescale and repeat drawable. r=jrmuizel 2016-06-03 13:30:23 -07:00
Markus Stange b26de4a29a Bug 1153694 - Don't let nsDisplayFixedPosition cause unnecessary layerization around itself. r=mattwoodrow
MozReview-Commit-ID: 66q3PkOdvTe

--HG--
extra : rebase_source : cc7abd074a210bc03daef403c23a40ff4b681f3e
extra : amend_source : c58e6b96a2f8a88ae0e221ec51927825a4f07bbb
extra : histedit_source : 520123d9dc28c504cff5d534c9df30b0319fa423%2C0b4523e5cfc9c20d8196c837f8c6c20a23dd984e
2016-06-02 20:55:02 -04:00
Timothy Nikkel 10152912ba Bug 1275411. Actually enable reftest. 2016-06-02 17:09:54 -05:00