Joshua Cranmer
c7aade5e1f
Bug 856108 - Port static analyses to clang, part 2e: use MOZ_STACK_CLASS in layout. r=mats
2013-04-11 22:20:45 -05:00
David Creswick
d2652476ca
Bug 856317 - Expose the column number of style rules via inIDOMUtils. r=dbaron
2013-04-06 12:38:56 -05:00
L. David Baron
00a602afdd
Bug 804944, patch 2: Also condition @-moz-keyframes parsing on the animations preference. r=bzbarsky
2013-03-13 09:58:39 -07:00
L. David Baron
6260684dc2
Backout changeset 6ff3de859ce3 (bug 804944), which depended on an unlanded patch that I currently have tagged for bug 784461.
2013-03-10 12:54:09 -07:00
L. David Baron
420637e091
Bug 804944, patch 2: Also condition @-moz-keyframes parsing on the animations preference. r=bzbarsky
2013-03-10 12:44:13 -07:00
L. David Baron
912f8e570f
Bug 570896: Allow separate background-origin and background-clip to be set in the background shorthand. r=bzbarsky
2013-03-07 17:59:32 -08:00
David Zbarsky
2c3499b66c
[Bug 847110] Fix up includes in layout/style r=dbaron
2013-03-02 19:31:48 -05:00
L. David Baron
27140199ac
Bug 841983: Require whitespace around 'not', 'and', and 'or' keywords in @supports rules. r=heycam
...
Matches spec change in https://dvcs.w3.org/hg/csswg/rev/34b185ae3bac .
2013-02-16 21:29:38 -08:00
Zack Weinberg
781c8690dc
Bug 543151, part A2: Introduce the new peek/advance API and reimplement the old read/pushback API on top of it. r=heycam
2013-02-16 18:27:53 -05:00
Zack Weinberg
ad3efbd714
Bug 543151, part A1: Preliminary cleanups to the scanner/parser interface and the organization of nsCSSScanner.cpp. r=heycam
2013-02-16 18:27:53 -05:00
L. David Baron
f8ff60d603
Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky
...
This implements the proposed spec clarification in
http://lists.w3.org/Archives/Public/www-style/2013Feb/0229.html which
makes us compatible with WebKit on the insertRule tests in this patch.
I confirmed that the test reports 7 failures without the patch, but
passes with the patch. (I'm a little disturbed by the way our
testharness.js integration elides runs of successive passes.)
2013-02-09 22:56:49 -08:00
L. David Baron
a860d586f9
Bug 835007: Make 'transition-property: all' work as an item within a list. r=bzbarsky
...
No changes to the transition manager are needed since
nsTransitionManager::StyleContextChanged already makes the appropriate
calls to ConsiderStartingTransition for 'all', and that existing code
should work fine within a loop (just like the existing code to handle
shorthands or other property duplication works).
2013-02-09 22:56:49 -08:00
Mounir Lamouri
78aa4c4e95
Bug 819871 - Make ":-moz-placeholder" parsable but without any effect on styling. r=dbaron,bz
2013-01-24 09:30:28 +00:00
Cameron McCormack
572084f298
Bug 828805 - Implement SVG paint-order property. r=bz,roc
2013-01-13 10:27:53 +11:00
Seth Fowler
221cb13546
Bug 811391 - Part 1: Ignore @page declarations involving viewport units. r=dbaron
...
* * *
Bug 811391 followup: Fix out-of-order init list, to fix build warning (treated as error).
2013-01-09 16:03:55 -08:00
Ehsan Akhgari
4754760218
Backed out 2 changesets (bug 811391) because of build bustage
...
Backed out changeset c20904b75bcc (bug 811391)
Backed out changeset f0a00bf2ba8e (bug 811391)
2013-01-12 16:05:11 -05:00
Seth Fowler
ecc937ddc1
Bug 811391 - Part 1: Ignore @page declarations involving viewport units. r=dbaron
2013-01-09 16:03:55 -08:00
John Daggett
bd63b0c4bd
Bug 605231 - Don't parse unquoted reserved keywords 'initial' or 'default' in font family names. r=dbaron
2013-01-08 17:13:17 +09:00
John Daggett
9c000701a5
Bug 605231 - Move transform parsing code out of font property parsing code. r=dbaron
2013-01-08 17:13:17 +09:00
Cameron McCormack
6183878252
Bug 779917 - Implement CSS.supports(). r=dbaron f=bz
2012-11-25 11:26:07 +11:00
Makoto Kato
5434e5c023
Bug 824654 - Remove duplicated class define to fix bustage on Win64 builder. r=heycam
2012-12-26 13:44:12 +09:00
Cameron McCormack
d573577ec8
Bug 814566 - Allow invalid syntax (with balanced parentheses) inside @supports conditions. (v1.1.1) r=dbaron
2012-12-23 13:30:55 +11:00
Cameron McCormack
b7b0364bc8
Bug 807336 - Suppress CSS property parse errors inside failing @supports rules. r=dbaron
2012-11-06 13:59:25 +11:00
Jeff Walden
7146c23e80
Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger
2012-12-14 18:58:45 -05:00
Cameron McCormack
5923576757
Bug 815021 - Implement MediaRule.conditionText setter. r?
2012-11-27 16:30:31 +11:00
Ms2ger
93231bd4cf
Bug 812344 - Don't use a qualified enum in CSSParserImpl::ParseDeclaration; r=roc
2012-11-16 08:30:18 +01:00
Zack Weinberg
6f19a5ae15
Bug 455839: simplify the CSS error reporting API. r=dbaron
2012-11-15 11:36:15 -05:00
Zack Weinberg
faabfb1d5b
Bug 516091: Split CSS error reporting to its own file and class. Allows CSS scanner to become a stack object. r=dbaron
2012-11-15 11:36:15 -05:00
Brendan Dahl
d860d7b308
Bug 115199 - CSS2 @page rule style support. r=dbaron
2012-08-31 14:21:28 -07:00
Ryan VanderMeulen
8f46b7f654
Backed out changesets 0b6b3d2856a4 and 30776e402787 (bug 115199) for reftest failures.
2012-11-13 20:19:18 -05:00
Brendan Dahl
507304aa6c
Bug 115199 - CSS2 @page rule style support. r=dbaron
2012-08-31 14:21:28 -07:00
Daniel Holbert
259e82511a
Bug 790903: Accept unitless 0 as 'flex-basis' component in 'flex' shorthand. r=dbaron
2012-11-08 17:27:47 -08:00
Jet Villegas
3398141cef
Bug 806068 part 1: Add support for unprefixed "initial" keyword in CSS (retaining prefixed keyword as an alias, for now). r=dholbert
2012-10-30 16:40:33 +01:00
Seth Fowler
f07bf4e48c
Bug 503720: Implement vw/vh/vmin/vmax. r=dbaron
2012-10-19 16:21:06 -07:00
Emmanuele Bassi
13034b2dd7
Bug 784466 - [css3-animations] Drop declarations in keyframe rules that have !important. r=dbaron
2012-10-16 09:21:35 -07:00
Yu-Sian (Thomasy) Liu
49b91a54ac
Bug 594935: Add calc to parser, do calc in PaintGradient and add stop point to HasCalc(). r=bz
2012-10-03 22:31:56 -07:00
Simon Montagu
a6d148a96d
Add vendor prefix to :dir selector. Bug 562169, r=dbaron
2012-09-29 13:41:10 -07:00
L. David Baron
cf6c5ffdb1
Bug 774169, patch 4: Revert bug 719054 for prefixed -moz-transform but leave it for unprefixed transform. r=bzbarsky
2012-09-18 11:37:14 -07:00
L. David Baron
1359267ffc
Bug 774169, patch 3: Treat -moz-transform as a shorthand rather than an alias so the parsing function can know whether it is parsing a prefixed transform. r=bzbarsky
2012-09-18 11:37:14 -07:00
Anthony Ricaud
86f0e8ccbe
Bug 570326 - Add support for background-size in background shorthand property. r=dbaron
2012-09-16 20:20:15 -04:00
Edwin Flores
8a6015cf0d
Bug 719286 - Add support for -moz-objectValue keyword to CSS parser for SVG glyphs r=dbaron
2012-09-06 16:58:47 +12:00
Edwin Flores
32d64789ec
Bug 719286 - Add support for objectfill and objectstroke values to CSS parser r=dbaron
2012-09-06 16:58:46 +12:00
Thaddee Tyl
a7072eee3d
Bug 781032 - Fix a crash in CSSParserImpl::SetDefaultNamespaceOnSelector by creating the nsCSSParser at a valid spot. r=bz
2012-09-05 19:10:55 -04:00
L. David Baron
0660e180d6
Don't accept the third argument to transform-origin when 3-D transforms aren't enabled. (Bug 786706) r=mattwoodrow
2012-08-29 18:27:01 -07:00
Kyle Huey
1a68eab98d
Bug 783162: Make mapped attributes hold the image alive. r=bz
...
The nsCSSValue in nsGenericHTMLElement::MapBackgroundInto is a temporary. This causes a problem after Bug 697230 landed, because the nsCSSValue::Image we put into that value is destroyed once we're done doing style stuff. Previously the nsImageLoader would grab the request off the nsCSSValue::Image and hold it alive. Bug 697230 changed the behavior here; now when the nsCSSValue::Image is destroyed it tells the image loader to drop the request. The result is that all the references to the request are dropped and the frame is never told it has a background.
The solution is to keep the nsCSSValue::Image alive longer. This patch adds two new types of nsAttrValue. The first is an nsCSSValue::URL. A ParseBackgroundAttribute method is added on nsGenericHTMLElement that the relevant elements (body/td/th/table/tr/tbody/thead/tfoot) call that parses background into an nsCSSValue::URL. The second is an nsCSSValue::Image. nsGenericHTMLElement::MapBackgroundInto attempts to convert the nsCSSValue::URL into an nsCSSValue::Image by kicking off the image load. The result is that image loads are only started when the element is actually visible. This also mirrors the way background-image works. This also allows us to fix two longstanding bugs in this code. Since MapBackgroundInto doesn't have a pointer to the actual element, it relied on grabbing the principal of the document. Now we can grab the principal of the node in ParseBackgroundAttribute. MapBackgroundInto also has no way to get at the element's base URI (to honor xml:base), which is now possible in ParseBackgroundAttribute.
nsCSSValue::[Image|URL] have also been moved to be mozilla::css::[Image|URL]Value. nsAttrValue.h is included in external linkage code, so it can't include nsCSSValue.h to get the declarations of nsCSSValue::[Image|URL], and nested classes can't be forward declared. Moving the classes to a namespace solves the problem.
Finally some old inoperative quirks mode code was removed. This code has done nothing since Bug 273078 was landed in 2004.
2012-08-24 10:50:49 -07:00
Ehsan Akhgari
0fd9123eac
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
L. David Baron
62da7d5e53
Treat argument of :-moz-locale-dir() case-insensitively. (Bug 741293) r=smontagu
2012-08-20 22:41:47 -07:00
L. David Baron
d9baa3a527
Add missing SkipUntil call in @supports parsing. (Bug 782401) r=heycam
...
Fixes http://test.csswg.org/source/contributors/opera/submitted/css3-conditional/at-supports-030.html
2012-08-20 19:23:32 -07:00
Aryeh Gregor
0923bf00ef
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Simon Montagu
4d946e9779
Bug 562169. Add support for :dir(ltr/rtl) CSS selector, layout/style part, r=bz
2012-08-09 20:37:58 -07:00