Commit Graph

1972 Commits

Author SHA1 Message Date
dbaron%dbaron.org
4b4f8625f1 Replace nsIStyleSheet::AttributeAffectsStyle with nsIStyleRuleProcessor::HasAttributeDependentStyle. Strengthen the attribute optimization and apply it to HTML as well. b=163556 r+sr=bzbarsky 2003-02-22 16:10:53 +00:00
dbaron%dbaron.org
ea93b55cc8 Reduce code size of atom lists by storing a table of strings and pointers to fill in. b=181383 r=alecf sr=sfraser 2003-02-22 15:58:07 +00:00
dbaron%dbaron.org
6dd68f3c64 Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2003-02-22 15:34:38 +00:00
bryner%netscape.com
6a7db38d94 Attempting to fix os/2 and worms bustage. Add a protected default ctor to nsStyleContext. This should never be called since we never instantiate an nsDerivedSafe. r=bbaetz. 2003-02-22 10:13:34 +00:00
bryner%netscape.com
a2faedffba Make nsStyleContext also return nsrefcnt from AddRef and Release, fixing gcc 2.95 bustage. 2003-02-22 04:05:05 +00:00
bryner%netscape.com
e43f5a49fd Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron. 2003-02-22 00:32:13 +00:00
bzbarsky%mit.edu
01c7e681e0 Make %-height kids of fieldsets do the right thing. Bug 191135, r=jkeiser,
sr=roc+moz, a=asa
2003-02-13 19:09:04 +00:00
bzbarsky%mit.edu
3d685b697d Dynamic changes to border-collapse should produce the right hint. Bug 191794,
r=bernd, sr=dbaron, a=asa
2003-02-13 19:06:18 +00:00
bzbarsky%mit.edu
5cefa814c3 Don't use quirky box-sizing for image inputs. Bug 191967, r+sr=dbaron, a=asa 2003-02-13 19:02:28 +00:00
bzbarsky%mit.edu
0240ed412b Make sure we drop native theming of form controls in various situations when we
need to.  Bug 184359 and its dependencies (171598, 181490, 184218, 185708,
188785, 189907, 190610).  Patch by tim@prismelite.com (Tim Hill), r=bryner,
sr=bzbarsky, a=asa
2003-01-31 10:21:52 +00:00
bzbarsky%mit.edu
98ad5a7317 Fix typo leading to infinite recursion crash. Bug 191229, r=timeless/caillon,
sr=jst, a=asa
2003-01-30 02:38:48 +00:00
caillon%returnzero.com
b58b743a90 Output 'background-position' values in the correct order (X before Y)
bug 189629, r+sr=dbaron
2003-01-19 03:44:52 +00:00
caillon%returnzero.com
0ab3beee78 189533, background-position has low accuracy. Specifically, it was not allowing fractional percentages.
r+sr=dbaron
2003-01-19 02:36:04 +00:00
dbaron%dbaron.org
faa9a5b9f9 Reduce duplication of code between handling of top/right/bottom/left margin, border, and padding. b=189537 r+sr=bzbarsky 2003-01-18 15:58:49 +00:00
dbaron%dbaron.org
973f5e4a90 Fix inheritance of 'border-color' when the value inherited came from 'color' (the default). b=189402 r+sr=bzbarsky 2003-01-17 23:41:20 +00:00
cbiesinger%web.de
b7a5577747 remove ifdef IBMBIDI in content/, r+sr=roc+moz, bug 89203 2003-01-17 12:09:23 +00:00
caillon%returnzero.com
8d9098a65a Bug 14777 - Give inline background image painting a rhyme and reason to how it works. Implement CSS3 proposal (-moz-)background-inline-policy.
r+sr=roc+moz
2003-01-17 09:33:52 +00:00
bzbarsky%mit.edu
074caec10b Make the string fu in nsStaticCaseInsensitiveNameTable a little smarter; use
that for nsCSSProps.  Bug 162243, r=dbaron, sr=dveditz.
2003-01-17 04:55:10 +00:00
bzbarsky%mit.edu
7f8f4fdbfc Don't cache chrome sheets in the CSSLoader. The XUL prototype cache does a
fine job of handling it, and this way the chrome registry only needs to clear
that one cache on skin switches.  Bug 185891, r=sicking, sr=roc+moz
2003-01-17 04:20:03 +00:00
dbaron%dbaron.org
5302be6eba Change |DEBUG_dbaron| to |DEBUG_dbaron_off| for stuff that I don't want to see anymore. 2003-01-16 19:21:23 +00:00
dbaron%dbaron.org
f91cb66f02 Apply the quirk that simple selectors of the form ':hover' apply only to links to those of the form '.class:hover' as well. b=169078 r+sr=bzbarsky 2003-01-14 21:50:27 +00:00
dbaron%dbaron.org
1e96329338 Implement CSS3 :target pseudo-class, which matches the target of the fragment identifier of the document's URL. Change the semantics of nsIPresShell::GoToAnchor by requiring that it be called whenever the current target changes, with an additional boolean parameter specifying whether to scroll. b=188734 r=glazman sr=bzbarsky 2003-01-13 23:10:53 +00:00
bernd.mielke%snafu.de
96dc8af21b enable color for <hr> borders bug 38370 r=hixie sr=bzbarsky 2003-01-13 12:10:11 +00:00
bzbarsky%mit.edu
89a03780aa fix bustage.... 2003-01-13 08:02:17 +00:00
bzbarsky%mit.edu
4363ff97b9 Bug 60290 -- comments should not be treated as whitespace. r=glazou, sr=dbaron 2003-01-13 07:19:49 +00:00
caillon%returnzero.com
8884383f05 use nsCOMArray instead of nsISupportsArray. r+sr=bzbarsky b=188600 2003-01-11 10:28:37 +00:00
dbaron%dbaron.org
d8345512c5 Correctly report 'transparent' for -moz-border-*-colors. b=188465 r=caillon sr=bzbarsky 2003-01-10 19:49:24 +00:00
dbaron%dbaron.org
e91def8b7a Report 'transparent' border color correctly. b=188465 r=caillon sr=bzbarsky 2003-01-10 15:55:27 +00:00
bryner%netscape.com
7f0488eb18 Phase 1 of style context deCOMtamination (bug 114713). Remove all dependencies on nsIStyleContext from outside of content and layout. Make nsIFrame::GetStyleData be a non-inline virtual function when called from outside of layout, since the nsStyleContext implementation won't be available to those callers. r=dbaron, sr=bzbarsky. 2003-01-09 06:49:07 +00:00
dbaron%dbaron.org
48544669f3 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it's no longer needed. r=timeless sr=jag 2003-01-08 19:24:38 +00:00
bzbarsky%mit.edu
4cf5754471 fix a crash that could happen if a child import met with an error (eg failed to
open a channel).  Bug 186606, r=sicking, sr=peterv
2003-01-07 01:13:07 +00:00
bzbarsky%mit.edu
0a01939a36 asserting that a PRUint32 is >= 0 is silly. Bug 187002, r=sicking, sr=peterv 2003-01-07 00:37:19 +00:00
sicking%bigfoot.com
c134137876 Bug 186835: Hold off notifying that the transformation is finished until all stylesheets are loaded.
r=peterv sr=bz
2003-01-06 14:55:13 +00:00
bzbarsky%mit.edu
8dcc730013 bug 187428 -- cursor should just inherit down to images within links instead of
being set explicitly.  r+sr=dbaron
2003-01-05 19:05:14 +00:00
bzbarsky%mit.edu
f83b00920f Re-landing fix for bug 182124 a bit at a time to narrow down the source of the
perf impact. r=rjc, sr=darin
2003-01-05 19:00:18 +00:00
bzbarsky%mit.edu
544046a358 Make more inputs use border-box sizing in standards mode, since that's what IE6
does in standards mode.  Keep quirks sizing as it was. Bug 184478, r=jkeiser,
sr=dbaron
2003-01-05 05:18:50 +00:00
dbaron%fas.harvard.edu
a34c46af22 Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only. 2003-01-01 23:53:20 +00:00
bratell%lysator.liu.se
cd00e11297 Bug 185007 - reduce padding in style structs. r=roc+moz, sr=brendan 2002-12-21 07:27:44 +00:00
peterv%netscape.com
d96051a4a2 Fix for bug 183999 (Modernize content). r=caillon, sr=bz. 2002-12-11 14:24:49 +00:00
bzbarsky%mit.edu
3399eea621 And backing bug 182124 yet again... why is comet the _only_ tinderbox showing
the problem?
2002-12-11 12:42:50 +00:00
bzbarsky%mit.edu
e81697ce7c relanding bug 182124 since it looks like comet was just noise and the other Ts
boxes that cycled with this show no problems...
2002-12-11 05:40:14 +00:00
bzbarsky%mit.edu
42d3fc3e74 Backing out bug 182124 because I think it caused Ts to go up... 2002-12-11 04:35:37 +00:00
bzbarsky%mit.edu
f3c5ef51ac Chrome protocol handler should not munge URIs on channel open (and remove some
workarounds around that behavior).  Bug 182124, r=rjc, sr=darin
2002-12-11 03:29:27 +00:00
bzbarsky%mit.edu
f6f9e3cc70 Resolve possible problem in the unlikely event that we kick off an async load
for a sheet and then kick off a sync load for the same sheet before the async
load completes...  Bug 183299, r=sicking, sr=peterv
2002-12-11 00:28:47 +00:00
caillon%returnzero.com
342abe6814 182954 - Convert content to use nsIPrefService, nsIPrefBranch, and friends.
r=sicking sr=peterv
2002-12-10 23:44:03 +00:00
dbaron%fas.harvard.edu
3f07edc1de Fix build bustage inside |#ifdef DEBUG_dbaron|. (Not part of build.) 2002-12-06 04:42:49 +00:00
bzbarsky%mit.edu
0bd1bf929d Fix crash in some icky document.write() cases.. We gotta stop blocking the
parser.  Bug 183784, r=sicking, sr=peterv, a=asa
2002-12-06 01:27:37 +00:00
bzbarsky%mit.edu
82b60aea48 I meant 8192 and typed 8092. r/sr/a=brendan 2002-12-05 06:36:18 +00:00
bzbarsky%mit.edu
1866641871 UTFInputStream does not do very good error-recovery, so always
use nsConverterInputStream instead.  Bug 183165, r=timeless, sr=sspitzer,
general approval=dbaron
2002-12-04 06:07:50 +00:00
caillon%returnzero.com
02dff0ba15 Bug 177328: Update compareTreePosition to compareDocumentPosition as per the latest DOM3 Core WD: http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20021022/core.html#Node3-compareDocumentPosition
r=bzbarsky sr=jst
2002-12-04 05:18:39 +00:00
bzbarsky%mit.edu
229d7e68c8 Take out the hack added in bug 47846 to deal with the fact that Equals() did
not work on mailnews urls.  It works fine now (see bug 98626).

Bug 182248, r=bienvenu. sr=darin
2002-12-03 20:19:18 +00:00
karnaze%netscape.com
c94e939d58 bug 161644 - don't allow a first letter to be a block unless it is floating. sr=bzbarsky, r=dbaron. 2002-12-03 15:48:26 +00:00
bzbarsky%mit.edu
13b5c15201 ugh. Forgot this one line... 2002-12-03 08:29:35 +00:00
bzbarsky%mit.edu
3e31b94167 Change nsICSSLoader to nsAString instead of nsString (build bustage). 2002-12-03 06:46:46 +00:00
bzbarsky%mit.edu
fe53f95e60 Make the CSSLoader correctly order stylesheets as they are dynamically added
and removed via the DOM.  Clean up the nsIDocument stylesheet accessors.  Clean
up nsIDocumentObserver stylesheet stuff a bit.  Make style sheets visible in
the CSSOM (though not completely accessible) from the moment the load is kicked
off.  Make us have sheet objects that can be manipulated via CSSOM even for
failed loads. Bug 107567, bug 47734, bug 57225, bug 178407.
r=sicking,  sr=peterv.
2002-12-03 05:48:14 +00:00
peterv%netscape.com
2cd27f702a Fix for bug 176610 (Make nsNameSpaceManager a service). r=caillon, sr=jst. 2002-11-29 23:44:07 +00:00
bzbarsky%mit.edu
ff14aa1c72 Fix crash if a site overrides one of our "magic" rules. Make some of the rules
!important, make nsViewportFrame a containing block no matter what the CSS
says. Bug 181692, r=karnaze, sr=dbaron
2002-11-25 23:40:58 +00:00
sicking%bigfoot.com
8d87d5e285 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz
2002-11-25 11:21:22 +00:00
bernd.mielke%snafu.de
c2ad0f7d79 Initialize text-indent at the table boundary, this cuts inheritance of text-indent inside tables. plus removal of a conflicting border specification bug 140682 r=hixie sr=bzbarsky 2002-11-23 17:56:44 +00:00
darin%netscape.com
d9541f875d fixes bug 157133 "HTTP Interfaces need to be frozen" r=dougt sr=bzbarsky 2002-11-22 07:40:16 +00:00
caillon%returnzero.com
5a9f5e36a3 Fixing an NS_PRECONDITION to reference the correct variable. Followup to last night's checkin for bug 147189. r/sr=bzbarsky 2002-11-20 06:35:33 +00:00
glazman%netscape.com
d0dabfdef1 'larger' and 'smaller' CSS values for 'font-size' were not working outside of range xx-small to xx-large and that prevented users to use very big and very small fonts in both Composer and mail composition; b=63987, r=dbaron, sr=bzbarsky 2002-11-19 15:16:31 +00:00
bzbarsky%mit.edu
b2a01de54e Report the unknown namespace when we have an unknown namespace error.
Bug 180852, r=dbaron, rs=roc+moz
2002-11-19 15:12:02 +00:00
caillon%returnzero.com
5586aa4d4a Attempt to fix nebiros bustage by moving style struct access into nsIInspectorCSSUtils
r/a=timeless,jkeiser,#mozilla
bug 147189
2002-11-19 07:41:07 +00:00
bzbarsky%mit.edu
9b34083660 <button> should not have preformatted whitespace. Bug 55285, r=jkeiser, sr=dbaron 2002-11-19 03:34:49 +00:00
dbaron%fas.harvard.edu
f6b1702067 Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz 2002-11-17 15:37:56 +00:00
bzbarsky%mit.edu
ed078e5c87 Fix regression in rendering buttons that people manually size to less
than desired size.  Bug 180085, r=jkeiser, sr=roc+moz
2002-11-16 19:32:49 +00:00
bzbarsky%mit.edu
86bf9601f7 Backing out alecf for now, since this change makes mailcompose crash
(and we don't want smoketest blockers, now do we?)
2002-11-16 12:07:13 +00:00
alecf%netscape.com
18bb1664d9 prep work for fixing bug 180379 - stop creating extra nsCSSSelectors - instead of creating them on the stack then copying them to the heap, start with them newly on the heap.
r=bzbarsky, sr=dbaron
2002-11-16 05:37:24 +00:00
caillon%returnzero.com
f4be2cfdb4 Bug 180185, nsStyleText::WhiteSpaceIsSignificant() should take -moz-pre-wrap into account too
r=dbaron sr=bzbarsky
2002-11-15 03:14:56 +00:00
bzbarsky%mit.edu
d33d3708fe Align text inputs, buttons, comboboxes to baseline with respect to the
text around them (bug 167236).  Fix width sizing issues for <input
type="button/reset/submit"> (bugs 79927, 36364).  Fix nonuniform heights
of form controls (bug 70251).  Patch is on bug 167236, r=jkeiser,
sr=roc+moz, moa=rods
2002-11-12 19:17:51 +00:00
dbaron%fas.harvard.edu
dc83a84103 Subclass the nsCSS* structs as nsRuleData* so members can be added to the latter without bloating the former, and to allow the former to go away eventually. Propagate whether a font family name comes from HTML through the style system and use it to set a bit on nsFont indicating that quirky behavior of Symbol fonts is acceptable. b=175372 r=bzbarsky sr=kin 2002-11-12 15:17:07 +00:00
bernd.mielke%snafu.de
4abbad8856 Implement for table captions caption-side: left and right, also <caption align="left"> and right, further vertical-align:top, middle and bottom for table captions bug 3166 r=karnaze sr=kin 2002-11-08 05:29:34 +00:00
bzbarsky%mit.edu
74a9b1ed3e Prioritize data-sniffing over extension-sniffing for ftp and http. Bug
177026, r=rpotts, sr=darin
2002-11-06 22:29:17 +00:00
bzbarsky%mit.edu
3f6afa4126 disabled selects should still take the colors the page sets. Bug
177569, r=jkeiser, sr=dbaron
2002-11-06 21:35:36 +00:00
glazman%netscape.com
dd816389e5 CSS properties set to system colors were returning inconsistent values; b=172199, r=caillon, sr=peterv 2002-11-06 08:31:19 +00:00
timeless%mozdev.org
5813d0cd92 Bug 133708 Simplify nsStyleList::CalcDifference
r=dbaron sr=brendan
2002-11-06 07:31:27 +00:00
bzbarsky%mit.edu
4ecdd4b649 line-height settings should not affect internal layout of form
controls.  Bug 82265, r=jkeiser, sr=dbaron
2002-11-06 02:12:18 +00:00
bzbarsky%mit.edu
fd71e8e971 fix regression in setting important property values in inline style via
DOM.  Bug 173767, r=caillon, sr=dbaron
2002-11-06 02:07:17 +00:00
bzbarsky%mit.edu
f83e342a15 CheckLoadURI should use document uri, not base uri. Bug 177237,
r=mstoltz, sr=jst, a=blizzard
2002-11-05 03:45:28 +00:00
dbaron%fas.harvard.edu
ee1ac12967 Back out patch for bug 161109 that implemented a pref for disabling marquee. b=161109 r=hixie a=asa 2002-10-30 14:31:32 +00:00
bzbarsky%mit.edu
cd39dd8995 Margin/padding computations need to flush the reflow queue. Bug 173354,
r=caillon, sr=heikki, a=asa.
2002-10-16 03:38:52 +00:00
dbaron%fas.harvard.edu
3ad435a24c OK, over from snprintf to PR_snprintf. b=173837 2002-10-15 00:29:58 +00:00
dbaron%fas.harvard.edu
17ce8bf5d5 Maybe an explicit include of stdio.h will fix the myotonic bustage. b=173837 2002-10-15 00:20:45 +00:00
dbaron%fas.harvard.edu
fc4297892b Add preference for whether to enable marquee, and set the default to disabled. b=161109 r=caillon sr=bzbarsky a=rjesup 2002-10-15 00:06:57 +00:00
dbaron%fas.harvard.edu
9c32fa806d Remove unused ability to optionally arena-allocate certain stylesheet objects. b=174256 r=kin sr=bzbarsky a=rjesup 2002-10-14 23:57:17 +00:00
dbaron%fas.harvard.edu
cac2947037 Change sprintf to snprintf to avoid potential for buffer overflow. Untabify surrounding code. b=173837 r=heikki sr=bzbarsky a=rjesup 2002-10-14 23:49:48 +00:00
bzbarsky%mit.edu
adfb8db44b Fix crash in nsStyleQuotes copy constructor. Bug 174178, r=caillon,
sr=dbaron, a=roc+moz
2002-10-13 18:55:12 +00:00
bzbarsky%mit.edu
7d2a30e560 Fix bug 168737 -- two-byte-encoded pages got no syntax highlighting.
r=caillon, sr=rbs, a=asa.
2002-10-11 23:46:11 +00:00
heikki%netscape.com
919aef29e4 Bug 172372, when loading XML as data, we need to disable scripts and styles. r=sicking, sr=bzbarsky, a=asa. 2002-10-11 00:38:29 +00:00
bzbarsky%mit.edu
093137e9f2 Make GetImportantRule and GetISupportsValue return already_AddRefed.
Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:59:43 +00:00
bzbarsky%mit.edu
279ffda515 Make GetParent on nsStyleContext return an
already_AddRefed<nsIStyleContext>.  Bug 171808, r=jkeiser, sr=dbaron
2002-10-09 01:46:15 +00:00
caillon%returnzero.com
5ba9439c07 Correcting our background painting code per the latest CSS specs. By default, backgrounds should be painted to the border
area, and not the padding area as per the CSS 2 Errata, CSS2.1 and CSS3.  Also, implementing the CSS3 'background-clip'
and 'background-origin' properties (currently with -moz- prefixes) to control this behavior.
Bug 162252, r=dbaron sr=roc+moz
2002-10-08 10:24:53 +00:00
dbaron%fas.harvard.edu
50be3cbecb Attempt to fix mach-o bustage. b=172207 2002-10-08 03:58:32 +00:00
caillon%returnzero.com
3afede1887 Attempting to fix Windows bustage 2002-10-08 03:03:56 +00:00
caillon%returnzero.com
d8d932cd3f More footprint work; Axing the large switch statement in GetPropertyCSSValue()
bug 172207 r=bzbarsky sr=alecf
2002-10-08 01:53:31 +00:00
caillon%returnzero.com
8e992f87ae Bug 170895. Reducing footprint. Use XPCOM aggregation to get at CSS2Properties.
r=dbaron sr=alecf
2002-10-03 19:41:42 +00:00
dbaron%fas.harvard.edu
58e711b7d5 Use correct interface pointer to fix crash inserting rule into media rule. b=170699 r=glazman sr=roc+moz 2002-10-03 01:02:13 +00:00
dbaron%fas.harvard.edu
a384d0ce7d Don't prevent 'display: none' from working on generated content by being overzealous with CSS2 12.1 'display' fixups. At suggestion of Mats Palmgren, split code path between CSS2 9.7 fixups and CSS2 12.1 fixups since the former can't affect generated content and the latter apply only to generated content. r=bzbarsky and mats.palmgren sr=kin b=171749 2002-10-03 00:42:16 +00:00
caillon%returnzero.com
15ead48756 171785. Using new CSS_PROP_NOTIMPLEMENTED macro. This should have gone in with the patch to bug 117500 but somehow was left out.
r=dbaron sr=kin/jst
2002-10-01 00:13:55 +00:00
dbaron%fas.harvard.edu
12c92754b3 Properly ignore the 'float' property for generated content. Rename NS_STYLE_POSITION_NORMAL to NS_STYLE_POSITION_STATIC. Patch from Mats Palmgren <mats.palmgren@bredband.net>. r=dbaron sr=bzbarsky b=93227 2002-09-30 14:46:56 +00:00
dbaron%fas.harvard.edu
29c30c5f3e Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf 2002-09-30 14:18:27 +00:00
roc+%cs.cmu.edu
88a7759322 Bug 113083. Concentrate view setup code into a few shared functions in nsContainerFrame. Only change style-dependent view properties after style change, not during reflow, in response to nsChangeHint_SyncFrameView. Change 'clip' to only do SyncFrameView, not reflow. r=dbaron,sr=kin 2002-09-30 11:56:37 +00:00
jkeiser%netscape.com
7de3925409 Back out bug 167236 due to regressions 171214 and 171465 2002-09-30 10:22:06 +00:00
jkeiser%netscape.com
c28e8257cb Make buttons line up correctly with textboxes again (bzbarsky's patch, bug 171214), r=jkeiser@netscape.com, sr=dbaron@fas.harvard.edu 2002-09-29 02:55:24 +00:00
darin%netscape.com
71bb3b05de fixes bug 170789 "HTTP Accept: header should be tailored to context of the
request" r=dougt sr=bzbarsky
2002-09-27 04:22:13 +00:00
jkeiser%netscape.com
f5eae8deb7 Align input type=text/radio/checkbox/button so that text is on baseline (bzbarsky's patch, bug 167236), r=jkeiser@netscape.com, sr=dbaron@fas.harvard.edu 2002-09-27 00:04:22 +00:00
caillon%returnzero.com
9061952afd Bug 117500. Adding support for the CSS2Properties interface to computed style declarations.
r=dbaron sr=jst
2002-09-26 03:46:50 +00:00
darin%netscape.com
2de4f81a70 fixes bug 170648 "eliminate referrer type from nsIHttpChannel in preparation
for freezing" r=dougt sr=rpotts
2002-09-25 21:28:53 +00:00
hyatt%netscape.com
06df317f01 More 169373 goodness. 2002-09-23 05:38:30 +00:00
hyatt%netscape.com
e8710c1495 Fix for 169373, make HTML form controls fully support native look on Windows XP. r/sr=hewitt/blake 2002-09-21 01:03:38 +00:00
alecf%netscape.com
b15e45e72d re-fix bug 166147 - autoinitialize mRefCnt to 0 for more efficient constructors
r=dougt, sr=jag, this time including some CSS stuff that has 31-bit refcounts.
2002-09-17 04:49:28 +00:00
dbaron%fas.harvard.edu
f4b1031f84 Give LABEL element a pointer cursor. b=158043 r=jkeiser sr=bzbarsky 2002-09-16 14:15:58 +00:00
karnaze%netscape.com
f54367c783 bug 139524 - handle style of col's with spans. sr=kin, r=bernd 2002-09-15 03:45:10 +00:00
bzbarsky%mit.edu
ddf2a851ed Fix an edge case in color-parsing correctness. Bug 154755, r=glazman,
sr=dbaron
2002-09-14 05:28:26 +00:00
jkeiser%netscape.com
cc064f1bf2 Make input type=hidden style="display: inline" not show artifacts from input type=text (bug 166438), r=rods@netscape.com, sr=bzbarsky@mit.edu 2002-09-13 21:30:11 +00:00
caillon%returnzero.com
0a9f9ac614 167964 - nsCSSProps::LookupPropertyValue() doesn't handle -moz-appearance
r=dbaron sr=jst
2002-09-12 03:57:02 +00:00
bzbarsky%mit.edu
dbd77f93e6 Make <button> align sorta like <input type="button"> does vertically.
Bug 162573, patch by dbaron, r=bzbarsky, sr=roc
2002-09-11 02:12:24 +00:00
bzbarsky%mit.edu
49fd167d97 negative border widths are not legal in CSS. bug 167657, r=glazou,
sr=dbaron.
2002-09-11 01:47:25 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
jst%netscape.com
76ab201522 Whitespace cleanup, no code changes. r/sr/a=me! 2002-09-07 01:48:39 +00:00
rbs%maths.uq.edu.au
a1543297ff Slight iteration on bug 163785 to gain perf 2002-09-04 02:31:46 +00:00
caillon%returnzero.com
7f92e25158 Remove an unneeded check: unsigned ints are always >= 0.
Bug 166364; r=sicking; sr=jst
2002-09-04 02:15:35 +00:00
dbaron%fas.harvard.edu
25ef476c7f Fix regression in graying of disabled radio buttons and checkboxes. b=164484 r=bbaetz sr=bzbarsky 2002-09-04 00:39:19 +00:00
rbs%maths.uq.edu.au
1d2d905c1d Minimum font-size wasn't working if no font props was specified, b=163785, r=dbaron, sr=bzbarsky 2002-09-03 23:55:48 +00:00
bzbarsky%mit.edu
dde7681290 Do not inherit text-transform into inputs and textareas. Bug 150341,
r=glazman, sr=roc+moz
2002-08-31 04:38:57 +00:00
axel%pike.org
311e1be821 fix MOZ_TIMELINE bustage by bzbarzky, bug 119321. code by peterv, r=me 2002-08-28 12:18:26 +00:00
bzbarsky%mit.edu
d9ea7f8f8f Bug 119321 and bug 80106. Create a generic nsIUnicharStreamLoader that
makes two callbacks -- one to determine the charset and one to provide
an nsIUnicharInputStream.  Use this in the CSSLoader instead of
allocating a single big buffer for the sheet.  Clean up the way we look
for the @charset charset in the sheet data.

r=rpotts for netwerk/, r=peterv for content/, r=smontagu for intl/,
sr=darin for the whole thing.
2002-08-27 23:47:25 +00:00
roc+%cs.cmu.edu
cb32a0f906 Bug 160936. Add type nsChangeHint for style hints. Make it a set of bits. Make sure an NS_STYLE_HINT_REFLOW always also does a repaint of the frame. r=dbaron,sr=kin 2002-08-24 14:41:28 +00:00
dbaron%fas.harvard.edu
9ced6ae565 Remove unused Equals and HashValue methods (methods that were once on nsIStyleRule). b=163058 r=hyatt sr=kin 2002-08-20 19:40:23 +00:00
dbaron%fas.harvard.edu
3628be818c Make marquee 'display: block' so that styling it works correctly. (The XBL binding already forces block-like display.) b=163031 r=doron sr=kin 2002-08-19 18:43:17 +00:00
dbaron%fas.harvard.edu
f363c6f0ae Convert mapped attribute table from nsHashtable to pldhash. b=148368 sr=bzbarsky r=sicking 2002-08-17 12:17:03 +00:00
dbaron%fas.harvard.edu
a7f0385127 Clean up unneeded includes of nsStyleUtil.h, and some other include cleanup in MathML. r=rbs b=71257 (|#include| changes only) 2002-08-16 11:52:20 +00:00
dbaron%fas.harvard.edu
d4cc4f7061 Handle style attribute changes in XUL through the normal style change mechanism rather than forcing a reframe. Change nsIStyledContent::WalkInlineStyleRules to nsIStyledContent::GetInlineStyleRule to simplify nsCSSFrameConstructor::AttributeChanged. b=156971 sr=hyatt r=bzbarsky 2002-08-16 11:29:20 +00:00
bzbarsky%mit.edu
355f48a3e9 Fix placement of positioned elements with auto "top". Bug 44508, patch
by Mats Palmgren (mats.palmgren@bredband.net), r=dbaron, sr=bzbarsky.
2002-08-15 23:00:23 +00:00
bzbarsky%mit.edu
cff9eae530 Clean up the mLanguage string. Bug 35768 add-on, rs=dbaron, r=sicking 2002-08-14 22:37:33 +00:00
dbaron%fas.harvard.edu
f9fe875d87 Remove extraneous line pointed out by peterv. b=35768 2002-08-14 14:23:56 +00:00
dbaron%fas.harvard.edu
768c965b07 Attempt to fix page load regression. b=35768 2002-08-14 14:01:39 +00:00
dbaron%fas.harvard.edu
48e2161f68 Remove unused method nsIStyleRule::GetStrength. b=162492 r=kin sr=bzbarsky 2002-08-14 13:16:35 +00:00
dbaron%fas.harvard.edu
cb597e3031 Make the declarations of colors for radio buttons and check boxes important, so they are unstylable (and styles in web pages don't cause them to disappear). b=58755 r=jkeiser sr=bzbarsky 2002-08-14 12:42:03 +00:00
dbaron%fas.harvard.edu
79638e5f49 Implement CSS2 :lang() selector. Fix problems with dynamic changes of 'quotes' property. Patch mostly by Ulrich Drepper (drepper@redhat.com), with some changes by Pierre Saslawsky and dbaron. r=rbs, dbaron sr=bzbarsky b=35768 2002-08-14 12:34:39 +00:00
dbaron%fas.harvard.edu
839c83ca5d Move FindNonTransparentBackground from nsStyleUtil to nsCSSRendering so that nsStyleUtil doesn't need to be in content/shared. b=71257 r=heikki sr=bzbarsky 2002-08-11 17:56:15 +00:00
glazman%netscape.com
7a9b3dcd9e fixing regression in !important handling introduced by fix for bug 157913; b=161685, r=rods, r=timeless, sr=dbaron, sr=bzbarsky 2002-08-08 17:40:20 +00:00
caillon%returnzero.com
0fbcecb364 Bug 161184. Shrink nsIPresContexts by moving some default value settings out of it and into StyleStructs where they belong.
r=bzbarsky sr=dbaron
2002-08-07 07:39:34 +00:00
alecf%netscape.com
9d46c7a238 fix for bug 12493 - layout should canonicalize urls before asking global history for visited status
r=radha, sr=darin
2002-08-06 23:51:42 +00:00
glazman%netscape.com
b9599b1617 Introduce 2 CSS values for color property and 1 for text-decoration retrieving the pref for anchors' color, visited anchors' color, and underline or not the anchors; b=57757, r=brade, sr=bzbarsky 2002-08-06 14:39:55 +00:00
dbaron%fas.harvard.edu
886e6f1527 Add comments explaining lookups in nsCachedStyleData. b=156902 sr=bzbarsky 2002-08-06 13:46:35 +00:00
bzbarsky%mit.edu
f060ebb468 Fix bustage.... 2002-08-06 06:48:31 +00:00
bzbarsky%mit.edu
3d9601368a Fix serialization of clip in .cssText. Bug 104321, r=glazman, sr=dbaron 2002-08-06 05:42:44 +00:00
bzbarsky%mit.edu
affd9fbf49 Expose @charset rules in the CSSOM. Bug 160834. r=glazman, sr=dbaron. 2002-08-06 05:26:41 +00:00
bzbarsky%mit.edu
e74e38ec29 Make .style and computed style format rgb() values the same way. Bug
160247, r=peterv, sr=jst
2002-08-06 05:18:21 +00:00
bzbarsky%mit.edu
485200387c dynamically adding @import rules does not trigger all the updates it
should.  Bug 160065, r=peterv, sr=dbaron
2002-08-06 05:08:47 +00:00
bzbarsky%mit.edu
7437096b69 Bug 157913. Priority is "important", not "!important". r=glazman,
sr=dbaron
2002-08-06 03:21:14 +00:00
caillon%returnzero.com
0a66989320 Bug 160573. Fix a CSS parser warning. Patched by Olivier Cahagne <cahagn_o@epita.fr> r=caillon sr=bzbarsky 2002-08-06 01:22:43 +00:00
bzbarsky%mit.edu
cc45de4f05 More documentation checkins. r=jkeiser/sicking, sr=jst, a=asa 2002-07-30 05:34:55 +00:00
yokoyama%netscape.com
8d6be5d98d Bug 156979
XBL emulation of marquee.
/r=nhotta, timeless, /sr=jst, /a=asa
2002-07-26 17:47:16 +00:00
alecf%netscape.com
e9e1a39573 fix for bug 157572 - remove nsIAtom references from strings, and thus expicitly #include nsIAtom.h for consumers who are expecting it.
r=dmose, sr=jag, a=asa
2002-07-25 18:31:10 +00:00
bzbarsky%mit.edu
783a32db62 fix startup assertions, bug 154503, r=sicking, sr=dbaron, a=asa 2002-07-19 23:58:10 +00:00
bzbarsky%mit.edu
8bcb659f61 Add some more Ethiopic list styles. Bug 154503, patch by yacob@geez.org
(Daniel Yacob), r=dbaron, rs=brendan, a=asa
2002-07-12 20:46:19 +00:00
dbaron%fas.harvard.edu
834581869f Turn on CSS parser error reporting in DEBUG builds. Make unexpected-EOF error messages more informative. b=155855 r=bzbarsky sr=ben 2002-07-09 04:28:58 +00:00
dbaron%fas.harvard.edu
27b9d4524f To make maintainance easier and allow more data-as-data rather than data-as-code, create a preprocessable list of style structs and use it in many places where we previously listed all (or half) of the style structs. b=155745 r=bzbarsky sr=waterson 2002-07-09 04:10:10 +00:00
bryner%netscape.com
90a2f7dfb7 Fix all of the warnings about member initializer ordering in constructors (bug 156135). r=timeless, sr=jag. 2002-07-08 07:56:50 +00:00
caillon%returnzero.com
9df8f33a00 * Implement CSSValueLists and computed -moz-border-{side}-colors
* Get the computed -moz-binding directly from the style context which is faster than getComputedStyle
* Speed up computed style by not QI'ing so much
* Cache the computed style object so we don't keep re-alloc'ing memory for it.
* Shrink ROCSSPrimitiveValue.
* Don't get computed style of non-existant properties.
* Use nsSize instead of nsRect when we only care about height and width
* Other random code cleanup of computed style

Bug 155525
r=bzbarsky
sr=jst
2002-07-08 07:11:59 +00:00
seawood%netscape.com
0597412383 The c++ standard requires that the throw list be used when declaring functions as well as defining them.
commercial compiler fixes for bug #149032
2002-07-03 17:14:41 +00:00
bzbarsky%mit.edu
5a0969e2e5 Minor cleanup of the fix for bug 122557. r=dbaron, sr=jst. 2002-07-03 00:18:33 +00:00
seawood%netscape.com
03ace271f0 Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
Bug 149032 r=timeless sr=scc
2002-07-02 20:25:30 +00:00
dbaron%fas.harvard.edu
811cf710ba Guess at fixing orange builds. b=148046 2002-07-02 03:56:08 +00:00
dbaron%fas.harvard.edu
4aba7cc14e For stylesheet loads with text/css or empty advisory type, end error message to error console when we don't load a stylesheet (standards mode) or warning message when we do load it (quirks mode). b=154942 r=bzbarsky sr=waterson 2002-07-02 03:11:57 +00:00
dbaron%fas.harvard.edu
8fc5d9db8c Allow page to display when @import-ing a malformed URL by incrementing mPendingChildren only if LoadSheet succeeds. b=148046 r=bzbarsky sr=waterson 2002-07-02 02:34:57 +00:00
bzbarsky%mit.edu
5a892e5796 Make the scriptloader check the HTTP status and not load 404 pages and
such as scripts.  Bug 139040, r=jst, sr=rpotts
2002-07-01 23:12:13 +00:00
rods%netscape.com
4bb20f5f7a Set style in media print to turn off blinking
Bug 153092 r=rods sr=kin
2002-07-01 14:45:50 +00:00
dbaron%fas.harvard.edu
6d2263f19b Convert handwritten GetIID methods to use NS_DEFINE_STATIC_IID_ACCESSOR and add |const| to GetCID methods so that static |nsID|s are declared as |const|. b=153525 sr=jag r=bryner 2002-06-26 03:38:55 +00:00
dbaron%fas.harvard.edu
e63a11c0e8 Split strict mode into almost-standards and full-standards mode, where the only quirk in almost standards mode is the quirky inline box model. Remove previous fix for bug 151620. Tweak mode detection to use almost-standards for XHTML Transitional, HTML 4.01 transitional with system ID, and for IBM system DOCTYPE. b=153032 r=karnaze, bzbarsky, harishd sr=waterson 2002-06-25 21:16:17 +00:00
bzbarsky%mit.edu
750ed97f3f Fix dynamic changes to generated content. Bug 57226, r=dbaron, sr=kin 2002-06-21 22:31:19 +00:00
caillon%returnzero.com
340d2757fc Bug 153044. Computed style implementation for some -moz-border-radius properties.
r=bzbarsky
sr=jst
2002-06-21 06:42:21 +00:00
bzbarsky%mit.edu
adae42c01e Check the status code of HTTP channels before blindly loading the
sheet.  Bug 112644, r=bbaetz, sr=darin
2002-06-18 02:46:11 +00:00
waterson%netscape.com
b2ab61667e Bug 146125. Zero top- and bottom-margin for <th> in same cases we zero for <td>. r=dbaron, sr=kin 2002-06-16 00:51:55 +00:00
mstoltz%netscape.com
6f5d99be4c 133170 - Need to re-check host for security on a redirect after a call to
XMLHttpRequest.open(). For xmlextras, r=heikki, sr=jband. For caps,
r=bzbarsky, sr=jst
147754 - Add same-origin check to XMLSerializer. Patch by jst. r=mstoltz,
sr=jband
113351 - Add same-origin check to XSL Include. Patch by peterv and jst,
r=mstoltz, sr=rpotts
135267 - Add same-origin check to stylesheets included via LINK tags.
r=dveditz, sr=scc
2002-06-14 23:54:18 +00:00
glazman%netscape.com
7cd80968b9 Making nsCSSDeclaration::GetValue() call itself to respond !important values when needed was making the CSS Parser choke in nsCSSParserImpl::AppendValue()
b=148501, r=brade, r=bzbarsky, sr=jst
2002-06-14 12:36:43 +00:00
glazman%netscape.com
2bc07ba87c fixing crasher due to outbounds index in nsCSSStyleSheet.cpp; b=151198, r=brade, sr=jst 2002-06-13 08:29:51 +00:00
mstoltz%netscape.com
0f1432a6c5 Backing out fix for 135267 - this patch requires another change that hasn't gone in yet. 2002-06-12 22:49:14 +00:00
mstoltz%netscape.com
dfd61675d7 Fixing 135267 - don't allow access to style rules loaded from a different
host. r=dveditz, sr=scc.
2002-06-12 21:20:17 +00:00
jfrancis%netscape.com
d0375cdd06 bug 83378: plaintext mail reply problems editing quotes. r=fm, sr=kin 2002-06-12 14:14:18 +00:00
jkeiser%netscape.com
f58b85e424 Make input type=file disabled work properly and look right. bug 92858, r=rods@netscape.com, sr=roc+moz 2002-06-12 07:58:26 +00:00
dbaron%fas.harvard.edu
e5a0855621 Fix crashes related to editing of HR elements by wrapping generated content for leaf frames in an extra frame so :before and :after are always the first/last children of the primary frame. Disable generated content for floating and absolutely positioned leaf frames. b=141054 sr=waterson r=kin 2002-06-12 03:27:48 +00:00
jkeiser%netscape.com
3e2a1902ca Rest of patch (partial commit before). Remove nsFormFrame forever. bug 125578, r=alexsavulov@netscape.com, sr=jst@netscape.com 2002-06-04 02:00:34 +00:00
dbaron%fas.harvard.edu
d3867266eb Make quirk stylesheet assertion |#ifdef DEBUG_dbaron| until I figure out why it's firing. b=147691 r=hwaara sr=waterson 2002-06-03 18:26:18 +00:00
roc+%cs.cmu.edu
6f4e473b18 Bug 50623. Don't forget background styles inherited from the initial context. This has the effect of making FRAME/IFRAME documents transparent by default. Also, make FRAME/IFRAME elements paint any background styles set on them. r=dbaron,sr=waterson 2002-05-31 03:20:23 +00:00
smontagu%netscape.com
42d9a13a9b Fix for bug 147183: Text shown inside JavaScript under title in IOL.co.il is aligned LTR rather than RTL. r=hixie, sr=jst 2002-05-29 19:42:07 +00:00
dbaron%fas.harvard.edu
30dcd428ab Convert the 4 tables of the RuleHash from nsHashtable to pldhash. Encapsulate the differences between tables, and the quirks/strict differences within the id and class tables, in the 6 sets of hashtable ops. Remove mCaseSensitive member and related code from AtomKey and remove nsInt32Key completely. Null-terminate lists of RuleValues rather than using a special mEndValue, and build the lists in the reverse order (reversing the meaning of their index). Store universal rules in their own list rather than using magic key. b=112318 sr=waterson r=brendan 2002-05-29 00:49:44 +00:00
karnaze%netscape.com
1faf4c0592 bug 145305 - split floaters during printing. sr=attinasi, r=alexsavulov. 2002-05-28 22:50:43 +00:00
dbaron%fas.harvard.edu
8d231a5fae Ensure that the quirks stylesheet is enabled/disabled before we start creating frames so that we don't have to build the rule cascade twice. Remove old compatibility mode pref that only controlled a small part of what it should have. b=141261 sr=waterson r=jst 2002-05-23 23:09:31 +00:00
jst%netscape.com
1075a3f80d Fixing bug 146034. Getting rid of nsHTMLIIDs.{h,cpp}. r=jfrancis@netscape.com, sr=rpotts@netscape.com 2002-05-23 00:00:34 +00:00
dbaron%fas.harvard.edu
d2188e6086 Move implementation of HTML label element entirely into the content model so that it can have any display type: implement the event-munging and accesskey support in nsHTMLLabelElement. For the latter, share some code with nsHTMLAnchorElement and remove extra parameter from nsIEventStateManager access key methods. b=96813 r=jkeiser sr=jst 2002-05-22 00:14:51 +00:00
glazman%netscape.com
6f04b18617 fixing brad Tbox warning; b=142019, r=bzbarsky, sr=jst 2002-05-21 13:33:25 +00:00
glazman%netscape.com
8b99db659f output of CSS border and background shorthand properties was buggy ; the new code implements a proposal by Hixie that tries to output the minimal number of properties.
b=142019, r=bzbarsky, sr=jst
2002-05-21 08:16:42 +00:00
jst%netscape.com
262f28f900 Fixing bug 134278. Die kNameSpaceID_HTML, die! r=sicking@bigfoot.com, sr=heikki@netscape.com 2002-05-20 22:47:02 +00:00
dbaron%fas.harvard.edu
71e2043a88 Limit the quirk that prevents dynamic pseudo-classes from applying to quirks mode, to :hover and :active only, and to a stricter definition of global selectors, since we no longer have to worry about performance problems. b=96984 sr=attinasi r=bzbarsky 2002-05-19 02:05:29 +00:00
dougt%netscape.com
c683a217ab Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2002-05-15 18:55:21 +00:00
bzbarsky%mit.edu
9a641fb5a3 Initialize the hint, just in case. Bug 139968, r=jkeiser, sr=jst 2002-05-11 23:26:44 +00:00