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

51385 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman 1881a1669c Bug 1278957 - enable Skia content for Linux and Android. r=mchang
MozReview-Commit-ID: KFb81rVM0ik
2016-08-08 14:26:26 -04:00
Ting-Yu Lin 82b2646797 Bug 1288626 Part 8 - Add shape-outside support to style system. r=heycam
I have to move the definition of FragmentOrURL, StyleBasicShape and
StyleShapeSource prior to where nsStyleDisplay::mShapeOutside is defined since
the template struct need to be fully defined before using as a member variable.

Use SetIdent() in CreatePrimitiveValueForBasicShapeOrURL() in
nsComputedDOMStyle.cpp per bug 1288626 comment 6.

MozReview-Commit-ID: 1KZS299CFul
2016-08-09 00:15:06 +08:00
Ting-Yu Lin 62e2bf343b Bug 1288626 Part 7 - Rename StyleClipShapeSizing to StyleClipPathGeometryBox. r=heycam
Change to geometry box to match the name in the spec.
https://drafts.fxtf.org/css-masking-1/#the-clip-path

MozReview-Commit-ID: 8jDTynCkJ4A
2016-08-09 00:15:06 +08:00
Ting-Yu Lin 62e1c45e4b Bug 1288626 Part 6 - Generalize StyleClipPath to be template struct StyleShapeSource. r=heycam
The only difference between clip-path and shape-outside is the reference box
enum, so I generalize StyleClipPath to be a template struct StyleShapeSource to
accommodate both. I'll have to move all the method definition to the header to
make the linker happy.

The only logic change is calling operator==() instead of EqualURIs to compare
urls in StyleShapeSource::operator==().

MozReview-Commit-ID: LOBGVVpnnB
2016-08-09 00:15:05 +08:00
Ting-Yu Lin 290bff0f81 Bug 1288626 Part 5 - Rename StyleClipPathType to StyleShapeSourceType. r=heycam
StyleClipPathType will be generalized to StyleShapeSourceType to match this
change.

MozReview-Commit-ID: Igaad2EoSSt
2016-08-09 00:15:05 +08:00
Ting-Yu Lin c10998a42b Bug 1288626 Part 4 - Rename nsStyleClipPath to StyleClipPath. r=heycam
MozReview-Commit-ID: 2iT4elvtTGd
2016-08-09 00:15:05 +08:00
Ting-Yu Lin cdfcb937ce Bug 1288626 Part 3 - Rename nsStyleBasicShape to StyleBasicShape. r=heycam
MozReview-Commit-ID: 9NUKpZ4s4kG
2016-08-09 00:15:05 +08:00
Ting-Yu Lin 829dd22e89 Bug 1288626 Part 2 - Use basic shape enum class defined in nsStyleConsts.h. r=heycam
Rename StyleBasicShape to StyleBasicShapeType in nsStyleConsts.h, and
replace the old enum nsStyleBasicShape::Type by the enum class
StyleBasicShapeType.

Also, replace NS_ASSERTION() by MOZ_ASSERT().

MozReview-Commit-ID: EuS4ZtYKsk6
2016-08-09 00:15:04 +08:00
Ting-Yu Lin 9eec95b855 Bug 1288626 Part 1 - Move nsBasicShape and nsStyleClipPath into mozilla namespace. r=heycam
MozReview-Commit-ID: D9wwa1rLUNa
2016-08-09 00:15:04 +08:00
Daosheng Mu 568669a06c Bug 778654 - Add test files.r=heycam
MozReview-Commit-ID: FYPgBmgBwyr

--HG--
extra : transplant_source : C%7CC%88%A6%E8%88ymS%D5%7Fs%3B%A3%D4%3F%F1%A8b
2016-05-24 14:31:09 +08:00
Daosheng Mu 7fe155aa51 Bug 778654 - Display tabIndex outline.r=heycam
MozReview-Commit-ID: GRZzECINScl

--HG--
extra : transplant_source : %18%25%A9p%A8%2AT6%CAS%0A%04n%24%7B%CB%F4H%D7%9F
2016-05-24 12:23:22 +08:00
Phil Ringnalda cd4986a6d0 Bug 1207914 - Skip test_bug632379.xul on Linux for constant timeouts 2016-08-07 15:26:35 -07:00
Phil Ringnalda d88f9174f3 Merge m-i to m-c, a=merge 2016-08-06 23:34:37 -07:00
Markus Stange ecd527362a Bug 1259872 - Don't cull all layers under an opaque layer that covers the container if that layer has a scrolled clip. r=mattwoodrow
MozReview-Commit-ID: Abmm28HiLqR

--HG--
rename : layout/reftests/async-scrolling/bg-fixed-child-no-culling-ref.html => layout/reftests/async-scrolling/bg-fixed-child-no-culling-1-ref.html
rename : layout/reftests/async-scrolling/bg-fixed-child-no-culling.html => layout/reftests/async-scrolling/bg-fixed-child-no-culling-1.html
extra : rebase_source : e8008f9011459d0c28b6b914a9a0e23a953f1469
2016-08-04 22:40:56 -04:00
Wes Kocher e62bb051c9 Merge inbound to central, a=merge 2016-08-05 14:01:56 -07:00
Cameron McCormack bddd447666 Bug 1290013 - Add a pref to disable stylo. r=bholley
MozReview-Commit-ID: DG9Q61OYlvl
2016-08-05 17:45:58 +08:00
Carsten "Tomcat" Book 0cd188453a Merge mozilla-central to autoland 2016-08-05 12:15:20 +02:00
cku 91b64119c1 Bug 1291283 - Use URLValueData::GetLocalURLFlag() to identify local-ref URI. r=dholbert
MozReview-Commit-ID: 2tXEGMhPCkn

--HG--
extra : rebase_source : 56dc684f75623e7f66d001945b41efccd65bf9ce
2016-08-04 23:50:22 +08:00
Jonathan Watt 9f767c7d64 Bug 1058040, part 5 - Move the code from nsSVGUtils::SetupContextPaint and nsSVGUtils::GetContextPaint into SVGContextPaint. r=dholbert
--HG--
extra : rebase_source : 00c5ef270ff9591a16727a2e35405177f063c8e6
2016-07-25 17:34:18 +01:00
Jonathan Watt 17c835c445 Bug 1058040, part 4 - Rename SVGTextContextPaint to SVGContextPaintImpl. r=dholbert
--HG--
extra : rebase_source : aeb52029a8060fcedaefd69b1d0120d22a2c6741
2016-07-25 16:04:20 +01:00
Jonathan Watt a6f638eeec Bug 1058040, part 3 - Move SVGTextContextPaint into SVGContextPaint.h/.cpp. r=dholbert
--HG--
extra : rebase_source : 716c7586dcf6cd7c55df2cd6d0df40287a1b1374
2016-07-25 13:27:00 +01:00
Matt Woodrow bf8a0ba830 Bug 1287122 - Make sure we build nsDisplayOpacity if we need it, since useOpacity already takes svg effects into account. r=dbaron
--HG--
extra : rebase_source : 7a9952fe0ed3a579083bd324002d44ab735d0735
2016-08-05 10:37:46 +12:00
David Anderson 456bcd0248 Move TileSize from gfxPlatform to gfxVars. (bug 1288259 part 3, r=jrmuizel)
--HG--
extra : rebase_source : 5a48bb72b10c8d9c1c5c96b8d2076a6d33cabc24
2016-08-04 11:33:43 -07:00
David Anderson 9e49bc37bb Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm)
--HG--
extra : rebase_source : cbac742f7165a2fbdec3e4d1179c9ed49324579f
2016-08-04 11:33:42 -07:00
Decky Coss b69450d2ea Bug 1287655 - place textarea/input cursor at end of text when initialized; r=smaug
MozReview-Commit-ID: 2srGXFmla07

--HG--
extra : transplant_source : %3Cn%D30%86%24%82%90%29%191%9C%8A%EB%0D%5D%E2%20%22%E5
2016-07-21 14:52:49 -04:00
Markus Stange ebb461c874 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 : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Markus Stange 840bf3bfdb Bug 1292395 - Tweak this assertion message. r=mattwoodrow
MozReview-Commit-ID: AARqrxI1Qwn

--HG--
extra : rebase_source : 0524667582af2a4a972ecf51ad912eef8a722ddc
2016-08-04 22:00:04 -04:00
Lee Salzman ca87957544 Bug 1200684 - revise Skia row blits to preserve color when blended against itself. r=mchang
MozReview-Commit-ID: Enz05s8vGuI
2016-08-05 19:50:49 -04:00
Wes Kocher 83c7e63697 Merge m-c to inbound, a=merge 2016-08-05 14:06:00 -07:00
Cameron McCormack 152dfe9371 RuleNodeCacheConditions comment fix; no bug. (DONTBUILD)
MozReview-Commit-ID: A5V5mVbOB6T
2016-08-06 01:02:06 +10:00
Manish Goregaokar f5ec6f7282 Bug 1290864 - Standardize serialization of <position> values in <basic-shape>; r=xidorn
MozReview-Commit-ID: KooW1OqtTUb
2016-08-05 19:48:13 +05:30
Manish Goregaokar 446ac79054 Bug 1290864 - Omit the default closest-side when serializing circle() and ellipse(); r=xidorn
MozReview-Commit-ID: HKwOL0YAK5E
2016-08-05 19:48:13 +05:30
Carsten "Tomcat" Book 389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Carsten "Tomcat" Book 03f2893f26 Backed out changeset 5b940f1bf535 (bug 1289829) for reftest failures 2016-08-04 09:58:10 +02:00
Daniel Holbert 83a68d4157 Bug 1291334 part 2: Fix path to solidblue.png image in flexbox-whitespace-handling-001* reftest files. (no review)
MozReview-Commit-ID: 7I53hpMdLS5
2016-08-03 22:34:32 -07:00
Daniel Holbert 4f87c4a3ab Bug 1291334 part 1: Explicitly set margin on textareas within reftest flexbox-basic-textarea-horiz-001.xhtml, to remove assumptions about default styling. (no review)
MozReview-Commit-ID: 67PSYNY8hob
2016-08-03 22:34:30 -07:00
Emilio Cobos Álvarez 1b5c331814 Bug 1290335: followup: Fix the ConsumeStoredChangeHint assertion. r=me
That will teach me to address review comments at night.

MozReview-Commit-ID: 9AGFoj2du7C
2016-08-03 19:26:37 -07:00
Jeremy Chen 639577e5c5 No bug - comment typo fix in input-text-3-noheight-ref.html. r=me DONTBUILD
comment-only, so DONTBUILD

MozReview-Commit-ID: 3QlzoP5D0rK
2016-08-04 10:23:53 +08:00
Sotaro Ikeda 4bf4a29dce Bug 1289829 - Change mask SurfaceSize calculation r=mattwoodrow 2016-08-03 19:00:19 -07:00
Bobby Holley 3b101f50f2 Bug 1291885 - Use leak logging in a few more places. r=emilio 2016-08-03 18:31:04 -07:00
Bobby Holley c9097e6d3d Bug 1291885 - Use dont_AddRef for already-addrefed ServoComputedValues. r=emilio 2016-08-03 18:31:02 -07:00
Bobby Holley ba66557dc5 Bug 1291885 - Rejigger init hook and add shutdown hook. r=emilio 2016-08-03 18:31:01 -07:00
Bobby Holley a84a0167e5 Bug 1291891 - Switch to NS_WARNING for various unimplemented incremental restyle methods. r=emilio
No need to bring the browser down.
2016-08-03 18:30:59 -07:00
Bobby Holley 83d2ff11d1 Bug 1291891 - Switch to NS_WARNING for unimplemented <style scoped>. r=emilio 2016-08-03 18:30:57 -07:00
Bobby Holley e20ac68912 Bug 1291891 - Implement ServoStyleSet::ReplaceSheets. r=emilio 2016-08-03 18:30:56 -07:00
Bobby Holley 3c38d97aa1 Bug 1291891 - Don't segfault on null parent context in ServoStyleSet::ResolveStyleForOtherNonElement. r=emilio 2016-08-03 18:30:54 -07:00
Wes Kocher ae855cdb28 Merge m-c to inbound, a=merge 2016-08-03 16:47:07 -07:00
Emilio Cobos Álvarez e09cb4a0e8 Bug 1291863: Add some type replacements to fix the Servo binding generation. r=bholley
MozReview-Commit-ID: 63eXtp2otFa
2016-08-03 15:11:15 -07:00
Emilio Cobos Álvarez 5d8a772fcd Bug 1290335: Make ProcessRestyledFrames non static, and tidy up a bit. r=heycam
MozReview-Commit-ID: 4aALVtI5DXT
2016-08-03 15:11:15 -07:00
Emilio Cobos Álvarez abbea0a9d6 Bug 1290335: Implement dumb versions of RestyleForAppend and RestyleForInsertOrChange. r=heycam
This lets us take rid of the delay-layout hack on the stylo branch.

MozReview-Commit-ID: 9fqhBCQnfYV
2016-08-03 15:11:15 -07:00