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

3558 Коммитов

Автор SHA1 Сообщение Дата
bzbarsky%mit.edu 572ba4e27c Bug 212133 take two. Make images load only after they get a parent if they are
coming from the sink.  Hopefully with better perf this time.  r=caillon, sr=jst
2003-07-11 20:00:31 +00:00
bzbarsky%mit.edu 4f363de0c1 Backing out the other part of the patch for bug 212133, to test perf issues. a=dbaron 2003-07-09 20:27:27 +00:00
bzbarsky%mit.edu 2a97203f6e Oops, didn't mean to back out this part. 2003-07-09 09:57:04 +00:00
bzbarsky%mit.edu 52e8bb5fa3 Backing out part of patch to test whether this is causing the perf regression.
Bug 212133, a=dbaron to back out of tree if I do it before morning builds and
such.
2003-07-09 09:47:13 +00:00
bzbarsky%mit.edu c94df0d9d2 Make <html:img> nodes correctly work with xml:base on ancestors by deferring
the load till after we know who our parent is.  Bug 212133, r=caillon, sr=jst
2003-07-09 06:57:14 +00:00
bzbarsky%mit.edu 0b27cc8a6f Fixing assert condition to be correct. Thanks to riceman+bmo@mail.rit.edu for
noticing.
2003-07-09 01:48:20 +00:00
bzbarsky%mit.edu 462fea1771 Move inheritance around to reduce size of nsHTMLMappedAttributes by a word.
Bug 163215, r+sr=dbaron
2003-07-08 19:19:37 +00:00
jaggernaut%netscape.com aebdd4c93a Bug 210834: Bogus comparison in nsCSSParserImpl::ParseURL. r=bzbarsky, sr=jst 2003-07-08 11:49:48 +00:00
bzbarsky%mit.edu 80f18b18c8 DOM properties that return URIs should return absolute URIs when they
are accessed (even if the corresponding attribute value is a relative URI).
Bug 47534, r=caillon, sr=jst
2003-07-08 05:35:04 +00:00
bzbarsky%mit.edu 874126b90f 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 23e8590dc2 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 dc8e5b98a8 Pass the right document to ParseColor() even when the node is not in a
document.  Bug 211440, r=jkeiser, sr=jst
2003-07-03 20:37:04 +00:00
bzbarsky%mit.edu 0000906617 Follow-up tweak to bug 211030, r+sr=jst 2003-07-03 02:52:29 +00:00
bzbarsky%mit.edu ae2b1aeab0 Fix crash on fetching rowIndex of a row that's not in a table. Bug 211357, r+sr=jst 2003-07-03 02:47:33 +00:00
bzbarsky%mit.edu 25471a836d 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 509bbcc446 Remove hints from CSS property list. b=158713 r+sr=bzbarsky 2003-07-02 22:17:23 +00:00
dbaron%dbaron.org adcaf8d572 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 73bb5159df Adjust hack dealing with the root scrollable frame to only map <body> to it in
quirks mode and to map <html> to it in both quirks and standards mode.  This is
more or less compatible with what IE6/Windows does.  Bug 211030, r+sr=jst
2003-07-01 23:47:27 +00:00
bzbarsky%mit.edu 8770362dce Make it possible to set attrs in a non-null namespace on (X)HTML elements. Bug
211296, r+sr=jst
2003-07-01 23:32:18 +00:00
bzbarsky%mit.edu 3d08b98089 removing unused string var 2003-07-01 14:59:12 +00:00
bzbarsky%mit.edu 10e836c35b 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 d322964941 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 9b78be8799 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 b75ecd009f Fix missing AddRef that was causing crashes in inspector. b=208190 r+sr=roc 2003-06-27 21:06:45 +00:00
jst%netscape.com 2e8edec781 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com 2003-06-24 21:43:01 +00:00
caillon%returnzero.com c0dd16f7be 210451 - Implement getting Node.textContent (see the DOM3 WD)
r+sr=jst@netscape.com
2003-06-24 21:39:39 +00:00
bzbarsky%mit.edu e5462134b5 Add asserts on people attempting to fetch attributes in the
kNamespaceID_Unknown namespace or call HasAttr on such.  Bug 210314, r+sr=jst
2003-06-24 06:45:34 +00:00
dbaron%dbaron.org 4d14f9afbe Fix windows bustage. b=188803 2003-06-24 06:20:18 +00:00
dbaron%dbaron.org 440c73cd8f 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 120e9a5ee9 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 3a04d8e51b 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 d1447d9cc1 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 a77fdd7bd4 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 c1d40be04e Fix some DEBUG_bzbarsky code people didn't bother to update. r+sr=whatever 2003-06-23 18:34:02 +00:00
alecf%flett.org 5644ccd470 fix for bug 209780 - do UTF16->UTF8 conversion outside the recursion, so that we don't constantly convert the string we're looking for
r=dbaron, sr=jst
2003-06-23 18:32:10 +00:00
jshin%mailaps.org 7afb380aa7 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
bzbarsky%mit.edu 62064e4328 Seems to have no effect on Tp, so relanding. Who knows what btek is
thinking....
2003-06-22 06:34:08 +00:00
bzbarsky%mit.edu f4f7afc85f Backing out these last two checkins to see whether this is the cause of Tp troubles. 2003-06-22 01:13:59 +00:00
bzbarsky%mit.edu 8e4d28e9da Only make the check for sameness if there are listeners or if we plan to fire
notifications.  Trying to fix small Tp regression. Bug still 209634, r=caillon,
sr=jag
2003-06-21 07:29:52 +00:00
bzbarsky%mit.edu 36eb6c4539 Make sure to fire no mutation events or internal notifications on attribute
changes that don't change the attr value.  Bug 209634, r=caillon, sr=jst
2003-06-21 04:55:32 +00:00
jst%netscape.com a749a7af60 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 7f7faf723e 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
dwitte%stanford.edu 7c35b83fd4 removing some unused default ctors now that nsDerivedSafe can handle it.
no bug, r+sr=bz
2003-06-20 02:20:34 +00:00
dbaron%dbaron.org 9b1d1eed2b 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
dbaron%dbaron.org 42b06cc4f5 DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc 2003-06-19 23:44:01 +00:00
dbaron%dbaron.org e6cfb79c72 OOM check. r+sr=bzbarsky b=188803 2003-06-18 03:02:01 +00:00
dbaron%dbaron.org 83af5aded6 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
bryner%netscape.com 868da4fa37 Remove unused content code. Bug 207021, r=jst, sr=alecf. 2003-06-17 17:53:06 +00:00
alecf%flett.org 5614718dd3 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 cd4fb875a5 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
bzbarsky%mit.edu 9ac0623eb0 Backing out fix for bug 22480 to fix regression bug 209504. 2003-06-16 23:40:13 +00:00
aaronl%netscape.com 5df2312334 Bug 208460. Remove nsIDOM3Node.idl dependency from nsIDOMNode.idl 2003-06-16 11:17:18 +00:00
aaronl%netscape.com e034e06284 Bug 174910. Mutation events inside anchors not propogated up tree. r=bryner, sr=jst 2003-06-16 10:37:59 +00:00
bzbarsky%mit.edu 468a436ddb Prevent <font>'s color attribute from wiping out its text-decoration style.
Bug 149106, r+sr=dbaron
2003-06-15 02:06:25 +00:00
bzbarsky%mit.edu 3cda5723a2 Make <form><p></form> actually close out the form, since <p> has an optional
end tag.  Bug 22480, r=harishd, sr=heikki.
2003-06-15 00:49:57 +00:00
dbaron%dbaron.org 47ed1de93c 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 04ce2e2b55 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
dbaron%dbaron.org 9664c413c9 Fix crash introduced by changes earlier today. b=209087 2003-06-14 03:47:13 +00:00
caillon%returnzero.com 8203b43b98 Fixing some bustage for cocoa and debug builds 2003-06-13 22:02:42 +00:00
caillon%returnzero.com ba75de772b 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
samuel%sieb.net a3d8d2634c Bug 205850 - add "rightmargin" and "bottommargin" keywords
r+sr=bz
2003-06-13 05:00:35 +00:00
harishd%netscape.com 5d5585b629 Grant access to SOAP response document's properties and also allow the document to be serializable. b=193953, r=heikki@netscape.com, sr=jst@netscape.com 2003-06-12 20:18:34 +00:00
caillon%returnzero.com b56a675840 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 4135299dbf Fix silly mistake. b=209091 r+sr=bzbarsky 2003-06-12 00:03:32 +00:00
alecf%flett.org ccf01a2786 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 f774ff7ebb Fix minor inconsistency between functions. b=208548 r+sr=bzbarsky 2003-06-10 22:09:58 +00:00
dbaron%dbaron.org 0584c9a28a Make nsCSSDataBlock::Clone work correctly. Fix uninitialized variable warning. b=208872 r+sr=bzbarsky 2003-06-10 22:08:40 +00:00
seawood%netscape.com 8f112a4226 Removing old cfm build files. Use the CFM_LAST_RITES tag to resurrect. r=macdev 2003-06-10 21:18:27 +00:00
brade%netscape.com ed8c08834d add functionality to gethtml (cmd_getContents) using queryCommandValue; r=mkaply, sr=smfr, bug=208467 2003-06-10 21:12:29 +00:00
dbaron%dbaron.org 7743fb4531 Add nsILink back to the QueryInterface implementation to fix :link matching LINK. b=208588 Patch from Mats Palmgren <mats.palmgren@bredband.net>. r+sr=dbaron 2003-06-08 19:53:55 +00:00
dbaron%dbaron.org bb6b688862 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 f3a00bc53b 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
mkaply%us.ibm.com 5826d43c42 #158610
r=pavlov, sr=jst
Add support for setting and querying lowsrc attribute so frontpage pic galleries work.
This does NOT make lowsrc work as it used to, it only adds it to the DOM
2003-06-04 13:15:37 +00:00
ere%atp.fi 85bf83d3ee Fix for bug 207413: Midas: designMode = "on" fails for a newly created iframe
patch by jst
r=ere
sr=kin
2003-05-30 20:04:50 +00:00
brade%netscape.com a8005a1108 handle insertHTML and fix fontface to support 2-byte font strings; r=mkaply; sr=kin; bug=184509 2003-05-30 15:02:12 +00:00
jaggernaut%netscape.com 1decc3f74c Bug 203960: Make bookmark groups replace existing tabs instead of appending. r=jkeiser, varga, adamlock, sr=jst, hewitt 2003-05-30 00:21:01 +00:00
alecf%flett.org a08103427a big part of fix for bug 101995 - remove bookmarks dependency from nsHTMLDocument 2003-05-29 22:11:23 +00:00
jst%netscape.com 8d1af18041 Fixing build bustage. 2003-05-29 02:07:35 +00:00
jst%netscape.com 95eabc21fe Fixing bug 203345. Making image maps work correctly in XHTML documents. r=heikki@netscape.com, sr=bzbarsky@mit.edu 2003-05-29 00:53:03 +00:00
timeless%mozdev.org 6dc35bde65 Bug 207330 nsHTMLDocument::TryChannelCharset should use do_GetService (like everyone else) to get @mozilla.org/intl/charsetalias;1
r=bz sr=bz
2003-05-28 22:34:22 +00:00
danm%netscape.com 9fcdb5a87e make wyciwyg urls unique across all documents. bug 172251 code=radha r=nisheeth,jst i'm just the monkey boy. 2003-05-28 22:12:16 +00:00
bzbarsky%mit.edu 1e45eadc55 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 148959d202 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
brade%netscape.com 9b6df1f793 handle fontname and other commands which respond with non-cstrings; r=mkaply, sr=smfr, a=asa; bug 204053 2003-05-23 13:26:46 +00:00
mkaply%us.ibm.com 30158ff255 #206317
r=ere, sr=jst, a=mkaply
Set a default content type to text/html when doing document.write()
2003-05-22 22:39:04 +00:00
bzbarsky%mit.edu 4655878078 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 eba53292ac 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 f8491914bd 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 a15b9f2cf4 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
bryner%netscape.com 1f825a535d Fixes for a number of focus problems:
Bug 201996 (caret blinking in field, but can't type)
Bug 200735 (window is raised when opening link in a new tab)
Bug 203117 (unable to scroll view source window with keyboard)
Bug 194104 (focus is in last tab when opening new window with tabgroup)

Summary of the changes:
- Don't require a frame to be present for focus events.  This allows events like activate and deactivate to correctly update the focus controller even if the document hasn't been reflowed.
- General cleanup and adding of comments in nsEventStateManager::PreHandleEvent.  We now also reuse the event struct when firing focus/blur events to the content, document, and window.
- In nsHTMLElement::SetFocus() and Select(), make sure to set the focused window as well as the focused element, if the focus controller is inactive.
- Fixed handling of certain conditions in PresShell::CheckForFocus() where the results would be different depending on whether the parent or child document unsuppressed painting first.
- General cleanup in PresShell::HandleEvent() and HandleEventInternal().

r=jkeiser, sr=jst, a=sspitzer.
2003-05-12 07:11:16 +00:00
mstoltz%netscape.com ea695f91ea Bug 204682 - do not allow document.domain to be set to the empty string. r=heikki, sr=darin, a=blizzard 2003-05-09 23:56:04 +00:00
jst%netscape.com be265c3ef9 Fixing bug 194994. Make sure hidden iframes' die when leaving the page. r=bugmail@sicking.cc, sr=peterv@netscape.com, a=asa@mozilla.org 2003-05-09 01:42:13 +00:00
bzbarsky%mit.edu 198273d647 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
darin%netscape.com a7a9655ce4 fixes bug 22994 "Mail reader allows spammers to set/get cookies to track web usage"
r=dwitte sr=dveditz a=sspitzer
2003-05-05 21:27:02 +00:00
bzbarsky%mit.edu bf7177a438 HTMLImageElement.complete should be true if the load failed (eg broken image).
Bug 190561, r=mstoltz, sr=jst, a=sspitzer
2003-05-03 02:32:43 +00:00
varga%netscape.com 05096034d5 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
aaronl%netscape.com 72f1681e64 Bug 149654. Send accessibility events for DOM mutations, invalidate appropriate parts of accessibility cache based on DOM mutation events. Also fixes bug 74218, implement DOMSubtreeModified event. r=kyle, sr=jst 2003-04-28 10:24:52 +00:00
bzbarsky%mit.edu 3e155b335e Make sure to flush reflows before trying to scroll so that frame coordinates
will be up-to-date.  Bug 186149, r=peterv, sr=jst, a=asa
2003-04-26 01:13:28 +00:00
hpradhan%hotpop.com 2aa9cb3461 bug 145577: scrollHeight/scrollTop not supported on textareas r=jkeiser sr=jst 2003-04-22 03:38:16 +00:00
hpradhan%hotpop.com 1f9afea9ff bug 172298: onselect="this.select();" in textarea causes crash r=jkeiser sr= kin 2003-04-22 03:27:24 +00:00