Граф коммитов

219 Коммитов

Автор SHA1 Сообщение Дата
dbaron%fas.harvard.edu c14a4b7581 Replace the mMediumCascadeTable nsHashtable with a linked list of rule cascades since searching a linked list of at most two elements (and usually just one) is *much* faster than doing a hashtable lookup. r=waterson sr=attinasi b=90791 2001-07-16 20:59:28 +00:00
jaggernaut%netscape.com 5a6317b8a5 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
dbaron%fas.harvard.edu d825ec0bc7 Correct matching of dashmatch (|=) according to recent CSS WG discussions and fix :not() bugs with class selectors, id selectors, and $= and ^= attribute selectors. r=hixie sr=attinasi a=asa b=83616 2001-06-19 22:46:08 +00:00
dbaron%fas.harvard.edu d4918d0cb3 Miscellaneous performance fixes related to selector matching:
* cut in half the number of (expensive, universally hashed) selectors needed for many UA-stylesheet :link and :visited rules by implementing :-moz-any-link (bug 83484)
 * remove most of EnumerateTagRules since most of it does no useful work (bug 83506)
 * avoid refcounting of atoms for stack-based hash keys (bug 83511)
 * add logging (turned off, except for me) to evaluate effectiveness of RuleHash
 * add a namespace hash, which will be a big win once bug 35847 is fixed (bug 83497)
 * avoid repeated reallocation of mEnumList by setting the initial length to a minimum of 8
 * remove an unneeded variable in the beginning of SelectorMatches
 * fix one case in CSS error reporting (bug 65469), not part of default build
b=83482  r=attinasi@netscape.com  sr=waterson@netscape.com  a=asa@mozilla.org
2001-06-05 01:00:11 +00:00
hyatt%netscape.com b135c5b55a Fix for 78695 (rule matching improvements). r/sr=attinasi, jst, waterson 2001-05-31 22:19:43 +00:00
dbaron%fas.harvard.edu 9d5bc0637c Work around crash by using nsSupportsArray::Clone instead of the buggy (82133) nsSupportsArray::AppendElements. Patch from glazman@netscape.com, r=dbaron, sr=attinasi, b=80057 2001-05-22 20:53:00 +00:00
jst%netscape.com f7460d0269 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 16:46:42 +00:00
dbaron%fas.harvard.edu 60db9f50dc Fix OS/2 bustage. |nsISupportsArrayEnumFunc| should not have |PR_CALLBACK|. 2001-04-28 04:30:42 +00:00
dbaron%fas.harvard.edu 33fd6335e4 Fix unneeded construction of |nsAutoString|s in |SelectorMatches| by pulling one out of a loop and rewriting matching of ^= and $= CSS3 selectors to remove the other. b=77063 r=glazman@netscape.com sr=attinasi@netscape.com
Fix O(N^2) cascading by replacing insertion into one large |nsISupportsArray| with appending into a hashtable (hashed by weight) of |nsISupportsArray| and then combining those arrays into the larger array.  b=77066  r=attinasi@netscape.com  sr=waterson@netscape.com
Reduce construction of |SelectorMatchesData| by retaining (so they can be used for matching other selectors) any new ones constructed in |SelectorMatchesTree| until the one originally passed to |SelectorMatchesTree| is destroyed.  b=77090  r=attinasi@netscape.com  sr=waterson@netscape.com
2001-04-28 02:16:16 +00:00
pierre%netscape.com 7e44a669bf #12386 "Matching of case sensitive attribute values should be case sensitive" sr=waterson 2001-04-18 04:36:52 +00:00
attinasi%netscape.com 91b83e404f Fix for regression: only restrict HTML content from event pseudo application. b=75823 sr=hyatt 2001-04-14 06:34:50 +00:00
attinasi%netscape.com ba852bc4c0 'Fixes' major performance problem with universal dynamic pseudo selectors by restricting their application in Standard mode to the same elements we restrict them to in QuirksMode. b=68821 r=waterson sr=shaver 2001-04-11 23:47:34 +00:00
blakeross%telocity.com 80bf68ccea Implement css3 :empty selector (75186). Patch by the evil QA-turned-engineer Ian Hickson <ian@hixie.ch> who insists on using me shamelessly for my cvs account. r=pierre sr=attinasi 2001-04-11 02:55:41 +00:00
glazman%netscape.com 63836c542e fix for :not() due to 72302; b=71647, r=pierre, sr=attinasi 2001-04-10 13:43:20 +00:00
hyatt%netscape.com fa6e409fe0 Fix regression to :-moz-bound-element caused by the :not checkin. 2001-04-08 22:22:47 +00:00
attinasi%netscape.com e1128e740c Fixed performance problem caused by unused nsAutoString in SelectorMatches.
Patch by bratell@lysator.liu.se, r=glazman@netscape.com sr=attinasi@netscape.com b=74830
2001-04-05 23:14:00 +00:00
blakeross%telocity.com c9b9689e26 Use more efficient command structure, refactor commands, broadcasters and keys, remove unused attributes, do some other optimization (72923). Landing navigator part only; this should help new window opening and some other areas. r=ben sr=hyatt 2001-04-05 19:53:13 +00:00
glazman%netscape.com 2fd3ed5466 Support for :last-child pseudoclass; checking in for Ian Hickson ; b=46916, r=pierre, sr=attinasi 2001-03-30 10:20:57 +00:00
glazman%netscape.com 050041f52f easy fix for 71647 ; that bug was hidden behind 72302, [s]r=attinasi 2001-03-21 09:40:41 +00:00
hyatt%netscape.com 7eb8765948 Fix for 62985, r=dbaron, sr=attinasi 2001-03-21 08:10:20 +00:00
glazman%netscape.com 4fc3eb0ce3 adds support for :not() css3 pseudo-class; b=71647, r=pierre, sr=hyatt 2001-03-20 11:49:20 +00:00
blakeross%telocity.com 1dba7198b2 Crash when reading past the end of a CSSRuleList. patch by Hixie (ian@hixie.ch). r=blake, glazman sr=jst 2001-03-19 22:12:12 +00:00
hyatt%netscape.com a540a46a90 Fix for 70704 and 71261. r=pierre, sr=attinasi 2001-03-13 02:34:02 +00:00
attinasi%netscape.com afea68eefb Backed out last night's changes due to regression that exposed a fatal flaw in the idea of the fix. r=71561 2001-03-11 07:54:00 +00:00
attinasi%netscape.com 32af6bd77f Prevent text nodes from being passed to SelectorMatches to improve style resolution performance and ensure correctness. b=56117 r=pierre sr=waterson 2001-03-10 06:14:52 +00:00
glazman%netscape.com 99f88218ba enhancement for the 3 new attributes selectors in CSS 3. r=dbaron, sr=attinasi 2001-03-03 00:54:04 +00:00
waterson%netscape.com 9fe59f23f0 Bug 43121. Move XUL content model code from RDF DLL to content DLL. r=jst,hyatt; sr=brendan. 2001-02-22 03:01:34 +00:00
hyatt%netscape.com e050817098 Fix for 67739. r=pierre,attinasi, sr=ben 2001-02-15 21:25:31 +00:00
glazman%netscape.com 9968e71541 patch for #65448 : css parser refused multiple ID selectors in same sequence; r=dbaron,attinasi sr=attinasi (buster's delegation) 2001-02-13 14:06:29 +00:00
dbaron%fas.harvard.edu 6a1cef6f9a Remove trailing semicolons after all uses of MOZ_DECL_CTOR_COUNTER to quiet build warnings on Mac. b=60415 a=brendan@mozilla.org 2001-01-27 23:06:33 +00:00
dbaron%fas.harvard.edu 1e046d05c0 Reduce unnecessary #includes to speed up compilation. r=bryner/sfraser sr=alecf b=64023 2001-01-27 16:58:15 +00:00
attinasi%netscape.com 73fc7b1a0d Performance fix: moves content-specific queries out of SelectorMatches to reduce number of times called in rule matching. b= 53620 r=dbaron sr=waterson 2001-01-27 05:48:41 +00:00
rods%netscape.com edb0c6270c removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
Bug 61274, r=buster sr=waterson
2001-01-04 20:44:42 +00:00
warren%netscape.com cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
jst%netscape.com 9abec73fbe DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2000-08-23 17:27:06 +00:00
warren%netscape.com 84b5fd67e3 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson 2000-08-10 06:19:37 +00:00
dbaron%fas.harvard.edu a09c77e4d1 Improve performance of testing for visited links CSS selector matching by reducing string conversion and by caching the state of the link on the link element. r=waterson b=25963 2000-07-27 23:17:53 +00:00
attinasi%netscape.com 411b3bcaaf Reversed the order of testing for link-elements so that the most common (anchors) are tested first. Update to earlier checkin. 2000-06-22 00:41:25 +00:00
attinasi%netscape.com 67e47d2765 Fixed bug 6306: AREA and LINK elements are now treated like links when it comes to matching selectors. Cleaned up SelectorMatches as well by moving link-logic into new method. r=kmcclusk@netscape.com b=6306 2000-06-21 23:48:21 +00:00
waterson%netscape.com 0abe95456d Use NS_LITERAL_STRING instead of an nsAutoString to avoid copy/inflate on platforms that support two-byte wchar_t. r=attinasi 2000-06-20 05:45:07 +00:00
attinasi%netscape.com 48511a3494 Fixed problem where anchors with no HREF were being styled like links in composer. b=31594 r=kmcclusk 2000-06-07 23:07:57 +00:00
mkaply%us.ibm.com ad3cf0ff6a # 37239
r = jst, a = waterson
OS/2 bringup - PR_CALLBACK for VisualAge
2000-06-05 19:15:32 +00:00
warren%netscape.com 512c8bf433 Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433 2000-06-03 09:46:12 +00:00
attinasi%netscape.com c115636333 Implemented QuirkMode style sheet and moved some initial quirk style rules from html.css to the new quirk.css. b=38026 r=rods a=karnaze 2000-06-02 21:45:06 +00:00
waterson%netscape.com a35fa496f6 Bug 29611. Use 'GetHref()' to retrieve anchor tag's href. r=attinasi 2000-06-02 04:27:47 +00:00
shaver%mozilla.org 6c56f39224 properly handle updating of class or id, #39642, r=attinasi, a=waterson 2000-05-31 20:00:31 +00:00
mkaply%us.ibm.com 960c583bb7 # 37239
r = rickg, a = brendan
OS/2 bringup continues on M16 - Changes for VisualAge build (PR_CALLBACK)
2000-05-31 14:09:34 +00:00
sfraser%netscape.com 280b9c7ce9 Fix the static nsCOMPtr<nsIAtom> atom("type"), replacing it with nsHTMLAtoms::type, to fix an assertion on shutdown. 2000-05-17 02:23:59 +00:00
shaver%mozilla.org 2da0ab457d Significantly reduce the amount of time we blow on style reresolution by
tracking the attributes which appear in CSS selectors, and only firing
a complete reresolution when we change one of those.  In the irrelevant-attr
case, we just let the frame update itself and get on with our lives right
away.  Fixed 38378, r=brendan, booyah.

Also, when setting an attribute to the same value that it currently holds,
don't think about it especially hard, and _don't_ go anywhere near the
style code.  Fixed 21879, r=brendan, boo_yah_.
2000-05-16 02:43:33 +00:00
attinasi%netscape.com 14623c747b Added support for simple xlinks: we now treat simple xlinks like links for styling. b=38026 r=dbaron 2000-05-15 22:30:27 +00:00
jst%netscape.com e0f24c4de8 In stead of throwing an exception when the user asks for the owner rule of style sheet we return null. 2000-05-13 18:10:24 +00:00
mkaply%us.ibm.com 23620fb329 # 34082
r= troy
OS/2 bring up continues - PR_CALLBACKs for VisualAge
2000-05-02 23:07:11 +00:00
pierre%netscape.com ef1931a1f8 35261. Implement :last-node (P and Hx tags inside a cell do not collapse the cell). Change TD to collapse the bottom margin on the last-node. 2000-04-28 10:02:12 +00:00
scc%netscape.com 4e1b0eaca0 making string conversions explicit 2000-04-27 20:38:50 +00:00
dbaron%fas.harvard.edu 9c16f212b1 Fix bug 37082 - attribute selector matching for ~= and |= backwards. r=pierre@netscape.com 2000-04-27 00:07:12 +00:00
jst%netscape.com 70304a6c16 Initialize mRefCnt in the constructor, duh! 2000-04-26 23:24:30 +00:00
jst%netscape.com af8646bbb5 Landing DOM Level 2 CSS and Views interfaces and implementation. 2000-04-26 13:58:56 +00:00
attinasi%netscape.com af2c4a7c11 Removed warnings: very basic changes 2000-04-23 19:06:37 +00:00
dbaron%fas.harvard.edu ed9c5e00ef Prevent selector matching from incorrectly failing due to greedy matching. b=24031 r=pierre@netscape.com 2000-04-22 00:47:18 +00:00
waterson%netscape.com 548a65c864 Back out changes my changes to nsILinkHandler because of performance problems. 2000-04-18 04:34:20 +00:00
braddr%puremagic.com 857f0905f7 eliminiate NS_COMFALSE and remove a layer of logical negation.
r=brendan
2000-04-16 00:23:57 +00:00
scc%netscape.com 52bdf65d60 making string conversions explicit 2000-04-15 21:18:29 +00:00
scc%netscape.com 0012d27605 making string conversions explicit 2000-04-15 20:15:37 +00:00
waterson%netscape.com a06a8ee723 Bug 12493. Change nsILinkHandler interface to take an nsIURI object instead of a string. This allows necko to canonify URIs before passing them back to global history. r=travis,pierre 2000-04-13 19:55:47 +00:00
attinasi%netscape.com 1621b39d9e Implemented Style Size Dump. r=rickg b=26565 2000-03-31 07:08:36 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
attinasi%netscape.com 11934b336b Fixed error in SelectorMatches where anchor tags with no href were being treated as links in some cases. b=23209 r=karnaze 2000-03-20 22:49:42 +00:00
rickg%netscape.com 194f10b94d landing phase 2 to remove deprecated string calls 2000-03-12 11:10:07 +00:00
warren%netscape.com c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
jdunn%netscape.com 080142580c Fix problem with NS_IF_ADDREF on member variables inside of const
member functions.  This includes removing all references to
NS_DEF_PTR and the including of nsIPtr.h

r=troy@netscape.com,dougt@netscape.com,scc@netscape.com
# 28114
a=chofmann@netscape.com
2000-02-17 23:19:18 +00:00
pierre%netscape.com 731ac166e2 Bug 24390 "html:input styles in global.css are ignored". In SelectorMatches(), make string comparisons case-insensitive for HTML content. 2000-02-16 01:09:36 +00:00
pp%ludusdesign.com 58065dda04 Converting ::GetIID() into NS_GET_IID(). Bug #20232. r=scc, r=mozbot 2000-02-02 22:24:56 +00:00
jim_nance%yahoo.com e455fbcd9f Implemented idea from shaver for speeding up SelectorMatches().
We wait until we know we are going to need the contentTag before
we create it.
r=shaver
2000-01-28 04:37:13 +00:00
jim_nance%yahoo.com a77a2365a0 Make SelectorMatches() faster by eleminating a few function calls
r=Shaver
Tree is green enough = waterson
2000-01-27 02:28:52 +00:00
waterson%netscape.com 44416b6765 Bug 22305. Fix accounting for style sheets and rule processors; r=buster, a=sdagley 1999-12-22 01:41:42 +00:00
waterson%netscape.com 0698de9566 Bug 9489. Use nsAutoVoidArray for collecting classes to avoid excessive heap use. 1999-12-01 03:27:25 +00:00
warren%netscape.com 2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
dmose%mozilla.org 5312eacf8c updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
cls%seawood.org bee74e223b Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
kipp%netscape.com bf91cebfba Wiped out another warning 1999-10-15 23:29:21 +00:00
pepper%netscape.com 2e9499e739 Changed friend declaration to make HP compilers happy.
aCC requires a decl of friend class ClassName instead of friend ClassName.
r=peterl@netscape.com,mgleeson@netscape.com
1999-10-14 23:31:07 +00:00
peterl%netscape.com 5cf3f40b06 moved style rule cascading logic into a stand-alone rule processor
the rule processor can now cascade rules from multiple style sheets
fix for bug 12401 & 12106
r=pierre
1999-10-14 00:59:21 +00:00
kipp%netscape.com 65f6ba5343 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
peterl%netscape.com a3aede8c1c First step at fixing 12106, factored out style rule processing from
style sheets into a seperate style rule processor interface
r=troy
1999-10-08 03:09:31 +00:00
kipp%netscape.com 8274ae09b1 r=peterl; Added in ctor/dtor counting 1999-10-05 14:52:20 +00:00
kipp%netscape.com c37ecb974c Removed atom table hacks 1999-09-30 21:17:28 +00:00
peterl%netscape.com 2c450d66f9 added first-node pseudo class (extension) 1999-09-11 00:08:30 +00:00
peterl%netscape.com c6165d5393 fix warning 1999-09-03 23:40:22 +00:00
peterl%netscape.com 6edd662900 added :root pseudo class 1999-08-08 01:17:58 +00:00
peterl%netscape.com 64ca5956b4 removed warnings
update to api changes
1999-07-18 00:27:40 +00:00
kipp%netscape.com dd6cf0e923 Removed a compiler warning 1999-07-16 17:40:39 +00:00
andreas.otte%primus-online.de 838f5a972b NECKO only: Using helper function NS_MakeAbsoluteURI A: chofmann R:valeski 1999-07-11 15:46:10 +00:00
peterl%netscape.com a7f9440b61 cleanup error handling 1999-07-07 01:32:59 +00:00
andreas.otte%primus-online.de 001ff1afea NECKO only: replacing GetBuffer with ToNewCString and some error checking 1999-07-06 23:08:16 +00:00
valeski%netscape.com e4ba4e0477 getbuffer bypass 1999-06-29 23:14:43 +00:00
peterl%netscape.com eb116131c1 cleanup url listing 1999-06-27 21:16:16 +00:00
peterl%netscape.com 536fe1d103 removed old autostring constructor per rickg 1999-06-27 20:42:45 +00:00
warren%netscape.com fbd6d1dc57 Necko ifdefs for layout and rdf. 1999-06-26 06:36:26 +00:00
warren%netscape.com 1f76168d21 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00