Commit Graph

241098 Commits

Author SHA1 Message Date
L. David Baron
f9e49f5a38 Don't bloat nsCSSTable for members that only need to exist in nsRuleDataTable. (Bug 636039, patch 3) r=bzbarsky 2011-03-17 20:14:30 -07:00
L. David Baron
982559da8c Correct comment describing nsRuleData::ValueFor. (Bug 636039, patch 2) r=bzbarsky
nsRuleData::ValueFor does not return null; it checks conditions that
would cause it to do so with NS_ABORT_IF_FALSE.  Callers are required to
check mSIDs.
2011-03-17 20:14:30 -07:00
Boris Zbarsky
e11dc52475 Bug 641856. column-rule needs to work even when overflow is not visible. r=roc 2011-03-17 13:41:52 -04:00
Craig Topper
cc19a1ceb0 Bug 577002 Part 3: Make various ImportRule functions non-virtual and cleanup some return types. r=bzbarsky 2011-03-17 13:41:52 -04:00
Craig Topper
f73d0bfb43 Bug 577002 Part 2: Remove nsICSSImportRule. r=bzbarsky
--HG--
rename : layout/style/nsICSSImportRule.h => layout/style/ImportRule.h
2011-03-17 13:41:52 -04:00
Craig Topper
7028de1f22 Bug 577002 Part 1: Rename CSSImportRuleImpl to mozilla::css::ImportRule. r=bzbarsky 2011-03-17 13:41:52 -04:00
Craig Topper
5046fee8c2 Bug 576877 Part 3: De-virtualize methods in NameSpaceRule. r=bzbarsky 2011-03-17 13:41:52 -04:00
Craig Topper
5fd4236789 Bug 576877 Part 2: Remove nsICSSNameSpaceRule. r=bzbarsky
--HG--
rename : layout/style/nsICSSNameSpaceRule.h => layout/style/NameSpaceRule.h
2011-03-17 13:41:52 -04:00
Craig Topper
5e8ebdc87a Bug 576877 Part 1: Rename CSSNameSpaceRuleImpl to mozilla::css::NameSpaceRule. r=bzbarsky 2011-03-17 13:41:52 -04:00
Hiroyuki Ikezoe
3c072cd9b1 Bug 582216 - Make sure that we set _scrollTarget in every case in order to address intermittent failures in tabbrowser overflow handling; r=dao 2011-03-16 18:01:34 -04:00
Cameron McCormack
e796e7e90a Bug 638756 - Stop occasional crashes when using mouse wheel when the Elantech touchpad hack is enabled r=jmathies 2011-03-16 12:08:53 +13:00
Mounir Lamouri
0e7279584b Bug 640963 - Add nsHTMLInputElement::IsValueEmpty() const. r=bz 2011-03-12 02:07:34 +01:00
L. David Baron
6f8a7f7e04 Include the opening "url(" in URL and Bad_URL tokens (though the latter do not have a close paren), and make tokenization of url() function be noncontextual, as required by CSS. (Bug 604179, patch 7) r=bzbarsky
Note that tokenization of url-prefix() and domain() remains contextual.

Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-11 11:29:45 -06:00
L. David Baron
276bc2fc4e Include the close parenthesis in the URL token and make quoted URLs produce URL tokens rather than string tokens. (Bug 604179, patch 6) r=bzbarsky 2011-03-11 11:29:45 -06:00
L. David Baron
5c5dffb84a Disallow control characters less than space inside unquoted url(), per spec. (Bug 604179, patch 5) r=bzbarsky 2011-03-11 11:29:44 -06:00
L. David Baron
5602457863 Fix incorrect indentation in nsCSSScanner::NextURL. (Bug 604179, patch 4) r=bzbarsky 2011-03-11 11:29:44 -06:00
L. David Baron
7366e14023 Move the consumption of beginning whitespace (for all forms) and ending whitespace (for the string form) inside url() into the tokenizer. (Bug 604179, patch 3) r=bzbarsky 2011-03-11 11:29:44 -06:00
L. David Baron
34a94f8d55 Rename CSS tokens to be closer to the names of newly-added tokens (BAD_STRING, BAD_URI) in the CSS 2.1 tokenization. (Bug 604179, patch 2) r=bzbarsky 2011-03-11 11:29:44 -06:00
L. David Baron
3ec2ecbf58 Use GatherURL in ParseNameSpaceRule and ParseImageRect, and rename GatherURL to ParseURLOrString for clarity. (Bug 604179, patch 1) r=bzbarsky
Note that this adds a missing UngetToken(), which affects the other
consumer of GatherURL, parsing of @import rules.
2011-03-11 11:29:44 -06:00
Craig Topper
c96353bbd5 Bug 576831 part 6. DeCOMtaminate some StyleRule method signatures. r=bzbarsky. 2011-03-10 21:50:20 -05:00
Craig Topper
3bf4843751 Bug 576831 part 5. Make some methods that used to be virtual non-virtual. r=bzbarsky 2011-03-10 21:50:12 -05:00
Craig Topper
678b9c7c11 Bug 576831 part 4. Remove nsICSSStyleRule and use mozilla::css::StyleRule instead. r=bzbarsky
--HG--
rename : layout/style/nsCSSStyleRule.cpp => layout/style/StyleRule.cpp
rename : layout/style/nsICSSStyleRule.h => layout/style/StyleRule.h
2011-03-10 21:48:57 -05:00
Craig Topper
952a977004 Bug 576831 part 3. Rename CSSImportantRule to mozilla::css::ImportantRule. r=bzbarsky 2011-03-10 21:48:26 -05:00
Craig Topper
d5233e065b Bug 576831 part 2. Rename DOMCSSStyleRuleImpl to mozilla::css::DOMCSSStyleRule. r=bzbarsky 2011-03-10 21:47:52 -05:00
Craig Topper
1f6006c1f6 Bug 576831 part 1. Rename CSSStyleRuleImpl to mozilla::css::StyleRule. r=bzbarsky 2011-03-10 21:47:08 -05:00
Mounir Lamouri
c7e46ec820 Bug 585097 - Add a GetValue() const to nsHTMLInputElement and make some other methods const. r=bz 2011-03-09 19:25:20 +01:00
Olli Pettay
e6c7a534c4 Bug 461066 - Add support for XHR's loadend event, r=sicking
--HG--
extra : rebase_source : f4db116cdd195d0319189a5800ee991370649072
2011-03-24 15:22:03 +02:00
Ben Hearsum
eb86df6869 Add GECKO_2_1_BASE tag. a=NPOTB on a CLOSED TREE 2011-03-24 09:14:33 -04:00
Ben Hearsum
63c5970cfa Add GECKO_2_0_BASE tag. a=NPOTB on a CLOSED TREE 2011-03-24 09:14:30 -04:00
Siddharth Agarwal
4a0998bc20 Bug 644379 - Safe mode restart dialog should use "Restart" for its button text, not OK. r=dao, ui-r=faaborg
--HG--
extra : rebase_source : e3214680b535e4b4162ff3edd55c95bea598124c
2011-03-24 18:20:12 +05:30
Olli Pettay
55a0683f87 Bug 632835 - Firefox doesn't pass iframe test from bug 363109 correctly, r=bz 2011-03-24 14:23:36 +02:00
Olli Pettay
08504d7888 Bug 624758, [@nsSHistory::EvictContentViewersInRange] and [@nsSHistory::EvictGlobalContentViewer], r=bz 2011-03-24 14:22:23 +02:00
Olli Pettay
5590c58b15 Allow removing iframe when it is being printed, r=roc 2011-03-24 13:42:54 +02:00
Olli Pettay
04b6972e10 Mark the printing document as printing, not the original doc, r=roc 2011-03-24 13:41:16 +02:00
Olli Pettay
c0ec5c0f07 Bug 639130, document.load should check script handling object, r=jst 2011-03-24 13:37:32 +02:00
Olli Pettay
446713e64b Bug 641499 - Don't throw when event.type is called before initEvent, r=sicking 2011-03-24 13:34:48 +02:00
Olli Pettay
68eba45f45 Bug 641477 - Throw UNSPECIFIED_EVENT_TYPE_ERR if event isn't initialized before dispatching, r=sicking 2011-03-24 13:34:03 +02:00
Boris Zbarsky
a5dd83ec8b Bug 608759. Stop calling ContentEnumFunc through a function pointer; just call it directly. r=dbaron 2011-03-07 12:45:25 -05:00
Boris Zbarsky
c47cc5c95d Bug 630127. Use a precise timer when we have animation frame callbacks. r=dbaron 2011-03-07 11:58:48 -05:00
L. David Baron
949c14cb64 Use ParseSingleValueProperty for the components inside the 'transition' shorthand as well. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
0f0c809126 Make generic mechanism for parsing lists of single values with ParseVariant. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
9b37832256 Drive the ParseVariant calls in ParseSingleValueProperty from data rather than a big switch. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
2f73995ced Fix keyword table entries in nsCSSPropList and code in nsRuleNode to match those used in the parser. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
08ab704b49 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
92c4c1e812 Separate properties that are parsed in ParseSingleValueProperty with something other than ParseVariant. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
1b6756da8d Separate the non-property parsed in ParseSingleValueProperty. (Bug 636029) r=bzbarsky 2011-03-05 09:58:33 -08:00
L. David Baron
43d08d340f Disable parsing of 'marker', 'run-in', and 'compact' in a less hacky way. (Bug 636029) r=bzbarsky
This simply removes all the code for the values.  This removes a
special-case that would otherwise need to become more complicated in a
later patch in this series.
2011-03-05 09:58:33 -08:00
L. David Baron
2167602644 Add parse types for CSS properties so we don't parse them in one huge switch. (Bug 636029) r=bzbarsky
With this patch, every CSS property is required to have one of the parse
type values (CSS_PROPERTY_PARSE_{FUNCTION,VALUE,INACCESSIBLE}) in its
flag bits.  This avoids needing a switch in
CSSParserImpl::ParseProperty(nsCSSProperty).

Note that this reserves more space in CSS_PROPERTY_PARSE_PROPERTY_MASK
than appears to be necessary; that space will be used in a later patch
in this series.
2011-03-05 09:58:33 -08:00
L. David Baron
a9819c7c68 Make sure all properties in nsCSSPropList.h have useful values for the method_ field. (Bug 636039) r=bzbarsky
Note that these are unprefixed to be consistent with the similar
existing methods for other logical box properties.  Prefixing doesn't
matter for the dom property field of CSS_PROP_LIST_EXCLUDE_INTERNAL
properties, since dom property field of such properties is not exposed
to the Web.
2011-03-05 09:58:33 -08:00
Ehsan Akhgari
389876ffaa Test case for bug 638596; r=roc 2011-03-04 13:44:25 -08:00