Commit Graph

16464 Commits

Author SHA1 Message Date
Bobby Holley
e69afdcb2e Bug 1323671 - Reenable crashtests. r=me 2017-01-12 17:37:30 -08:00
Bobby Holley
eb34404cc8 Bug 1323654 - Reenable crashtests. r=me 2017-01-12 17:37:27 -08:00
Bobby Holley
129614b0d6 Bug 1329854 - Update crashtest expectations. r=me 2017-01-12 17:37:23 -08:00
Bobby Holley
6a150c778b Bug 1329854 - Check IsInStyleRefresh for all the servo-related handling in nsCSSFrameConstructor::Content{Appended,RangeInserted}. r=heycam 2017-01-12 17:33:07 -08:00
Bobby Holley
0574db6b6e Bug 1329854 - Call NoteDirtyDescendants when frame construction bails out due to lack of a container frame. r=heycam 2017-01-12 17:33:01 -08:00
Bobby Holley
38e55d8cfa Bug 1329854 - Handle suppressed frames in stylo incremental restyle. r=heycam 2017-01-12 17:32:40 -08:00
Olli Pettay
d6d2f4663c Bug 1330226 - BidiParagraphData should allocate less, r=jfkthame
--HG--
extra : rebase_source : a8c974f4a583d461dab121a5e4b5fb687c33b1fc
2017-01-12 22:46:23 +08:00
Bobby Holley
004deddec2 Bug 1330401 - Don't render explicit children of bound elements with no insertion points. r=bz 2017-01-11 21:08:03 -08:00
Cameron McCormack
9f99f387ac Bug 1324663 - stylo: Adjust expectations now that we've disabled style context tree structure assertions. r=me
MozReview-Commit-ID: EORVNMWW7gu
2017-01-11 20:35:12 +08:00
Cameron McCormack
f957565738 Bug 1322568 - Followup bustage fix on a CLOSED TREE.
MozReview-Commit-ID: IcxQaHLUmsN
2017-01-11 12:46:38 +08:00
Cameron McCormack
9f5783a333 Bug 1322568 - Disable style context tree structure verification assertions in stylo. r=bholley
MozReview-Commit-ID: 7gkNNkYILdk
2017-01-11 12:20:24 +08:00
Wes Kocher
105aea2522 Merge m-c to inbound a=merge
MozReview-Commit-ID: G24aq5fbYNd
2017-01-09 16:44:58 -08:00
Cameron McCormack
466ecf05e1 Bug 1324705 - stylo: Update some crashtest assertion expectations. r=emilio
These were fixed by https://github.com/servo/servo/pull/14922.

MozReview-Commit-ID: 3Ypfq0BmkIY

--HG--
extra : rebase_source : c32e69303826b65059dcae963ddce94f5f4c40f8
2017-01-09 17:34:16 +08:00
Cameron McCormack
3bd4794eaf Bug 1324673 - stylo: Update some crashtest assertion expectations. r=emilio
These were fixed by https://github.com/servo/servo/pull/14922.

MozReview-Commit-ID: H7s2lGJ8QYU

--HG--
extra : rebase_source : ef104630c7715f2f95539a3bb65e46a480ff2bdb
2017-01-09 17:34:18 +08:00
Cameron McCormack
9560e97767 Bug 1323665 - Part 2: Allow StyleSheet.disabled CSSOM access to disable/enable a ServoStyleSheet. r=xidorn
Now that bug 1290209 has landed, we can make StyleSheet.disabled work in Servo
styled documents.  This fixes a bunch of test crashes due to the assertion no
longer firing.

MozReview-Commit-ID: 6sLrdrxWlvK

--HG--
extra : rebase_source : cf8ab29f98fbba6be837a38ffe2a03ed9b33b701
2017-01-09 17:44:30 +08:00
Phil Ringnalda
a52a0f5571 Backed out 8 changesets (bug 1311244) for OOM failures in Win7 debug R1
Backed out changeset d5411799a28f (bug 1311244)
Backed out changeset ff9c71e1dbc8 (bug 1311244)
Backed out changeset 96988ec5b81c (bug 1311244)
Backed out changeset 9d257713833a (bug 1311244)
Backed out changeset 2c33905ccb04 (bug 1311244)
Backed out changeset 20148e33d523 (bug 1311244)
Backed out changeset f36cd1532fdb (bug 1311244)
Backed out changeset 2ee4ea83a6b4 (bug 1311244)
2017-01-08 21:11:25 -08:00
Ting-Yu Lin
b78b4d97c4 Bug 1311244 Part 4 - Extract the computation of circle radius as ComputeCircleRadius(). r=dbaron
MozReview-Commit-ID: LJNvNOoc7FI

--HG--
extra : rebase_source : 1dd13c1727c2c31aad80995dcd4edaecf77819da
2017-01-06 16:36:05 +08:00
Ting-Yu Lin
93b5370abd Bug 1311244 Part 3 - Extract the computation of center as ComputeCircleOrEllipseCenter(). r=dbaron
MozReview-Commit-ID: A6OTJ9PD43c

--HG--
extra : rebase_source : c8b16ffaaf00c4ed3ec722d7502262005e9e21ec
2017-01-06 16:35:53 +08:00
Ting-Yu Lin
e42b15fcf6 Bug 1311244 Part 2 - Create ShapeUtils, and move EnumerationToLength into it. r=dbaron
More functions in nsCSSClipPathInstance will be refactored and moved into
ShapeUtils in subsequent patches.

MozReview-Commit-ID: LmJUevY8YGr

--HG--
extra : rebase_source : 7cbfe60fec65833db3c7b7d7e9f3157b49b777eb
2017-01-06 16:35:29 +08:00
Ting-Yu Lin
a564d3c513 Bug 1311244 Part 0 - Preemptively fix unified build bustage in nsLayoutUtils. r=dbaron
The is a preemptively fix for unified bustage after Part 2 adds a new file
under layout/base/.

The error was:
In static member function 'static bool nsLayoutUtils::SupportsServoStyleBackend(nsIDocument*)':
invalid static_cast from type 'nsIDocument*' to type 'nsDocument*'

MozReview-Commit-ID: A8xTSPgh8Ls

--HG--
extra : rebase_source : 35935c10e6fee97702ae2cdcd5651ef5096ed195
2017-01-06 16:34:33 +08:00
Nathan Froyd
a747eb3f2c Bug 1322553 - part 2 - use the new constructor of GeckoProfilerTracingRAII; r=mstange
This patch is not strictly relevant to the current bug, but doing the
work here nicely illustrates how the constructor we added in part 1 can
be used in existing parts of the codebase.
2017-01-07 15:56:49 -05:00
Ryan VanderMeulen
1e6f972917 Merge inbound to m-c. a=merge 2017-01-07 11:22:47 -05:00
Emilio Cobos Álvarez
d449269afd Bug 1329200: Remove unused FrameManager global generation counter. r=xidorn
MozReview-Commit-ID: AXkaZYxpK2y

--HG--
extra : rebase_source : a02753e044fb89d4ea6a476e4b8f3e9fc0e4eb0c
2017-01-06 16:03:41 +01:00
Iris Hsiao
7adb57a57f merge autoland to mozilla-central a=merge 2017-01-06 11:06:17 -05:00
Ting-Yu Lin
797609894a Bug 1320014 Part 7 - Convert half corner indices #define to an enum. r=mats
MozReview-Commit-ID: 8lNtjV14WTN

--HG--
extra : rebase_source : dbfa992a2ee3cab2f639fb5a68463a673410ade6
2017-01-05 11:31:38 +08:00
Ting-Yu Lin
2dada2d6e0 Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
MozReview-Commit-ID: ERAwdxKZPf7

--HG--
extra : rebase_source : 53eb8d15ecd0d9d8fd0c7b88872b210b54104725
2017-01-04 18:15:30 +08:00
Daniel Holbert
2bdeb3ab01 Bug 1320484 part 2: Wrap abspos placeholders in anonymous flex items, in flex containers that are really emulating legacy -webkit-box containers. r=mats
This changeset is intended to revert the logic from "Bug 1269045 part 3" [1],
*specifically* for legacy "-webkit-box"/"-webkit-inline-box" flex containers.

[1]  https://hg.mozilla.org/mozilla-central/rev/707b2ab5879d

MozReview-Commit-ID: vc4TuAoLai

--HG--
extra : rebase_source : 3cc143055fc46851e882d48df2bd913ca1487793
2017-01-04 20:31:17 -08:00
Daniel Holbert
3ee9d5690d Bug 1320484 part 1: Improve documentation for debug-only function FrameWantsToBeInAnonymousItem(), & change its arg from nsIAtom* to nsIFrame*. r=mats
This patch doesn't affect behavior at all -- it just refactors the
sanity-checking function "FrameWantsToBeInAnonymousItem()", so that the next
patch in this series can give it a new special case that checks a state bit on
the container frame.

This patch renames "parent" to "container" in this function's variable-names,
for clarity, because when this function returns true, the flex/grid container
is actually NOT expected to be the parent of aFrame.  Rather, it's expected to
be the grandparent, and the anonymous flex/grid item would be the parent.  So,
"aContainerFrame"/"containerType" is a bit more accurate (representing the
flex/grid container for aFrame).

Also worth mentioning: this patch makes FrameWantsToBeInAnonymousItem() perform
its own local GetType() call, instead of accepting an already-queried GetType()
result from the caller (as it previously did).  Technically this could cause a
slight perf hit, but it doesn't really matter since this is in "#ifdef DEBUG"
sanity-checking code anyway.  We could keep the nsIAtom* as an additional arg
to avoid this new call, but it seems better to fall on the side of simplicity &
just look up GetType() independently, rather than complicating the function
signature with an extra arg.

MozReview-Commit-ID: 4oJFkQMuH9c

--HG--
extra : rebase_source : 3b5d60d8c15e69470f450168698b855e353486d3
2017-01-04 20:29:19 -08:00
Wes Kocher
0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
cku
09c56e6da6 Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : b0a0aad1fec0c2765e96d23ed9b627345c793795
2017-01-03 13:53:22 +08:00
Phil Ringnalda
d105fd40fd Merge m-c to autoland 2017-01-04 19:01:49 -08:00
Iris Hsiao
c8e876e89c Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
Boris Zbarsky
eebd58fd31 Bug 1298588 part 7, gecko piece. Stop using initial_values in general in Gecko glue code. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky
9f8934b143 Bug 1298588 part 4, gecko piece. Recreate the default computed values for a document as needed. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky
6104ba14f9 Bug 1298588 part 3, gecko piece. Add a default ComputedValues member to PerDocumentStyleData. r=bholley 2017-01-04 14:52:26 -05:00
Boris Zbarsky
d6ee8eb8a9 Bug 1298588 part 1. Make StyleStructContext work with a const nsPresContext. r=bholley 2017-01-04 14:52:26 -05:00
cku
adab9bea9f Bug 1323912 - Part 2. Pass opacity down to imgIContainer::Draw. r=mstange
Each concrete class of imgIContainer is able to handle opacity already. All we
need to do is pass opacity value to them.

MozReview-Commit-ID: EMkLnG3YXA1

--HG--
extra : rebase_source : 080a843b34cc1ca27831310d474243b4066f59f2
2017-01-03 13:53:22 +08:00
Xidorn Quan
97d13f46a3 Bug 1303241 part 2 - Make GetVisitedDependentColor use style structs directly. r=dbaron
I think there are three advantages of this change:
1. removes some dependencies from layout / painting code to pre-computed
   value stuff in the style system;
2. makes it easier to audit usage of specific fields in style structs
   (which is probably a side effect of the first one);
3. potentially improves performance since it doesn't go through the
   unnecessary general logic in ExtractComputedValue.

Also, combined with the part before, we get a unified list for visited-
dependent properties so that we can ensure the assertion here and the
style difference calc code are consistent.

MozReview-Commit-ID: 5B9aN7CfRgI

--HG--
extra : rebase_source : ac80eaea2474b9ec4b47b1cc9a5bdd2e61f6ec4d
2016-12-31 00:57:37 +11:00
Chris Peterson
20bc668a02 Bug 1280295 - Remove MOZ_HAVE_REF_QUALIFIERS. r=froydnj 2017-01-03 22:42:33 -08:00
Mats Palmgren
c57b9fd7a3 Bug 731096 - Make nsFrameManager::RegisterPlaceholderFrame infallible. r=dholbert 2017-01-04 00:56:19 +01:00
Timothy Nikkel
24281c4a15 Bug 1328202. Remove unused variable mGfxScrollFrame in nsCSSFrameConstructor. r=mats 2017-01-02 22:07:51 -06:00
Cameron McCormack
61569b57a1 Bug 1324624 - Tweak stylo crashtest assertion annotations a bit more.
MozReview-Commit-ID: D2AntG68VGr
2017-01-02 16:25:22 +08:00
Xidorn Quan
c26fcf05e4 Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
MozReview-Commit-ID: 1n3TC3CVY7U

--HG--
extra : rebase_source : 6b402a2493f58d114a9898a4d556587fdc98a9ee
2016-12-30 02:03:29 +11:00
Boris Zbarsky
66519f68ee Bug 1326388 part 2. Switch nsSVGElement from storing an nsStyleRule to storing a DeclarationBlock to represent its SMIL mapped attributes. r=dbaron 2016-12-31 01:11:05 -08:00
Cameron McCormack
babad063ff Bug 1328832 - Part 2: Rename mozFlushType to mozilla::FlushType and make it an enum class. r=bzbarsky
MozReview-Commit-ID: D3fIngSHSsl
2017-01-05 15:31:56 +08:00
Cameron McCormack
ce51bd51e0 Bug 1328832 - Part 1: Rename mozFlushType.h to FlushType.h. r=bzbarsky
MozReview-Commit-ID: 1ubwNkBEdfz

--HG--
rename : dom/base/mozFlushType.h => dom/base/FlushType.h
2017-01-05 14:54:02 +08:00
Wes Kocher
c4adb53fc9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IQlYASgyniL
2017-01-05 17:32:50 -08:00
William Chen
aed08c925f Bug 1307675 - Part 2: Record telemetry for time to first input. r=baku, data=bsmedberg 2016-11-08 11:30:57 -08:00
William Chen
8e941520c1 Bug 1307675 - Part 1: Record time from first paint to time of first input. r=baku,jwatt 2016-11-08 17:39:28 -08:00
Cameron McCormack
e50e656e7d Bug 1315155 - Part 1: Encapsulate nsStyleContentData. r=xidorn
MozReview-Commit-ID: LfEMxyM5meF
2016-10-20 10:22:46 +08:00