Commit Graph

225 Commits

Author SHA1 Message Date
Boris Zbarsky
a45e55e1a6 Bug 705877 part 4. Use the TreeMatchContext's ancestor filter, if any, in EnumerateAllRules. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky
2b015eb44c Bug 705877 part 3. Hang an optional Bloom filter and some methods for managing it off the TreeMatchContext. r=dbaron 2012-03-12 22:54:15 -05:00
Boris Zbarsky
23845b8aec Bug 705877 part 2. Store the hashes of the atoms occurring as IDs, classes, and tag names in selectors that would need to match one of our ancestors. r=dbaron
We store a maximum of 4 hashes to save space.  Interesting questions are whether 4 is the right number
and whether we should, prioritize ids and classes over tags.  In practice, this seems to be good enough
at least performance-wise, though it's possible we could use less memory and still do OK on the performance.
2012-03-12 22:54:14 -05:00
Nathan Froyd
7adb7a65ea Bug 731615 - Eliminate duplicate headers in layout. rs=smontagu 2012-02-29 10:57:47 -05:00
Zack Weinberg
dc30af584b Bug 729142 - Convert layout/style to MOZ_STATIC_ASSERT. r=dbaron 2012-02-23 08:19:00 -08:00
Heather Arthur
aee4173802 Bug 708874 - API for locking pseudo-class state of an element. r=bz 2012-02-08 10:42:38 -08:00
Nicholas Nethercote
dd32d38d63 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
2fa63e0548 Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Boris Zbarsky
882520d6d7 Bug 700914. Initialize the rulehash's hashtables lazily. r=dbaron 2011-12-09 05:29:01 -05:00
Nicholas Nethercote
2a7afd1ec3 Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky 2011-12-08 21:01:52 -08:00
Boris Zbarsky
aeef1e4c75 Bug 689443. Switch PerWeightData back to using linked lists instead of arrays for the actual per-weight rule data, so as to reduce fragmentation. r=dbaron
This incidentally fixes a bug where we were copying the per-weight data very inefficiently.
2011-12-08 01:32:11 -05:00
Boris Zbarsky
82248f05f1 Bug 704911. Don't restyle based on state selectors that match our node but don't depend on the state that's changing. r=dbaron 2011-12-05 23:58:15 -05:00
Ed Morley
7a94e94707 Backout 15cf68a3c027, 2f403e4c42c8, 61534874aed7, 1cb3705557d9 & 03970d1fc919 (bug 661746) for Win PGO build failures; a=bz 2011-11-14 18:10:22 +00:00
David Zbarsky
78277b1442 Bug 661746 - Part 5: Avoid creating atoms during selector matching. r=bzbarsky 2011-11-14 16:30:28 +13:00
David Zbarsky
0cdb162895 Bug 661746 - Part 4: use const nsIDocument in selector matching. r=bzbarsky 2011-11-14 16:30:22 +13:00
David Zbarsky
d7103aec40 Bug 661746 - Part 3: Use const selectors during selector matching. r=bzbarsky 2011-11-14 16:30:16 +13:00
David Zbarsky
b9bd3dd4bb Bug 661746 - Part 2: Make selector matching work with const elements. r=bzbarsky 2011-11-14 16:30:08 +13:00
David Zbarsky
1afed10a08 Bug 661746 - Part 1: Delay setting slow selector flags during selector matching to avoid mutating Elements. r=bzbarsky 2011-11-14 16:29:56 +13:00
David Zbarsky
71021df43b Bug 660959 - Update link state less lazily r=bz 2011-11-14 16:24:41 +13:00
Daniel Holbert
507a8a5820 Bug 641731: Ignore :visited status in SVG image documents. r=dbaron 2011-10-29 02:43:43 -07:00
Olli Pettay
a86b1a4d43 Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst
--HG--
extra : rebase_source : baf1a25cdea68d499a7673fdf96e27b5a12dc83c
2011-10-18 13:53:36 +03:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Boris Zbarsky
9bbf579b35 Bug 681755. Switch some of the style system's arrays in hashtables to be auto arrays. r=dbaron 2011-10-05 22:06:37 -04:00
Justin Lebar
d6675374cb Back out 81ca82f27831 (bug 681755) due to incorrect leak reporting.
(I accidentally pushed the wrong version of this patch.)
2011-10-05 22:02:44 -04:00
Boris Zbarsky
4cd3c0834b Bug 681755. Switch some of the style system's arrays in hashtables to be auto arrays. r=dbaron 2011-09-15 15:21:52 -07:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Masayuki Nakano
f15fd02ef4 Bug 669028 part.11 layout/style should use mozilla;LookAndFeel rather than nsILookAndFeel r=dbaron 2011-09-09 11:27:12 +09:00
Markus Stange
076571f0ef Bug 679717 - Add "mac-lion-theme" system metric in order to allow for Lion-specific CSS rules without the need for per-file manifest overrides. r=dbaron 2011-08-18 10:40:27 +02:00
arno renevier
2485241198 Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan 2011-08-12 15:12:45 -04:00
Kyle Huey
672b1171d1 Bug 676314: Count RuleHash's mArena in about:memory. r=bz 2011-08-08 08:36:38 -04:00
Kyle Huey
5121836049 Bug 676048: Followup to add more comments. 2011-08-08 08:34:57 -04:00
Boris Zbarsky
d1fc2911e3 Bug 676174. Remove the unncessary RuleHash_CSMatchEntry and resulting complications from AtomSelector_CSOps. r=dbaron 2011-08-07 22:23:36 -04:00
Boris Zbarsky
84f2ccaf56 Bug 676057. Get rid of the malloc-happy AttributeSelectorEntry class. r=dbaron 2011-08-03 14:32:32 -04:00
Kyle Huey
4206f2424c Bug 676048: Report RuleCascadeData and substructures to about:memory. r=bz 2011-08-02 16:21:52 -04:00
Kyle Huey
03cf2fd98c Bug 675641: Enumerate nsIStyleRuleProcessors in about:memory. r=bz 2011-08-01 14:25:20 -04:00
Matheus Kerschbaum ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
6469811981 Bug 664924 - Remove MOZ_CSS_ANIMATIONS ifdefs. r=dbaron 2011-06-20 16:47:09 -07:00
Boris Zbarsky
e0320797e3 Bug 598833 part 8. Create an explicit API to request link state updates. r=smaug,sdwilsh
This is a bit of a hack to make sure that we update link state sometime when doing style resolution, pending a better setup in bug 660959 for determining when to resolve the link URI.
2011-05-31 21:46:57 -04:00
Boris Zbarsky
7867f56859 Bug 598833 part 7. Make IntrinsicState protected. r=smaug 2011-05-31 21:46:57 -04:00
Boris Zbarsky
48e3edf8fc Bug 598833 part 6. Get rid of nsEventStateManager::GetContentState. r=smaug 2011-05-31 21:46:56 -04:00
Masayuki Nakano
85c451e309 Bug 660121 Remove all pref related methods from nsContentUtils r=roc 2011-05-29 08:42:57 +09:00
Masayuki Nakano
060287addd Bug 659533 Replace nsContentUtils::GetBoolPref() with Preferences::GetBool() r=roc 2011-05-25 15:31:59 +09: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
Craig Topper
cc15a2a6e3 Bug 648925 - Part 1: Change uses of nsICSSRule to css::Rule. r=bzbarsky 2011-04-07 18:23:46 -07: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
David Zbarsky
5ecf0a2bd3 Bug 610305: decom nsEventStateManager r=smaug 2011-04-21 19:35:52 +02:00
Mounir Lamouri
b4cf8cd184 Backed out changeset c1a7c1bc1aeb due to busted build. 2011-04-20 22:26:06 +02:00
David Zbarsky
c4d29900ed Bug 610305: decom nsEventStateManager r=smaug 2011-04-20 21:42:33 +02:00