gecko/layout/style
Avi Halachmi ad77774fb9 Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel
Our gfxPattern cache is currently way too specific, which causes lots of
unnecessary cache misses. The only thing that we actually need to key on is the
color stops.

This switches the cache to hold GradientStops instead of gfxPatterns. This
improves our cache hit rate and is simpler. It also avoids doing caching when
not using Azure, which currently has no benefit.

Average paint times results (in ms)
(on windows 7 x64, i7-3630qm, HD4000)
-------------------------------------
m-c
open: 3.5 close: 3.3

m-c cache-key
open: 2.6 close: 2.4

ux
open: 7.3 close: 5.2

ux cache-key
open: 6.9 close: 5.3
2013-02-15 20:54:49 +02:00
..
crashtests Bug 368740 - crashtest 2013-01-26 21:28:56 +01:00
test Bug 836329: Fix regression handling 'rem' units in media queries. r=bzbarsky 2013-02-13 11:53:56 -08:00
xbl-marquee
AnimationCommon.cpp Bug 797520; improve OMTA logging. r=cjones 2012-12-12 10:12:47 +13:00
AnimationCommon.h Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz 2012-12-12 10:12:43 +13:00
arrow.gif
arrowd.gif
contenteditable.css
CSS.cpp Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures 2013-01-28 11:08:21 +00:00
CSS.h Backout f3c145bd1dd2 & 5075690572a9 for OS X startup failures 2013-01-28 11:08:21 +00:00
CSSCalc.h
CSSValue.h Backout bug 821593 for bustage. 2012-12-22 15:33:46 +01:00
Declaration.cpp Bug 833624. Bump up size of int's in mOrder to allow more than 256 CSS properties. r=dbaron 2013-01-24 02:24:27 +09:00
Declaration.h Bug 833624. Bump up size of int's in mOrder to allow more than 256 CSS properties. r=dbaron 2013-01-24 02:24:27 +09:00
designmode.css
ErrorReporter.cpp Bug 413958: report the text of the offending line in CSS error messages. r=dbaron 2013-01-11 12:27:43 -05:00
ErrorReporter.h Bug 413958: report the text of the offending line in CSS error messages. r=dbaron 2013-01-11 12:27:43 -05:00
forms.css Bug 813550 - Location bar's placeholder in an RTL chrome should be aligned on the right. r=ehsan a=nonlibxul 2013-01-22 00:13:04 +01:00
full-screen-override.css
GroupRule.h Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky 2013-02-09 22:56:49 -08:00
html.css Bug 821695 - Do not load videocontrols.xml if the audio/video tag does not need it. r=roc 2013-02-01 08:47:55 -05:00
ImageLoader.cpp Bug 618479 part 1. Clean up the nsTArray binary-insert code a little bit. r=jlebar,kinetik 2013-02-13 10:11:53 -05:00
ImageLoader.h Bug 505385 - Part 11: Create a new imgINotificationObserver interface to replace all uses of imgIContainerObserver and imgIDecoderObserver outside of image/. r=joe 2012-10-12 12:11:22 -04:00
ImportRule.h Bug 795221 part 3. Implement cycle collection for GroupRule objects. r=smaug,dbaron 2012-10-07 22:39:09 -04:00
jar.mn
Loader.cpp Bug 508725 - Part 2: Record on nsCSSStyleSheets whether they are for a <style scoped>. r=dbaron 2013-01-09 10:25:47 +11:00
Loader.h Bug 508725 - Part 2: Record on nsCSSStyleSheets whether they are for a <style scoped>. r=dbaron 2013-01-09 10:25:47 +11:00
Makefile.in Bug 829168: Mark layout/style as FAIL_ON_WARNINGS, on non-MSVC compilers. r=bz 2013-01-12 10:49:12 -08:00
NameSpaceRule.h Bug 795221 part 3. Implement cycle collection for GroupRule objects. r=smaug,dbaron 2012-10-07 22:39:09 -04:00
nsAnimationManager.cpp Bug 829369: Cast pointer-subtraction to a size_t (after ensuring it'll be nonnegative) when comparing it to a nsTArray's size, to fix signed/unsigned comparison build warning. r=dbaron 2013-01-12 01:56:15 -08:00
nsAnimationManager.h Bug 827717: Change record of CSS animation start to be before delay so that dynamic changes to animation-delay are honored. r=bzbarsky 2013-01-10 21:14:51 -08:00
nsComputedDOMStyle.cpp Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
nsComputedDOMStyle.h Bug 828805 - Implement SVG paint-order property. r=bz,roc 2013-01-13 10:27:53 +11:00
nsCSSAnonBoxes.cpp
nsCSSAnonBoxes.h
nsCSSAnonBoxList.h
nsCSSDataBlock.cpp
nsCSSDataBlock.h Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
nsCSSFontDescList.h
nsCSSKeywordList.h Bug 840367: Fix misnaming of keyword IDs in nsCSSKeywordList.h. r=heycam 2013-02-13 11:53:56 -08:00
nsCSSKeywords.cpp
nsCSSKeywords.h
nsCSSParser.cpp Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky 2013-02-09 22:56:49 -08:00
nsCSSParser.h Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky 2013-02-09 22:56:49 -08:00
nsCSSPropAliasList.h Add preferences (defaulting to enabled, for now) to control whether certain prefixed aliases for CSS properties are supported, so that authors can have a way to test what happens when they're turned off in advance of our disabling them. (Bug 804944) r=bzbarsky 2012-10-26 19:04:20 +02:00
nsCSSProperty.h
nsCSSPropertySet.h
nsCSSPropList.h Bug 835169: Remove unused mapping into style of table cols attribute. r=bzbarsky 2013-01-28 21:16:22 -08:00
nsCSSProps.cpp Bug 840367: Fix misnaming of keyword IDs in nsCSSKeywordList.h. r=heycam 2013-02-13 11:53:56 -08:00
nsCSSProps.h Bug 793617 - Implement mask-type property. r=dbaron,longsonr 2012-12-21 11:15:22 +11:00
nsCSSPseudoClasses.cpp Bug 818400. Add a preference to control :scope and pref it off in release builds for now. r=dbaron 2012-12-24 19:35:34 -08:00
nsCSSPseudoClasses.h Bug 818400. Add a preference to control :scope and pref it off in release builds for now. r=dbaron 2012-12-24 19:35:34 -08:00
nsCSSPseudoClassList.h Bug 819871 - Make ":-moz-placeholder" parsable but without any effect on styling. r=dbaron,bz 2013-01-24 09:30:28 +00:00
nsCSSPseudoElementList.h Bug 737786 - 2/5 - Use a pseudo-element instead of a pseudo-class for placeholder styling. r=bz 2012-11-09 10:24:23 +00:00
nsCSSPseudoElements.cpp
nsCSSPseudoElements.h
nsCSSRuleProcessor.cpp Back out Bug 678392 2013-02-08 16:52:12 -08:00
nsCSSRuleProcessor.h Bug 508725 - Part 3: Create a rule processor for each style scope. r=dbaron 2013-01-09 10:25:47 +11:00
nsCSSRules.cpp Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky 2013-02-09 22:56:49 -08:00
nsCSSRules.h Bug 774980. Hook up nsCSSKeyframeRule to cycle collection. r=smaug 2013-01-18 23:32:12 -05:00
nsCSSScanner.cpp Bug 836530: Make all non-ASCII characters be CSS identifier characters. r=bzbarsky 2013-01-31 20:09:47 -08:00
nsCSSScanner.h Bug 413958: report the text of the offending line in CSS error messages. r=dbaron 2013-01-11 12:27:43 -05:00
nsCSSStyleSheet.cpp Bug 765599: Make CSS insertRule methods throw SYNTAX_ERR when given an empty rule or more than one rule. r=bzbarsky 2013-02-09 22:56:49 -08:00
nsCSSStyleSheet.h Bug 508725 - Part 2: Record on nsCSSStyleSheets whether they are for a <style scoped>. r=dbaron 2013-01-09 10:25:47 +11:00
nsCSSValue.cpp Bug 828805 - Implement SVG paint-order property. r=bz,roc 2013-01-13 10:27:53 +11:00
nsCSSValue.h Bug 801061. Switch from imgIRequest to imgRequestProxy. r=joe 2012-10-12 08:43:01 -04:00
nsDOMCSSAttrDeclaration.cpp Bug 811449 part 8. Get rid of nsGenericElement. r=peterv 2012-11-14 14:10:08 -08:00
nsDOMCSSAttrDeclaration.h Bug 733186: Annotate ~1000 methods with MOZ_OVERRIDE in /layout r=dholbert r=dbaron 2012-09-14 09:10:08 -07:00
nsDOMCSSDeclaration.cpp bug 798567 - convert css values to webidl r=bz 2012-10-01 12:49:41 -04:00
nsDOMCSSDeclaration.h bug 798567 - convert css values to webidl r=bz 2012-10-01 12:49:41 -04:00
nsDOMCSSRect.cpp bug 824970 - use webidl for Rect r=bz 2012-12-26 07:26:36 -05:00
nsDOMCSSRect.h bug 824970 - use webidl for Rect r=bz 2012-12-26 07:26:36 -05:00
nsDOMCSSRGBColor.cpp bug 840906 - densISupportsify nsDOMRGBCSSColor r=mccr8 2013-02-13 16:39:23 -05:00
nsDOMCSSRGBColor.h bug 840906 - densISupportsify nsDOMRGBCSSColor r=mccr8 2013-02-13 16:39:23 -05:00
nsDOMCSSValueList.cpp bug 830396 - add back nsIDOMCSSValueList r=bz 2013-01-14 12:29:27 -05:00
nsDOMCSSValueList.h bug 830396 - add back nsIDOMCSSValueList r=bz 2013-01-14 12:29:27 -05:00
nsDOMMediaQueryList.cpp bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
nsDOMMediaQueryList.h
nsFontFaceLoader.cpp bug 821442 - eliminate the unreliable mFamily back-pointer in gfxFontEntry, and instead pass/track font family explicitly where needed. r=roc 2012-12-19 09:42:25 +00:00
nsFontFaceLoader.h bug 821442 - eliminate the unreliable mFamily back-pointer in gfxFontEntry, and instead pass/track font family explicitly where needed. r=roc 2012-12-19 09:42:25 +00:00
nsHTMLCSSStyleSheet.cpp Bug 760331: Coalesce data for inline style across nodes. r=bz 2012-09-30 09:40:24 -07:00
nsHTMLCSSStyleSheet.h Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
nsHTMLStyleSheet.cpp Bug 824397 - Use NS_ENSURE_{TRUE,FALSE,SUCCESS}_VOID(foo) instead of NS_ENSURE_{TRUE,FALSE,SUCCESS}(foo, ). r=derf. 2012-12-23 20:45:57 -08:00
nsHTMLStyleSheet.h Bug 733186: Annotate ~1000 methods with MOZ_OVERRIDE in /layout r=dholbert r=dbaron 2012-09-14 09:10:08 -07:00
nsICSSDeclaration.h bug 798567 - convert css values to webidl r=bz 2012-10-01 12:49:41 -04:00
nsICSSLoaderObserver.h
nsICSSPseudoComparator.h
nsICSSRuleList.h
nsICSSStyleRuleDOMWrapper.h
nsIMediaList.h
nsIStyleRule.h
nsIStyleRuleProcessor.h
nsIStyleSheet.h
nsLayoutStylesheetCache.cpp Bug 819819 (part 2) - Remove |name| from NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN. r=jlebar. 2012-12-23 16:59:51 -08:00
nsLayoutStylesheetCache.h Bug 800187 (part 1) - Add memory reporter for the nsStyleSheetService. r=bz. 2012-10-11 21:05:38 -07:00
nsMediaFeatures.cpp Back out Bug 678392 2013-02-08 16:52:12 -08:00
nsMediaFeatures.h
nsNthIndexCache.cpp Bug 829344 - Part 4: Fix gcc -Wlogical-op warnings from PRBool/bool conversion. r=ehsan 2013-01-10 17:56:51 -08:00
nsNthIndexCache.h Bug 810192 - don't require a default constructor for Hash{Map,Set}; only construct objects for live elements (r=terrence) 2012-11-12 15:30:39 -08:00
nsROCSSPrimitiveValue.cpp bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
nsROCSSPrimitiveValue.h bug 824970 - nsROCSSPrimitiveValue::GetRectValue() should return nsDOMCSSRect* r=bz 2012-12-26 12:02:37 -05:00
nsRuleData.cpp Bug 827579: Remove post-resolve callback concept from style system. r=bzbarsky 2013-01-08 20:37:29 -08:00
nsRuleData.h Bug 827579: Remove post-resolve callback concept from style system. r=bzbarsky 2013-01-08 20:37:29 -08:00
nsRuleNode.cpp Bug 836329: Fix regression handling 'rem' units in media queries. r=bzbarsky 2013-02-13 11:53:56 -08:00
nsRuleNode.h Bug 508725 - Part 2: Record on nsCSSStyleSheets whether they are for a <style scoped>. r=dbaron 2013-01-09 10:25:47 +11:00
nsRuleProcessorData.h Bug 829363 - Make :scope match style scope roots. r=bzbarsky 2013-01-16 15:48:29 +11:00
nsRuleWalker.h
nsStyleAnimation.cpp Bug 827704: Fix 'visibility' animation so that it doesn't animate between values when one of them is not 'visibile'. r=bzbarsky 2013-01-08 20:37:29 -08:00
nsStyleAnimation.h Bug 813373, patch 1: Remove pres context parameters from nsStyleAnimation::UncomputeValue. r=dholbert 2012-11-20 11:55:14 -08:00
nsStyleContext.cpp 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
nsStyleContext.h Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
nsStyleCoord.cpp
nsStyleCoord.h
nsStyleSet.cpp Followup for Bug 840317: use an unsigned loop variable when iterating up to an unsigned value, to fix warnings-as-errors build error. r=bustage,trivial CLOSED TREE 2013-02-11 17:27:14 -08:00
nsStyleSet.h Bug 836604: Collapse nsStyleSet::GetContext()'s boolean parameters into a 'flags' parameter. r=bz 2013-02-01 08:02:29 -08:00
nsStyleStruct.cpp Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel 2013-02-15 20:54:49 +02:00
nsStyleStruct.h Bug 655877 - Part 11b: Use the right hints when reflowing due to dominant-baseline change. r=jwatt 2013-02-11 17:22:16 +11:00
nsStyleStructFwd.h
nsStyleStructInlines.h Bug 816359. Part 2: Make nsStyleDisplay::HasTransform take a frame parameter and check that the frame supports transforms. r=mats" 2012-12-31 11:45:57 +13:00
nsStyleStructList.h
nsStyleTransformMatrix.cpp Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz 2012-12-12 10:12:43 +13:00
nsStyleTransformMatrix.h Bug 780692; throttle OMTA (rollup patch). r=dbaron,bz 2012-12-12 10:12:43 +13:00
nsStyleUtil.cpp Bug 828805 - Implement SVG paint-order property. r=bz,roc 2013-01-13 10:27:53 +11:00
nsStyleUtil.h Bug 828805 - Implement SVG paint-order property. r=bz,roc 2013-01-13 10:27:53 +11:00
nsTransitionManager.cpp Bug 825407 - Get rid of GetElementParent; r=mounir 2013-01-11 09:43:01 +01:00
nsTransitionManager.h Bug 822721: Call CalcStyleDifference and process the style change list resulting from the miniflush we do to update throttled animations prior to seeing if we need to start transitions. r=bzbarsky 2013-01-08 20:37:29 -08:00
quirk.css Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert 2012-10-30 16:57:36 +01:00
Rule.h Bug 795221 part 3. Implement cycle collection for GroupRule objects. r=smaug,dbaron 2012-10-07 22:39:09 -04:00
StyleRule.cpp bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
StyleRule.h Bug 833808 part 2. Add some utilities for working with selectors to inspector utils. r=dbaron 2013-02-13 10:11:53 -05:00
TopLevelImageDocument.css
TopLevelVideoDocument.css
ua.css Bug 827799. Apply clip to outer table frames as needed. r=roc 2013-01-15 14:04:24 -05:00
viewsource.css