Commit Graph
322 Commits
Author SHA1 Message Date
L. David Baron 1fec453cc4 Add NS_FINAL_CLASS annotations to rule classes. r=bzbarsky Add virtual that I missed on nsCSSGroupRule. (Bug 596140) a=me 2010-09-18 12:15:31 -07:00
L. David Baron 7bcf1e0c10 Eliminate all virtual functions from nsCSSRule to eliminate its vtable pointer. (Bug 596140) r=bzbarsky a2.0=roc 2010-09-18 11:43:17 -07:00
L. David Baron 1816d08ebc Save a word in nsCSSStyleRule on 32-bit systems by merging mWasMatched into one bit of mLineNumber. (Bug 596140) r=bzbarsky a2.0=roc 2010-09-18 11:43:17 -07:00
Ms2ger 621c7d4822 Make nsICSSRule::Clone return the cloned value directly. (Bug 585137) r=bzbarsky a2.0=dbaron 2010-08-15 11:19:34 -04:00
Kyle Huey 0b791470e7 Bug 578714: Stop doing Unicode-aware case-folding inside layout/style. r=zwol sr=bz 2010-08-02 15:19:04 -07:00
Zack Weinberg 74e2fce0b8 Bug 338679: mark style declarations immutable if they are stringified. r=bzbarsky a=dbaron 2010-08-02 15:40:35 -07:00
Zack Weinberg e76afd2a5d Bug 569719 part 16: Don't refcount declarations and data blocks; don't have style rules hold direct pointers to data blocks. r+a=dbaron 2010-07-23 11:00:52 -07:00
Zack Weinberg 03936acdb3 Bug 569719 part 14: replace DeclarationChanged() with SetCSSDeclaration(), which takes the new declaration as an argument. r=dbaron 2010-07-23 11:00:47 -07:00
Zack Weinberg 797a393635 Bug 569719 part 9: remove return value from css::Declaration methods that always return NS_OK, and change GetCSSDeclaration to return a css::Declaration instead of an nsresult. r=dbaron 2010-07-23 11:00:34 -07:00
Kyle Huey e03178f395 Backed out changeset 9e87c3efc33b 2010-07-29 16:01:41 -07:00
Kyle Huey 4beeb5b6aa Bug 578714: Stop doing Unicode-aware case-folding inside layout/style. r=zwol sr=bz 2010-07-29 12:41:04 -07:00
Zack Weinberg 367002c2df Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron 2010-06-28 15:49:35 -07:00
Zack Weinberg 867b6d344a Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron 2010-06-28 15:49:35 -07:00
Craig Topper 45054c246a Bug 575900 - Remove unneeded QIs from CSS Rule classes. r=bz 2010-07-18 22:23:12 +02:00
Craig Topper 5ca7d5f5b3 Bug 571946 - Let nsICSSRule::GetType return the type as a PRInt32 type instead of taking an outparam for that. r=bz 2010-07-18 16:39:20 +02:00
Craig Topper 1d651a630e Bug 566808 - "DeCOMtaminate nsIStyleRule method signatures" [r=dbaron]
(transplanted from 9a7be1835b530c72a46069a5c3951b80b16804a3)
2010-05-19 22:28:00 -04:00
Craig Topper 72fba4ed7d Bug 569189. Remove unneeded QIs for style sheets. r=dbaron 2010-06-01 11:51:06 +12:00
Craig Topper 044edbe138 Convert some callers of methods that changed from returning already_AddRefed<T> to returning T* away from using unneeded nsCOMPtrs. (Bug 239008) r=dbaron 2010-05-17 21:00:40 -07:00
Craig Topper 2a903a226d Change some nsIStyleSheet methods from returning AddRef-ed to un-AddRef-ed pointers, and some other cleanup. (Bug 239008) r=dbaron 2010-05-17 21:00:39 -07:00
Craig Topper bc479824b7 DeCOMtaminate nsIStyleSheet method signatures. (Bug 239008) r=dbaron 2010-05-12 13:18:47 -07:00
Craig Topper 5ec7efbb3a Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
L. David Baron d50ab9146c Implement :-moz-any() selector to allow simplification of user-agent style sheets. (Bug 544834) r=bzbarsky 2010-04-23 19:59:47 -07:00
Craig Topper 076bc13756 Bug 557416: Remove unnecessary includes and forward declarations of nsPresContext. r=roc 2010-04-10 16:10:12 -04:00
Peter Van der Beken ca30200583 Fix for bug 533637 (Speed up unwrapping a node in quickstubs that use nsINode (dromaeo)). Pair every DOMCI to a specific C++ class. r=jst. 2010-01-12 14:08:43 +01:00
Zack Weinberg 61fdaeb21c Bug 508466 part 2: In a CSS selector group, use distinct mOperator codes for the descendant combinator (' ') and the end of the chain ('\0'). r=dbaron 2010-03-31 11:08:09 -07:00
Peter Van der Beken 0ae62d1769 Fix for bug 552716 (Remove NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO). r=jst. 2010-03-17 16:09:05 +01:00
Jonas Sicking 6b5d698011 Bug 534136 Part 3: Optimize atom-using code for the fact that atoms store 16bit strings. Also take advantage of new nsAtomString API. r=bz 2010-03-08 07:45:00 -08:00
Zack Weinberg 09642046d8 Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron 2010-03-02 13:00:53 -08:00
Zack Weinberg 7351c020a1 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron 2010-03-02 12:59:32 -08:00
L. David Baron 768c3488c3 Appropriately escape CSS identifiers when serializing. (Bug 543428) r=bzbarsky 2010-02-04 12:49:29 -08:00
Daniel Holbert 4fb82d0587 Bug 539585: Fix "warning: format '%p' expects type 'void*'" in layout directory. r=dbaron 2010-01-17 15:11:06 -08:00
L. David Baron 19f5966dfd Fix rather serious build warning about passing non-POD types to printf. DEBUG-only 2009-12-21 16:46:25 -05:00
L. David Baron 29c7bbc009 Make CSS style rule implementations hold on to their data block once RuleMatched has been called so that they follow the immutability contract of nsIStyleRule. Remove workarounds in tests for transitions bugs caused by these violations of style rule immutability. (Bug 522595) r=bzbarsky 2009-12-11 08:13:20 -08:00
L. David Baron 365fda6251 Cache important rule the first time the rule is matched so we don't rely on the declaration for it past that point. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
L. David Baron fe94e54988 Call RuleMatched method on CSS rules when they are matched. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
L. David Baron 49b68bc235 Call BeginUpdate before going into the guts of updating a style attribute so that the resulting flush happens sooner. (Bug 522595) r=bzbarsky 2009-12-11 08:13:19 -08:00
Boris Zbarsky 1f75de4eb6 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-11 02:37:41 -05:00
Boris Zbarsky 5bff61e580 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-11 02:37:40 -05:00
Boris Zbarsky e28191d463 Backing out bug 525608 and bug 525952 2009-12-10 18:28:08 -08:00
Boris Zbarsky 16009328f7 Bug 525952 part 3. Introduce an enum for pseudo-clases. r=dbaron 2009-12-10 14:36:07 -08:00
Boris Zbarsky e6f87ae055 Bug 525608 part 2. Change the CSS parser to not allow anon box selectors with more than the anon box name in them. Store the pseudo type in pseudo-element selectors. Enforce that all non-anon-box pseudo selectors have an mNext that selects the element they apply to. r=dbaron 2009-12-10 14:36:05 -08:00
Boris Zbarsky 701981a45c Bug 523148. Speed up AddImportantRules. r=dbaron 2009-12-10 14:36:02 -08:00
L. David Baron ed59422613 Serialize type selectors with original case. (Bug 523341) r=bzbarsky 2009-10-21 06:53:46 -04:00
Boris Zbarsky fcb7ad9fb9 Bug 523089. Fix serialization of [*|foo] selectors. r=dbaron 2009-10-20 13:27:47 -04:00
L. David Baron 5d05ebd9ee Fix serialization of tree pseudo-elements with arguments. (Bug 521044) r=bzbarsky 2009-10-07 20:22:42 -07:00
Boris Zbarsky 85c88df0b8 Bug 519905. Avoid some QIs to nsWrapperCache. r=peterv 2009-10-05 19:16:22 -04:00
David Zbarsky 836ac861dc Bug 507762: Parse CSS style sheets independently of case-sensitivity, and instead check case correctly when using the stylesheets. r=dbaron 2009-09-28 23:07:45 -07:00
David Zbarsky f0fb6a73b7 Bug 499655: Selectors should have dual atoms so they can correctly (and case-sensitively) match non-HTML elements in text/html documents, part 1. r=dbaron 2009-08-01 08:53:40 -07:00
L. David Baron 76433f1381 Backed out changeset 358af1196dc2 (bug 499655) until we get bug 507487 sorted out. 2009-07-31 09:39:53 -07:00
David Zbarsky c69e697fad Bug 499655. Selectors should have dual atoms: HTML and other. r=dbaron 2009-07-30 13:28:42 -04:00