Masayuki Nakano
060287addd
Bug 659533 Replace nsContentUtils::GetBoolPref() with Preferences::GetBool() r=roc
2011-05-25 15:31:59 +09:00
Matt Brubeck
ec953fc5a6
Merge cedar to mozilla-central
2011-05-24 14:55:37 -07:00
Daniel Holbert
639c0e7b79
Bug 658949 patch 0: Fix existing tests that use "#" in data URIs to use %23 instead. rs=bz
2011-05-24 17:39:57 +02:00
Mounir Lamouri
e97a7a4ee5
Back out bug 658949 because of perma orange on Windows Reftests.
2011-05-24 15:36:32 +02:00
Daniel Holbert
2d246fbdb2
Bug 658949 patch 0: Fix existing tests that use "#" in data URIs to use %23 instead. rs=bz
2011-05-24 03:36:31 -07:00
Boris Zbarsky
c9cdbb76ff
Bug 647885 part 2. Keep better track of whether our computed background-size was specified with percentages. r=dbaron a=sheriff
2011-05-23 16:36:18 -04:00
Boris Zbarsky
27927f6eb3
Bug 647885 part 1. Keep better track of whether our computed background-position was specified with percentages. r=dbaron
2011-05-23 16:36:18 -04:00
Dave Townsend
146777d0fd
Backing out bug 647885 due to mochitest oranges. a=backout
2011-05-23 15:52:50 -07:00
Mounir Lamouri
154ee5eb0e
Bug 644361 - Improve the progress bar rendering by using hexadecimal colors. r=bz,davidb
2011-05-23 22:51:03 +02:00
Boris Zbarsky
f2f06e377d
Bug 647885 part 2. Keep better track of whether our computed background-size was specified with percentages. r=dbaron
2011-05-23 16:36:18 -04:00
Boris Zbarsky
1fe0b5a5aa
Bug 647885 part 1. Keep better track of whether our computed background-position was specified with percentages. r=dbaron
2011-05-23 16:36:18 -04:00
Boris Zbarsky
6536e39816
Bug 658982. Go back to not allowing changes to line-height on inputs (but continue to allowing it for <button>s, for site compat reasons). r=dbaron
2011-05-23 12:18:32 -04:00
Matheus Kerschbaum
35f86c76ad
Bug 648911 - Remove support for non-libxul builds. r=ted,joedrew
2011-05-23 18:54:47 +02:00
Boris Zbarsky
c928fa0f85
Bug 529750 followup. Disable assert that actually fails at the moment to fix orange.
2011-05-23 19:47:35 -04:00
Boris Zbarsky
3ca13a1c7c
Bug 529750 part 4. Move GetImportantRule to css::StyleRule. r=dbaron
2011-05-23 16:45:44 -04:00
Boris Zbarsky
9321056fc8
Bug 529750 part 3. Switch nsRuleWalker to only calling GetImportantRule on CSS StyleRules. r=dbaron
2011-05-23 16:45:44 -04:00
Boris Zbarsky
e5385b0ed7
Bug 529750 part 2. Assume that in AssertNoImportantRules and AddImportantRules the rule is a StyleRule. r=dbaron
2011-05-23 16:45:43 -04:00
Boris Zbarsky
f3a2b8bf4d
Bug 529750 part 1. Don't walk non-CSS UA rules when checking for important UA rules. r=dbaron
2011-05-23 16:45:42 -04:00
Ms2ger
b5b41f66d9
Bug 658904 - Remove nsIDOMDocumentStyle; r=roc,jst
2011-05-26 10:18:43 +02:00
Boris Zbarsky
94c9744ce2
Bug 611922. When reparenting style contexts, use the visitedness of our new parent unless we're the style context for a link. In that situation, assume that our visitedness did not change. r=dbaron
2011-05-20 16:21:27 -04:00
Mounir Lamouri
77c1d76262
Merging cedar with mozilla-central.
2011-05-20 15:55:16 +02:00
Ian Moody
48e751eea2
Bug 657143 - Add Test and catch a few missed properties. r=bz
2011-05-20 00:15:28 +02:00
Masayuki Nakano
ec03eb8651
Bug 652486 Computed value of text-decoration should be empty when its style or color is not initial value r=dbaron
2011-05-20 14:56:23 +09:00
Zack Weinberg
fc18422932
Bug 541496 part 6: remove no-longer-used stream-processing code from css::Loader and nsCSSParser. r=bzbarsky
2011-05-18 21:22:59 -04:00
Zack Weinberg
c2d2dd84db
Bug 541496 part 5: use the string-taking API for sync sheet loads. r=bzbarsky
2011-05-18 21:22:59 -04:00
Zack Weinberg
9b2aa00b71
Bug 541496 part 4: rewrite ns(I)UnicharStreamLoader to produce a string rather than a stream; use string-taking parser API for async style loads. r=bzbarsky
2011-05-18 21:22:59 -04:00
Zack Weinberg
eb1ebebbd0
Bug 541496 part 3: use the new string-taking API in LoadInlineStyle. r=bzbarsky
2011-05-18 21:22:59 -04:00
Zack Weinberg
4528c43578
Bug 541496 part 1: add an overload of nsCSSParser::Parse() that takes a string rather than a stream; rename both methods ParseSheet(); change calling convention of the older overload for the templated implementation's sake. r=bzbarsky
2011-05-18 21:22:59 -04:00
Mounir Lamouri
64a8d3688b
Merging cedar with mozilla-central.
2011-05-17 15:32:32 +02:00
Ian Moody
fa4e75ab4d
Bug 657143 - Reorder mature CSS properties in nsComputedDOMStyle.cpp
2011-05-17 11:20:08 +12:00
Mounir Lamouri
66e9fa56e1
Bug 656284 - Fix clipped XUL progressmeter on Windows. r=roc
2011-05-16 12:19:27 +02:00
Mounir Lamouri
5a2ef13b8f
Bug 655065 - Add a -moz-orient CSS property. r=bz
2011-05-10 15:47:46 +02:00
Jim Mathies
02f8ccf86e
Bug 633282 - Add support for -moz-appearance: -moz-win-exclude-glass. r=roc.
2011-05-13 11:40:46 -05:00
fantasai
30bdac461a
Bug 648531 - Use 'none' instead of 'hidden' so that collapsing a table with rules=none doesn't disappear the table border. r=dbaron r=bz
2011-05-12 10:52:48 -07:00
Jesse Ruderman
77e201bf76
Bug 645142 - A crash test. r=dbaron
2011-05-11 18:49:57 +02:00
Mats Palmgren
ecf9b2ffd6
Bug 645142 - "ABORT: negative lengths and percents should be rejected by parser" with huge font size. r=dbaron
2011-05-11 18:49:57 +02:00
Boris Zbarsky
6ae99aa202
Bug 597291. Create nsIURI objects lazily for nsCSSValue::URL, so that we don't pay the cost of creating the ones we don't actually need. r=dbaron
...
In the new setup, the mURL member of nsCSSValue::URL stores either the actual URI pointed to or the base URI; a boolean flag keeps track of which is stored. Consumers use GetURI() to get the URI instead of raw access to mURI, and GetURI calls NS_NewURI as needed.
2011-05-11 11:28:53 -04:00
Boris Zbarsky
aa1434671b
Bug 652775. Remove the default nowrap styling on <legend>. r=dbaron
2011-05-11 11:28:53 -04:00
Mike Hommey
60d6df30fa
Bug 620931 part 1 - Use chrome manifest to register resource://gre-resources/. r=bsmedberg
2011-02-25 12:48:02 +01:00
Mounir Lamouri
b65fa06fa6
Bug 642667 - Let authors set the progress bar's width when in indeterminate state. r=dbaron
2011-05-06 11:56:47 +02:00
Mounir Lamouri
2e36860cd7
Bug 633209 - Add ::-moz-progress-bar to access the anonymous div inside the progress element. r=dbaron
...
--HG--
rename : layout/reftests/forms/progress/margin-padding-ref.html => layout/reftests/forms/progress/margin-padding-rtl-ref.html
rename : layout/reftests/forms/progress/margin-padding.html => layout/reftests/forms/progress/margin-padding-rtl.html
2011-05-06 11:52:05 +02:00
Mounir Lamouri
f412df2050
Bug 567872 - Layout part of the progress element. r=roc,dbaron
2011-05-10 14:59:07 +02:00
Shawn Wilsher
f8feb2aafd
Merge for back out tracked by bug 655860. Also backs out bug 654990 because it depends on bugs in the back out range.
2011-05-09 15:52:44 -07:00
Shawn Wilsher
259bae0699
Back out bug 514437, bug 567872, bug 568825, bug 633209, bug 633913, bug 634086, bug 634088, bug 634549, bug 634551, bug 638176, bug 641517, bug 641905, bug 641942, bug 642127, and bug 642667 to undo the performance regression tracked by bug 655860.
2011-05-09 15:48:39 -07:00
L. David Baron
7cdd42079b
Propagate code that used to be in CSSParserImpl::ParseSingleValueProperty and mark -moz-script-size-multiplier and -moz-script-min-size as inaccessible to parser. (Bug 636029, patch 9) r=bzbarsky
2011-05-09 15:02:35 -04:00
L. David Baron
712f6703bb
-moz-animation-play-state should not be part of the -moz-animation shorthand. (Bug 654890) r=bzbarsky
2011-05-09 15:02:35 -04:00
L. David Baron
56b2850d5b
Ensure nsStyleAnimation doesn't produce values outside valid ranges. (Bug 653842, patch 3) r=bzbarsky
2011-05-09 15:02:35 -04:00
L. David Baron
5d1b8bdcd4
Unify positive-nonzero value restriction (used for integers) with one-or-larger value restriction (used for floats) as a single one-or-larger value restriction. (Bug 653842, patch 2) r=bzbarsky
2011-05-09 15:02:35 -04:00
L. David Baron
064029c2ac
List value range restrictions more reliably in nsCSSPropList. Change 'font-size-adjust' to reject negative values. (Bug 653842, patch 1) r=bzbarsky
2011-05-09 15:02:34 -04:00
Mounir Lamouri
f2321ed05a
Bug 642667 - Let authors set the progress bar's width when in indeterminate state. r=dbaron
2011-05-06 11:56:47 +02:00
Mounir Lamouri
90e8e686e0
Bug 633209 - Add ::-moz-progress-bar to access the anonymous div inside the progress element. r=dbaron
...
--HG--
rename : layout/reftests/forms/progress/margin-padding-ref.html => layout/reftests/forms/progress/margin-padding-rtl-ref.html
rename : layout/reftests/forms/progress/margin-padding.html => layout/reftests/forms/progress/margin-padding-rtl.html
2011-05-06 11:52:05 +02:00
Mounir Lamouri
dc2475b233
Bug 567872 - Layout part of the progress element. r=roc,dbaron
2011-05-07 10:15:14 +02:00
Ms2ger
d50ba4e65e
Bug 414638 - Disallow mixed space/comma syntax for CSS rect() value; r=dbaron
2011-05-08 20:14:16 +02:00
Jonathan Kew
fbe1a561e7
bug 655198 - don't parse 'all' as a value for -moz-hyphens. r=dbaron
2011-05-07 16:01:01 +01:00
Boris Zbarsky
ae3f14f1ba
Merge cedar with mozilla-central
2011-05-06 20:39:36 -04:00
Craig Topper
12e260dad8
Bug 648925 - Part 5: Make nsCSSKeyframeRule use inherited AddRef/Release from Rule. r=bzbarsky
2011-05-06 00:33:57 -07:00
Zack Weinberg
e726506386
Bug 541496 prelim 2: nuke trailing whitespace in layout/style/Loader.{h,cpp}. rs=dbaron
2011-05-06 08:45:36 -07:00
Boris Zbarsky
3c2cc88e2d
Bug 349259. Allow pages to override line-height on form controls, except for <select>. r=dbaron
2011-05-05 12:26:32 -04:00
Jonathan Kew
420b112716
bug 253317 - part 1 - implement -moz-hyphens property in CSS. r=dbaron
2011-05-04 12:14:50 +01:00
Masatoshi Kimura
ffece27fd3
Bug 650505 - Get rid of ComputedCSSStyleDeclaration. r=dbaron,jst,peterv
2011-05-04 09:26:41 +02:00
L. David Baron
1681bbfeed
Fix the remaining todo test in test_parse_rule.html, which is invalid since ~= selectors never match anything containing spaces. (Bug 384672, patch 5) r=bzbarsky
2011-05-03 13:19:19 -07:00
L. David Baron
8b0a4909bc
Only allow escaped newlines inside strings (which includes url() tokens that contain strings). (Bug 384672, patch 4) r=bzbarsky
2011-05-03 13:19:19 -07:00
L. David Baron
2887557e92
Allow ParseAndAppendEscape to fail when the stream does not contain an escape, and make callers handle this failure appropriately. This changes our behavior when backslash immediately precedes end-of-stream. (Bug 384672, patch 3) r=bzbarsky
2011-05-03 13:19:19 -07:00
L. David Baron
13f8891b62
Handle failure of GatherIdent, which can (starting with the next patch) fail when the character sequence is not an identifier. Additionally, change the tokenization of a hash (#) followed by a non-name character or EOF to tokenize as DELIM (eCSSToken_Symbol) rather than as eCSSToken_Hash. This only changes the behavior in the EOF case, because the only caller (color parsing) that accepts eCSSToken_Hash (rather than only eCSSToken_ID) checks the length. (Bug 384672, patch 2) r=bzbarsky
2011-05-03 13:19:19 -07:00
L. David Baron
0099793035
Pass whether we're in a string to ParseAndAppendEscape. (Bug 384672, patch 1) r=bzbarsky
...
This passes true for string tokens and for url() tokens containing
string, since that is what CSS 2.1 chapter 4's tokenization suggests.
2011-05-03 13:19:18 -07:00
L. David Baron
babad15001
Audit for places in style rule code that need to check for a null sheet. (Bug 634373) r=bzbarsky
2011-05-02 18:43:44 -07:00
Jonathan Kew
4833cdff3d
bug 653977 - ensure font downloads are re-triggered if necessary after userFontSet update. r=dbaron
2011-05-01 16:10:20 +01:00
L. David Baron
a4f3b61041
Lower the level in the cascade of animations. (Bug 653645) r=bzbarsky
2011-04-30 15:16:19 -07:00
L. David Baron
5f0fb38ae4
Assert that we destroy ElementAnimations/ElementTransitions through its Destroy() method. (Bug 653644) r=bzbarsky
2011-04-30 15:16:19 -07:00
L. David Baron
10be1d5a1e
Add additional test for @-moz-document regexp() case-sensitivity (after discussion in bug 653495).
2011-04-30 15:16:19 -07:00
L. David Baron
13cd0a7938
Convert use of zoom API in style system mochitests to SpecialPowers. (Bug 653461, patch 3) r=bzbarsky
2011-04-30 15:16:19 -07:00
L. David Baron
2a4a42bdde
Convert use of DOMWindowUtils in style system mochitests to SpecialPowers. (Bug 653461, patch 2) r=bzbarsky
2011-04-30 15:16:19 -07:00
L. David Baron
50811aa62a
Convert use of preferences API in style system mochitests to SpecialPowers. (Bug 653461, patch 1) r=bzbarsky
2011-04-30 15:16:18 -07:00
L. David Baron
b712774643
Add support for regexp() function in @-moz-document rule. (Bug 398962) r=bzbarsky
2011-04-28 10:21:37 -07:00
L. David Baron
a611dbdcb7
Don't set mNeedsRefreshes to false when we get two refreshes at the same time stamp. (Bug 651456) r=bzbarsky
2011-04-28 10:21:36 -07:00
L. David Baron
e08fce9fdd
Remove incorrect nulling out of members that duplicates the correct code in Shutdown. (Bug 652385) r=bzbarsky
2011-04-28 10:21:36 -07:00
Mike Hommey
c84f4c8776
Bug 590181 part 1 - Fix tests to avoid rounding errors. Original patch from jlebar. r=dbaron
2011-04-28 15:48:59 +02:00
Jonathan Kew
eb0e942dc9
bug 650639 - cancel current font-downloaders when updating the user font set. r=dbaron
2011-04-28 06:04:45 +01:00
Kyle Huey
0d2363560b
Backed out changeset 72430b4913e4
2011-04-27 20:12:27 -04:00
Boris Zbarsky
1995aaa776
Bug 652301. Show focus outlines on all focusable things in HTML, not just on a whitelist of them. r=dbaron
...
The :-moz-focusring style comes first so we don't have to do the :not() and :-moz-any() matching at all for the common case.
--HG--
extra : rebase_source : 330a9f4ba38a6613d3bd43f404325ea4dfcae789
2011-04-27 16:52:23 -04:00
Boris Zbarsky
3d5031fd5d
Bug 649163. Stop refcounting the return values from GetCSSParsingEnvironment, where possible. r=dbaron
...
--HG--
extra : rebase_source : 13d75f3954dd1597d58f7741ac8cfc4de51ebe46
2011-04-27 16:53:49 -04:00
Craig Topper
17b6db1001
Bug 648925 - Part 4: DeCOMtaminate GetDOMRule and GetDOMRuleWeak. r=bzbarsky
2011-04-07 23:36:09 -07:00
Craig Topper
94aa5754fd
Bug 648925 - Part 3: Factor some common method bodies into css::Rule. r=bzbarsky
2011-04-11 19:46:35 -07:00
Craig Topper
6cca47869f
Bug 648925 - Part 2: Make several css::Rule methods non-virtual and inline. r=bzbarsky
2011-04-07 20:51:25 -07:00
Craig Topper
cc15a2a6e3
Bug 648925 - Part 1: Change uses of nsICSSRule to css::Rule. r=bzbarsky
2011-04-07 18:23:46 -07:00
Yury
f2320f7c06
Bug 451165. Fix ParseColorString to report errors when there's garbage at the end of the color. r=dbaron
2011-05-05 17:12:04 -04:00
Masayuki Nakano
cc0623b6e3
Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky
2011-04-23 14:16:41 +09:00
L. David Baron
a519025873
Reduce scope of :hover quirk: make it apply normally if it has a class selector, and be quirky (only apply to links) only when actually global. (Bug 197686) r=bzbarsky
2011-04-22 18:36:24 -07:00
L. David Baron
f31f11de17
Should check link-related bits before reusing style context for root element. (Bug 652268) r=bzbarsky
2011-04-22 18:36:24 -07:00
L. David Baron
3aab29ea32
unicode-bidi should inherit into ::-moz-cell-content, ::-moz-anonymous-block, ::-moz-anonymous-positioned-block, and ::-moz-fieldset-content. (Bug 604294) r=bzbarsky
2011-04-22 18:36:24 -07:00
L. David Baron
7eb858b4c6
Fix css3-animations handling of properties that are not present in all keyframes to match WebKit and generally be more sensible. (Bug 649400) r=bzbarsky
...
This inverts the relationship between segments and properties in the
animation data structures: now each property has a set of segments,
since the segments differ between properties.
Furthermore, we now handle inability to interpolate between values by
dropping the entire property rather than dropping a single segment.
2011-04-22 18:36:23 -07:00
L. David Baron
30fa1f1962
Use saner index names in nsAnimationManager. (Bug 649400) r=bzbarsky
2011-04-22 18:36:23 -07:00
Mounir Lamouri
db44db0ebe
Merge cedar with mozilla-central.
2011-04-22 15:25:11 +02:00
L. David Baron
30b6f8cb63
Add diagnostic for nested @-rules that are ignored. (Bug 652014) r=bzbarsky
2011-04-21 20:17:32 -07:00
L. David Baron
1851aeaa2f
Remove parsing and storage code for CSS 2.0 aural properties. (Bug 649119) r=bzbarsky
2011-04-21 20:17:32 -07:00
L. David Baron
3f90844e3c
Implement window.matchMedia for matching of media queries and notification of media query changes. (Bug 542058, patch 3) r=bzbarsky
...
This is specified at:
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-window-interface
2011-04-21 20:17:31 -07:00
L. David Baron
6d48884578
Allow null media query cache key in some places. (Bug 542058, patch 2) r=bzbarsky
2011-04-21 20:17:31 -07:00
L. David Baron
25d74a36a4
Remove null-checks of nsCSSParser, since construction is infallible. (Bug 542058, patch 1) r=bzbarsky
...
Note that many callers already skipped the null-checks.
2011-04-21 20:17:31 -07:00
L. David Baron
99635d0b74
Share code to compute timing functions. (Bug 651801, patch 2) r=bzbarsky
2011-04-21 20:17:30 -07:00
L. David Baron
4a05186c67
Share code to count the length of the transition/animation property array. (Bug 651801, patch 1) r=bzbarsky
2011-04-21 20:17:30 -07:00