Cameron McCormack
ff6a816c75
Bug 1238403 - Fix inconsistent indenting in layout/style/. r=xidorn
2016-01-11 10:28:35 +11:00
Daniel Holbert
132f908817
Bug 1208344 part 5: Add (preffed-off) support for "-webkit-box-orient" CSS property, as a writing-mode-dependent alias for "flex-direction". r=heycam
2015-12-30 23:36:31 -08:00
Daniel Holbert
c26c8cde8f
Bug 1208344 part 4: Make MapSinglePropertyInto() take the source property as an arg (unused for the moment). r=heycam
2015-12-30 23:36:31 -08:00
Daniel Holbert
be1d98bd1c
Bug 1208344 part 3: Rename MapSinglePropertyInto() args, to make src-vs-target distinctions clearer. r=heycam
2015-12-30 23:36:31 -08:00
Daniel Holbert
2cda1a5c96
Bug 1208344 part 2: Make EnsurePhysicalProperty() (not its callers) check whether property is logical. r=heycam
2015-12-30 23:36:31 -08:00
Daniel Holbert
dccbc0f8e4
Bug 1208344 part 1: Make EnsurePhysicalProperty() return the property directly, instead of using in/out-param. r=heycam
2015-12-30 23:36:31 -08:00
Cameron McCormack
2f1046d287
Bug 1216043 - Rename nsStyleSheet::sheetType and make it an enum class. r=dbaron
...
The only substantive change here, apart from a few variables changing in
size from uint16_t to uint8_t, is FontFaceSet's use of SheetType::Unknown
(0xFF) instead of 0 for FontFaceRecords for script-created FontFaces.
2015-10-20 10:16:20 +11:00
Gijs Kruitbosch
8884b0618e
Bug 1207084 - keep sheet level on tokenstream for use in ruledata when resolving variables, to fix hcm issues with CSS variables, r=heycam
...
--HG--
extra : commitid : LOEulYWs1jS
extra : rebase_source : b9741e3bc6a4a762a2f6295d8d81069aca66745f
extra : amend_source : 13dd115d63546f57127fe65163c2aaacf8c6b043
2015-09-26 23:51:42 +02:00
Seth Fowler
59f5f53a8b
Bug 1181907 (Part 3) - Add CSSVariableImageTable and use it to store ImageValues generated by CSS variables. r=heycam
2015-08-26 18:19:38 -07:00
Cameron McCormack
81c7895606
Bug 968923 - part 3d - record use counter information from the CSS parser; r=dbaron
2015-06-03 15:21:24 -04:00
Cameron McCormack
ede6238ef4
Bug 804975 - Part 4: Cache reset structs on rule nodes for different font-size or writing mode values. r=dbaron
2015-06-23 11:48:18 +10:00
Cameron McCormack
225f3dd70d
Bug 804975 - Part 2: Add a RuleNodeCacheConditions class and use it instead of a boolean canStoreInRuleTree during style computation. r=dbaron
2015-06-23 11:48:18 +10:00
Cameron McCormack
04722fa8f9
Bug 1120300 - Export WritingModes.h as mozilla/WritingModes.h. r=jfkthame
2015-03-26 18:29:31 +11:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Cameron McCormack
0c9d4ac32b
Bug 1121768 - Part 3: Look at all subproperties (not just content-visible ones) in nsCSSExpandedDataBlock methods. r=dbaron
...
We need to ensure we transfer (or clear) all subproperties of a
shorthand that is only enabled in UA style sheets or in certified apps.
Otherwise, the shorthand will parse correctly and get stored on the
nsCSSExpandedDataBlock but the transfer (or clear) method will skip
all of the subproperties.
2015-01-17 15:55:07 +11:00
Cameron McCormack
b6fbc240b2
Bug 1121768 - Part 2: Give CSSPROPS_FOR_SHORTHAND_SUBPROPERTIES an nsCSSProps::EnabledState argument. r=dbaron
2015-01-17 15:55:07 +11:00
Cameron McCormack
c6ef584ad1
Bug 1120284 - Part 5: Support logical axis properties. r=dbaron
2015-01-17 15:43:20 +11:00
Cameron McCormack
e213d872b9
Bug 1120284 - Part 1: Define logical property groups more explicitly. r=dbaron
2015-01-17 15:43:20 +11:00
Cameron McCormack
cf8408ead3
Bug 1083134 - Part 3.1: Cascade block-axis logical properties with their physical equivalents. r=dbaron
2015-01-17 15:22:51 +11:00
Cameron McCormack
4492448c51
Bug 649142 - Part 5: Convert logical border properties. r=dbaron
2015-01-17 15:16:02 +11:00
Cameron McCormack
8184e4e1ed
Bug 649142 - Part 4: Convert logical margin properties. r=dbaron
2015-01-17 15:16:02 +11:00
Cameron McCormack
ef9c6fb6bd
Bug 649142 - Part 3: Convert logical padding properties. r=dbaron
...
Here we convert the logical padding properties into their new resolved-at-
cascade-time implementations. This involves:
* converting -moz-padding-{start,end} into logical longhand properties
* adding padding-inline-{start,end} aliases for -moz-padding-{start,end}
* converting padding-{left,right} into longhand properties
* removing padding-{left,right}-value and
padding-{left,right}-{ltr,rtl}-source internal properties
The CSS parser and various tests are simplified a bit as a result.
2015-01-17 15:16:02 +11:00
Cameron McCormack
d78531ffb7
Bug 649142 - Part 2: Convert logical properties to their physical equivalents during the cascade. r=dbaron
...
We will add cases to EnsurePhysicalProperty's switch statement as we
convert the existing shorthand-implemented logical properties to the
new, CSS_PROPERTY_LOGICAL-bearing properties.
2015-01-17 15:16:01 +11:00
Phil Ringnalda
41cdae473a
Back out 9 changesets (bug 649142)
...
Backed out changeset 936703c75200 (bug 649142)
Backed out changeset b0252d2620d8 (bug 649142)
Backed out changeset 69ddb2036c50 (bug 649142)
Backed out changeset 67748675e669 (bug 649142)
Backed out changeset 15ed55c61f4e (bug 649142)
Backed out changeset 35c42cd138e1 (bug 649142)
Backed out changeset 1335630cf287 (bug 649142)
Backed out changeset b5725cd39a31 (bug 649142)
Backed out changeset b0eb691d6695 (bug 649142)
2014-12-30 20:04:20 -08:00
Cameron McCormack
324837a87d
Bug 649142 - Part 5: Convert logical border properties. r=dbaron
2014-12-31 12:18:15 +11:00
Cameron McCormack
246dccd863
Bug 649142 - Part 4: Convert logical margin properties. r=dbaron
2014-12-31 12:18:14 +11:00
Cameron McCormack
c1366ac48c
Bug 649142 - Part 3: Convert logical padding properties. r=dbaron
...
Here we convert the logical padding properties into their new resolved-at-
cascade-time implementations. This involves:
* converting -moz-padding-{start,end} into logical longhand properties
* adding padding-inline-{start,end} aliases for -moz-padding-{start,end}
* converting padding-{left,right} into longhand properties
* removing padding-{left,right}-value and
padding-{left,right}-{ltr,rtl}-source internal properties
The CSS parser and various tests are simplified a bit as a result.
2014-12-31 12:18:14 +11:00
Cameron McCormack
8c1da42424
Bug 649142 - Part 2: Convert logical properties to their physical equivalents during the cascade. r=dbaron
...
We will add cases to EnsurePhysicalProperty's switch statement as we
convert the existing shorthand-implemented logical properties to the
new, CSS_PROPERTY_LOGICAL-bearing properties.
2014-12-31 12:18:13 +11:00
Cameron McCormack
ddd94333b7
Bug 649145 - Store properties on nsCSSCompressedDataBlocks in declaration order. r=dbaron
2014-12-19 14:32:34 +11:00
Cameron McCormack
2b8efd3f5d
Bug 950436 - Store ImageValues that resulted from re-parsing a nsCSSValueTokenStream on that object. r=dbaron
2014-03-18 20:11:14 +11:00
Cameron McCormack
7eb5d97a49
Bug 773296 - Part 17: Resolve property values that have variable references at computed value time. r=dbaron
...
This re-parses property values at computed value time if
they had a specified value that was a token stream. We add
a function nsRuleNode::ResolveVariableReferences that looks
at all the values in the nsRuleData and calls in to a new
nsCSSParser::ParsePropertyWithVariableReferences function if they have a
token stream value.
We add a nsCSSExpandedDataBlock::MapRuleInfoInto function that will
take the re-parsed property value and copy it back into the nsRuleData.
nsRuleNode::ResolveVariableReferences returns whether any variables
were attempted to be resolved, so that nsRuleNode::WalkRuleTree wil
recompute the rule detail in case any became 'inherit'.
2013-12-12 13:09:44 +11:00
Cameron McCormack
d0bc28c55f
Bug 773296 - Part 15: Factor out mapping of a single property from an nsCSSCompressedDataBlock to an nsRuleData. r=dbaron
...
This factors out the part of nsCSSCompressedDataBlock::MapRuleInfoInto
that starts image loading and maybe-copies an nsCSSValue into
an nsRuleData. We will need this functionality for mapping re-parsed
properties that had variable references into an nsRuleData, which
will be done from an nsCSSExpandedDataBlock.
2013-12-12 13:09:43 +11:00
Ehsan Akhgari
35ff0cae16
Bug 938123 - Build layout/style in unified mode; r=roc
2013-11-14 21:42:57 -05:00
Ehsan Akhgari
7bb8ab1a35
Bug 923151 - Part 2: Don't #include nsIDocument.h in mozilla/dom/Element.h; r=jst
...
--HG--
extra : rebase_source : 8c5f5429574313a1304eb2779cdb6b5702e4094d
2013-10-02 16:09:18 -04:00
Catalin Iacob
6f4758d23e
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Kyle Huey
06324078f4
No bug: Eradicate some nsnulls.
2012-08-14 13:34:20 -07:00
Kyle Huey
2e07e6f8c2
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-08-13 15:04:19 -07:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
L. David Baron
2cf7788598
Serialize border-image shorthand to shortest form, with the exception that we'll always serialize 'border-image-source'. (Bug 713643, patch 1) r=bzbarsky
2012-05-30 22:19:49 -07:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Kyle Huey
5e3fddb58d
Back out Bug 679230 due to Android reftest failures.
2012-04-07 10:36:49 -07:00
Kyle Huey
dd495263dd
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-04-07 08:58:41 -07:00
Nicholas Nethercote
092c8b03a9
Bug 712865 - Avoid some padding nsCSSCompressedDataBlock by storing nsCSSValue and nsCSSProperty elements separately (2nd attempt). r=dbaron.
2012-03-19 01:39:15 -07:00
Nicholas Nethercote
204ccd37e5
Backed out changeset c880f229fbf5 (bug 712865) due to build bustage. r=me.
2012-03-18 22:53:20 -07:00
Nicholas Nethercote
f62f7cea29
Bug 712865 - Avoid some padding nsCSSCompressedDataBlock by storing nsCSSValue and nsCSSProperty elements separately. r=dbaron.
...
--HG--
extra : rebase_source : 83dc6eff5e5500fa0dffc0e07d731941ee9e8122
2012-03-18 16:28:08 -07:00
Nicholas Nethercote
0709e1673b
Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron.
2012-01-02 18:19:14 -08:00
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00