Commit Graph

51255 Commits

Author SHA1 Message Date
Ethan Lin
3a8eda58a3 Bug 1289276 - Add gfxPlatform::CreateSimilarSoftwareDrawTarget to unify software fallback backend. r=mstange 2016-07-28 18:32:00 -04:00
Carsten "Tomcat" Book
8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
Wes Kocher
0291de30b7 Backed out changeset 7d6baa38a04c (bug 1288938) for reftest crashes 2016-07-28 22:43:49 -07:00
Bobby Holley
6255cd0c72 Bug 1290214 - Remove NS_ERROR for {un,partially-}implemented ServoRestyleManager and ServoStyleSet methods. r=emilio
These are core methods that we know we need to implement, and I'm not worried that
we'll forget about them. The warnings should be enough here.
2016-07-28 17:25:53 -07:00
Bobby Holley
7e2a8f642f Bug 1290214 - Remove NS_ERROR for unhandled document state changes. r=emilio 2016-07-28 17:25:51 -07:00
Bobby Holley
ff7b93c2e8 Bug 1290214 - Remove NS_ERROR for XBL stylesheet management. r=emilio 2016-07-28 17:25:49 -07:00
Bobby Holley
5cc53812ef Bug 1290214 - Make ServoRestyleManager::AttributeChanged a no-op. r=emilio
We do all the work we need to do with the snapshot model in AttributeWillChange.
2016-07-28 17:25:48 -07:00
Bobby Holley
7c2695a9d0 Bug 1290214 - Remove NS_ERROR for media queries and @font-face. r=emilio 2016-07-28 17:25:46 -07:00
Bobby Holley
81084cfef0 Bug 1290214 - Remove NS_ERROR in the case where we skip checking the stylesheet service. r=emilio 2016-07-28 17:25:44 -07:00
Bobby Holley
d5aeede891 Bug 1290214 - Remove NS_ERRORs in css::Loader. r=emilio 2016-07-28 17:25:43 -07:00
Wes Kocher
97868e2577 Merge m-c to inbound, a=merge 2016-07-28 17:04:59 -07:00
Neerja Pancholi
d660b8cb84 Bug 1288797 - Replace nsAutoPtr with UniquePtr in nsStyleStruct.h (for variable "mCropRect") r=dholbert
MozReview-Commit-ID: 1UFbO0jgM1k

--HG--
extra : rebase_source : 577c45b90653482ec2d5baab679c743cc68ac872
2016-07-28 15:06:02 -07:00
Jonathan Chan
95f96fd0dd Bug 1290320 - Add missing include to nsStyleSet.h. r=bholley
MozReview-Commit-ID: PRSFRX9Oru

--HG--
extra : rebase_source : 7f964a1b0371eb6b986b165e3fc100139469ce1c
2016-07-28 18:41:08 -07:00
Manish Goregaokar
38e52065f0 Bug 1290061 - stylo: Mark nsStyleUnion/Unit fields as unsafe and private for bindgen; r=bholley
MozReview-Commit-ID: 6K38Gvbn4vn

--HG--
extra : rebase_source : afad5ea307d17c86ad4fb6be32f577f656c5f76f
2016-07-28 17:53:19 +05:30
Carsten "Tomcat" Book
99e55461fb Merge mozilla-central to autoland 2016-07-28 17:46:12 +02:00
Carsten "Tomcat" Book
37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Emilio Cobos Álvarez
4e30f13399 Bug 1288938: layout: Move the GlyphObserver to the text run instead of the frame. r=jfkthame
MozReview-Commit-ID: KphTCkcZeid
2016-07-28 15:19:14 -07:00
Jeremy Chen
c9f52459aa Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
MozReview-Commit-ID: E0eXolZ93oJ

--HG--
extra : rebase_source : 3fc74b84a488bb495f926b420aa6c06a987e09b2
2016-07-28 15:23:36 +08:00
Jeremy Chen
eda421bf9b Bug 1289007 - part0: remove redundant codes in ParsePropertyByFunction. r=heycam
CSS align and CSS justify share same parsing function under some conditions.
Let's make these switch branches stick together, so we can remove a bit redundant
codes.

MozReview-Commit-ID: 49IKvqhLSt4

--HG--
extra : rebase_source : 5d8a6aca331a7b3067aeeb865ce624da7cc4dd4a
2016-07-28 15:23:36 +08:00
Cameron McCormack
8f06979688 Bug 1289710 - Allow KTableEntry objects to be initialized with enum values of appropriate size. r=xidorn
MozReview-Commit-ID: JluYrYmy5z1

--HG--
extra : rebase_source : a79d94130c339c58f3c1055da68f118d1320ccf3
2016-07-28 15:40:09 +08:00
Andi-Bogdan Postelnicu
cb60cc4703 Bug 1282408 - add ignore initialization check flag for bool variables from ScrollReflowInput. r=dbaron
MozReview-Commit-ID: 6IDxHLbSkoJ
2016-07-28 13:57:19 +03:00
Alexandre Lissy
ceb1dc3eac Bug 1290073 - Remove ICS Gonk widget support r=sotaro
MozReview-Commit-ID: JOWaHvPwnZI

--HG--
extra : rebase_source : 1f9c81b0bb79572365d98944fc8923f1859540c1
2016-07-28 14:38:07 +02:00
Edwin Flores
f7e965e3bf Bug 1274624 - Fuzz linear-size-1a.html on Windows - r=bustage 2016-07-28 09:34:17 +01:00
Chris Peterson
09cf0a5c66 Bug 1289991 - Remove VS2013 string literal workaround from nsCSSProps.cpp. r=xidorn 2016-07-27 23:53:10 -07:00
Iris Hsiao
4b714bba8f Backed out changeset 3531847a7419 (bug 1285174) for Reftest failures 2016-07-28 11:34:18 +08:00
Bobby Holley
7988d386c8 Bug 1289916 - Check tree dirtiness in ProcessPendingRestyles before triggering traversal. r=emilio
It's possible (and in fact, desirable) for the restyle hints to all evaluate
to 0, which means the tree stays clean even though the map was non-empty.
2016-07-27 18:20:18 -07:00
Matt Woodrow
2dafae2906 Bug 1285174 - Make sure we override the visible region of nsDisplayTransform when we're prerendering. r=mstange 2016-07-28 13:05:40 +12:00
Jonathan Chan
da1ba5c6ef Bug 1290269 - Add missing includes to nsStyleStruct.cpp. r=dholbert
MozReview-Commit-ID: 1dsnqyvAanr

--HG--
extra : rebase_source : d64f942cb059af1f2a1c7cea0d03bad140caaf84
2016-07-28 14:51:12 -07:00
Wes Kocher
c7656c1da3 Backed out changeset c0bf6e0b8f1d (bug 1173199) for build bustage CLOSED TREE 2016-07-28 11:48:20 -07:00
Bobby Holley
e18d0ea3db Bug 1289622 - Add an API for Servo traversal to call CalcStyleDifference. r=heycam 2016-07-27 13:35:14 -07:00
Bobby Holley
fe8622a540 Bug 1289622 - Add the ability to store change hints on the style context. r=heycam 2016-07-27 13:35:12 -07:00
Bobby Holley
747712c081 Bug 1289622 - Add a ServoComputedValues* overload for CalcStyleDifference. r=heycam 2016-07-27 13:35:11 -07:00
Bobby Holley
9f75d89883 Bug 1289622 - Delegate CalcStyleDifference to a templated helper. r=heycam 2016-07-27 13:35:09 -07:00
Bobby Holley
46c7fed6d0 Bug 1289624 - Switch to UniquePtr for managing ServoNodeData. r=heycam 2016-07-27 13:34:55 -07:00
Emilio Cobos Álvarez
11ac7c1d96 Bug 1288590: Rename nsAttrInfo to mozilla::dom::BorrowedAttrInfo. r=bholley
Unfortunately couldn't add all the debug checks that I'd want, since we can't
assert that is not safe to run script in quite a few places :(

MozReview-Commit-ID: 8m3Wm1WntZs
2016-07-27 11:18:33 -07:00
Emilio Cobos Álvarez
0bbe4a681c Bug 1288590: Use GetAttrInfoAt in ServoBindings.cpp. r=bholley
MozReview-Commit-ID: 5tglYnx8pJk
2016-07-27 11:18:33 -07:00
Bobby Holley
5abb382d3d Bug 1289620 - Initialize the correct restyle manager when we attach the PresShell. r=heycam 2016-07-27 09:44:30 -07:00
Bobby Holley
1764385b32 Bug 1289620 - Separate presshell attachment and detachment in nsPresContext. r=heycam 2016-07-27 09:44:29 -07:00
Bobby Holley
64639661c1 Bug 1289620 - Hook up initial styling. r=heycam
Aside from the parser-side hacks, this should subsume all the current scattered
logic in the stylo tree to handle initial styling.
2016-07-27 09:44:25 -07:00
Cameron McCormack
fac8a532f2 Bug 1289620 - Stub out ReparentStyleContext. r=bholley 2016-07-27 09:41:50 -07:00
Emilio Cobos Álvarez
0733bfeaf7 Bug 1288873: stylo: Improve the error message when we don't handle a restyle hint. r=heycam
MozReview-Commit-ID: 3FCCCCF5gQS
2016-07-27 09:35:20 -07:00
Emilio Cobos Álvarez
042b18ee72 Bug 1288873: Don't propagate the IS_DIRTY flag down the whole tree, just make it
imply that all descendants are dirty. r=heycam

We're probably going to be a lot more smarter than this in the future, but since
there is work in progress to figure out how should we avoid running
selector-matching on the elements, this helps a lot with perf in the meantime.

MozReview-Commit-ID: CEb15JwHAdH
2016-07-27 09:35:20 -07:00
Edwin Flores
52621123c7 Bug 1274624 - Test that colour interpolation is correct for clamped linear gradients - r=mstange 2016-07-27 16:57:53 +01:00
Edwin Flores
c8d8179468 Bug 1274624 - Speed up tiled axis-aligned linear gradient painting - r=mstange 2016-07-27 16:57:53 +01:00
Carsten "Tomcat" Book
7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Ting-Yu Lin
4f426feb17 Bug 1288992 Part 3 - Rename local variables named metrics to reflowOutput. r=dholbert
This patch is edited manually.

MozReview-Commit-ID: 1IsLGrgmDIY

--HG--
extra : rebase_source : 52ad416a2ae56f312976cef6f30a45f03d77c4d1
2016-07-26 17:10:52 +08:00
Ting-Yu Lin
73c4dfa06c Bug 1288992 Part 2 - Rename ReflowMetrics variables to ReflowOutput. r=dholbert
This patch is generated by the following scripts:

function rename() {
find layout\
     -type f\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -r "s/$1/$2/g" "{}" \;
}

rename "([[:alpha:]]*)([rR])eflowMetrics" "\1\2eflowOutput"
rename "gLameReflowOutput" "gLameReflowMetrics"

MozReview-Commit-ID: CBDAau50Ail

--HG--
extra : rebase_source : f6c2358e898e66d8ce2557dea6d7b31d32e3929f
2016-07-26 16:33:52 +08:00
Ting-Yu Lin
d97c60cb47 Bug 1288992 Part 1 - Rename mSize and ReflowMetrics() in nsMathMLContainerFrame::RowChildFrameIterator. r=dholbert
Rename mSize and ReflowMetrics() to mReflowOutput and GetReflowOutput(),
respectively.

The convention for the method name would be ReflowOutput(), but it will conflict
class name ReflowOutput. So we use GetReflowOutput() here.

MozReview-Commit-ID: CHp6vw80IOh

--HG--
extra : rebase_source : d035cafaeddb61057035d4fe6a3aef3c1049c154
2016-07-26 15:39:03 +08:00
Ting-Yu Lin
254949ab86 Bug 1288992 Part 0 - Drop the nonsensical comment for nsTableFrame::ReflowChildren. r=dholbert
MozReview-Commit-ID: EOQvqNyL5qN

--HG--
extra : rebase_source : 76345505d1cbf2b697d6b6f79d1196d86d5f48b0
2016-07-27 11:22:15 +08:00
Daisuke Akatsuka
4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00