Commit Graph

53238 Commits

Author SHA1 Message Date
cku
fd94212fce Bug 1319667 - Part 3. Test case for mask longhands on svg element. r=mstange
MozReview-Commit-ID: HF1NiNPfzQs

--HG--
extra : rebase_source : 16ad8f6db362520c7e6ecf949d8a7ed99877b3d5
2016-11-23 14:02:07 +08:00
cku
5ee6e3966a Bug 1319667 - Part 2. Move DrawResult from function parameter of PaintClipMask to the return value. r=mstange
Enlight by "Bug 1314536 - Part 1"

MozReview-Commit-ID: Iogdh7LWsWa

--HG--
extra : rebase_source : aacc88ac39551aeb5ffbb84a11580a0d2eec73cc
2016-11-24 00:08:13 +08:00
cku
6a4c5689f0 Bug 1319667 - Part 1. Allow mask longhands apply to SVG elements. r=mstange
Originally, we use the follwoing statement to determine whether generate mask
for an SVG element:
aUsage.shouldGenerateMaskLayer =
  maskFrames.Length() == 1 && maskFrames[0];

maskFrames[0] is not null only if that mask resource is an SVG-mask. That means
we will not generate mask for image mask to any SVG one.

MozReview-Commit-ID: 4QiifC6J0UR

--HG--
extra : rebase_source : aa90599fc4955c0eb6e5d9d10c168b8643c32e03
2016-11-23 13:51:36 +08:00
Boris Chiou
f045a91867 Bug 1317178 - Pass the property name to Servo_DeclarationBlock_SerializeOneValue. r=birtles
In order to use single_value_to_css() in
Servo_DeclarationBlock_SerializeOneValue(), we need to pass the property name
and a flag for custom properties.

MozReview-Commit-ID: 5HfI2qOmPwP

--HG--
extra : rebase_source : 968468b3c9313c4ec3007ee9883075c8fc4ab769
2016-11-22 19:18:18 +08:00
Xidorn Quan
934b500aa8 Bug 1319994 - Use NS_ERROR for not-implemented CSS rules. r=heycam
MozReview-Commit-ID: 9E1ThQuqBf1

--HG--
extra : rebase_source : be254d83da1f1969f26b5e1f92a6df72323c7202
2016-11-24 16:28:28 +11:00
Alastor Wu
5d4571103c Bug 1301055 - part3 : modify test prefs. r=jwwang
On fennec we have the special workaround that is doesn't dispatch the "error" event when the error is
"MEDIA_ERR_SRC_NOT_SUPPORTED" because we will use an external app to open it.

But we don't want this behavior affect the tests we already have, so close the pref.

MozReview-Commit-ID: 9aoy1vnekvY

--HG--
extra : rebase_source : 9ac045b7595eadd36039bc6f42b32e4d3eac421b
2016-11-24 10:24:06 +08:00
Ting-Yu Lin
62055a1981 Bug 1316549 Part 4 - Use logical names for ComputeEllipseLineInterceptDiff(). r=dbaron
This patch is just renames. No logic change for the function.

MozReview-Commit-ID: K7w0YL3G3gu

--HG--
extra : rebase_source : d72ecdcb4d4455f4950c8673c81fbfc7c1b4f54c
2016-11-18 13:54:09 +08:00
Ting-Yu Lin
ece375de5b Bug 1316549 Part 3 - Fix <shape-box> with border-radius in writing-mode. r=dbaron
The tests cases are designed based on the integer solution to the ellipse
equation (x/a)^2 + (y/b)^2 = 1, where x=36, y=32, a=60, b=40.

MozReview-Commit-ID: De2fXcb6ypP

--HG--
extra : rebase_source : a64f490ff41c020b84025266c0c255d93a158eea
2016-11-14 18:11:45 +08:00
Ting-Yu Lin
111246d956 Bug 1316549 Part 2 - Fix assertion failure: aRadiusY > 0 in FloatInfo::XInterceptAtY(). r=dbaron
We need to consider the case when only one of the four corner radius is
specified. The two reftests are added to test 'border-top-right-radius' and
'border-bottom-right-radius', respectively.

MozReview-Commit-ID: De2fXcb6ypP

--HG--
extra : rebase_source : 51da04a7a7d60d580b46d9ac8ed4bfd7e9666766
2016-11-14 18:11:45 +08:00
Ting-Yu Lin
c7596e7d85 Bug 1316549 Part 1 - Fix LogicalSideForLineRelativeDir() for eLineRelativeDirLeft/Right. r=jfkthame
According to the spec, 6.4. Abstract-to-Physical Mappings,
line-left/line-right are equal to inline-start/inline-end when the direction
is the same. So we should use IsBlockLTR() instead of IsLineInverted().

https://drafts.csswg.org/css-writing-modes-3/#logical-to-physical

MozReview-Commit-ID: 7onE0SuHtdj

--HG--
extra : rebase_source : df0083ed7e28469a2343a8607840585e93502b80
2016-11-17 14:10:55 +08:00
Astley Chen
438b9ab220 Bug 1270406 - Remove :-moz-dir support. r=xidorn
MozReview-Commit-ID: HRBj6YF4hZS

--HG--
extra : rebase_source : 6375c14e9f2a79d3d84c8e929569fc818b137762
2016-11-22 23:05:18 +08:00
Botond Ballo
b32f766ad0 Bug 1319892 - Turn the reftest for bug 735857 into a web platform reftest. r=mstange
MozReview-Commit-ID: FTnk8t72Wb9

--HG--
extra : rebase_source : 45f84bb4894b76715659aa1e077ae13a8d6fe269
2016-11-23 15:39:27 -05:00
Carsten "Tomcat" Book
ad928dbca5 Merge mozilla-central to autoland 2016-11-23 16:45:11 +01:00
Xidorn Quan
e1ee43ee63 Bug 1223561 - Support putting <table> into fullscreen. r=dbaron
MozReview-Commit-ID: 5ohJW9U65dr

--HG--
extra : rebase_source : 6354a9d2f351a926c8dfb97fac342f634364cf57
2016-11-22 16:31:56 +11:00
Iris Hsiao
11e8b7fb2a Backed out changeset 535f8682016b (bug 1223561) for test_fullscreen-api.html timeout 2016-11-23 16:53:03 +08:00
Phil Ringnalda
88d37d8841 Merge m-c to m-i
MozReview-Commit-ID: FbJhcY28dXi
2016-11-22 21:32:23 -08:00
Phil Ringnalda
feef954874 Merge m-i to m-c, a=merge
MozReview-Commit-ID: EDVoIcyWOhi

--HG--
rename : storage/test/test_AsXXX_helpers.cpp => storage/test/gtest/test_AsXXX_helpers.cpp
rename : storage/test/test_binding_params.cpp => storage/test/gtest/test_binding_params.cpp
rename : storage/test/test_mutex.cpp => storage/test/gtest/test_mutex.cpp
2016-11-22 20:03:03 -08:00
Jet Villegas
b15cdf0759 Bug 1283302: Sets the default value for nglayout.initialpaint.delay to 5ms on desktop (stays 250 ms on Android) per user research conclusions. r=tn
MozReview-Commit-ID: LWfmMoBcbnL
2016-11-22 13:54:40 -08:00
David Anderson
a6b6c59253 Mark RenderFrameParent as initialized even if it failed to message the remote compositor. (bug 1319310, r=billm)
--HG--
extra : rebase_source : 70f0600493abf57e98fed0dd4b4587c96f2e94ae
2016-11-22 13:01:08 -08:00
Daniel Holbert
2254890482 Bug 1319428: Remove unused file svgBindings.xml. r=jwatt
(r=jwatt was granted on an earlier instance of this bug. Carrying forward.)

MozReview-Commit-ID: pix2vCqOcz
2016-11-22 13:21:35 -08:00
Xidorn Quan
d5356f5f67 Bug 1307357 followup 2 - Add AddRef/Release bindings to ServoBindingList.
MozReview-Commit-ID: 8U55TaPvAhs

--HG--
extra : amend_source : 6b5ec55ef9eb94e0bc93394dd862b03e1bb1af0a
2016-11-23 11:18:24 +11:00
Xidorn Quan
64618d07dd Bug 1307357 followup - Fix build failures.
MozReview-Commit-ID: 1apR3cVDjsC
2016-11-23 10:53:01 +11:00
Xidorn Quan
3646178578 Bug 1307357 part 7 - Implement ServoStyleRule::List. r=heycam
MozReview-Commit-ID: 1XRoc43RJKP

--HG--
extra : source : 9fb78fb599d0ac14d700a66fc297cba6991783e5
2016-11-23 10:26:20 +11:00
Xidorn Quan
4f4107f4b9 Bug 1307357 part 6 - Implement CSSStyleRule.style. r=heycam
MozReview-Commit-ID: 8Qvzc74wveE

--HG--
extra : source : 0661e153a0422bad7019724369e11200e92d9962
2016-11-23 10:26:20 +11:00
Xidorn Quan
b30b5741f1 Bug 1307357 part 5 - Implement css text getters for ServoStyleRule. r=SimonSapin,heycam
MozReview-Commit-ID: 44bKwabU4eJ

--HG--
extra : source : f71cf6b7eb43202078462501da261a2b768a7610
2016-11-23 10:26:20 +11:00
Xidorn Quan
caacda2881 Bug 1307357 part 4 - Add impl class of CSSStyleRule for stylo. r=heycam,manishearth
MozReview-Commit-ID: CNrvA0HuuL6

--HG--
extra : source : 0444c8f08953fe4d32ea6f6fa0ecf2c33eb97b05
2016-11-23 10:26:20 +11:00
Xidorn Quan
e887e33696 Bug 1307357 part 3 - Implement CSSRuleList interface for stylo. r=heycam,manishearth
MozReview-Commit-ID: Ecnbj66yKOE

--HG--
extra : source : e2e51877116f4dde6bd054e9b6e681f3e7f4250b
2016-11-23 10:26:20 +11:00
Xidorn Quan
dc820f67ee Bug 1307357 part 2 - Fix issues appear after adding file to unified source. r=heycam
MozReview-Commit-ID: 5FkisMn3LKq

--HG--
extra : source : 1f83f48485df328f516b95f0c72f190441959068
2016-11-23 10:26:20 +11:00
Xidorn Quan
9be0143f3a Bug 1307357 part 1 - Make css::Rule hold StyleSheet rather than CSSStyleSheet. r=heycam
MozReview-Commit-ID: JsJa4YqpCZy

--HG--
extra : source : b2ad813e35665e9bfede2753f19de3730869fc2f
2016-11-23 10:26:20 +11:00
Carsten "Tomcat" Book
cf6fb9d85b Merge mozilla-central to autoland 2016-11-22 16:29:49 +01:00
Carsten "Tomcat" Book
8b27dda5d1 merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Jessica Jong
3f2c55024c Bug 1309587 - PreventDefault() on suppressed/delayed key events that are sent back to parent. r=smaug
--HG--
extra : rebase_source : 0762ef1284c063c9716a963bf40ff5cc82b48326
2016-11-21 06:55:00 -05:00
Ehsan Akhgari
aca985efab Bug 1318805 - Move the code for the Web Painting module to layout/painting; r=mattwoodrow
This will help make it clearer that this code lives in a different
module for contributors.


--HG--
rename : layout/base/ActiveLayerTracker.cpp => layout/painting/ActiveLayerTracker.cpp
rename : layout/base/ActiveLayerTracker.h => layout/painting/ActiveLayerTracker.h
rename : layout/base/BorderCache.h => layout/painting/BorderCache.h
rename : layout/base/BorderConsts.h => layout/painting/BorderConsts.h
rename : layout/base/DashedCornerFinder.cpp => layout/painting/DashedCornerFinder.cpp
rename : layout/base/DashedCornerFinder.h => layout/painting/DashedCornerFinder.h
rename : layout/base/DisplayItemClip.cpp => layout/painting/DisplayItemClip.cpp
rename : layout/base/DisplayItemClip.h => layout/painting/DisplayItemClip.h
rename : layout/base/DisplayItemScrollClip.cpp => layout/painting/DisplayItemScrollClip.cpp
rename : layout/base/DisplayItemScrollClip.h => layout/painting/DisplayItemScrollClip.h
rename : layout/base/DisplayListClipState.cpp => layout/painting/DisplayListClipState.cpp
rename : layout/base/DisplayListClipState.h => layout/painting/DisplayListClipState.h
rename : layout/base/DottedCornerFinder.cpp => layout/painting/DottedCornerFinder.cpp
rename : layout/base/DottedCornerFinder.h => layout/painting/DottedCornerFinder.h
rename : layout/base/FrameLayerBuilder.cpp => layout/painting/FrameLayerBuilder.cpp
rename : layout/base/FrameLayerBuilder.h => layout/painting/FrameLayerBuilder.h
rename : layout/base/LayerState.h => layout/painting/LayerState.h
rename : layout/base/MaskLayerImageCache.cpp => layout/painting/MaskLayerImageCache.cpp
rename : layout/base/MaskLayerImageCache.h => layout/painting/MaskLayerImageCache.h
rename : layout/base/PaintTracker.cpp => layout/painting/PaintTracker.cpp
rename : layout/base/PaintTracker.h => layout/painting/PaintTracker.h
rename : layout/base/nsCSSRendering.cpp => layout/painting/nsCSSRendering.cpp
rename : layout/base/nsCSSRendering.h => layout/painting/nsCSSRendering.h
rename : layout/base/nsCSSRenderingBorders.cpp => layout/painting/nsCSSRenderingBorders.cpp
rename : layout/base/nsCSSRenderingBorders.h => layout/painting/nsCSSRenderingBorders.h
rename : layout/base/nsDisplayItemTypes.h => layout/painting/nsDisplayItemTypes.h
rename : layout/base/nsDisplayItemTypesList.h => layout/painting/nsDisplayItemTypesList.h
rename : layout/base/nsDisplayList.cpp => layout/painting/nsDisplayList.cpp
rename : layout/base/nsDisplayList.h => layout/painting/nsDisplayList.h
rename : layout/base/nsDisplayListInvalidation.cpp => layout/painting/nsDisplayListInvalidation.cpp
rename : layout/base/nsDisplayListInvalidation.h => layout/painting/nsDisplayListInvalidation.h
2016-11-21 20:01:15 -05:00
beachjar
ef4af64194 Bug 1316597 Prevent immediate opening and closing of select dropdowns when anchored on selection r=enndeakin+6102
MozReview-Commit-ID: CkKTh2j2vZF

--HG--
extra : rebase_source : a8179773dbbf1074c0e7a5c1443275b2109f1307
2016-11-18 11:46:42 -05:00
Xidorn Quan
5c2af0823d Bug 1308848 - Not request style of comment node when checking valid sibling. r=bz
MozReview-Commit-ID: 6Sq8C2LUkpT

--HG--
extra : rebase_source : 2db641f09e66b7e5f1e6d48deb5bfb5fa9026948
2016-10-17 17:29:38 +11:00
Hiroyuki Ikezoe
598b376e51 Bug 1319072 - Don't assert even if coefficient is out of range [0, 1]. r=boris
MozReview-Commit-ID: 6TnuoNnHcSc

--HG--
extra : rebase_source : c112546cae35050f1c02cc09e3cff1cb5f9ac41b
2016-11-22 08:11:42 +09:00
Xidorn Quan
8f0f7a04c9 Bug 1315403 followup - Fix mochitest failure and lint error.
MozReview-Commit-ID: KKKCybofksU

CLOSED TREE
2016-11-22 13:59:47 +11:00
Conache Cristian
5d2a9d651a Bug 1315403-no whitespace between "!" and "important" in Declaration::AppendPropertyAndValueToString and Declaration::AppendVariableAndValueToStr, r=xidorn
MozReview-Commit-ID: BKGqEpn0utp

--HG--
extra : rebase_source : dab61f244d5ca7ec13603d55cbf091b9dd6400d7
2016-11-20 14:42:11 +02:00
Mike Conley
708db40f5d Bug 418833 - Bump fuzzyness on ua-style-sheet-checkbox-radio-1 reftest for Android. r=jrmuizel
I talked to mstange about this, and what might be happening here is that there's
a difference in rounding going on during (I think) rasterization. The change is
very small and not human-noticable, so I think taking this fuzzyness is worth
the cost considering the gain in functionality.

MozReview-Commit-ID: C0CPNrIdCDu

--HG--
extra : rebase_source : 1101651250d5593ee84c661d9b91c8c6edb7c531
2016-11-18 11:55:53 -05:00
Mike Conley
a4fdeba2e9 Bug 418833 - Remove !important padding and border-radius rules for checkbox and radio form controls. r=tnikkel
MozReview-Commit-ID: 86X3PHxmKFg

--HG--
extra : rebase_source : fa55a2d4f585d62a48aeb190a29afa327ab1d4e9
2016-10-21 14:07:43 -04:00
Wes Johnston
5b987fba4a Bug 418833 - Move default checkbox/radio drawing to images. Allow overriding checkbox/radio styling. r=tnikkel
MozReview-Commit-ID: HqyXXuYzjrE

--HG--
extra : rebase_source : 9d2c887e0bdef26b4b32b7b45c80ac456ea6ebd3
2016-11-03 16:54:49 -04:00
Carsten "Tomcat" Book
59bb309e38 merge mozilla-inbound to mozilla-central a=merge 2016-11-21 15:44:20 +01:00
Cameron McCormack
21cc93d13e Bug 1310560 - Part 3: Add FFI functions for setting cursor url() lists. r=xidorn
MozReview-Commit-ID: 7SYA5BPELPe

--HG--
extra : rebase_source : 089a1cbcbdbec1812d488ce18e9da5f8357e4f30
2016-11-21 14:34:17 +08:00
Cameron McCormack
1d9afbc1fb Bug 1310560 - Part 2: Remove unused EqualImages and EqualURIs functions. r=xidorn
MozReview-Commit-ID: 28nyrNMcxXq

--HG--
extra : rebase_source : 5593f9e6596b9c05fd2541908b4cecf05d1c0797
2016-11-21 14:34:15 +08:00
Cameron McCormack
5bb56a7bb5 Bug 1310560 - Part 1: Make cursor use nsStyleImageRequest for url() value storage. r=xidorn
MozReview-Commit-ID: JU76TS3kxbz

--HG--
extra : rebase_source : 37f9538fca48c6bf90495bf44582c192977658e7
2016-11-21 14:34:11 +08:00
Boris Chiou
239fc2d508 Bug 1286151 - Part 7: Make ComputeShapeDistance return the status. r=hiro
We should follow the rules used by other types - return false if computing
the distance is failed. So make ComputeShapeDistance and return the status
and let the last argument be the output distance.

MozReview-Commit-ID: CFoQhgyqILB

--HG--
extra : rebase_source : 353c42e54e554b0477e88ad8c1ee0d611e16618b
2016-11-17 11:52:41 +08:00
Boris Chiou
23b961ef60 Bug 1286151 - Part 4: Factor out ComputeSingleShadowSquareDistance. r=dholbert
Both eUnit_Shadow and the drop-shadow of eUnit_Filter needs to compute the
distance of two shadows, so we can factor out the implementation.

MozReview-Commit-ID: IGdxQWMXdE1

--HG--
extra : rebase_source : 9889c556c0cc007102a152859575cfe56830ca61
2016-11-15 11:58:16 +08:00
Boris Chiou
4dccb33bc5 Bug 1286151 - Part 3: Implement filter distance for the rest. r=hiro
MozReview-Commit-ID: EXBzvJ7PIwQ

--HG--
extra : rebase_source : 768c45a16d365952c46ba6124a37d6c4f3ae69ca
2016-11-10 17:25:10 +08:00
Boris Chiou
ab8ac0bf92 Bug 1286151 - Part 2: Implement filter distance for drop-shadow. r=hiro
MozReview-Commit-ID: 5Ad0GiWGkJg

--HG--
extra : rebase_source : 3d3103bf976de199aed257e5f555d5f5158b20d3
2016-11-10 17:46:35 +08:00
Boris Chiou
1aaa8ce437 Bug 1286151 - Part 1: Implement filter distance for blur. r=hiro
MozReview-Commit-ID: 44EP55V8ldg

--HG--
extra : rebase_source : 16d23a8f7578b5b86a82916fc7088c4cb4b41cb8
2016-11-10 15:15:52 +08:00