Граф коммитов

12920 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta fa397ea897 Bug 1304689 - Ensure frame reconstructions don't clobber a 'stronger' scroll origin with a 'weaker' one. r=tnikkel
If, within a single refresh driver tick, the scroll position is updated by JS
explicitly, and then subsequently also updated by a frame reconstruction, the
scroll origin from the former (nsGkAtoms::other) can get clobbered by the latter
(to nsGkAtoms::restore). The restore scroll origin is "weaker" in that it can
be ignored by the APZ code in some circumstances. This is undesirable because
it means the JS scroll update also gets ignored. This patch ensures that when
setting the scroll origin we don't do this clobbering of stronger origins with
weaker origins.

MozReview-Commit-ID: DA4EHp1Debu

--HG--
extra : rebase_source : 99fd1f91698a605792b2a622450f1ff31bc89101
2016-10-11 09:36:22 -04:00
Carsten "Tomcat" Book 802e7b16f9 merge mozilla-inbound to mozilla-central a=merge 2016-10-13 11:53:49 +02:00
Daniel Holbert 5ea7b37dd6 Bug 1090031: Apply CSS 'align-content' in flex containers if they *could* wrap (rather than if they *have* wrapped). r=mats
The spec says that single-line flex containers should stretch their one flex
line to the flex container's cross size, and should ignore 'align-content'.

Initially, the spec defined 'single-line' to include any flex container that
happens to have only 1 line (even if it's got 'flex-wrap:wrap' or
'wrap-reverse'). But later, the term 'single-line' was intentionally redefined
to *only* include flex containers that have 'flex-wrap: nowrap'.  So, instead
of checking the line-count, we should instead check 'flex-wrap', when deciding
whether to stretch our one line & ignore 'align-content'.


MozReview-Commit-ID: D2ZMIBS16ui

--HG--
extra : rebase_source : 835a64e0f9cdaa375f8e57f55ffe5b011525cbeb
2016-10-12 09:04:03 -07:00
Wes Kocher 5c9e53976d Backed out changeset 37e0c017b268 (bug 1090031) for reftest failures a=backout 2016-10-12 14:46:23 -07:00
Daniel Holbert 7c6df4e0a1 Bug 1090031: Apply CSS 'align-content' in flex containers if they *could* wrap (rather than if they *have* wrapped). r=mats
The spec says that single-line flex containers should stretch their one flex
line to the flex container's cross size, and should ignore 'align-content'.

Initially, the spec defined 'single-line' to include any flex container that
happens to have only 1 line (even if it's got 'flex-wrap:wrap' or
'wrap-reverse'). But later, the term 'single-line' was intentionally redefined
to *only* include flex containers that have 'flex-wrap: nowrap'.  So, instead
of checking the line-count, we should instead check 'flex-wrap', when deciding
whether to stretch our one line & ignore 'align-content'.


MozReview-Commit-ID: D2ZMIBS16ui

--HG--
extra : rebase_source : c600a80b96df3c937f2a56a5e0ed1825750234e0
2016-10-12 09:04:03 -07:00
cku 43780a1730 Bug 1299715 - Part 8. Fix typo in comment of GetVisualOverflowRect. r=mstange
MozReview-Commit-ID: 6xKBK7jXEZ6

--HG--
extra : rebase_source : 660f31c3c053911439c27450f948a033a3e29034
2016-10-07 15:15:44 +08:00
cku a73d4a3f35 Bug 1299715 - Part 1. Replace ContainerItemType::eSVGEffects by ContainerItemType::eFilter. r=mstange
MozReview-Commit-ID: 73mxBsY3W0p

--HG--
extra : rebase_source : 4f9ac3d5400584c7d892c56a7c8b6dbfeae8e42f
2016-10-05 23:23:40 +08:00
Sebastian Hengst f1659f19b4 Backed out changeset 221d9d15395f (bug 1299715) for failing reftest clipPath-and-mask-on-outflowElement-01a.html on Windows 8 x64. r=backout 2016-10-12 18:02:18 +02:00
Sebastian Hengst 59477e6b56 Backed out changeset c9c910a1c399 (bug 1299715) 2016-10-12 18:02:17 +02:00
cku 3375efb41f Bug 1299715 - Part 8. Fix typo in comment of GetVisualOverflowRect. r=mstange
MozReview-Commit-ID: 6xKBK7jXEZ6

--HG--
extra : rebase_source : 46fb2bf97f9272eccaf244a69746819a4aba2df4
2016-10-07 15:15:44 +08:00
cku 410ad6084d Bug 1299715 - Part 1. Replace ContainerItemType::eSVGEffects by ContainerItemType::eFilter. r=mstange
MozReview-Commit-ID: 73mxBsY3W0p

--HG--
extra : rebase_source : e5fe4f2a17a43182fb32f9e7b991d16048373748
2016-10-05 23:23:40 +08:00
Carsten "Tomcat" Book 2844380bd4 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
2016-10-12 12:01:48 +02:00
Phil Ringnalda 6182caa3b9 Backed out 2 changesets (bug 1278136) for failures in no-stacking-context-opacity-removing-animation-in-delay.html
Backed out changeset 62cf4a7d6007 (bug 1278136)
Backed out changeset 5f2db29e67ca (bug 1278136)

MozReview-Commit-ID: K9WcZFjL2XB
2016-10-11 20:40:36 -07:00
Hiroyuki Ikezoe d7f92dae54 Bug 1278136 - Part 5: Create a stacking context for opacity/transform animations even if it's in delay phase and even if the property is overridden by !important rules. r=birtles
This patch introduces a new functions named HasEffectiveAnimationOfProperty.
This function checks that a given CSS property is overridden by !important
rules.
On the other hand, now KeyframeEffetReadOnly::HasAnimationOfProperty() does
just check that the effect has a given CSS property.  This is used to create
a stacking context because we should create a stacking context for opacity or
transform animations even if the property is overridden by !important rules.

MozReview-Commit-ID: AG1Y0IgoB3U
2016-10-12 09:59:03 +09:00
Brad Werth 35c396cb6a Bug 1306894 Part 1: Cache baseline from nsFlexContainerFrame::Reflow() for use in later calls to GetLogicalBaseline(). r=dholbert
MozReview-Commit-ID: JXUK8a0L1RZ

--HG--
extra : rebase_source : 9c4f885ac883429512073f38dfa1226058d8b8a5
2016-10-11 12:54:00 -07:00
Jonathan Kew 061ab35e2b Bug 1308502 followup, add missing const-ness to gfxTextRun::SetPotentialLineBreaks param, tidy up a bit. r=m_kato 2016-10-11 13:47:11 +01:00
Brad Werth e321b44ac3 Bug 1221565 Part 2: Make nsFlexContainerFrame map justify-content and align-content values of 'left' and 'right' to 'start' or 'end'. r=dholbert
MozReview-Commit-ID: 8sZyFwIlpr4

--HG--
extra : rebase_source : 594f467df3f34021a363510d945ea87d2a82ba24
2016-10-07 09:22:52 -07:00
Brad Werth 2ac369120e Bug 1221565 Part 1: Make nsFlexContainerFrame map align-self values of 'left' and 'right' to either 'start' or 'end'. r=dholbert
MozReview-Commit-ID: 8Xv4BzZ3Okv

--HG--
extra : rebase_source : 796dea9e9b81183ad9b87c1e14a10c780aba30dc
2016-10-06 15:55:39 -07:00
Cameron McCormack a9271aac63 Bug 1298774 - Part 5: Make nsStyleSVGPaint use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: CkNcSxVToTL

--HG--
extra : rebase_source : 956149a0d12e7633aca15eb460704926a7db7371
2016-10-11 14:56:11 +08:00
Phil Ringnalda c21623fc42 Merge m-c to m-i
MozReview-Commit-ID: Kp60wHZauGi
2016-10-06 20:26:20 -07:00
Phil Ringnalda fd7b7476c2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 93ZdJbK1x05
2016-10-06 19:58:18 -07:00
Jeremy Chen 75a2c5a6bf Bug 1307728 - convert LineReflowStatus to an enum class. r=mats
Since we're converting LineReflowStatus to an enum class, the "default:" branch
of LineReflowStatusToString() could be removed as well. In this way, we can add
protection at compile time (warning) instead of runtime (assertion).

MozReview-Commit-ID: 8Ul0eCxqSTR

--HG--
extra : rebase_source : 81cc36bf1ae566d7114466661b7d0db6d63e364f
2016-10-07 00:36:07 +08:00
Jeremy Chen f210ff2e08 Bug 1307728 - use LineReflowStatusToString to support debugging. r=mats
This is a pre-patch that uses LineReflowStatusToString() function instead of
LineReflowStatusNames array to support debugging. With this patch, we could
easily regain debugging support from LineReflowStatusToString() while converting
LineReflowStatus to an enum class.

MozReview-Commit-ID: K2AzZ2zI69p

--HG--
extra : rebase_source : bfbb1221ffb59cd4c27c3fb147a3a3b64e86cf68
2016-10-07 00:36:07 +08:00
Carsten "Tomcat" Book 06332a09b7 Merge mozilla-central to autoland 2016-10-06 12:29:44 +02:00
Carsten "Tomcat" Book 7c8e81673d merge mozilla-inbound to mozilla-central a=merge 2016-10-06 11:59:54 +02:00
Jeremy Chen 64cac18a6f Bug 1308077 - remove default branch of switch-case-statement in nsLineBox::BreakTypeToString. r=xidorn
MozReview-Commit-ID: 4HZTHsaFJb9

--HG--
extra : rebase_source : 5a0c14df3a6b98c492164d36ff4455de4e9466da
2016-10-06 15:22:22 +08:00
Sumit Tiwari 04a6a74e56 Remove mMappedFlows from TextRunData - bug 1290312 r=emilio,xidorn
MozReview-Commit-ID: EQafEoyu43a

--HG--
extra : rebase_source : 395655606f9491bda7daf61f370a2370bac2b7e7
2016-10-03 20:30:50 -04:00
Kartikaya Gupta a640f97b00 Bug 1306603 - Remove rest of mozpasspointerevents code as it is not needed any more. r=kanru
MozReview-Commit-ID: 5N3hUq2lGuU
2016-10-05 08:27:02 -04:00
Ting-Yu Lin 570d1f0e83 Bug 1304441 Part 3 - Insert main summary's frame construction item at front of the list. r=bz
Change the logic that moves the main summary to the front from operating
on generated frames in DetailsFrame::SetInitialChildList() to operating
on frame construction item list in AddFrameConstructionItemsInternal()
so that it will be correct when cooperating with ::first-line.

The root cause of the bug reported is because when specifying
::first-line on details element, the first frame of summary element,
which is generated due to ib-split, will be wrapped in nsFirstLineFrame.
The original code fails to find the summary frame in the wrapper frame
and triggers assertion because of the second ib-split summary frame. To
fix that, we need to descend into the child list of wrapper frames when
checking the main summary.

Add original test case as a crashtest as well as reftests to clearly
reproduce the issue.

Note that in the reftest, the blue color in ::first-line is applied
incorrectly to the second line in the summary due to bug 520605.

MozReview-Commit-ID: Bv4Vcvxp6pY
2016-10-05 14:43:32 +08:00
Ting-Yu Lin 4dc7ab9b9e Bug 1304441 Part 2 - Extract main summary checking code to a function. r=bz
* Change the assertion to non-fatal to make it easier to debug.
* Change the wording per bug 1304441 comment 11.

MozReview-Commit-ID: 1UJXhC4qkrx
2016-10-05 14:43:31 +08:00
Wes Kocher a0ecf84551 Merge m-c to inbound, a=merge 2016-10-04 17:42:22 -07:00
Mats Palmgren 21939c963e Bug 1307113 - [css-grid] Fix a typo in baseline track selection. r=dholbert 2016-10-04 21:13:53 +02:00
Jessica Jong b3014cc00b Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug 2016-10-06 00:17:00 -04:00
Alex Henrie b59026eb98 Bug 1301290 - Position resizer above own content but beneath overlapping content. r=mats 2016-10-06 08:44:00 -06:00
Jeremy Chen 23d3ede6fc Bug 1307402 - use a more precise bounding box for initial letter texts. r=jfkthame
MozReview-Commit-ID: 5OIXp0uQisn

--HG--
extra : rebase_source : 00f6a72742c763bb3ec572a08d3cdaf12402d7f6
2016-10-04 22:22:52 +08:00
Jeremy Chen 2b9135929b Bug 1307402 - reformat if-else-statements in nsFirstLetterFrame.cpp to agree with mozilla coding style. r=jfkthame
MozReview-Commit-ID: L9V1cEkmtkF

--HG--
extra : rebase_source : 3c7e3ad5850d0be33f24e27a18eff7fdb8989d16
2016-10-04 22:22:52 +08:00
Carsten "Tomcat" Book 02f4754fbc merge mozilla-inbound to mozilla-central a=merge 2016-10-04 11:58:07 +02:00
David Keeler 2ebfcec051 bug 1307226 - extend clang crash workaround to work around similar crash in SetGridItemCount r=mats
MozReview-Commit-ID: 1fHN2mpYyxz

--HG--
extra : rebase_source : 564234074558f5ba7b966b9190504c4f10fa86df
2016-10-03 14:08:54 -07:00
Mats Palmgren 479e0b57fd Bug 1151204 part 5 - [css-grid] Fix a bug in the is-this-the-last-track check. r=dholbert 2016-10-01 02:26:39 +02:00
Mats Palmgren 7d542f321e Bug 1151204 part 4 - [css-grid] Implement Grid Container Baselines. r=dholbert 2016-10-01 02:26:39 +02:00
Mats Palmgren bcb5907785 Bug 1151204 part 3 - [css-grid] Add a couple of members to record fragmentation state. r=dholbert 2016-10-01 02:26:39 +02:00
Mats Palmgren 98159ca3c7 Bug 1151204 part 2 - [css-grid] Add methods for finding the first/last grid item in Grid Order in this fragment. r=dholbert 2016-10-01 02:26:39 +02:00
Mats Palmgren fd54eb1633 Bug 1151204 part 1 - [css-grid] Make GridItemCSSOrderIterator use nsFrameList iterators internally and make the specific type (forward/reverse) a template param. r=dholbert 2016-10-01 02:26:39 +02:00
Brad Werth 2fe8e4a753 Bug 1304012 -- Part 2: Rename nsStyleStruct Computed**Self functions to Used**Self. r=dholbert
MozReview-Commit-ID: FCBuT2Z7sy6
2016-09-30 09:15:57 -07:00
Kartikaya Gupta 435b8ac3fc Bug 1300905 - When long-pressing on a selection, don't dismiss the selection and start a new one. Show the context menu instead. r=TYLin,mats
MozReview-Commit-ID: J0e9DqIDwnC
2016-09-30 09:36:10 -04:00
Brad Werth 25da11fb5e Bug 1305844 - Make most align/justify nsStylePosition members public, and remove trivial accessors. r=dholbert
--HG--
extra : rebase_source : a38fdd5d608370e3408a698fd887cc15f5c01537
2016-10-03 13:05:35 -07:00
Mats Palmgren d7f4c1f451 Bug 984869 - Add support for display:flex/grid and columnset layout to <button>. r=tn 2016-10-06 22:43:22 +02:00
Mats Palmgren d01e18549b Bug 1306906 - [css-grid] Get the relevant baseline from the grid item for the basline group. r=dholbert 2016-10-06 22:43:22 +02:00
Sebastian Hengst 256c9cf9ff Merge mozilla-central to autoland 2016-10-05 17:15:26 +02:00
Hiroyuki Ikezoe bf263e20b5 Bug 1304922 - Part 1: Rename nsLayoutUtils::HasCurrentAnimationOfProperty() to nsLayoutUtils::HasActiveAnimationOfProperty(). r=birtles
KeyframeEffectReadOnly::HasAnimationOfProperty() calls GetAnimationOfProperty()
which checks mWinsInCascade flag and the mWinsInCascade flag is set to true
only if the effect is in-effect.
That means nsLayoutUtils::HasCurrentAnimationOfProperty() actually represents
that a given frame has at least one animation which is current and *in-effect*
(i.e. active).

MozReview-Commit-ID: 93rMMmzrBMi

--HG--
extra : rebase_source : c48167d874aa243ab070d0aa64876307748e3493
2016-10-05 14:25:41 +09:00