rods%netscape.com
89f403c708
must return NS_OK from DOM calls, this will make the button look enabled when enabled
...
Bug 63722 r=attinasi sr=buster
git-svn-id: svn://10.0.0.236/trunk@84798 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-11 15:14:47 +00:00
jst%netscape.com
4cb696f69c
Fixing bug 63967. Fixing a crash that happened when the .src of an image was set and the base URL was not available. r=timeless@mac.com, disttsc@bart.nl, sr=vidur@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84743 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 22:41:47 +00:00
heikki%netscape.com
a03af97a73
Some raw interface pointers to nsCOMPtrs, potential null pointer access fix, fixing two wrong eventStructTypes. No bug number. r=saari, sr=waterson.
...
git-svn-id: svn://10.0.0.236/trunk@84730 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 20:21:09 +00:00
jst%netscape.com
1298a86575
Fixing bug 60920. Adding type cheks to the document.form.select.options[n] setter so that we don't crash if someone tries to set the value to an invalid type (i.e. not a HTMLOptionElement). sr=brendan@mozilla.org, r=pollmann@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84715 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-10 05:11:05 +00:00
jst%netscape.com
4b33676b31
Fixing bug 64642. This is a regression caused in my large content code reorg/cleanup that I did a few weeks ago, SetDocument on a from control was was forwarding the call to the wrong base class, it was calling nsGenericElement::SetDocument() in stead of nsGenericHTMLElement::SetDocument() and that caused style attributes to not get reparsed when form controls were added to a document. r=pollmann@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84634 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 02:53:33 +00:00
jst%netscape.com
5ba9953b81
Fixing bug 63943. Accessing .offsetXXX properties on elements must call FlushPendingNotifications() on the document and not only on the pres shell to make sure the sink flushes all its content so that frames exists for all elements. r=heikki@netscape.com, sr=rpotts@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84626 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 01:26:05 +00:00
jst%netscape.com
f26965ded2
Code cleanup, no bug. Make the implementations of methods whose return type is declared as NS_IMETHOD return NS_IMETHODIMP and not just nsresult. r=heikki@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84616 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 00:03:42 +00:00
jst%netscape.com
c57fef481e
Trivial code cleanup that removes the need for a kungFoDeathGrip. r=heikki@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84615 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 23:43:56 +00:00
jst%netscape.com
dc0cca8f46
Fixing regression introduced in my huge checkin a few weeks ago, backing out the change I made while doing some code cleanup/reorg
...
git-svn-id: svn://10.0.0.236/trunk@84444 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 23:26:05 +00:00
rods%netscape.com
a6e0d47c5a
removing most all NS_DEFINE_IID and replacing them with NS_GET_IID macros
...
Bug 61274, r=buster sr=waterson
git-svn-id: svn://10.0.0.236/trunk@84377 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 20:44:42 +00:00
dbaron%fas.harvard.edu
b4de65c19e
Clean up easily fixed unnecessary includes and exports of implementation header files in layout. b=63766 r=jst@netscape.com sr=buster@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@84233 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 19:22:22 +00:00
blakeross%telocity.com
619ef3ec56
Fix 63721: removing extraneous code from nsHTMLButtonElement.cpp. It's Dead Code Removal week, so I'm just doing my part. r=jst sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@84093 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-27 08:41:29 +00:00
jst%netscape.com
1433395ab5
Fixing a change I overlooked in my last big checkin that caused a crash in some cases where forms were accessed from JS. r=jag
...
git-svn-id: svn://10.0.0.236/trunk@84053 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-24 01:52:05 +00:00
jst%netscape.com
2c48463883
More mac bustage fixes...
...
git-svn-id: svn://10.0.0.236/trunk@84041 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 13:32:28 +00:00
jst%netscape.com
4f9d57512a
One more attempt at fixing the mac redness.
...
git-svn-id: svn://10.0.0.236/trunk@84040 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 12:57:59 +00:00
jst%netscape.com
9dffc0950b
Attempting to fix mac bustage.
...
git-svn-id: svn://10.0.0.236/trunk@84038 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 11:59:05 +00:00
jst%netscape.com
e59263f7ec
Redoing the way code is shared between different element classes in mozilla, in stead of having an inner object (mInner) and forwarding function calls to the inner object the elements now inherit from what used to be the inner object. Previously nsIJSScriptObject and nsIContent (and related interfaces) were implemented on all leaf classes (~60 classes) and all the methods in those interfaces were forwarded to the inner object, now all those methods are inherited in stead. This saves us ~3600 methods in the layout library (and 160k of code on linux) and cleans the code up considerably. r=pollmann@netscape.com, harishd@netscape.com sr=vidur@netscape.com.
...
git-svn-id: svn://10.0.0.236/trunk@84036 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 10:56:31 +00:00
rods%netscape.com
fc0a5b36d7
smoketest blocker,
...
an event is cancelled when it is equal to nsEventStatus_eConsumeNoDefault
a=joki
git-svn-id: svn://10.0.0.236/trunk@83488 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 20:07:50 +00:00
rods%netscape.com
3a1a98af2f
removed where the input element was telling the rado/checkbox to return the opposite value
...
now it changes it value before the DOM call (script) and then if the event is cancelled
it sets the value back (which doesn't happen very often)
r=pollmann,jst sr=buster b=57137,57239,58460
git-svn-id: svn://10.0.0.236/trunk@83473 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-10 16:05:29 +00:00
jst%netscape.com
ee57d41453
Fixing bug 49597. Setting the 'checked' state on a dynamically created radio button that wasn't yet part of the document in JS was throwing an exception since our internal pres state code was generating a failure code when the input element didn't have a document. sr=vidur, r=pollmann
...
git-svn-id: svn://10.0.0.236/trunk@82959 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-28 03:41:50 +00:00
hyatt%netscape.com
132d0db472
Patch for 55595. r=joki, a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@82895 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-27 07:55:20 +00:00
cls%seawood.org
6088dfbf6b
Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
brade%netscape.com
0cc12f404a
use inline methods rather than typecasting directly to floats to prevent rounding errors (bug #56022 ); r=jst; sr=buster
...
git-svn-id: svn://10.0.0.236/trunk@82634 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-15 10:54:41 +00:00
heikki%netscape.com
41b020b9c1
Bug 59389, eliminate nsIContent::IsSynthetic(). r=jst, a=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@82397 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 00:42:42 +00:00
warren%netscape.com
a8b9664a8c
Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
...
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
blakeross%telocity.com
2df8fbea78
Fix for 12056: ctrl+click on a link should open in new window, alt+click should save it. r=jst sr=brendan, alecf
...
git-svn-id: svn://10.0.0.236/trunk@81962 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 14:30:48 +00:00
warren%netscape.com
c6b67eceeb
Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
jst%netscape.com
c5d98e9df1
Fixing rtm+ bug 57495. Making element.getElementsByTagName() case insensitive if called on an HTML element. r=pollmann, sr=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@81862 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 09:01:33 +00:00
attinasi%netscape.com
297910f252
Fix was already approved for checkin on the branch, now updating trunk as well. b=56194, r=karnaze a=buster (for RTM bug 40340)
...
git-svn-id: svn://10.0.0.236/trunk@81773 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 00:34:08 +00:00
jst%netscape.com
e087aead9d
Fixing rtm++ bug 56529. Necko was unescaping the content of URL's if a segment of the URL is requested (but not if the whole URL is requested), the DOM code used this unescaped string as is and that caused backwards compatibility problems. a=gagan&brendan, r=andreas.otte@primus-online.de
...
git-svn-id: svn://10.0.0.236/trunk@81660 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 04:56:10 +00:00
pollmann%netscape.com
051455613e
Bugscape 2369: Don't hold onto frame reference / type across mInner::HandleDOMEvent, fixes crashes. r=rods,jst sr=vidur
...
git-svn-id: svn://10.0.0.236/trunk@81638 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-24 01:41:07 +00:00
jst%netscape.com
e3e374742f
Fixing rtm++ bug 54121. Make sure to unroot the JS object before setting the script object to null to avoid referencing deleted memory later on in the GC. Thanks to sean@beatnik.com for testing and helping with the patch. a=waterson, r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@81312 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 21:20:30 +00:00
hyatt%netscape.com
e403302c75
Fix for 56167. r=joki, a=waterson
...
git-svn-id: svn://10.0.0.236/trunk@81257 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-16 21:52:22 +00:00
buster%netscape.com
af23531792
bug 55250 (crash when align attribute is changed)
...
r=karanze
a=waterson
git-svn-id: svn://10.0.0.236/trunk@81041 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 20:43:18 +00:00
jst%netscape.com
8ef014a604
Fixing rtm++ bug 54892. The .offsetParent property on the BODY element was incorreclty returning its real parent in stead of null. sr=vidur, r=pierre
...
git-svn-id: svn://10.0.0.236/trunk@80963 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:11:28 +00:00
attinasi%netscape.com
c8ab5d1344
Implemented the backend for the following prefs: Override Document colors, Override document fonts, Link and Visited link colors, and Underline links. Provided the ability to disable the preferences as well, so Composer can show changed fonts and colors. These changes are stewing on the trunk for a day or so before making their debut on the branch. b=40340, r=karnaze,pierre a=buster
...
git-svn-id: svn://10.0.0.236/trunk@80920 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 08:33:01 +00:00
buster%netscape.com
59b79617a9
bug 29276 (text inside <label> tags within a table cell breaks out of table cell)
...
bug 1164 (ALIGN=MIDDLE and ALIGN=ABSMIDDLE values are not being supported)
bug 54119 (percentage (%) image (img) heights do nothing)
r=karnaze, rods, attinasi
a=waterson
git-svn-id: svn://10.0.0.236/trunk@80746 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-09 21:19:36 +00:00
jst%netscape.com
17e33bbc26
Checking in for bug 50742, this change removes the use of XIF in mozilla and replaces the XIF converter with a HTML (and XML) serializer.
...
Contextual information added to HTML copy and intelligence added to HTML paste in the editor (fixes bugs 47014, 50568 and 46554, and partly (at least) fixes bug 53188).
Code written by vidur, jfrancis, jst, akkana. Tested by jfrancis, akkana, vidur, jst, kin. Reviwed (and super reviewed) by waterson, vidur, kin, jfrancis, jst
git-svn-id: svn://10.0.0.236/trunk@80681 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 10:57:30 +00:00
rods%netscape.com
17abdbdfb2
Focus rect is now drawn and erased directly via C++ code. Focus comes from "SetFocus" being set
...
on the content node which calls the frame. The frame is notified of Blur via thecontent node
watching for NS_CONTENT_BLUR events.
The rule we are removing from html.css is responsible for drawing in the focus,
but it causes the combobox, the dropdown and all the options to have their style reresolved.
Bug 32920, r=attinasi, b=buster
git-svn-id: svn://10.0.0.236/trunk@80349 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-04 13:39:07 +00:00
jst%netscape.com
b45fd7a390
Redoing how 'replaceable' properties on DOM objects are resolved to be compatible with 4.x, with this change named frames in framesets override 'replaceable' properties so that window.toolbar (or any replaceable property) in a frameset document with a frame named 'toolbar' actually resolves to the frame, and not the native toolbar. r/a=brendan, r=rpotts&scc
...
git-svn-id: svn://10.0.0.236/trunk@79874 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 10:18:07 +00:00
jst%netscape.com
36f7537a83
Fixing nsbeta3+ 49112. Making with(someimageelement) { src=someurl; } work by dynamically defining the 'src' property in nsHTMLImageElement::Resolve() (since src is defined as [noscript] in the IDL). r/a=vidur, r/a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@79695 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-21 02:42:46 +00:00
heikki%netscape.com
82a70c8b59
Fixed bug 52526, the cause was that image load event was bubbling even though the specs say it should not. Previously we were not even sending the load event on image load. I also fixed bug 50478 by fixing the logic in GetBubbles and GetCancelable of the DOMEvent. This helps in testing the first bug. I also fixed several cases where we had wrong combination of event class and event struct type. a=waterson, r=joki,rods.
...
git-svn-id: svn://10.0.0.236/trunk@79545 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:47:04 +00:00
joki%netscape.com
7c162a7c40
Fix for 30178, "hrefs override imagemap" and part of fix for 5693 by removing old hack to make :hover work on links. r:jst
...
git-svn-id: svn://10.0.0.236/trunk@79276 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 06:15:31 +00:00
mjudge%netscape.com
2fc6190bef
small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
...
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
pinkerton%netscape.com
ff01c4fd2d
before starting a selection, make sure we aren't in a link because we don't want to usurp the DnD code. r=mjudge, bug# 52541.
...
git-svn-id: svn://10.0.0.236/trunk@79104 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 08:47:46 +00:00
rayw%netscape.com
d9228441a4
Bug 37275, Changing value of all progids, and changing everywhere a progid
...
is mentioned to mention a contractid, including in identifiers.
r=warren
git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
scc%mozilla.org
9660c987a1
if you want a pointer to characters, you're going to have to |.get()| it
...
git-svn-id: svn://10.0.0.236/trunk@79000 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 08:21:04 +00:00
scc%mozilla.org
b11557a256
if you want a pointer to the characters, your going to have to |.get()| it
...
git-svn-id: svn://10.0.0.236/trunk@78967 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 04:47:36 +00:00
scc%mozilla.org
e5e006543d
if you want a pointer to the characters, you're going to have to |.get()| it
...
git-svn-id: svn://10.0.0.236/trunk@78957 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:48:08 +00:00
rods%netscape.com
85b8d50cda
stripping CR/LF in href attrs on mouse over or mouse click
...
b=52119 r=harishd
git-svn-id: svn://10.0.0.236/trunk@78766 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 21:21:40 +00:00