Commit Graph

53805 Commits

Author SHA1 Message Date
Ting-Yu Lin
7577c40539 Bug 1320014 Part 3 - Move Corner from namespace mozilla::css into mozilla. r=mats
For those cpp files, it's sufficient to use Corner to refer to
mozilla::Corner.

MozReview-Commit-ID: JmDEJ3gGm8K

--HG--
extra : rebase_source : 79d7fc74fdb827894dd9ea17d6bb382eb75e81e8
2017-01-04 17:18:49 +08:00
Ting-Yu Lin
d4db857fcf Bug 1320014 Part 2 - Rename Corner to LogicalCorner, and move it to nsStyleCoord.h. r=mats
To avoid confusion with the mozilla::css::corner, rename ::Corner to
mozilla::LogicalCorner, and move it to nsStyleCoord.h. Also, append
LogicalCorner prefix to all the enum values to match the coding style.

It also fixed the build error preemptively in a later patch that removing
::css namespace from mozilla::css::corner.

MozReview-Commit-ID: BbRYFuT3v4W

--HG--
extra : rebase_source : b8891eaa475c803de9a2137cb5e9a5a4bde37b9f
2017-01-04 16:52:12 +08:00
Xidorn Quan
cd5b8893bf Bug 1326167 - Hook ServoStyleSheet and ServoCSSRuleList into cycle collection. r=bz
MozReview-Commit-ID: 6n1rjB8aMqp

--HG--
extra : rebase_source : 8bab3247e2ef101c190881ec4d19a8bb543587e0
extra : source : 3e774461c2cf59f3835806c1e6441c0ef263aec4
2017-01-06 15:14:28 +11:00
Daniel Holbert
62fdac80b2 Bug 1320484 part 3: Add reftest for simple positioning of abspos child inside of a -webkit-box container. r=mats
MozReview-Commit-ID: 4SIys1zdkvy

--HG--
extra : rebase_source : 376a8110fbc9ac5475e2231c74ba58195b2ed6ee
2017-01-04 20:43:04 -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
Tomer Cohen
d0e2761f49 Bug 849404 RTL support for text/plain documents r=dbaron
The addition of unicode-plaintext to the pre element will make RTL text to appear from right to left. The html[dir] pre rule will make sure that this addition won't break the 'switch page direction' functionality.

MozReview-Commit-ID: 2JXJjqt2iuX

--HG--
extra : rebase_source : 98c85228ce50fa145bfaa77051532f69e92ba98d
2016-12-24 01:59:12 +02:00
Wes Kocher
0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
cku
f107b85dcc Bug 1323912 - Part 6. Test cases. r=mstange
mask-opacity-1d.hmtl: vertify the change in Part 4. Before we land Part 4, the
rendering result in FF is not correct.
mask-opacity-1e.hmtl: vertify the change in Part 5.

MozReview-Commit-ID: GcbDCvr9ttF

--HG--
extra : rebase_source : 0be8c9cab639be2fda84a2a05319e25ba719ed09
2017-01-04 14:16:06 +08:00
cku
8ed218233f Bug 1323912 - Part 5. Apply opacity in mask layer painting path. r=mstange
MozReview-Commit-ID: HX2Tcum2smO

--HG--
extra : rebase_source : 2c2f96aa28e21f79b5fafe12fac8daa3fe89eb21
2017-01-03 17:12:32 +08:00
cku
b10b619355 Bug 1323912 - Part 4. Apply opacity in indirect image mask painting path. r=mstange
MozReview-Commit-ID: IKKKMccyMsO

--HG--
extra : rebase_source : 701d84e241ba36aeaa30b8d9946c79515969ae95
2017-01-03 16:35:17 +08:00
cku
848df830c7 Bug 1323912 - Part 3. Pass opacity in gradient-mask painting path. r=mstange
MozReview-Commit-ID: E2RdOHGoia8

--HG--
extra : rebase_source : 388539f52a5f64bee0360ae67ec3891e2567d669
2017-01-04 01:05:05 +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
cku
7ffd5790e1 Bug 1323912 - Part 1. Rename PaintBackground to PaintStyleImageLayer. r=mstange
MozReview-Commit-ID: GWuII34t0j7

--HG--
extra : rebase_source : 4b08672f76c57562b9ab46d6605611d99aa64cf0
2017-01-03 11:57:13 +08:00
Hiroyuki Ikezoe
0e03cf5f82 Bug 1328535 - Remove range-checking assertion for aDilutionRatio, in color animation code. r=dholbert
Some cubic-bezier functions, e.g. cubic-bezier(0,-0.5,0,0), produce values out
of range of [0, 1].

MozReview-Commit-ID: 9ZTsTRTcUaI

--HG--
extra : rebase_source : 7edf0c4d2702a502a9c0422be83ce7229751e815
2017-01-05 09:05:57 +09:00
Phil Ringnalda
d105fd40fd Merge m-c to autoland 2017-01-04 19:01:49 -08:00
Iris Hsiao
53e5ead7ef Backed out changeset a44640701558 (bug 1323912) 2017-01-04 21:47:16 -05:00
Iris Hsiao
c8e876e89c Backed out changeset c868ab532766 (bug 1323912) 2017-01-04 21:47:12 -05:00
Iris Hsiao
f3fabb8956 Backed out changeset 71c136b30a4d (bug 1323912) 2017-01-04 21:47:08 -05:00
Iris Hsiao
6989ec2d7a Backed out changeset a2f133998adf (bug 1323912) 2017-01-04 21:47:05 -05:00
Iris Hsiao
d569188dd7 Backed out changeset b3ad53915c5e (bug 1323912) 2017-01-04 21:47:01 -05:00
Iris Hsiao
5757a6b248 Backed out changeset 5de8385ec973 (bug 1323912) for bustage on OSX 2017-01-04 21:46:58 -05:00
Phil Ringnalda
c83d1d7ce9 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 51FMtH1yTe6
2017-01-04 18:33:32 -08:00
Mats Palmgren
23f36915e8 Bug 1328095 - Reftest (also covers bug 1232194). 2017-01-04 21:35:19 +01:00
Mats Palmgren
51a67d7f24 Bug 1328095 - [writing-mode] Make JoinBoxesForVerticalSlice use logical coordinates (and rename it JoinBoxesForBlockAxisSlice accordingly). r=jfkthame 2017-01-04 21:35:19 +01:00
Boris Zbarsky
e080ecc8e9 Bug 1298588 part 16. Remove StyleStructContext. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky
e95482db38 Bug 1298588 part 15, gecko piece. Rip out the initial() methods on style structs in stylo. r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky
85a6ca2630 Bug 1298588 part 10, gecko piece. Pass through useful default styles to apply_declarations(). r=bholley 2017-01-04 14:52:27 -05:00
Boris Zbarsky
99d2e96def Bug 1298588 part 9, gecko piece. Pass through useful default styles to cascade(). r=bholley 2017-01-04 14:52:27 -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
bd53996269 Bug 1298588 part 6, gecko piece. Stop using initial_values when doing inheritance 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
a3a6e58c68 Bug 1298588 part 2, gecko piece. Pass through an nsPresContext to the PerDocumentStyleData constructor. 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
e7cc649f98 Bug 1323912 - Part 6. Test cases. r=mstange
mask-opacity-1d.hmtl: vertify the change in Part 4. Before we land Part 4, the
rendering result in FF is not correct.
mask-opacity-1e.hmtl: vertify the change in Part 5.

MozReview-Commit-ID: GcbDCvr9ttF

--HG--
extra : rebase_source : 842616602e1511cfebd7db5294c3937a6adb50e2
2017-01-04 14:16:06 +08:00
cku
8c03e0e5d4 Bug 1323912 - Part 5. Apply opacity in mask layer painting path. r=mstange
MozReview-Commit-ID: HX2Tcum2smO

--HG--
extra : rebase_source : 8a28c67b898efbea304d71709c0fd13e25632032
2017-01-03 17:12:32 +08:00
cku
1aaf3f65d2 Bug 1323912 - Part 4. Apply opacity in indirect image mask painting path. r=mstange
MozReview-Commit-ID: IKKKMccyMsO

--HG--
extra : rebase_source : aaaf45dacac16fae7dc1a05529125b195de1b3cd
2017-01-03 16:35:17 +08:00
cku
c834e9f24d Bug 1323912 - Part 3. Pass opacity in gradient-mask painting path. r=mstange
MozReview-Commit-ID: E2RdOHGoia8

--HG--
extra : rebase_source : 5242b694dc33121fc10fa1933a8168f0aa444723
2017-01-04 01:05:05 +08: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
cku
e36c492419 Bug 1323912 - Part 1. Rename PaintBackground to PaintStyleImageLayer. r=mstange
MozReview-Commit-ID: GWuII34t0j7

--HG--
extra : rebase_source : f74e9d242e2ef505790575cd12e0a58cc07ec44f
2017-01-03 11:57:13 +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
Xidorn Quan
801cd27579 Bug 1303241 part 1 - Move visited-dependent style fields into a list file. r=dbaron
MozReview-Commit-ID: K4kc8ByNGoT

--HG--
extra : rebase_source : 0225be937ea2706ec43f56211550b966859afc8c
2017-01-05 11:22:36 +11:00
Botond Ballo
e8cc185f9d Bug 1326290 - Correct sequencing of layer transaction and StartAsyncScrollbarDrag messages. r=kats
In cases where a mouse click that starts a scrollbar drag is also what
layerizes the scroll frame, the StartAsyncScrollbarDrag message needs to
arrive after the layer transaction. This patch ensures it does.

MozReview-Commit-ID: A02qRb6yWxg

--HG--
extra : rebase_source : 3517e8c8a578a0bd257a80bb8cb81303d171bb6c
2017-01-04 13:42:36 -05:00
Jonathan Watt
eb5cbfaadf Bug 1328508 - Increase the print watchdog timer for debug builds, and add some warnings to make watchdog timeouts visible. r=bobowen 2016-12-19 10:12:39 +00:00
Carsten "Tomcat" Book
bf21cb8f03 Merge mozilla-central to mozilla-inbound 2017-01-04 16:18:24 +01:00
Carsten "Tomcat" Book
b4e6d275b7 merge mozilla-inbound to mozilla-central a=merge 2017-01-04 16:09:56 +01:00
Andrea Marchesini
bc98b07905 Bug 1322550 - Rename DOMStorage to Storage, r=smaug
--HG--
rename : dom/storage/DOMStorage.cpp => dom/storage/Storage.cpp
rename : dom/storage/DOMStorage.h => dom/storage/Storage.h
rename : dom/storage/DOMStorageCache.cpp => dom/storage/StorageCache.cpp
rename : dom/storage/DOMStorageCache.h => dom/storage/StorageCache.h
rename : dom/storage/DOMStorageDBThread.cpp => dom/storage/StorageDBThread.cpp
rename : dom/storage/DOMStorageDBThread.h => dom/storage/StorageDBThread.h
rename : dom/storage/DOMStorageDBUpdater.cpp => dom/storage/StorageDBUpdater.cpp
rename : dom/storage/DOMStorageDBUpdater.h => dom/storage/StorageDBUpdater.h
rename : dom/storage/DOMStorageIPC.cpp => dom/storage/StorageIPC.cpp
rename : dom/storage/DOMStorageIPC.h => dom/storage/StorageIPC.h
rename : dom/storage/DOMStorageManager.cpp => dom/storage/StorageManager.cpp
rename : dom/storage/DOMStorageManager.h => dom/storage/StorageManager.h
rename : dom/storage/DOMStorageObserver.cpp => dom/storage/StorageObserver.cpp
rename : dom/storage/DOMStorageObserver.h => dom/storage/StorageObserver.h
2017-01-04 14:53:01 +01:00
Phil Ringnalda
8b917c2dd0 Merge m-c to autoland 2017-01-03 18:45:51 -08:00
Phil Ringnalda
82ebc0c5ea Merge m-i to m-c, a=merge
MozReview-Commit-ID: FEe5yZfka5J
2017-01-03 18:40:26 -08:00