Commit Graph

59904 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Ethan Lin
4b055b693b Bug 1387325 - Part2. Add WR support for nsDisplayXULImage. r=mattwoodrow
MozReview-Commit-ID: 9DncgchiS44
2017-09-10 12:45:11 +08:00
Ethan Lin
c9aadaf83d Bug 1387325 - Part1. Refactor nsImageBoxFrame::PaintImage to make it easier to add WR support. r=mattwoodrow
MozReview-Commit-ID: AmHPifpVAHZ
2017-09-10 12:45:11 +08:00
Mats Palmgren
bb4a414d58 Bug 1364815 part 2 - Follow-up to fix a typo. r=me
MozReview-Commit-ID: 1sdmYFuIyUS
2017-09-10 02:10:03 +02:00
Mats Palmgren
7b8d4cf0a4 Bug 1364815 - Optimize away many (virtual) calls to QueryFrame. r=dholbert
do_QueryFrame from one frame type to another frame type
can compare mClass first, and if successful just downcast
the pointer to the target frame type.  If unsuccessful,
or for do_QueryFrame calls involving other types, we must
still call QueryFrame.

MozReview-Commit-ID: 5MVfmuOYwdE
2017-09-10 00:50:16 +02:00
Sebastian Hengst
0350c346f6 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-09 23:33:01 +02:00
Mats Palmgren
d547785f05 Bug 1380749 - Retry AdjustAppendParentForAfterContent in case |parentAfterFrame| was a :first-letter frame that we deleted. r=dholbert
MozReview-Commit-ID: 7uIxm4NLHPN
2017-09-09 22:00:54 +02:00
Sebastian Hengst
4219e42fb1 merge mozilla-central to autoland. r=merge a=merge 2017-09-09 11:46:02 +02:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Fernando Jimenez Moreno
e54642673b Bug 1384225 - stylo: Error reporting for unknown media features. Tests. r=jdm 2017-09-09 11:32:01 +02:00
Hiroyuki Ikezoe
ad4feb676c Bug 1397122 - Handle values as valid in single transition shorthand even if the transition-property is 'none'. r=xidorn
A single transition value that includes 'none' for transition-property is
valid, so we should store whole specified values (if it's valid).  Whereas,
the spec [1] clearly says for the case where there are multiple entries;
  If there is more than one <single-transition> in the shorthand, and any of
  the transitions has none as the <single-transition-property>, then the
  declaration is invalid.

'none 2s linear 2s' is a test case for the former, '1s width, 2s none' is a
test case for the latter.

Note that with this patch, 'transition: none' is serialized as 'none 0s ease 0s'
instead of 'none' but it matches Gecko.

[1] https://drafts.csswg.org/css-transitions/#single-transition

MozReview-Commit-ID: 3o3z5GFyMqh

--HG--
extra : rebase_source : c553af804124c0c76554fb8ad007e78e2813d321
2017-09-09 11:34:06 +09:00
Makoto Kato
6454f3ca73 Bug 1263503 - memory leak of filename into layout/printing/nsPrintEngine.cpp. r=mantaroh
"fileNameStr = fileName;" will be fileNameStr.Assign(fileName), so this causes small memory leak.  We should use Adopt, getter_copies, or AString parameter instead.

MozReview-Commit-ID: 5VTgttj2LdK

--HG--
extra : rebase_source : b372f04b210655e754b35fe4ebb2b8a32a19d6bf
2017-09-11 10:42:22 +09:00
Xidorn Quan
7a0f7a3532 Bug 1324682 - Remove annotation of this bug. r=xidorn
MozReview-Commit-ID: A9hpZDm7iju

--HG--
extra : rebase_source : cbadeddcba5e58127036bd7eef7f0e880bcae5e1
2017-09-11 14:14:50 +10:00
Daniel Holbert
66109d5421 Bug 1398379 part 2: Remove GetRootScrollFrameAsScrollableExternal() since it has no more callers. r=mats
MozReview-Commit-ID: 5m6p7sS2jRS

--HG--
extra : rebase_source : 9b7c26006cb542968c2b92b356a2beb1a334c2c9
2017-09-08 16:36:34 -07:00
Daniel Holbert
1c67d21eda Bug 1398376 part 3: Collapse formerly-MOZILLA_INTERNAL_API-guarded Foo()/FooInternal() functions together in nsIPresShell and nsPresContext. r=mats
This is just simplifying things by eliminating a layer of now-unnecessary
abstraction.

MozReview-Commit-ID: 1MBagjYXbCD

--HG--
extra : rebase_source : a0e7e78ef4925efd00eac969ae126d1ba3f4f607
2017-09-08 16:25:03 -07:00
Daniel Holbert
c6e12c7a35 Bug 1398376 part 2: Remove formerly-MOZILLA_INTERNAL_API-guarded FooExternal() functions from nsIPresShell and nsPresContext. r=mats
These functions are now dead code.  And really, they were already dead code
even before this patch-stack -- they were only called in never-evaluated
(and now-deleted) #else clauses.

MozReview-Commit-ID: AeY6Z3ybmsv

--HG--
extra : rebase_source : deb51373f4d32580ab2ffb71c5c078132e4a76a6
2017-09-08 16:25:01 -07:00
Daniel Holbert
8a68df9e64 Bug 1398376 part 1: Remove MOZILLA_INTERNAL_API guards from nsIPresShell.h and nsPresContext.h, since these headers are only used in libxul. r=mats
This patch drops all MOZILLA_INTERNAL_API checks (and the bodies of any
associated "#else" clauses) from these files.  The basic assumption here is
that MOZILLA_INTERNAL_API is #defined in all (supported) compilation units that
#include these files, so the checks are superfluous and the #else clauses are
dead code.

(If this assumption is mistaken and there is some .cpp file in our codebase
that #includes this header and yet does not have MOZILLA_INTERNAL_API, we will
find out via bustage on treeherder.)

MozReview-Commit-ID: 8dHJFBDVHwT

--HG--
extra : rebase_source : 476a6e2de8468dea2e26e11f415c3868326126e5
2017-09-08 16:24:59 -07:00