Commit Graph

59926 Commits

Author SHA1 Message Date
Ya-Chieh Wu
43ae4b41dc Bug 895096 - Part 3: Clean up twipsPerPixel to oneDevPixel. r=dbaron
MozReview-Commit-ID: 70aRd6KFpdd
2017-09-12 19:49:00 -04:00
Ya-Chieh Wu
70ba00ac09 Bug 895096 - Part 2: Merge the identical parameters. r=dbaron
MozReview-Commit-ID: DNXagFqxLsq
2017-09-12 19:49:00 -04:00
Ya-Chieh Wu
ce1be4b4eb Bug 895096 - Part 1: Round border-collapsed table borders to device pixels rather than CSS pixels, as for other borders, and store them (as BCPixelSize) as device pixels rather than CSS pixels. r=dbaron
MozReview-Commit-ID: 3yqj8gAAGYv
2017-09-12 19:48:00 -04:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst
1fbe7771e8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
Sebastian Hengst
dd669d05e1 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JWKcdNfAFqk
2017-09-13 11:25:59 +02:00
Sebastian Hengst
a3ed708553 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 11:44:38 +02:00
Morris Tseng
afa14cd3bb Bug 1394249 - SetNeedToCalcHasBCBorders to true when initialize nsTableFrame. r=mats
In the printing preview, we create continuous table frame if table is too
long to containing in a page. But the default value of
NeedToCalcHasBCBorders is false which means we don't calculate
HasBCBorders for continuous table frame. Thus, the border collapse is
not shown when printing preview.

MozReview-Commit-ID: IqhLSYuWj30
2017-09-13 17:05:52 +08:00
Jeff Muizelaar
d5f9b84940 Bug 1392523. Remove duplicated gfxContext* parameter. r=mattwoodrow
All of the callers are passing in the same value for
both gfxContexts.
2017-09-12 22:17:43 -04:00
Ryan VanderMeulen
68c8008faf Backed out 7 changesets (bug 1364364) for causing bug 1399182.
Backed out changeset c517d8071dfb (bug 1364364)
Backed out changeset 809036cfd7d9 (bug 1364364)
Backed out changeset c394b06dc30c (bug 1364364)
Backed out changeset c5a737bbfdeb (bug 1364364)
Backed out changeset 21ee8f318a47 (bug 1364364)
Backed out changeset 074475da0f2c (bug 1364364)
Backed out changeset de6c153ec533 (bug 1364364)

--HG--
rename : dom/indexedDB/test/bfcache_page1.html => dom/indexedDB/test/bfcache_iframe1.html
rename : dom/indexedDB/test/bfcache_page2.html => dom/indexedDB/test/bfcache_iframe2.html
rename : dom/media/webspeech/synth/test/file_bfcache_page1.html => dom/media/webspeech/synth/test/file_bfcache_frame.html
rename : dom/media/webspeech/synth/test/file_bfcache_page2.html => dom/media/webspeech/synth/test/file_bfcache_frame2.html
rename : dom/workers/test/WorkerDebugger_frozen_window1.html => dom/workers/test/WorkerDebugger_frozen_iframe1.html
rename : dom/workers/test/WorkerDebugger_frozen_window2.html => dom/workers/test/WorkerDebugger_frozen_iframe2.html
rename : dom/workers/test/suspend_window.html => dom/workers/test/suspend_iframe.html
2017-09-12 13:21:17 -04:00
Xidorn Quan
a0f7c55075 Bug 1398619 - Correctly inherit backend for document created by DOMParser, and add test for it. r=bholley
The old code doesn't work because mScriptHandlingObject is a nsWeakPtr,
which cannot be casted to nsPIDOMWindowInner directly.

Since scriptHandlingObject is a strong reference to the same object, we
can just try casting that.

MozReview-Commit-ID: JRBs5N6xxc0

--HG--
extra : rebase_source : cd0237553198182b00ff9c667a17271b23464567
2017-09-12 14:28:27 +10:00
Jeff Muizelaar
bc03cdc351 Bug 1398959. Remove duplicated gfxContext* parameter. r=mattwoodrow
All of the callers are passing in the same value for
both gfxContexts.
2017-09-12 22:39:14 -04:00
Jeff Muizelaar
113e9e1d43 Revert "Bug 1392523. Remove duplicated gfxContext* parameter. r=mattwoodrow"
This reverts commit 0337d3437615.
2017-09-12 22:37:43 -04:00
Phil Ringnalda
6f8d4d30dc Backed out 2 changesets (bug 1380980) for reftests/bugs/1380980-1.html failing on a lot more than just QuantumRender
Backed out changeset 327f2a97631d (bug 1380980)
Backed out changeset 2dc8bf7c38ae (bug 1380980)

MozReview-Commit-ID: DsITQtEIDXW
2017-09-11 23:19:13 -07:00
Phil Ringnalda
830c9a9c7b Bug 1380980 followup, mark test as failing on QuantumRender
MozReview-Commit-ID: FGKLbWZRSab
2017-09-11 22:51:34 -07:00
Emilio Cobos Álvarez
c04f22ad37 Bug 1368852: Avoid flushing frames from nsHideViewer if we know we're not going to get a frame. r=tnikkel
MozReview-Commit-ID: ATVMfQ8myC1

--HG--
extra : rebase_source : fb82003b9ce61644f0cdf4eac5245ef321dec8d5
2017-09-13 00:08:46 +02:00
peter chang
75200fdf13 Bug 1394308 - Pass perspective transform attribute to compositor for OMTA, r=kats
MozReview-Commit-ID: EjyuCfnswqu

--HG--
extra : rebase_source : 556db00f7c58b8b49bdafe9ca77785bce819a000
2017-09-07 11:50:41 +08:00
peter chang
7780b1e846 Bug 1394308 - Apply inherited scale for OMTA to support layers-free, r=kats
Expose the API to get/set inherited scale from stacking context and we can
use these APIs to calculate correct scale for OMTA

MozReview-Commit-ID: DZEkodHTy8v

--HG--
extra : rebase_source : be3c978c8f48c9b1bfcd01cff6bb8200092b5e60
2017-09-06 16:29:52 +08:00
sajattack
a77eb97349 Bug 1398623 - Remove several unused variables in nsSprocketLayout::PopulateBoxSizes r=xidorn
MozReview-Commit-ID: 3VXaVgBhgTL

--HG--
extra : rebase_source : 39b4e1a746aa45da9f6e2381cb83a6b2f40db9c9
2017-09-10 22:33:13 -07:00
Ethan Lin
d7080a817c Bug 1393077 - Part3. Modify annotations for affected testcases. r=kats
MozReview-Commit-ID: EjqMbrO1wNe

--HG--
extra : rebase_source : a6d0728f483d52147ea9e0464cadf39f026d07d3
2017-09-06 16:30:28 +08:00
Ethan Lin
87d42ae44a Bug 1393077 - Part1. Round the transformed rectangles and transformed points in StackingContextHelper. r=kats
MozReview-Commit-ID: Gk5z6BwsuTM

--HG--
extra : rebase_source : 36db102162518622f1da659ff83fb71fe4d9eccf
2017-08-31 17:59:41 +08:00
Ethan Lin
66769e7d7e Bug 1392523 - Enable layers-free mode for some reftests. r=kats
MozReview-Commit-ID: 2alMRSD5PmL

--HG--
extra : rebase_source : f5454e41fa656ac0f5fa28ddf1d5bee827346aed
2017-09-06 16:44:12 +08:00
KuoE0
650dd7945a Bug 1229979 - (Part 2) Update reference of test case. r=jfkthame
MozReview-Commit-ID: CFChebe4JLP

--HG--
extra : rebase_source : 676f80747e1f437aa2fe845adf9344ef172f9bf5
2017-09-07 11:00:11 +08:00
KuoE0
e629f92818 Bug 1229979 - (Part 1) Make the color of decoration line shadow be as same as the color of the text shadow. r=jfkthame
Multi-color shadow is not allowed in spec. We could use the same color
of the text as the color of the decoration line when we paint the
shadow.

MozReview-Commit-ID: AK9NoseSE0h

--HG--
extra : rebase_source : 48a84e73a7ee76b615c255a440cbe119fa8f56f0
2017-09-06 14:31:36 +08:00
Emilio Cobos Álvarez
afb59c871d Bug 1387942: Relax backdrop frame parenthood assertion, and re-enable test. r=xidorn
MozReview-Commit-ID: 99I3apwe52l

--HG--
extra : rebase_source : a9900b925cb58e095572fca75e211cc0e16c942f
2017-09-12 08:41:17 +02:00
Emilio Cobos Álvarez
37df721a48 Bug 1397983: Synchronously bind/unbind XBL anonymous content from the bound content's Bind/UnbindFromTree. r=smaug
Doing it off a runnable makes the flattened tree inconsistent until that
runnable runs.

Also add an assert in frame construction that would've caught the first
only-unbind patch.

MozReview-Commit-ID: Hnua3aWSMHi

--HG--
extra : rebase_source : 2781e3b0a3f28b6b6a620902e7414dfe682fba51
2017-09-08 14:59:04 +02:00
Wes Kocher
9403265ce1 Bug 1398869 - Now re-fix the non-stylo tests a=bustage CLOSED TREE
MozReview-Commit-ID: DzoYfA1gWfq
2017-09-12 17:42:11 -07:00
Josh Matthews
7a7c1dcbae Bug 1398869 - Fix up test_bug413958.html, too a=bustage CLOSED TREE 2017-09-12 16:37:42 -07:00
cku
904fd1b59b Bug 1385239 - Part 3. A test case of putting a translated filtered element inside an SVG mask. r=mstange
MozReview-Commit-ID: AqSL8Gb5R46

--HG--
rename : layout/reftests/svg/filters/filter-in-mask.svg => layout/reftests/svg/filters/filter-in-mask-01.svg
extra : rebase_source : 797fc5208af6cada2db5c7406ee58dc252a25197
extra : source : b733d9ea34371043eb648732acba092caf0b968b
2017-08-23 14:45:42 +08:00
cku
7249e683c3 Bug 1385239 - Part 2. Remove aTransform parameter from PaintFilteredFrame. r=mstange
There are two callers of nsFilterInstance::PaintFilteredFrame:
1. nsSVGUtils::PaintFrameWithEffects at [1]
   This function is used while painting a filtered element on a path which
   display item painting is not supported yet, such as drawing elements inside a
   indirect painted SVG object, such as a mask, a clipPath or a gradient object.

   Let's say we have a masked element, which refers to an SVG mask, and there is
   a filtered element inside that SVG mask.
   Using nsFilterInstance::PaintFilteredFrame to paint that filtered frame in
   the mask, we have to pass a gfxContext and a transform matrix to it. The
   transform of the gfxContext 'target' that we pass in consists of a transform
   from the referenced frame, of the masked frame, to the masked frame. We also
   pass in a transform matrix 'aTransform', this matrix contains a transform
   from the the masked frame to the filtered frame in *device units*, which
   means it contains css-to-dev-px scaling factor.

2. nsSVGIntegrationUtils::PaintFilter at [2]
   This function is used by normal display item painting.

   The same, we pass a gfxContext 'context' and a transform matrix 'tm' into
   nsFilterInstance::PaintFilteredFrame. The transform matrix of 'context'
   consists of a transform from the referenced frame, of the filtered frame,
   to this filtered frame, but the scale factor was taken out . The transform
   matrix 'tm' we pass in contains scale transform from the referenced frame to
   the filtered frame in *device unit*.

Inside nsFilterInstance::PaintFilteredFrame, we treat the transform matrix of
'aCtx' and 'aTransform' as parameters we pass in in #2 caller. So it can be
failed in #1. For example, if the filtered frame inside a masked frame has a
translation transform applied, since that translation was put in 'aTransfrom',
but we only use the scale factor of 'aTransform' in
nsFilterInstance::PaintFilteredFrame, translation factor disappears.

In this patch, I unified the definition of parameters of
nsFilterInstance::PaintFilteredFrame:
1. nsFilterInstance::PaintFilteredFrame(aCtx): the transform matrix of aCtx
   should be a transform from the referenced frame to the filtered frame in
   *css units*. Originally, the aCtx we passed in #1 is in device units, which
   should be fixed; the aCtx we passed in #2 does not even include css scaling
   factor, need be fixed too.
2. nsFilterInstance::PaintFilteredFrame(aTransform): this transform matrix
   should contain only scaling factor in device units. And I removed it in the
   end since I found we can get this value easily right inside the callee.

[1]
https://hg.mozilla.org/mozilla-central/file/ef585ac7c476/layout/svg/nsSVGUtils.cpp#l857

[2]
https://hg.mozilla.org/mozilla-central/file/ef585ac7c476/layout/svg/nsSVGIntegrationUtils.cpp#l1114

MozReview-Commit-ID: gRV128NyQv

--HG--
extra : rebase_source : 15d130babd07734c3c36e24e9ea8b5c4e5f7dbbf
2017-08-25 17:51:58 +08:00
cku
eee177002f Bug 1385239 - Part 1. Pass gfxContext, instead of DrawTarget, into nsFilterInstance::PaintFilteredFrame. r=mstange
This change makes the next patch free of doing Matrix to gfxMatrix conversion.

MozReview-Commit-ID: 8K9RNgjZPTw

--HG--
extra : rebase_source : 190a80c2580622b7866ddb4d80a161311e97a2f5
2017-08-25 16:33:33 +08:00
Manish Goregaokar
715e37b38c Bug 1380980 - stylo: Add test; r=emilio
MozReview-Commit-ID: JLk5H1j2v89
2017-09-11 20:33:20 -07:00
Manish Goregaokar
a5896f074b Bug 1380980 - stylo: Add (unused) absolute offset to FontComputationData; r=emilio
MozReview-Commit-ID: EqtIs2NDm5g
2017-09-11 20:33:03 -07:00
Xidorn Quan
140b3712ca Bug 1398479 - Always return correct value for ServoSpecifiedValues::PropertyIsSet. r=manishearth
MozReview-Commit-ID: 8VMpLqcOhNz

--HG--
extra : rebase_source : e149fb6880dd33bb251c2c93c5252e7443a622ed
2017-09-11 12:33:03 +10:00
Manish Goregaokar
3d0c3afa5b Bug 1396045 - stylo: Round down when computing viewport units; r=emilio
MozReview-Commit-ID: I90ovyBw1do
2017-09-11 16:15:14 -07:00
Wes Kocher
05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Sebastian Hengst
dbddac850d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IgyDMUVYYBm
2017-09-11 23:58:31 +02:00
Wes Kocher
e376f14721 Merge inbound to central, a=merge
MozReview-Commit-ID: GDeX9aPb7Fn
2017-09-11 14:41:45 -07:00
Emilio Cobos Álvarez
f2b7e3f5a3 Bug 1398448: Always insert async when reconstructing ancestors to avoid pathological frame construction cases. r=bz
MozReview-Commit-ID: 5ARTWW9dt7X
2017-09-11 20:41:43 +02:00
Kartikaya Gupta
14f29010a0 Bug 1388433 - Remove unnecessary warning as the codepath is handled in an acceptable manner. r=mattwoodrow
MozReview-Commit-ID: 76KuxiDwnas

--HG--
extra : rebase_source : 65f7df5fbc79b10e632b3db9ecf40f37f4c33e8e
2017-09-11 10:49:22 -04:00
Samael Wang
890989beae Bug 1364364 - Part 6: Re-connect nsDocViewerFocusListener in nsDocumentViewer::Open. r=smaug
I noticed this error message on fixing dom/workers/test/test_suspend.html:

WARNING: NS_ENSURE_TRUE(mDocViewer) failed:
	file layout/base/nsDocumentViewer.cpp, line 3863

It happens when a nsDocumentViewer::Close() is followed by a
nsDocumentViewer::Open(), the viewer would have been disconnected. Since it
takes only one-line change to fix I just include it in this bug.

MozReview-Commit-ID: LMT2PJkUqi1

--HG--
extra : rebase_source : 3cd2a554cec3210ec97f0da8fea00780b3fa44bc
2017-09-05 18:16:10 +08:00
Chih-Yi Leu
aa45696428 Bug 1351511 - Support nsDisplaySolidColorRegion to WR DisplayItems r=mstange
MozReview-Commit-ID: LMs5ON8NC2p

--HG--
extra : rebase_source : 75c5b48ae9111ba179ef2bbfeef97c25f1397e4f
2017-08-15 16:58:47 +08:00
Fernando Jimenez Moreno
ce034323f7 Bug 1382369 - stylo: store specified value of grid layout repeat() function. Tests. r=mats 2017-09-11 11:30:04 +02:00
Sebastian Hengst
159bb0b56b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6kLhBocgiua
2017-09-11 11:18:49 +02:00
Xidorn Quan
056e675fb1 Bug 1323649 followup - Re-enable one reftest. r=xidorn
MozReview-Commit-ID: HuUxZpASbxk

--HG--
extra : rebase_source : 5ebc318a62916c904af6576fae9b1d9f66284d09
2017-09-11 14:42:24 +10:00
Mats Palmgren
f03f683f75 Bug 1374112 part 3 - Use AllocateFCItem/FreeFCItem exclusively for allocating FrameConstructionItems. r=dholbert
MozReview-Commit-ID: 7TqWZeTV91J
2017-09-11 00:27:12 +02:00
Mats Palmgren
062e1c6efa Bug 1374112 part 2 - Introduce nsCSSFrameConstructor::AllocateFCItem/FreeFCItem for allocating FrameConstructionItems from an arena/free list. r=dholbert
MozReview-Commit-ID: 5VVhEQOZMlU
2017-09-11 00:27:12 +02:00
Mats Palmgren
9eadef1363 Bug 1374112 part 1 - Move the mUndisplayedItems field to the start to avoid alignment spill after a bool. r=dholbert
MozReview-Commit-ID: 297LgoUFwJL
2017-09-11 00:27:11 +02:00
Ethan Lin
e6b407fb9c Bug 1387325 - Part3. Add annotations for reftests after adding WR support for XUL image. r=mattwoodrow
MozReview-Commit-ID: 2jfsC8ETXHj
2017-09-10 12:45:11 +08:00