Commit Graph

51821 Commits

Author SHA1 Message Date
Ryan VanderMeulen
71d43e7c12 Merge inbound to m-c. a=merge 2016-08-30 09:52:55 -04:00
Ting-Yu Lin
3b594c3216 Bug 1298704 - Use flag to avoid calling AccessibleCaretEventHub::Reflow() recursively. r=mats
MozReview-Commit-ID: Jkf7sSqxG2d

--HG--
extra : rebase_source : f606f09e9fe88bde39f73690771cdde091f1b8c8
2016-08-29 15:36:45 +08:00
Manish Goregaokar
97989b02e7 Bug 1298655 - Add bindings for constructing nsCSSShadowArray; r=bholley
MozReview-Commit-ID: IFaQwuhsKqH

--HG--
extra : rebase_source : 4ecc974b4edef66a48ae1d46d2fec382994f6a29
2016-08-28 10:11:17 +05:30
Phil Ringnalda
e04eaf90ff Backed out changeset 0c135a70a81a (bug 1292218) for increasing the time to run debug reftests, without actually solving the problem it hoped to solve 2016-08-29 20:26:42 -07:00
Wes Kocher
08fbeaaf2e Merge m-c to autoland, a=merge 2016-08-29 17:57:01 -07:00
Ryan VanderMeulen
2df9e8fe53 Backed out changeset 254e306bc62c (bug 277178) for likely causing test_sessionhistory.html to permafail.
CLOSED TREE

--HG--
extra : rebase_source : b3511d478945d6c055b8f0f6608e8f574ee7552a
2016-08-29 17:06:53 -04:00
shundroid
c930262d77 Bug 1293806 - Removed UpdateAnimationGeneration in nsAnimationManager::UpdateAnimations r=hiro
MozReview-Commit-ID: CtSBqgzTlVV

--HG--
extra : rebase_source : a755cd48ceaa7a8a892658eef2149a98b065ba96
2016-08-27 13:28:54 +09:00
Matteo Ferretti
c0ce371e10 Bug 1241867 - override the DPR without affecting the rendering; r=dbaron
- added overrideDPPX to nsIContentViewer
- made CSSStyleSheet and GlobalWindow using the overrideDPPX value
- added unit test with frame check

MozReview-Commit-ID: AOWpGs4vb9H

--HG--
extra : rebase_source : 45d9ae2c9b7aad835b5602e805ec7260c69c05b8
2016-08-25 13:15:19 +02:00
Ryan VanderMeulen
416afe2f23 Merge inbound to m-c. a=merge 2016-08-29 12:48:10 -04:00
Kohei Okuda
5acbf0adda Bug 1293567 - Remove unnecessary call to MaybeUpdateAnimationRule in nsAnimationManager. r=birtles
MozReview-Commit-ID: 2Qdx7nk5fjL
2016-08-27 14:28:24 +09:00
Yuri Kazuna
3a366477e0 Bug 1291481 - Represent direction enum as uint8_t in LayersMessages.ipdlh; r=birtles
MozReview-Commit-ID: 9RcyYqsdsaB
2016-08-27 16:50:29 +09:00
Wes Kocher
cbdf3625fa Merge m-c to inbound, a=merge 2016-08-26 16:32:56 -07:00
Wes Kocher
f09e8fef1a Merge inbound to central, a=merge 2016-08-26 16:20:50 -07:00
Timothy Nikkel
d4bf99143c Bug 1298100. Remove nsDisplayListBuilder::mHadToIgnoreSuppression because it is unused. r=cjku 2016-08-26 18:02:51 -05:00
Timothy Nikkel
ca29dc5318 Bug 1297934. Enforce the invariant that every display item class has a different display item type for nsDisplayFocusRing. r=mattwoodrow 2016-08-26 18:02:49 -05:00
Boris Zbarsky
f795d19994 Bug 1258911. Correctly reframe an absolutely positioned frame that goes from having a transform to not having one and has an abs pos kid with a fixed-pos descendant. r=dbaron
Instead of skipping the absolute and fixed child lists, we walk all kids of the
frame.  But before recursing down into things that are absolute containing
blocks we ensure that we're only looking for fixed-pos placeholders, so we don't
reframe if we have a relatively positioned descendant with absolutely positioned
kids, for example.  Note that this part is pure optimization attempt, and it
might be cheaper to not do it: IsAbsoluteContainingBlock is not that cheap and
the situations where we avoid reframing due to this optimization are likely
fairly rare.
2016-08-26 15:38:16 -04:00
Mats Palmgren
d3a0737427 Bug 1279182 - [css-grid] Follow-up: comment out part of the test that failed on Win 8 for now. r=me DONTBUILD 2016-08-26 18:42:22 +02:00
Milan Sreckovic
5459132cb1 Bug 1296731: Add parameter to GetAlignedStride and check for overflow. r=bas
MozReview-Commit-ID: 5Ptm0bxwKdG

--HG--
extra : rebase_source : 535f2fa2447a1401b76acc0b82ce210b3c4d6dfc
2016-08-25 13:57:39 -04:00
Ryan VanderMeulen
628ab3deff Merge m-c to inbound. a=merge 2016-08-26 09:39:29 -04:00
Ryan VanderMeulen
e1fdfb3b73 Merge inbound to m-c. a=merge 2016-08-26 09:37:03 -04:00
Mats Palmgren
2c298fc18b Bug 1282643 - [css-grid] Reject repeat() column tracks in <grid-template> when there's a grid template area string in the row part. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren
d1f0271873 Bug 1281320 - [css-grid] Reftests for fit-content() track sizes. 2016-08-26 15:16:57 +02:00
Mats Palmgren
15b4f3793a Bug 1281320 - [css-grid] Implement 'fit-content([ <length> | <percentage> ])' value for <track-size>. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren
60eb164682 Bug 1266124 - [css-grid] Update the 'grid' shorthand syntax to the latest spec. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren
c7dd4beb73 Bug 1282418 - [css-grid] Adding reftests for calc(Npx - M%) track sizes. 2016-08-26 15:16:57 +02:00
Mats Palmgren
980c942b3f Bug 1282418 - [css-grid] Deal with calc() with negative percentage that may result in negative track size. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren
744e0d01c7 Bug 1279182 - [css-grid] Reftests for <percentage> grid-gap. 2016-08-26 15:16:57 +02:00
Mats Palmgren
ddcd7a20ef Bug 1279182 - [css-grid] Resolve a <percentage> grid-gap of an indefinite CB size to zero. r=dholbert 2016-08-26 15:16:56 +02:00
Emilio Cobos Álvarez
ab791a332e Bug 1292281: Devirtualize nsPresContext::HasAuthorSpecifiedRules. r=bholley
MozReview-Commit-ID: 4UF4vNaOCHz
Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-08-26 04:20:01 -07:00
Emilio Cobos Álvarez
9d37bfeecc Bug 1292281: Convert the error from nsPresContext::HasAuthorSpecifiedRules in a warning in nsRuleNode. r=bholley
MozReview-Commit-ID: 7ue0MYP3Jdb
Signed-off-by: Emilio Cobos Álvarez <ecoal95@gmail.com>
2016-08-26 04:19:58 -07:00
Sebastian Hengst
f3cd1bea10 Backed out changeset 488e02b69a8c (bug 1008019) for failing clipPath-html-06.xhtml. r=backout 2016-08-26 11:31:27 +02:00
Sebastian Hengst
dd9d82e540 Backed out changeset 932c269da17b (bug 1008019) 2016-08-26 11:30:45 +02:00
Sebastian Hengst
d85473072e Backed out changeset 93e9d99aaead (bug 1008019) 2016-08-26 11:30:41 +02:00
Jonathan Kew
8f421076b2 Bug 1008019 - Update reftest and a11y-test expectations to reflect the corrected behavior of white-space:pre-wrap. r=dholbert 2016-08-25 22:19:44 +01:00
tlin@mozilla.com
6ac132dfe9 Bug 1295084 Part 4 - Rename Position::PositionCoord to Position::Coord. r=dholbert
--HG--
extra : rebase_source : 1b8b7019640f2db91167880899438cac7a2c49cd
2016-08-25 09:59:51 +00:00
tlin@mozilla.com
54d89b5a5c Bug 1295084 Part 3 - Move nsStyleImageLayers::Position to mozilla::Position. r=dholbert
--HG--
extra : rebase_source : 6684d08700f9d7fed9fc1572871a0250d43b74cf
2016-08-25 09:59:51 +00:00
tlin@mozilla.com
1a6e56ea85 Bug 1295084 Part 2 - Move two Position methods into nsStyleImageLayers. r=dholbert
--HG--
extra : rebase_source : d6288a2c46a2f7002fc1a6547b0607a811546d58
2016-08-25 09:59:51 +00:00
tlin@mozilla.com
3100ef24af Bug 1295084 Part 1 - Move FragmentOrURL into mozilla namespace. r=dholbert
--HG--
extra : rebase_source : 2d4be5845d11c03560c7cd3fd60417b47f2a6dac
2016-08-25 09:59:51 +00:00
Phil Ringnalda
7392fb1b41 Backed out 4 changesets (bug 1294660) for mask-composite-2c.html failures
Backed out changeset 64b92e33713c (bug 1294660)
Backed out changeset 051453bf9c54 (bug 1294660)
Backed out changeset 0764147ff82b (bug 1294660)
Backed out changeset adfd8fb2faca (bug 1294660)
2016-08-25 23:14:22 -07:00
Manish Goregaokar
71b464a2fc Bug 1297064 - stylo: Add bindings for filling nsStyleImageLayers lists; r=heycam
MozReview-Commit-ID: Bstgf23gMRu

--HG--
extra : rebase_source : 7c98dcbd2cc1ae730ce788e9db0071c1595ceb6b
2016-08-22 18:31:41 +05:30
Ryan VanderMeulen
4a76c08262 Merge m-c to autoland. a=merge 2016-08-26 09:38:49 -04:00
Emilio Cobos Álvarez
ec1d8b030d Bug 1292280: Force a full document restyle on ServoStyleSet::StartStyling. r=bholley
Some things like nsDocumentViewer::SetPageMode recreate the presShell, so we
can't rely on the flags being correctly set always.

MozReview-Commit-ID: 4bxNjXGBaJt

--HG--
extra : rebase_source : f40ddb64d261778be2fd051503f7d2747f0c80e8
2016-08-25 13:36:51 -07:00
hironari
11d2b6bc5d Bug 1296123 - SetPerformanceWarning should be called against eCSSProperty_opacity! r=hiro
MozReview-Commit-ID: BCcXiRUui7Z

--HG--
extra : rebase_source : 2d11ce5720fd95a7c4f20ebb8b32f520bd49586a
2016-08-27 12:55:36 +09:00
Takeshi Kurosawa
76c800fd89 Bug 277178 - Move focus to a fragment identifier (#fragment) if it's focusable. r=smaug
This change improves HTML Standard compliance and browser compatibility.
https://html.spec.whatwg.org/multipage/browsers.html#scroll-to-the-fragment-identifier

MozReview-Commit-ID: BgOq9dPwdGF

--HG--
extra : transplant_source : %26%7D%7Fm%EES%C4%91%1F%CEI%25%8F%EDc%28%3C%DE%0F%CF
2016-08-23 11:06:32 +09:00
L. David Baron
6e37c27e75 Bug 1290825 - Reject various things that aren't user-action pseudo classes when they follow pseudo-elements. r=bz
The existing code, from bug 922669, in ParsePseudoSelector that allows
things to come after a pseudo-element requires that the first character
after the pseudo-element be a colon.  However, this doesn't forbid
things like ::-moz-color-swatch:hover#foo, which need to be errors in
ParseSelector; those tests are added here.  Furthermore, the
error-checking in ParsePseudoSelector doesn't prevent the pseudo-element
from being followed by a :not() or by an additional pseudo-element; to
fix that this patch moves the error tests out of the pseudo-class
condition and also has it test !isPseudoClass.

Without the patch, the tests produced the following failures:
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector ::-moz-color-swatch:not(.foo) was a parser error - got "1402", expected "auto"
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector '::-moz-color-swatch:not(.foo)' plus EOF is parse error
followed by a crash due to:
Assertion failure: !(IsPseudoElement() && (mIDList || mAttrList)) (If pseudo-elements can have id or attribute selectors after them, specificity calculation must be updated), at /home/dbaron/builds/ssd/mozilla-central/mozilla/layout/style/StyleRule.cpp:503 in CalcWeightWithoutNegations
from the "::-moz-color-swatch:hover#foo" test.

With that test commented out (and still without the code changes), there
is instead an additional pair of failures from the following test:
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector .foo::after:not(.bar) ~ h3 was a parser error - got "1406", expected "auto"
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector '.foo::after:not(.bar) ~ h3' plus EOF is parse error
along with a failure due to an unexpected assertion:
###!!! ASSERTION: Shouldn't have negations: '!selector->mNegations', file /home/dbaron/builds/ssd/mozilla-central/mozilla/layout/style/nsCSSRuleProcessor.cpp, function AddRule, line 3415

With the patch, the tests pass.

MozReview-Commit-ID: KxAFSQtPVhu
2016-08-29 11:43:30 -07:00
L. David Baron
dfe11b3205 Bug 1251075 - Add test that dynamic change of transform when will-change:transform is set doesn't reconstruct frames. r=bz
Without the patch (or, rather, with the new code in nsStyleContext::CalcStyleDifferenceInternal commented out), the second of the tests added fails:
TEST-UNEXPECTED-FAIL | layout/style/test/test_change_hint_optimizations.html | adding a transform style to an element with filter: blur(3px); should not cause frame reconstruction even when the element has absolutely positioned descendants - got 34, expected 28

The first of the new tests doesn't fail without the patch because
will-change:transform influences HasTransformStyle.  However, since that
case is probably the most important one, it still seems worth testing
explicitly.

With the patches, both tests pass.

MozReview-Commit-ID: 8n7QKGxd3j6
2016-08-29 11:43:30 -07:00
L. David Baron
611f172de6 Bug 1251075 - Optimize away nsChangeHint_UpdateContainingBlock in nsStyleContext::CalcStyleDifference when possible. r=bz
MozReview-Commit-ID: 4Owobm1vZLn
2016-08-29 11:43:29 -07:00
L. David Baron
155cf7f9b8 Bug 1251075 - Split out the parts of nsStyleDisplay::Is{Abs,Fixed}PosContainingBlock that don't depend on the frame. r=bz
The fact that HasTransform() depends on the frame requires the *Internal
functions rather than simply having the public function that takes a
frame call the public function that takes a style context.

MozReview-Commit-ID: CcWZjDTIr52
2016-08-29 11:43:29 -07:00
Ryan VanderMeulen
1c0c6ec5d4 Merge m-c to inbound. a=merge 2016-08-29 12:56:19 -04:00
Markus Stange
46d8f7daf1 Bug 1298844 - Add PrintDisplayItemToStdout and PrintDisplayListToStdout helper functions for debugging. r=jrmuizel
MozReview-Commit-ID: 3Uv0H9z2aLk

--HG--
extra : rebase_source : c15b2cce683fe5166588233aad7c7bb767e76412
2016-08-22 15:49:09 -04:00