Commit Graph

63410 Commits

Author SHA1 Message Date
Marco Castelluccio
bacd0a5f80 Bug 1436413 - Remove inDOMView as it is no longer used. r=bz
--HG--
extra : rebase_source : 8eb8f07f99b9daf33a27b73dcc6fc92d3ef8f172
2018-02-07 15:46:30 +01:00
Dorel Luca
4e6205407f Backed out changeset cd40ea4d0a95 (bug 1446617) for Reftest failure on build/tests/reftest/tests/layout/reftests/svg/textPath-path-attribute-01.svg 2018-03-31 16:02:10 +03:00
Robert Longson
76c8556c39 Bug 1446617 - support the SVG 2 path attribute for textPath elements r=dholbert 2018-03-31 11:55:18 +01:00
Daniel Holbert
c090d777c6 Bug 1174003 late-breaking followup: remove obsolete comment about flex align-self:baseline behavior. (no review, comment-only, DONTBUILD)
There's been a clarification to the spec text that this comment was worried about:
  https://github.com/w3c/csswg-drafts/issues/2316
And with that clarification, this comment is no longer applicable.
2018-03-30 16:13:08 -07:00
Brindusan Cristian
1fa25f597f Backed out 3 changesets (bug 1298008) for devtools failures on browser_boxmodel_pseudo-element.js CLOSED TREE
Backed out changeset c18e2aac48a5 (bug 1298008)
Backed out changeset b5a4113f4649 (bug 1298008)
Backed out changeset 40f53976a5b8 (bug 1298008)
2018-03-30 23:10:23 +03:00
Cosmin Sabou
93f710b20d Merge central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : 2b02ec216396e230c27c74ca90fe88584ff29cd3
2018-03-30 21:46:52 +03:00
Noemi Erli
42b34ba196 Backed out 2 changesets (bug 1443027) for breacking Gmail on OSX r=pascalc a=backout
Backed out changeset 5deb310542a9 (bug 1443027)
Backed out changeset e04979dd66be (bug 1443027)
2018-03-30 19:08:30 +03:00
shindli
3bfd0c07fd Merge inbound to mozilla-central. a=merge 2018-03-30 12:56:21 +03:00
Brad Werth
6910a2c333 Bug 1298008 Part 3: Update ReflowInput::CalculateBlockSideMargins to store computed values in the UsedMargin property. r=dholbert
MozReview-Commit-ID: 74u7rFkiVln

--HG--
extra : rebase_source : 896f1ee98c78d94ea47c4a11ba87d4f516d0319e
2018-03-23 12:09:48 -07:00
Matt Woodrow
0ab5810be5 Bug 1443027 - Fix the merging algorithm to pass the new tests correctly. r=mstange
MozReview-Commit-ID: JnglCbdhZzE
* * *
[mq]: update-test

MozReview-Commit-ID: JMIzrnVeSTo

--HG--
extra : rebase_source : 0ea5ff0e79d1eb1a8f13ea4a17e37fe2601d44e7
2018-03-23 16:47:37 +13:00
Matt Woodrow
97e5feb9b8 Bug 1443027 - Add two new tests for merging behaviour. r=mstange
MozReview-Commit-ID: G5vgtSCdRZP

--HG--
extra : rebase_source : df104a7df2c199d9e95025c533f62428dc1a1efc
2018-03-23 12:20:40 +13:00
Ciure Andrei
c38c8d3b28 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-30 01:11:06 +03:00
Ciure Andrei
5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Olli Pettay
57fd877895 Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, r=masayuki
--HG--
extra : rebase_source : 160ef0aae3922cb32b11476650c15a3f55334691
2018-03-29 19:22:59 +03:00
Boris Zbarsky
50af44ded2 Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag
Components and friends should not be exposed to content anyway.

MozReview-Commit-ID: 4kCeBcIf9nt
2018-03-28 22:46:22 -04:00
Daniel Holbert
9b6ad9d929 Bug 1436881: Remove redundant special-case code for treating flex-basis enum values as 'auto' in vertical axis. r=mats
This patch should not affect behavior.

Logic-wise: the idea behind this patch is to behave as if the
'usingFlexBasisForHeight' variable were always false, which in turn lets us
remove an "if (!usingFlexBasisForHeight || ...)" check, because it trivially
passes when that bool is false.

Background on this special case & why we can remove it:
=======================================================
In the original flexbox implementation, we had some special-case code to be
sure we didn't end up swapping in e.g. "flex-basis:-moz-min-content" for
"height" in these ComputeSize functions, because that was a scenario that
previously would've been prevented at the parser level (height:-moz-min-content
is rejected for now), and hence may not have ended up being handled robustly.

However, nowadays it'll be handled just fine in these functions, and will
produce the same result as our special-case exception tries to achieve.

In particular, for a nsFrame that is a flex item in a flex container with a
vertical main axis (the scenario that these special cases are catching):

 - If the (vertical) main axis is this nsFrame's inline axis (i.e. if this
   nsFrame has a vertical writing-mode), then Stylo actually converts
   enumerated flex-basis values like "-moz-min-content" to "auto" when
   producing the computed values that layout sees.  So it's not actually
   possible for layout to see a computed "flex-basis" of -moz-min-content, in
   that scenario.

 - Otherwise, i.e. if the (vertical) main axis is this nsFrame's block axis,
   then these ComputeSize functions will now end up getting an enumerated
   "blockStyleCoord" (really pointing to flexBasis), but that'll still end up
   being treated like 'auto'. This happens by virtue of ComputeSize's calls to
   ComputeAutoSize (which initializes the tentative bsize value to
   NS_UNCONSTRAINEDSIZE) and to nsLayoutUtils::IsAutoBSize (which returns
   "true" for eStyleUnit_Enumerated values and then makes us leave the
   ComputeAutoSize result unperturbed).
2018-03-29 11:46:27 -07:00
Jeff Muizelaar
6e271997a6 Bug 1440694. Make nsDisplayText final. r=mattwoodrow 2018-03-29 10:56:39 -04:00
Neil Deakin
6a995d0462 Bug 1448018, remove ContainerBoxObject which is only used to access the docshell, but bug 1448018 made the docshell accessible from the frameloader instead so the container box object is no longer being used. Change some editor tests which just access the docShell directly rather than through the box object, r=bz 2018-03-29 10:44:52 -04:00
Ryan Hunt
7e1a91f21c Add a fast path for tiled gradients with no pixel alignment or repeat spacing. (bug 1443912, r=mattwoodrow)
MozReview-Commit-ID: 2TKL2ohrex4

--HG--
extra : rebase_source : f458fa129b9448eb3dd196606b3f7268fa578cf0
2018-03-19 13:31:41 -05:00
Ciure Andrei
68bc832e63 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-30 01:09:21 +03:00
Matt Woodrow
1523ce5000 Bug 1448841 - Part 4: Always put the CompositorHitTestInfo for inactive scrollports at the very top. r=mstange
MozReview-Commit-ID: 4SuL4ErQggS

--HG--
extra : rebase_source : 19374304e79d958c93153e9ce5450da2f34463f7
2018-03-29 23:02:25 +13:00
Matt Woodrow
7c50042dae Bug 1448841 - Part 3: Disable partial display list building when we have overlay scrollbars. r=mstange
MozReview-Commit-ID: HeMaqItUJdD

--HG--
extra : rebase_source : 691126fcf2dd1a90d74e7aca16f37127379804b2
2018-03-29 23:01:47 +13:00
Matt Woodrow
db21303c2a Bug 1448841 - Part 2: Only compute the highest z-index for overlay scrollbars. r=mstange
MozReview-Commit-ID: KFw4dbdCHMf

--HG--
extra : rebase_source : 740c1d57ab6faba5bad3fb87157275fb9a1e3a75
2018-03-29 23:01:21 +13:00
Matt Woodrow
4dd278a28b Bug 1448841 - Part 1: Add crashtest for CompositorHitTestInfo changing z-index without an invalidation. r=mstange
MozReview-Commit-ID: LkiWFPk6dzV

--HG--
extra : rebase_source : 20189381eff3b0810196a652273856051ac02674
2018-03-29 23:00:49 +13:00
Brad Werth
0c04a5bbab Bug 1298008 Part 2: Make nsFlexContainer update UsedMargin property after final reflow. r=dholbert
MozReview-Commit-ID: HV4uhJqWjfj

--HG--
extra : rebase_source : 61861ec388f184bb715de5bbe2c2d39a4cef9c36
2018-03-08 17:35:47 -08:00
Peter Van der Beken
edd705b1ca Bug 1444119 - Remove XPCOM extensibility of XSLT functions. r=bz.
--HG--
extra : rebase_source : 7ee56e82624d401f62dccd1180ce07b531ae816e
2018-02-27 19:08:46 +01:00
Makoto Kato
eb03688aa8 Bug 1449828 - Don't calculate selection rect if unnecessary. r=jfkthame 2018-03-29 21:12:34 +09:00
Emilio Cobos Álvarez
e81a508a48 Bug 1435632: Fix the logic to do layout stuff after reassigning a slot. r=smaug,xidorn
The dirty bit fiddling is nontrivial, but it's pretty much what we do for
invalidation and allows to keep this incrementally easily.

The only caller that we cared about for the GetFlattenedTreeParent check in
DestroyFramesForAndRestyle was the old ShadowRoot invalidation functions that
went away.

MozReview-Commit-ID: GmgPPJ6d2qX
2018-03-29 12:34:38 +02:00
Christoph Kerschbaumer
4197b7d96d Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Christoph Kerschbaumer
a929955d1f Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
Dorel Luca
eb1ea97541 Merge mozilla-central to mozilla-inbound 2018-03-29 12:57:29 +03:00
Dorel Luca
57bbc1ac58 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-29 12:50:33 +03:00
Xidorn Quan
3e1eaab1ee Bug 1449798 - Remove GenericSpecifiedValues::ShouldComputeStyleStruct and mSIDs. r=emilio
This was useful because nsRuleData in the old style system may not hold
all the data, but the only subclass ServoSpecifiedValues is always able
to hold any data, and thus passes NS_STYLE_INHERIT_MASK to mSIDS. Given
this, this method and mSIDs seems to be useless and can be removed.

MozReview-Commit-ID: 4vWcV4DRS2i

--HG--
extra : rebase_source : 4f364d431821e29838082e391c6dde08af7f5343
2018-03-29 12:39:07 +11:00
Emilio Cobos Álvarez
9cd4eecb3c Bug 1449010: Respect ::selection background styles for image overlays. r=mattwoodrow
I don't have a strong preference about blending with white vs. just doing alpha
0.5, so I kept doing what we were doing, since Blink and WebKit also apply the
blending to the text background, and I'm not sure that's particularly desirable.

MozReview-Commit-ID: AwYtAgdlcxj
2018-03-29 02:53:02 +02:00
Emilio Cobos Álvarez
bf0a6ad75c Bug 1449010: Some minor cleanup in selection-related code. r=matwoodrow
MozReview-Commit-ID: AAhHZmOBc3Z
2018-03-29 02:53:01 +02:00
Boris Zbarsky
0aa422913e Bug 1449404 part 4. Get rid of a few virtual nsIContent methods. r=mccr8
The HasTextForTranslation implementation was just moved, with the nodetype
check up front dropped because that's enforced statically now.
2018-03-28 18:01:47 -04:00
Boris Zbarsky
4370006c40 Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8 2018-03-28 18:01:47 -04:00
Boris Zbarsky
693169e324 Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8 2018-03-28 18:01:46 -04:00
Gurzau Raul
8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Gurzau Raul
d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
Jonathan Kew
54769131c0 Bug 1449157 - Guard against mContent being null in nsFrame::HandlePress. r=dholbert 2018-03-28 14:42:20 +01:00
Cosmin Sabou
619e0c5b90 Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)

--HG--
extra : rebase_source : 212b357a3079dff30845a5f82e47b94e2d7f93cd
2018-03-28 18:10:11 +03:00
Jonathan Watt
a86c2a4a02 Bug 1449565 - Remove the aGeckoParentRule parameter from css::Loader's InsertChildSheet and LoadChildSheet. r=emilio 2018-03-23 17:02:35 +00:00
Jonathan Watt
9e1dc4eece Bug 1449566 - Remove GenericSpecifiedValues::ShouldIgnoreColors. r=emilio 2018-03-23 16:40:12 +00:00
Jonathan Watt
41622cb3a7 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Tim Nguyen
9458999c51 Bug 1449118 - Force SVGs to load when running the twisty reftest. r=dholbert
MozReview-Commit-ID: HxU0B0Bxwgp

--HG--
extra : rebase_source : dabe4a34d31de13b7d2d42d054463ccef3020913
2018-03-28 21:38:31 +00:00
Robert Longson
432b48c35a Bug 1448774 - part 2 r=dholbert 2018-03-29 04:09:34 +01:00
Robert Longson
f627214d56 Bug 1448774 - part 1 r=dholbert 2018-03-29 03:12:05 +01:00
Robert Longson
46442efe5d Bug 1449075 - comma and/or whitespace should be mandatory to separate transform values r=dholbert 2018-03-28 19:05:39 +01:00
Tom Ritter
449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00