Cameron McCormack
67d2e24c58
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
213b168902
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
e7f23f67c7
Bug 1120284 - Part 5: Support logical axis properties. r=dbaron
2015-01-17 15:43:20 +11:00
Cameron McCormack
eac53a72d1
Bug 1120284 - Part 1: Define logical property groups more explicitly. r=dbaron
2015-01-17 15:43:20 +11:00
Cameron McCormack
6feea39957
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
b6af6d3b71
Bug 649142 - Part 5: Convert logical border properties. r=dbaron
2015-01-17 15:16:02 +11:00
Cameron McCormack
a719267659
Bug 649142 - Part 4: Convert logical margin properties. r=dbaron
2015-01-17 15:16:02 +11:00
Cameron McCormack
380a5c4044
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
ca7e2d28e8
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
d866ff0386
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
73cc5f23f0
Bug 649142 - Part 5: Convert logical border properties. r=dbaron
2014-12-31 12:18:15 +11:00
Cameron McCormack
668e24d7c7
Bug 649142 - Part 4: Convert logical margin properties. r=dbaron
2014-12-31 12:18:14 +11:00
Cameron McCormack
ca96516c72
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
d18bf04b1f
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
63c4136d7e
Bug 649145 - Store properties on nsCSSCompressedDataBlocks in declaration order. r=dbaron
2014-12-19 14:32:34 +11:00
Cameron McCormack
43e23dac47
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
2784c9376f
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
615ac0aa43
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
bbdec43a44
Bug 938123 - Build layout/style in unified mode; r=roc
2013-11-14 21:42:57 -05:00
Ehsan Akhgari
fe4005d016
Bug 923151 - Part 2: Don't #include nsIDocument.h in mozilla/dom/Element.h; r=jst
2013-10-02 16:09:18 -04:00
Catalin Iacob
f88cdc0744
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
2013-06-23 14:03:39 +02:00
Ehsan Akhgari
243c878d26
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
78a92795ac
No bug: Eradicate some nsnulls.
2012-08-14 13:34:20 -07:00
Kyle Huey
cc6ea9a4c7
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-08-13 15:04:19 -07:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
L. David Baron
862641f67e
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
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Kyle Huey
75ce446ae2
Back out Bug 679230 due to Android reftest failures.
2012-04-07 10:36:49 -07:00
Kyle Huey
4cf42ddeb6
Bug 697230: Part 1 - Centralize style image observers. r=bz
2012-04-07 08:58:41 -07:00
Nicholas Nethercote
7b41df7335
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
d8b6146b70
Backed out changeset c880f229fbf5 (bug 712865) due to build bustage. r=me.
2012-03-18 22:53:20 -07:00
Nicholas Nethercote
c1a7c6b79b
Bug 712865 - Avoid some padding nsCSSCompressedDataBlock by storing nsCSSValue and nsCSSProperty elements separately. r=dbaron.
2012-03-18 16:28:08 -07:00
Nicholas Nethercote
4762ea78a3
Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron.
2012-01-02 18:19:14 -08:00
Ehsan Akhgari
478ad1a412
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
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Nicholas Nethercote
99e3120a28
Bug 681161 - Shrink nsCSSCompressedDataBlock on 64-bit platforms. r=dbaron.
2011-08-25 23:05:55 -07:00
Ed Morley
8ef40ffdbc
Bug 665686 - Fix unused variable warnings in layout/style/; r=dbaron
2011-06-22 12:00:56 -04:00
L. David Baron
729397a82d
Remove nsCSSDataBlock::kOffsetTable, which is no longer needed. (Bug 645620, patch 2) r=bzbarsky
2011-03-28 16:07:26 -07:00
L. David Baron
3c97f9e1bb
Replace use of nsCSS* structs in nsCSSExpandedDataBlock with an array of nsCSSValue. (Bug 645620, patch 1) r=bzbarsky
...
Note that this increases the size of nsCSSExpandedDataBlock by three
nsCSSValues for the three non-CSS properties.
2011-03-28 16:07:26 -07:00
L. David Baron
ae9ed0f5dd
Fix bustage from bug 636039, patch 13, by not trying to access stub entries in kOffsetTable for the CSS_PROP_STUB_NOT_CSS entries. (Bug 636039)
2011-03-17 21:58:26 -07:00
L. David Baron
d663aedaa5
Make the three CSS_PROP_INCLUDE_NOT_CSS properties much more like normal CSS properties, and (importantly) give them property IDs in the longhand range. Replace CSS_PROP_INCLUDE_NOT_CSS with CSS_PROP_STUB_NOT_CSS for callers that need stubs. (Bug 636039, patch 13) r=bzbarsky
2011-03-17 20:14:31 -07:00
L. David Baron
4bdad6c62f
Add 'parsevariant_' parameter to CSS_PROP macro, with all properties initially zero. (Bug 636029) r=bzbarsky
2011-03-05 09:58:33 -08:00
L. David Baron
5390791eac
Remove tracking of whether the font family comes from HTML, since we no longer use the information. (Bug 636040) r=jdaggett
2011-03-03 13:18:42 -08:00
Zack Weinberg
a37ffa9061
Bug 576044 (11/12): Make all assertions fatal in Declaration.h, Declaration.cpp, nsCSSDataBlock.h, nsCSSDataBlock.cpp, nsCSSValue.h, nsCSSValue.cpp, nsCSSProps.h, and nsCSSProps.cpp. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
0fcf337ff2
Bug 576044 (9/12): Add an AddLonghandProperty method to nsCSSExpandedDataBlock. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
50c7b05cf7
Bug 576044 (8/12): remove the last MoveValue call from the CSS parser. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
295db714ad
Bug 576044 (7/12): cleanup pass on css/Declaration.{h,cpp} and nsCSSDataBlock.{h,cpp}. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
cb445e7025
Bug 576044 (6/12): remove vestiges of nsCSSType. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
4d1c92a45d
Bug 576044 (5/12): eliminate ValueList as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00
Zack Weinberg
698cc2a773
Bug 576044 (4/12): eliminate ValuePairList as a storage type. r=dbaron a2.0=dbaron
2010-08-19 15:33:44 -04:00