Commit Graph

2016 Commits

Author SHA1 Message Date
dbaron%dbaron.org
8aa5fdd615 Fix --disable-xul bustage. b=219058 2003-09-22 23:52:16 +00:00
dbaron%dbaron.org
3e6e65d074 Allow list numbering to work on elements with 'overflow'. b=219716 Patch from Mats Palmgren <mats.palmgren@bredband.net>. r=dbaron sr=bzbarsky 2003-09-22 22:07:48 +00:00
dbaron%dbaron.org
14ff1fa0fe Accept :-moz-tree-* pseudo elements with a single colon in them. b=219058 r+sr=bzbarsky 2003-09-21 05:21:40 +00:00
dbaron%dbaron.org
c49da48965 Change our implementation of 'overflow: hidden' to be more compatible with other browsers, as CSS 2.1 now allows. b=69355 r+sr=bzbarsky 2003-09-16 22:09:18 +00:00
dbaron%dbaron.org
506e1cf947 Don't create style rule DOM wrappers for inline style, since we are not supposed to, and ours crash when used on inline style. b=218222 r+sr=bzbarsky 2003-09-13 19:18:52 +00:00
bsmedberg%covad.net
0568e675fc Bug 179834. Separate application resources and GRE resources. r=darin sr=dougt 2003-09-13 17:55:56 +00:00
bryner%brianryner.com
2fcdb4e2d5 Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan. 2003-09-07 21:50:21 +00:00
bzbarsky%mit.edu
59d4caaee1 Don't use uninitialiazed hashtable. Bug 214941, r=bsmedberg, sr=peterv, a=dveditz 2003-08-11 18:16:48 +00:00
roc+%cs.cmu.edu
0b8cd870e1 Bug 190735. nsIFrame deCOMtamination, r+rs=dbaron 2003-08-06 03:07:12 +00:00
rbs%maths.uq.edu.au
408bf58f3f Sync the handling of stretchy MathML frames with the new ::-moz notation, b=214989, r+sr=dbaron 2003-08-05 02:07:14 +00:00
bzbarsky%mit.edu
9aa115b961 Fix border-side parsing to not mess up the color. Bug 214487, r+sr=dbaron 2003-07-30 23:45:34 +00:00
caillon%returnzero.com
a9e2dece76 Bug 38370.
Allow color of an HR element to be changed.
Make HR be a block element in quirks mode instead of the hacky inline we were previously using (standards mode already had it as a block).
Patch by Ian Hickson <ian@hixie.ch> with minor modifications by me.
r+sr=bzbarsky@mit.edu
2003-07-30 08:13:07 +00:00
bzbarsky%mit.edu
e2dae4d2f9 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
2003-07-28 21:17:26 +00:00
bzbarsky%mit.edu
93aa1eeb86 DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823, r+sr=jst 2003-07-28 21:09:56 +00:00
bsmedberg%covad.net
01ee486155 Fix assertion from bug 211470, rs=bz 2003-07-28 01:12:36 +00:00
bsmedberg%covad.net
3d0c40f387 Forgot a review nit from bug 211470. 2003-07-27 15:46:52 +00:00
bsmedberg%covad.net
279d0db1f7 Bug 211470 - need a common nsURIHashKey r=darin sr=bz 2003-07-27 15:20:11 +00:00
bzbarsky%mit.edu
d05c67bce3 Remove support for the single-':' form of -moz-* pseudo-elements. Bug 211657,
r+sr=dbaron
2003-07-25 22:44:58 +00:00
jaggernaut%netscape.com
95899387f6 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron 2003-07-25 19:06:59 +00:00
bzbarsky%mit.edu
9a4b8706ea Remove unused variable. 2003-07-25 04:06:31 +00:00
bzbarsky%mit.edu
d0666152a5 Add an nsIDocument* GetOwnerDocument() to nsGenericElement, deCOMify
nsINodeInfo a tad.  Bug 211634, r=jkeiser, sr=jst
2003-07-24 17:30:52 +00:00
jaggernaut%netscape.com
6ab6643eee Fix bustage 2003-07-20 08:35:21 +00:00
jaggernaut%netscape.com
9819e5e8fa Bug 25886: Get rid of a bunch of unused NS_DEFINE_IID, NS_DEFINE_CID. r=caillon, sr=dbaron 2003-07-20 07:40:43 +00:00
bzbarsky%mit.edu
aad8c26a95 Fixing build bustage. 2003-07-18 02:00:01 +00:00
caillon%returnzero.com
7495519180 Bug 212504. Removal of the default namespace arguments from CSSStyleSheet and CSSLoader.
r=bzbarsky@mit.edu, sr=dbaron@dbaron.org
2003-07-18 01:26:47 +00:00
bzbarsky%mit.edu
840b81c0cd Make the URI of a sheet be its final URI after all the redirects, not the URI
linked to from the original document.  Bug 96858, r+sr=dbaron
2003-07-18 00:35:49 +00:00
jaggernaut%netscape.com
817298ce0b Bug 212272: Switch some Substring users over to String(Begins|Ends)With. r=dwitte, sr=bzbarsky 2003-07-14 07:37:39 +00:00
dbaron%dbaron.org
0f8da4d057 A little selector matching cleanup. b=212603 r+sr=bzbarsky 2003-07-13 23:09:10 +00:00
dbaron%dbaron.org
d85698fd40 Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky 2003-07-11 21:16:12 +00:00
dbaron%dbaron.org
2fec18446c Fix leak caused by CSS2PropertiesTearoff by simplifying aggregation. b=212269 r+sr=bzbarsky 2003-07-11 20:44:25 +00:00
dbaron%dbaron.org
296a055325 Attempt to fix warning by ensuring one path is always used, even for invalid ids. b=210550 r+sr=bzbarsky 2003-07-11 20:42:59 +00:00
dbaron%dbaron.org
35a6c43f33 Convert jump tables to if-else trees to avoid the performance cost of function pointers. b=210550 r+sr=bzbarsky 2003-07-09 03:46:27 +00:00
bzbarsky%mit.edu
4ee83f7ab9 Fixing assert condition to be correct. Thanks to riceman+bmo@mail.rit.edu for
noticing.
2003-07-09 01:48:20 +00:00
jaggernaut%netscape.com
6ca349f43f Bug 210834: Bogus comparison in nsCSSParserImpl::ParseURL. r=bzbarsky, sr=jst 2003-07-08 11:49:48 +00:00
bzbarsky%mit.edu
3a26daf50b Update comments to reflect the fact that there is no longer a change hint
passed to the macros.
2003-07-08 07:12:17 +00:00
bzbarsky%mit.edu
fbbd9fb60e This line should not have snuck in. 2003-07-07 22:03:32 +00:00
bzbarsky%mit.edu
b2ba25b6fd Move to the double-'::' notation for various pseudo-elements.
Bug 211657, r+sr=dbaron
2003-07-07 21:57:01 +00:00
bzbarsky%mit.edu
0c5dc097d7 Don't bother reresolving style when empty stylesheets get added (eg from empty
<style> elements).  Also remove the methods for blowing away the ruletree
during a style reresolve, since ruletrees are now garbage-collected.  Bug
196557, r+sr=dbaron
2003-07-04 01:44:24 +00:00
bzbarsky%mit.edu
10600c0acd Add support for '::' notation for CSS pseudo-elements (bug 62843). Drop
selectors containing unrecognized pseudo-classes and pseudo-elements (bug
145968).  Fix some CSS rules in quirk.css and xul.css that were bogus (no
bug).  Patch in bug 62843.  r+sr=dbaron
2003-07-04 01:33:10 +00:00
bzbarsky%mit.edu
0b0c3f7646 Add nsIContent::GetBaseURL; get rid of similar functions on nsIXMLContent and
nsIHTMLContent.  Bug 209573, r=caillon, sr=jst.
2003-07-03 02:45:34 +00:00
dbaron%dbaron.org
29254c752a Remove hints from CSS property list. b=158713 r+sr=bzbarsky 2003-07-02 22:17:23 +00:00
dbaron%dbaron.org
b10e90f02b Remove remaining user of CSS-property-based style hints. b=158713 r+sr=bzbarsky 2003-07-02 21:05:09 +00:00
bzbarsky%mit.edu
fd57f310f1 Change GetHrefUTF8 to GetHrefURI to make sure that we don't lose track of the
origin charset.  Bug 166996, r=dbaron,darin sr=jst
2003-07-01 02:59:54 +00:00
dbaron%dbaron.org
c00fbe09c4 Clean up EnsureBlockDisplay and make it do the right thing for inner table display types. b=210873 r+sr=bzbarsky 2003-06-30 21:48:56 +00:00
dbaron%dbaron.org
97c994908a Remove change hints from CSS parser and replace with boolean indicating whether there was a change, computed a much simpler way. b=158713 r+sr=bzbarsky 2003-06-30 21:39:22 +00:00
dbaron%dbaron.org
ef811ed02b Fix crash bug 209575 by ensuring that mDeclaration is never null. Remove unneeded null checks. r+sr=bzbarsky 2003-06-30 21:31:25 +00:00
dbaron%dbaron.org
a835d37852 Fix missing AddRef that was causing crashes in inspector. b=208190 r+sr=roc 2003-06-27 21:06:45 +00:00
dbaron%dbaron.org
1ce98378e3 Fix windows bustage. b=188803 2003-06-24 06:20:18 +00:00
dbaron%dbaron.org
06bb24f863 Implement the DOM interfaces for CSS style rules on a wrapper object which allows the immutable rule object to be swapped out underneath. b=188803 r+sr=bzbarsky 2003-06-24 05:40:37 +00:00
dbaron%dbaron.org
6a1ab46ff2 Fix dynamic changes to negated attribute or state selectors. b=210458 r+sr=bzbarsky 2003-06-24 05:34:30 +00:00
bzbarsky%mit.edu
61a6512de2 Fix matching when attribute selectors with "*" as a namespace are involved.
Bug 210314, r+sr=dbaron
2003-06-24 04:50:05 +00:00
bzbarsky%mit.edu
f75f9017d9 Make setting contentType or contentCharset act as hints if done before channel
open; use this in the CSSLoader to hint that we want text/css data.  Bug
120789, r=dougt, sr=darin
2003-06-23 21:00:46 +00:00
bsmedberg%covad.net
1a9cab373f Bug 210337 - Spring cleaning of unused XPCOM code and callers r/sr=alecf/bz 2003-06-23 20:31:43 +00:00
bzbarsky%mit.edu
46701a74ea Fix some DEBUG_bzbarsky code people didn't bother to update. r+sr=whatever 2003-06-23 18:34:02 +00:00
jshin%mailaps.org
d208f051a7 bug 206379 : additional patch : get rid of ResolveCharset() (static) and
rely on GetUnicodeDecoder() of nsICharacterSetConverterManager to take care of
the charset alias resolution. (r/sr=bzbarsky, sr=alecf)
2003-06-23 05:04:43 +00:00
dwitte%stanford.edu
b444fcb403 removing some unused default ctors now that nsDerivedSafe can handle it.
no bug, r+sr=bz
2003-06-21 07:01:42 +00:00
jst%netscape.com
947ba67a9d Fixing one more part of bug 209699. Replace NS_Convert* with Copy/Append*. r=dwitte@stanford.edu, sr=alecf@flett.org. 2003-06-21 00:26:28 +00:00
bzbarsky%mit.edu
f6e49f740f Check that we are HTML, in addition to checking namespace, before going
case-insensitive.  Bug 209271, r+sr=dbaron
2003-06-20 20:23:17 +00:00
dbaron%dbaron.org
51e6755ccd Add nsIFrame::GetPresContext, which gets the pres context from the rule node which it gets from the style context. DeCOMtaminate nsStyleContext::GetRuleNode, nsRuleNode::GetRule, and nsRuleNode::GetPresContext. Remove unused nsRuleNode::PathContainsRule. b=208190 r+sr=roc 2003-06-20 01:22:44 +00:00
mkaply%us.ibm.com
e0dae80908 #188071
r=mkaply, sr=dbaron
Add a lookandfeel color for button default so it can be different than 3D shadow
2003-06-18 20:47:40 +00:00
dbaron%dbaron.org
146a7a98ed OOM check. r+sr=bzbarsky b=188803 2003-06-18 03:02:01 +00:00
dbaron%dbaron.org
fe7914e2c9 Make CSSStyleRuleImpl immutable by changing mutation code (including some merging of code between nsDOMCSSAttributeDeclaration and DOMCSSDeclarationImpl) so that it creates a new rule for the modified declaration. Change StyleRuleChanged notification signatures, and change pres shell's handling of style rule change, addition, and removal to just do reresolution. Remove fine-grained ways of clearing style data. Change PeekStyleData so it doesn't do more work than it needs to, and can be relied on not to access rules that no longer match any content. b=188803 r+sr=bzbarsky 2003-06-18 01:59:57 +00:00
dbaron%dbaron.org
fb04d1df25 Specify 'word-spacing: normal; letter-spacing: normal' for input and textarea so that 'word-spacing' and 'letter-spacing' on ancestors of text inputs don't mess up the spacing inside. b=209615 r=jkeiser sr=bz 2003-06-17 18:01:51 +00:00
alecf%flett.org
b7fa256d74 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org
2003-06-17 16:40:34 +00:00
dbaron%dbaron.org
4b4e411eac Rename nsILink::GetHrefCString to GetHrefUTF8 to clarify prior change in semantics. Remove duplication of code to implement it. Fix some incorrect conversions that were still assuming it was ASCII. Remove vestigial |aOuter| parameter to nsGenericHTMLElement::HandleDOMEventForAnchors. b=209566 r+sr=jst 2003-06-17 16:22:51 +00:00
aaronl%netscape.com
fccde7c7eb Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl 2003-06-16 11:17:18 +00:00
dbaron%dbaron.org
39d390d27f Create only one CSSStyleRuleImpl per rule rather than one per comma-separated selector to fix CSSOM compliance bugs and make rule immutability easier. Store list of selectors on the CSSStyleRuleImpl, each with their own weight. b=98765 r+sr=bzbarsky 2003-06-14 23:50:54 +00:00
bzbarsky%mit.edu
e49f24690b CSS3 Selectors is now in CR, so we can change -moz-hsl() to hsl(). Bug 208159,
r+sr=dbaron
2003-06-14 20:44:26 +00:00
caillon%returnzero.com
2df173e9c8 Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
2003-06-13 20:10:01 +00:00
caillon%returnzero.com
c0d2e93d73 Bug 209133
Make |Node| from script recognize constants defined in nsIDOM3Node.
Move DOM3 constants over to nsIDOM3Node.
Update the names and values to reflect the latest draft of the DOM 3 Core (Last Call)

r=timeless sr=jst
2003-06-12 02:54:16 +00:00
dbaron%dbaron.org
73cdfadc6a Fix silly mistake. b=209091 r+sr=bzbarsky 2003-06-12 00:03:32 +00:00
alecf%flett.org
2751c6b097 fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser
2003-06-11 18:16:03 +00:00
dbaron%dbaron.org
4919c99863 Fix minor inconsistency between functions. b=208548 r+sr=bzbarsky 2003-06-10 22:09:58 +00:00
dbaron%dbaron.org
439819ce83 Make nsCSSDataBlock::Clone work correctly. Fix uninitialized variable warning. b=208872 r+sr=bzbarsky 2003-06-10 22:08:40 +00:00
dbaron%dbaron.org
f8f9bcc4be Fix bugs with colors in tables in cases where some content comes before the start tag of BODY by rechecking the computed color of BODY more often. b=94688 Patch from Mats Palmgren <mats.palmgren@bredband.net>. r+sr=dbaron 2003-06-08 19:52:22 +00:00
dbaron%dbaron.org
57174ecf3a Fix bustage on compilers with broken for loop scoping. b=125246 2003-06-08 00:36:08 +00:00
dbaron%dbaron.org
91c1698053 VC++ doesn't seem to like empty arguments to macros. Fixing bustage. b=125246 2003-06-07 23:29:05 +00:00
dbaron%dbaron.org
0a143da53b Put more information on the CSS properties in nsCSSPropList.h.
Use the property list in the tables for nsRuleNode::CheckSpecifiedProperties.
To reduce heap usage, redesign the storage of properties and values in nsCSSDeclaration to allocate all property-value pairs in a declaration block in a single allocation, and use temporary structures (like the old permanent structures) during parsing and modification.  Replace per-property switch statements in nsCSSDeclaration with table-based code to reduce code size.
b=125246  r+sr=bzbarsky
2003-06-07 22:14:42 +00:00
bmlk%gmx.de
7baca1626f anonymous table cell frames should not have a default padding, td and th padding defaults are set in html.css, bug 72359, patch proposed by hixie some time ago (2001-06-21) r=bernd sr=dbaron 2003-05-31 09:16:23 +00:00
bryner%netscape.com
5090c7bf22 Bug 197136, <button> elements should be Aqua bevel buttons for Cocoa. Add a new -moz-appearance value, button-bevel. Also, fixed a problem that caused the button in a file input control to change size when it was focused. r=pinkerton, sr=sfraser. 2003-05-29 22:39:05 +00:00
bzbarsky%mit.edu
2d8c24058a Make some static data const in content. Bug 204532, patch by ataylor@its.to
(Andrew Taylor), r=bzbarsky, sr=alecf
2003-05-27 03:49:22 +00:00
cbiesinger%web.de
8dc2f15ba0 patch by tenthumbs@cybernex.net r+sr=bz bug 206864
Incorrect comparison in content/html/style/src/nsCSSParser.cpp
2003-05-26 16:59:40 +00:00
roc+%cs.cmu.edu
f5b886b9cd Bug 202681. Do not recreate frames during reflow via -moz-binding change for lazy scrollbars. Instead of lazy scrollbars, completely remove the anonymous scrollbar element for scrollbars which are disabled by CSS. r+sr=dbaron,a=asa 2003-05-22 01:46:13 +00:00
bzbarsky%mit.edu
d8f4088d90 Quiet some silly warnings. Bug 72164, patch by Eric Lawrence
<elawrenc69@yahoo.com>, r+sr=bzbarsky, a=asa
2003-05-21 02:06:01 +00:00
bzbarsky%mit.edu
74f7ffbdb3 Fix parsing of |url()| to treat it like the URI "" instead of as an error. Bug
203256, r+sr=dbaron, a=brendan
2003-05-18 14:57:23 +00:00
bzbarsky%mit.edu
b84cf009ec Make font-size:larger and font-size:smaller smarter about interpolating and
extrapolating font sizes.  Bug 72164, patch by Eric Lawrence
<elawrenc69@yahoo.com>, r=bzbarsky, r+sr=dbaron, a=asa
2003-05-17 16:11:51 +00:00
dbaron%dbaron.org
75ff60c62f Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan 2003-05-15 03:42:21 +00:00
dbaron%dbaron.org
5cee333241 Fix regression that text zoom was broken on text fields on Windows. b=205534 r+sr=roc a=asa 2003-05-14 22:37:57 +00:00
bzbarsky%mit.edu
e7e97a4c97 Minor tweak to never match in an error case we better not be hitting anyway.
Bug 77519, r=glazou (who also posted the first patch version; r=me on the part
he did), sr=dbaron, a=sspitzer
2003-05-08 01:59:25 +00:00
varga%netscape.com
7967318ca3 Fix for bug 189719. Automatic image sizing: Use a custom magnifying glass cursor.
r=dbaron, sr=roc, a=sspitzer
2003-05-02 22:23:55 +00:00
neil%parkwaycc.co.uk
8664402ee6 Bug 190281 Focus doesn't skip disabled inputs properly r=aaronl sr=jst a=asa 2003-05-01 10:42:33 +00:00
bzbarsky%mit.edu
8565cf3ef4 Fix sizing of disabled buttons to match enabled ones. Bug 147463,
r=jkeiser, sr=roc+moz, a=asa
2003-04-29 18:45:51 +00:00
dbaron%dbaron.org
1d027cdecd Remove extraneous |inline| to fix bustage. 2003-04-15 04:19:27 +00:00
dbaron%dbaron.org
743dbe34c1 Split nsCSSDeclaration.h and .cpp into separate files for the structs (nsCSSStruct.h and .cpp) and nsCSSDeclaration. b=201681 2003-04-15 03:07:34 +00:00
bryner%netscape.com
3a3ec0cbd5 Make --disable-xul work (bug 69995). We build enough XUL to support
scrollbars unconditionally, but can now leave out heavyweight widgets like
grid, listbox, and tree.  r=bzbarsky, sr=alecf.
2003-04-11 00:56:27 +00:00
dbaron%dbaron.org
52c518fcd8 Remove lines that do nothing except leak. r+sr=bzbarsky 2003-04-10 23:26:36 +00:00
mkaply%us.ibm.com
7f01690eb2 No bug
r/sr=dbaron
use -moz-fixed instead of Courier for XML error messages so they are always fixed regardless of prefs
2003-04-10 19:01:47 +00:00
roc+%cs.cmu.edu
3936b4c393 Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron 2003-04-08 20:50:57 +00:00
bzbarsky%mit.edu
8219f428d6 CSSLoader should check content policy. Bug 190653, r=mvl, sr=peterv 2003-04-04 23:57:06 +00:00
alecf%netscape.com
c8aef61acf fix for bug 199170, convert layout to use nsStaticAtom. sr=dbaron 2003-04-02 04:51:07 +00:00