Commit Graph

9274 Commits

Author SHA1 Message Date
Manish Goregaokar [:manishearth]
c513d33161 Bug 1288383 - "Replace clip-path, box-shadow, float-edge, and user-focus consts with enum classes" bustage fix. a=tomcat 2016-07-25 02:27:00 +02:00
Manish Goregaokar
52b9ca33f3 Bug 1288383 - Replace NS_STYLE_USER_FOCUS_* with an enum class; r=heycam
MozReview-Commit-ID: A7BYcfsn1tI

--HG--
extra : rebase_source : b893331b173a306143e546f0d403ae25f827fae2
2016-07-25 11:56:40 +05:30
Manish Goregaokar
d78a51cbcc Bug 1288383 - Replace NS_STYLE_FLOAT_EDGE_* with an enum class; r=heycam
MozReview-Commit-ID: FrH5kGWeXkL

--HG--
extra : rebase_source : 73c3446ba07f31f3fbfb6eca304ebe88cccf359a
2016-07-25 11:56:05 +05:30
Manish Goregaokar
b3653dd18e Bug 1288383 - Replace NS_STYLE_BOX_SHADOW_* and NS_STYLE_BASIC_SHAPE_* with enum classes; r=heycam
MozReview-Commit-ID: EgC9rPNXbod

--HG--
extra : rebase_source : 8bd51a9bd776c02979093a0ec76cfc42bcee8ffd
2016-07-25 11:53:27 +05:30
Manish Goregaokar
f4dffe63a1 Bug 1288383 - Replace NS_STYLE_CLIP_PATH_* with an enum class; r=heycam
MozReview-Commit-ID: H6nwOybonF3

--HG--
extra : rebase_source : db3ab986f7708540219cefa18a21b4624a2dc27a
2016-07-25 11:52:34 +05:30
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Cameron McCormack
d4b9fb7cfb Fix enum indentation; no bug.
MozReview-Commit-ID: 27Qpn9fG41U
2016-07-22 10:23:25 +08:00
Emilio Cobos Álvarez
253dfd8aad Bug 1287951: stylo: Add support for computing style hints from Servo. r=heycam
MozReview-Commit-ID: ALuJxcfAMuL
2016-07-21 16:57:52 -07:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Ting-Yu Lin
820f88de49 Bug 1277129 Part 1c - Rename nsHTMLReflowState to ReflowInput. r=dbaron
This patch is generated by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename nsHTMLReflowState ReflowInput

MozReview-Commit-ID: 9r9vdVv1pXc

--HG--
extra : rebase_source : 623ec822996ba0ea0058dd137acf5a658cdea04a
2016-07-21 18:36:35 +08:00
Ting-Yu Lin
d444310eb1 Bug 1277129 Part 1b - Rename nsHTMLReflowState.h/cpp to ReflowInput.h/cpp and fix #includes. r=dbaron
The #includes are fixed by the following script:

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "nsHTMLReflowState\.h" "mozilla\/ReflowInput\.h"

MozReview-Commit-ID: FjwHA4YRHNv

--HG--
rename : layout/generic/nsHTMLReflowState.cpp => layout/generic/ReflowInput.cpp
rename : layout/generic/nsHTMLReflowState.h => layout/generic/ReflowInput.h
extra : rebase_source : e4215620717df436a51243cee689286cfabc7c71
2016-07-21 18:36:34 +08:00
Chris Peterson
b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Hiroyuki Ikezoe
7b1125457a Bug 1282076 - Store all non-inherited structs which are stored on the rule node on the style context if we have animation data. r=heycam 2016-07-21 06:12:41 +09:00
Carsten "Tomcat" Book
241ae512ec Merge mozilla-central to autoland 2016-07-20 11:24:44 +02:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
cku
4d83e423f5 Bug 1235494 - Optimize nsStyleImageLayers::Layer::CalcDifference r=dbaron
MozReview-Commit-ID: K8lxA8S4EW2

--HG--
extra : rebase_source : 229f90c65ab204330063b09314e83fbfdb2727cc
2016-07-19 12:35:44 +08:00
Thomas Wisniewski
051c21928e Bug 843579 - Unprefix -moz-any-link. r=bz
--HG--
extra : rebase_source : d5ad8227cc118491f130e1fef01829c594cc9477
2016-07-19 23:13:13 -04:00
Manish Goregaokar
8add405354 Bug 1287755 - Replace NS_STYLE_CLIP_SHAPE_SIZING_* with an enum class; r=heycam
MozReview-Commit-ID: KutLb8H9JOk

--HG--
extra : rebase_source : ae38fcb7ebc8c6d5a8c77c773c8706580e41040c
2016-07-20 11:12:42 +05:30
Cameron McCormack
c233ad3334 Bug 1287382 - Hook up the 1-arg version of CSS.supports() to the Servo backend. r=dholbert
MozReview-Commit-ID: EDQGXOVgWEC

--HG--
extra : rebase_source : 66583e4a5961404d9c6da9a21466041d710a87ed
2016-07-18 16:29:04 +08:00
Cameron McCormack
037f4f8a4b Bug 1287383 - Support style="" attributes longer than 255 characters when using the Servo style backend. r=emilio
MozReview-Commit-ID: 9o5Go7lnAhG

--HG--
extra : rebase_source : 822420930ae7c74f56258a82d90cf3b46c7317c9
2016-07-18 16:36:59 +08:00
Jeremy Chen
9d8ddf9b2d Bug 1287308 - part1: replace uses of NS_STYLE_HINT_NONE with nsChangeHint(0). r=dbaron
MozReview-Commit-ID: CN66AimiuEu

--HG--
extra : rebase_source : 6caaa30e9afa8645ea31c4918230ba2ec53bc74a
2016-07-17 22:20:21 +08:00
Carsten "Tomcat" Book
a0992595d6 merge mozilla-inbound to mozilla-central a=merge 2016-07-17 10:08:08 +02:00
Emilio Cobos Álvarez
f526a25d70 Bug 1286445: Stub out HasStateDependentStyle. r=heycam
MozReview-Commit-ID: CbHfVNHFVS3
2016-07-16 16:22:12 -07:00
Emilio Cobos Álvarez
1a49c35a07 Bug 1286445: stylo: Support restyles of non-pseudo content on state change. r=heycam
This includes, for example :hover.

Also removes the call to IsStyledByServo() in the document constructor, it's not
only unnecessary, but also we call UpdateStyleBackendType() too early.

MozReview-Commit-ID: 4YfCdmLoSxu
2016-07-16 16:22:12 -07:00
Kartikaya Gupta
504b319a29 Bug 1287185 - Disable paint skipping for scrollframes with background-attachment:local. r=mstange
MozReview-Commit-ID: GMgIyxUd20c

--HG--
extra : rebase_source : 2fec3dd0a02aa0ab6eab69e9e6ee6229863be10e
2016-07-15 15:56:39 -04:00
Carsten "Tomcat" Book
7c0644d587 Merge mozilla-central to mozilla-inbound 2016-07-14 11:56:37 +02:00
Carsten "Tomcat" Book
bfcc10319e merge mozilla-inbound to mozilla-central a=merge 2016-07-14 11:45:54 +02:00
Boris Zbarsky
63c6b08058 Bug 790997. Align our tokenization of CSS bad-url-token with the CSS Syntax Level 3 CR. r=heycam,tromey
The main change is that once we discover we have a bad-url-token we consume
everything up to, but not including, the next ')' character.  While we do this
we can cross line boundaries and don't bother about matching braces or quotes.
We just keep going until we find the ')' or hit EOF.
2016-07-13 22:54:20 -04:00
Carsten "Tomcat" Book
564f508e43 merge mozilla-inbound to mozilla-central a=merge 2016-07-13 17:27:34 +02:00
cku
8f3fdeb04e Bug 1286299 - Fix getComputedStyle value of a local URI mask-image. r=dholbert
MozReview-Commit-ID: 9gXE4bQrMTG

--HG--
extra : rebase_source : 55cd76b93a4c7b2a9b495fb63f1630313a595497
2016-07-13 22:08:33 +08:00
Hiroyuki Ikezoe
cf0599e349 Bug 1275142 - Ensure display style change is painted. r=birtles
MozReview-Commit-ID: 5CylqPdRFhE
2016-07-13 16:22:02 +09:00
cku
e25d5a9215 Bug 1286337 - Part 2. Update initial_values of background and mask in property_database.js r=heycam
MozReview-Commit-ID: CgRUeCphr17

--HG--
extra : rebase_source : 48de097b3ea8b6beb2e0c62d4026b8a469233670
2016-07-13 10:44:04 +08:00
cku
cb324e82b1 Bug 1286337 - Part 1. Correct default value of mask-origin. r=heycam
MozReview-Commit-ID: G8qfOLEHsj3

--HG--
extra : rebase_source : 73accaf8fd04118860930b4150314a31c00a1368
2016-07-13 03:22:36 +08:00
Carsten "Tomcat" Book
66a84ab34f Merge mozilla-central to autoland 2016-07-12 16:45:24 +02:00
Hiroyuki Ikezoe
123f9c80bd Bug 1278485 - Part 1: Limit y1 and y2 control points for cubic-bezier to avoid overflows. r=birtles
MozReview-Commit-ID: Bls260r7Sqn

--HG--
extra : rebase_source : bd836b8bd0666ce5c387aeb91149587d93db386d
2016-07-12 16:24:42 +09:00
Carsten "Tomcat" Book
bd92616152 merge mozilla-inbound to mozilla-central a=merge 2016-07-11 16:21:15 +02:00
Carsten "Tomcat" Book
0d2c8ddbb2 Merge mozilla-central to autoland 2016-07-11 11:51:22 +02:00
Hiroyuki Ikezoe
2b220f490f Bug 1285407 - Part 3: Remove UpdateCascadeResults call because it's called against the same nsStyleContext from MaybeUpdateAnimationRule. r=birtles
MozReview-Commit-ID: FrrFLq9S2f4

--HG--
extra : rebase_source : 20d9329b0b801fa78cf8889f404a6cc0ac011a69
2016-07-11 17:28:17 +09:00
Hiroyuki Ikezoe
495f6aae06 Bug 1285407 - Part 1: Pass a newly created nsStyleContext to GetAnimationRule and MaybeUpdateAnimationRule. r=birtles
While resolving style context, the primary frame of the target element
has previous style context so if we don't pass the newly created nsStyleContext,
UpdateCascadeResults uses the previous style to get overridden properties, it
will result unexpected cascading results.

MozReview-Commit-ID: osqXQlP43X

--HG--
extra : rebase_source : 1b34f9245367c2613807156559f09f5f2943458c
2016-07-11 17:28:14 +09:00
Chris Peterson
43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Carsten "Tomcat" Book
c5e638ab8c Merge mozilla-central to mozilla-inbound 2016-07-08 12:16:57 +02:00
Carsten "Tomcat" Book
75e7b5bab2 merge fx-team to mozilla-central a=merge 2016-07-08 11:57:15 +02:00
Wes Kocher
86a74db006 Merge m-c to autoland, a=merge 2016-07-07 17:36:17 -07:00
Jonathan Chan
1a5bdaf720 Bug 1285365 - Part 2: Add missing includes and namespace qualifiers. r=dholbert
MozReview-Commit-ID: 5vDmc1yGe1P

--HG--
extra : rebase_source : 32900ffc0d09943f85bbe5c289f2ce6cede20c47
2016-07-07 14:05:28 -07:00
Jonathan Chan
50f570bb20 Bug 1285365 - Part 1: Remove trailing whitespace from nsCSSParser. r=dholbert
MozReview-Commit-ID: HNHfHK3d2BR

--HG--
extra : rebase_source : e105c292aa8a55c8a9fc068d548866241582e162
2016-07-07 14:05:23 -07:00
Masayuki Nakano
fb4c83aca3 Bug 1260651 part.31 Rename AddStyleSheetTxn and RemoveStyleSheetTxn to mozilla::AddStyleSheetTransaction and mozilla::RemoveStyleSheetTransaction r=mccr8
This patch also moves ImplCycleCollectionTraverse() and ImplCycleCollectionUnlink() to mozilla namespace for avoiding bustage due to confusion caused by "using namespace" in other unified cpp files.

MozReview-Commit-ID: GekPlZnqLs9

--HG--
rename : editor/libeditor/nsStyleSheetTxns.cpp => editor/libeditor/StyleSheetTransactions.cpp
rename : editor/libeditor/nsStyleSheetTxns.h => editor/libeditor/StyleSheetTransactions.h
2016-07-07 17:20:22 +09:00
Brian Birtles
3dedc86d90 Bug 1277908 - Keep visited rule node alive while creating non-visited style context; r=dholbert
MozReview-Commit-ID: Eqti28E14Jp

--HG--
extra : rebase_source : b1ab439dd85e87c11dcc5a85b70fcc21a48e328e
2016-07-08 13:17:42 +09:00
Gregory Szorc
f21ec324a6 Merge mozilla-central to mozilla-inbound 2016-07-06 18:30:58 -07:00
Bobby Holley
91a48b929e Bug 1283620 - Implement attribute API for servo. r=mrbkap 2016-07-07 09:59:09 -07:00
Bobby Holley
23e90f9834 Bug 1283620 - Hoist ValueIncludes into nsStyleUtil. r=mrbkap 2016-07-07 09:59:07 -07:00