Commit Graph

77 Commits

Author SHA1 Message Date
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
b149cd157b Clean up handling of CSSOM modifications to rules that are non-child descendants of a sheet. (Bug 435442, patch 3) r=bzbarsky
This fixes handling of a number of cases:
 1. Modifications to a style rule inside a group rule now trigger
    GetRuleCascades.
 2. A sheet that has been (potentially) modified is reliably marked as
    such, and thus never cloned.
2011-04-11 23:18:43 -07:00
Craig Topper
79dd891370 Bug 577976 - Part 6: Add cast to resolve ambiguity in case 'using' isn't supported by compiler, r=bzbarsky 2011-04-06 00:11:42 -07:00
Craig Topper
a32fd499a0 Bug 577976 - Part 5: Remove AddRef from GetStyleSheet, r=bzbarsky 2010-08-07 22:33:15 -07:00
Craig Topper
4f5347e078 Bug 577974 - Part 4: DeCOM and de-virtualize methods in GroupRule, r=bzbarsky 2010-08-07 22:29:28 -07:00
Craig Topper
c601a2e51b Bug 577974 - Part 2: Remove nsICSSGroupRule, r=bzbarsky
--HG--
rename : layout/style/nsICSSGroupRule.h => layout/style/GroupRule.h
2010-08-07 22:28:33 -07:00
timeless@mozdev.org
395892eff6 Bug 577914 mark DEBUG only variables as ifdef DEBUG in layout
r=dbaron
2010-07-11 15:47:45 +03:00
Craig Topper
c232171343 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
51c51ac5d7 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
c4eb4e1d09 Bug 576877 Part 3: De-virtualize methods in NameSpaceRule. r=bzbarsky 2011-03-17 13:41:52 -04:00
Craig Topper
16a0c17c96 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
L. David Baron
79ccd5106a Correctly fix up the parentage of child sheets when removing the primary nsCSSStyleSheet from an nsCSSStyleSheetInner. (Bug 623351) r=bzbarsky a2.0=blocking 2011-01-14 19:57:53 -08:00
Mihai Sucan
215e61a4b2 Bug 606498 - Make sure the new nsIScriptError2 is used in all possible places- part 3; r=bzbarsky,dbaron,mrbkap sr=jst a=blocking2.0 2010-12-20 12:21:59 -04:00
Boris Zbarsky
ce4d032cff Bug 608914 part 2. Get rid of some temporary strings now that we can AppendFloat to an nsAString. r=dbaron 2010-11-30 13:18:15 -05:00
Dave Townsend
7a0e0a5cd9 Backing out bug 614058, bug 609272, bug 478445, bug 499628, bug 605296, bug 608914 and bug 614724 due to potentially causing bug 615736 CLOSED TREE. a=backout 2010-12-01 11:01:56 -08:00
Boris Zbarsky
325022b283 Bug 608914 part 2. Get rid of some temporary strings now that we can AppendFloat to an nsAString. r=dbaron 2010-11-30 13:18:15 -05:00
Jim Mathies
4aed135ef5 Bug 543910 - Layout support for -moz-windows-theme. r=dbaron, a=final. 2010-10-09 15:53:45 -05:00
Josh Matthews
0984e327c5 Bug 474356 - Add -moz-device-pixel-ratio media query. r=dbaron a=approval2.0
--HG--
extra : rebase_source : 3a477fe6eab09f693538008aafa9c8bf880597b1
2010-09-10 16:27:52 -04:00
Josh Matthews
37d6567b57 Backed out changeset ec2ffd935bd9 a=test-bustage 2010-09-11 21:04:09 -04:00
Josh Matthews
3576dc896d Bug 474356 - Add -moz-device-pixel-ratio media query. r=dbaron a=approval2.0
--HG--
extra : rebase_source : 1455dfbf13b66ac58cd2a66514c88adc76ff1a6c
2010-09-11 19:21:48 -04:00
Ms2ger
120c26ed9f Make nsICSSRule::Clone return the cloned value directly. (Bug 585137) r=bzbarsky a2.0=dbaron 2010-08-15 11:19:34 -04:00
Zack Weinberg
b87b69a229 Bug 569719 part 6: Move Declaration::AppendCSSValueToString into nsCSSValue. r=dbaron 2010-07-23 11:00:27 -07:00
Zack Weinberg
76dbdde0f4 Bug 569719 part 2: Move headers for the former nsCSSLoader and nsCSSDeclaration into mozilla/css/. r=dbaron
--HG--
rename : layout/style/nsCSSDeclaration.cpp => layout/style/Declaration.cpp
rename : layout/style/nsCSSDeclaration.h => layout/style/Declaration.h
rename : layout/style/nsCSSLoader.cpp => layout/style/Loader.cpp
rename : layout/style/nsCSSLoader.h => layout/style/Loader.h
2010-06-28 15:49:35 -07:00
Zack Weinberg
9c006a4ff7 Bug 569719 part 1: Rename nsCSSDeclaration to mozilla::css::Declaration. r=dbaron 2010-06-28 15:49:35 -07:00
Craig Topper
686470fa78 Bug 575900 - Remove unneeded QIs from CSS Rule classes. r=bz 2010-07-18 22:23:12 +02:00
Craig Topper
dcd5047456 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
3e0e604d67 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
58622d8961 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
9528e9a5c6 Rename nsIStyleSheet::GetApplicable to IsApplicable and GetComplete to IsComplete. (Bug 239008) r=dbaron 2010-05-14 12:05:14 -07:00
Craig Topper
d02574b6b4 DeCOMtaminate nsIStyleSheet method signatures. (Bug 239008) r=dbaron 2010-05-12 13:18:47 -07:00
Craig Topper
b241293325 Make most of the methods in nsCSSStyleSheet non-virtual. (Bug 239008) r=dbaron 2010-05-11 13:41:48 -07:00
Craig Topper
35e0c06e8d Inline a few methods in nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Craig Topper
cb8187eff9 Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Craig Topper
da6721cdc6 DeCOMtaminate CSSStyleSheet method signatures. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Peter Van der Beken
8e3acb1006 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.
--HG--
extra : rebase_source : 9a7823b365cfca04bb08c5be94eab29d218f1e61
2010-01-12 14:08:43 +01:00
Peter Van der Beken
e5d87ec5bb Fix for bug 552716 (Remove NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO). r=jst.
--HG--
extra : rebase_source : 8e03b54ff6117dcac27188b296c59dcafbb6db78
2010-03-17 16:09:05 +01:00
Jonas Sicking
3175f89133 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
2c3e543d1d Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSLoader.h => layout/style/nsCSSLoader.h
2010-03-02 13:00:53 -08:00
Zack Weinberg
96887d3f38 Bug 523496: DeCOMtaminate nsCSSParser. r=bzbarsky sr=dbaron
--HG--
rename : layout/style/nsICSSParser.h => layout/style/nsCSSParser.h
2010-03-02 12:59:32 -08:00
L. David Baron
1d3abc0523 Add method to nsStyleSet to call EnsureUniqueInner on all CSS sheets. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
0edebe9e9f ClearRuleCascades when ensuring a stylesheet has a unique inner so that matched rules point back to the new rules. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
L. David Baron
175e61cedf Make EnsureUniqueInner return a tri-state result that says whether it needed to do any cloning. (Bug 536379) r=bzbarsky 2009-12-31 10:56:33 -05:00
Boris Zbarsky
9ef06c6d93 Bug 520563. Shouldn't predefine xml and xmlns prefixes for CSS selectors. r=dbaron,sicking 2009-10-29 21:47:48 -04:00
L. David Baron
2c64d5b55a Pass the media feature to media feature value getters. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
L. David Baron
b52b7d6d82 Make nsMediaFeature::mKeywordTable an mData union. (Bug 522149) r=bzbarsky 2009-10-15 17:23:18 -07:00
Boris Zbarsky
934953d6aa Bug 504032. Make sure to copy mIsEmpty when cloning media lists. r=dbaron 2009-07-17 23:47:38 -04:00
Boris Zbarsky
371ff5a1bd Bug 495269. Fix our detection of @import rules when cloning sheets. r+sr=dbaron 2009-05-28 18:16:31 -04:00
Boris Zbarsky
6df71d93aa Bug 493968. Correctly keep track of all the kids of a cloned sheet, not just the last one. r=roc, r+sr=dbaron pending. 2009-05-26 15:40:49 -04:00