39 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
66ac586fc1 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
git-svn-id: svn://10.0.0.236/trunk@124825 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-09 04:10:10 +00:00
seawood%netscape.com
a7c7e77b8b 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


git-svn-id: svn://10.0.0.236/trunk@124526 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-02 20:25:30 +00:00
roc+%cs.cmu.edu
614583e822 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
git-svn-id: svn://10.0.0.236/trunk@122398 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-31 03:20:23 +00:00
bzbarsky%mit.edu
0985b9ce27 make clip:inherit work. Bug 141734, r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@121183 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-09 20:05:25 +00:00
rbs%maths.uq.edu.au
d21c5c6672 Added yet another defense to make Mozilla really robust when font resources run out, the patch makes font metrics to be fail safe or at least very hard to break -- to the point that failure means that the system is barely working (testing showed that Mozilla stayed alive while other applications were dying). Per request of super-reviewer & driver, also removed wallpaper null-checks sprinkled in the past for the problem. b=136248, r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@120592 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 22:24:59 +00:00
dbaron%fas.harvard.edu
1ec44c55ea Rename Mozilla-extension values for real CSS properties to begin with -moz-. Remove some unused code. b=3935 r=hixie sr=waterson
git-svn-id: svn://10.0.0.236/trunk@120368 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 00:17:04 +00:00
mkaply%us.ibm.com
9518b8280d #124164
r=pedemont, sr=blizzard
OS/2 only - get rid of OS/2 specific setting of form fonts


git-svn-id: svn://10.0.0.236/trunk@119683 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 04:03:49 +00:00
dbaron%fas.harvard.edu
c719840dba Fix percentage font sizes when all font properties specified (and not inherited) by weaking (again) optimization of not calling parent's GetStyleData. b=132381 r=hyatt sr=waterson
git-svn-id: svn://10.0.0.236/trunk@118713 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-11 03:29:40 +00:00
hyatt%netscape.com
dd0e62d9ae Fix for 99344, inline styles not being recognized under certain DHTML circumstances. r=dbaron, sr=waterson, a=asa
git-svn-id: svn://10.0.0.236/trunk@118229 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-05 08:05:33 +00:00
dbaron%fas.harvard.edu
d9c3f3d651 Remove "layout.forms.use_standard_or_quirks" pref and the old quirks-mode form control code that it enabled. (See bug 91602.) b=131452 r=rods sr=attinasi a=asa
git-svn-id: svn://10.0.0.236/trunk@117613 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-27 06:13:32 +00:00
attinasi%netscape.com
dbe40cd4b1 Support for proprietary style property to allow composer to force broken image icons. b=58646 r=karnaze sr=kin a=asa
git-svn-id: svn://10.0.0.236/trunk@117496 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-26 20:14:05 +00:00
dbaron%fas.harvard.edu
96cc2d6737 Don't make the optimization of not calling the parent context's GetStyleData when there are 'em' or similar units for the 'font-size' property, where those units imply inheritance. b=131454 r=bzbarsky sr=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@116821 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 01:32:16 +00:00
dbaron%fas.harvard.edu
7ceb8d5e74 Fix performance problem on pages with large numbers of repeated style attributes or differing presentational HTML attributes by changing the way nsRuleNode decides whether to store children in a hashtable or linked list: decide based on the child count rather than whether the node is the root. Convert hashtable child storage from nsHashtable to PLDHashTable. b=129187 sr=brendan r=hyatt a=asa
git-svn-id: svn://10.0.0.236/trunk@116820 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 01:29:20 +00:00
karnaze%netscape.com
009e7ede52 bug 24000 - implement page-break-before/after:always using new nsPageBreakFrame. Tables handle page breaks internally. a=asa, sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@116758 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 21:35:08 +00:00
mkaply%us.ibm.com
3fa5718c88 #125432
r=pedemont, sr=blizzard, a=roc+moz
OS/2 only - use the web page font for entryfields, buttons, and lists since our chrome font is a bitmap font that can't be scaled.


git-svn-id: svn://10.0.0.236/trunk@116400 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:07:47 +00:00
dbaron%fas.harvard.edu
6ef2ae37f0 Fix typo in nsRuleNode::ClearCachedDataInSubtree so it only clears data associated with |aRule|. This fixes a crash since nsStyleContext::ClearStyleData didn't make the same mistake and clean up dangling pointers to the incorrectly deleted data. b=105619 r=bzbarsky sr=brendan a=shaver
git-svn-id: svn://10.0.0.236/trunk@115660 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 00:02:00 +00:00
dbaron%fas.harvard.edu
84d82a83f8 Fix the interaction of text zoom with the sizing code for generic fonts. b=125963 r=rbs sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@114868 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 02:11:57 +00:00
dbaron%fas.harvard.edu
0feda16c3c Fix one more comment that uses "inherit" incorrectly.
git-svn-id: svn://10.0.0.236/trunk@114716 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-17 02:03:07 +00:00
dbaron%fas.harvard.edu
5ef0589c9c Restore optimization of getting data from parent context only when there is actually inheritance (except correctly this time), to prevent unnecessary struct computation and creation. Rename nsRuleNode::mInheritBits to mDependentBits. Use none bits (and thus prevent struct recomputation and copying) in the case where explicit inheritance overrides a non-inherited specified value, but still only for inherited structs. Other minor cleanup. b=113098 sr=hyatt r=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@114714 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-17 01:53:40 +00:00
dbaron%fas.harvard.edu
d5b6a2cebe Change the implementation of text zoom so that the zooming happens in the style system. This causes 'em' and similar units to be zoomed as well. Also scale physical / pixel 'line-height' values. b=41847 r=attinasi sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@114694 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:24:25 +00:00
pinkerton%netscape.com
46d542dcc5 ifdef-fu for mach-o. rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@113797 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 15:42:06 +00:00
hyatt%netscape.com
36b246735d Remove debug hyatt code. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112765 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:17:14 +00:00
rbs%maths.uq.edu.au
13b4696963 Grab a low hanging perf fruit by switching to an API that doesn't copy the font, b=118918, r=dbaron, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@111752 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 00:04:35 +00:00
dbaron%fas.harvard.edu
b7194a0ea8 Replace the BodyFixupRule with code in nsCSSRendering to fix all the problems with dynamic style changes and backgrounds on the root element and the BODY element. Change the way the HTMLDocumentColorRule (for the table color quirk) is initialized since it used to depend on the BodyFixupRule. b=116161 (also fixes other bugs) r=attinasi sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@111511 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-07 23:46:07 +00:00
hyatt%netscape.com
2e88971c9c Checking in 115757, enabling of Windows XP Theme Support under Classic skin.,r=bryner,sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@111336 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-04 00:28:01 +00:00
rbs%maths.uq.edu.au
20e46cd092 Whitespace to correct the bug number in my earlier checkin comments: should be 105297 (instead of 105219)
git-svn-id: svn://10.0.0.236/trunk@111002 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-21 22:42:46 +00:00
rbs%maths.uq.edu.au
a5608ba13b Make unchecking `Allow documents to use other fonts' to work in a simpler way, b=105219, r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@110996 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-21 22:25:58 +00:00
hyatt%netscape.com
f9a19ba7cd Fix for 112980, nsITheme API and dynamic skin switching re-enabling. r=ben, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@110648 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 22:51:39 +00:00
bbaetz%cs.mcgill.ca
478af40f6f Bug 80142 (among others) - landing of SVG_20010721_BRANCH. Work by
alex.fritze@crocodile-clips.com, james.turner@crocodile-clips.com, and
everyone else how helped on the branch. Thanks to peterv for last minute
build changes

r=cls for build changes
r=jst, rs=brendan for #ifdef'd parts touching existing files.

NOT ON BY DEFAULT


git-svn-id: svn://10.0.0.236/trunk@110384 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 07:59:31 +00:00
hewitt%netscape.com
e950ac1c5c 113789 - -moz-border-colors doesn't recognize transparent, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@110251 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 11:13:16 +00:00
shanjian%netscape.com
db6a4146a5 #105199 glyph search order is NOT lang dependent
lang is mapped to CSS Display structure and apply to document using
CSS rule tree.
r=dbaron sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@110219 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 04:12:34 +00:00
bzbarsky%mit.edu
8855009f3b Set the |inherited| bool in all cases when we inherit. Bug 113533,
r=dbaron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@109737 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 14:06:34 +00:00
hyatt%netscape.com
6c6f01e32e Enhancements to CSS to enable multi-colored borders and painting of image subregions. 112988 and 112990. r=dbaron,hewitt for 112990, r=ben,hewitt for 112988
git-svn-id: svn://10.0.0.236/trunk@109734 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 08:35:05 +00:00
dbaron%fas.harvard.edu
d43ae7083a Fix leak (and other) regression from previous checkin. b=111815
git-svn-id: svn://10.0.0.236/trunk@109477 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 04:07:17 +00:00
dbaron%fas.harvard.edu
7a15a72b48 Various cleanup and commenting in nsRuleNode and nsStyleContext. A few minor performance tweaks to nsRuleNode::WalkRuleTree. Fix correctness / crash errors that were caused by not setting the parent struct in the Compute*Data functions for inherited structs. b=111815 r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109475 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:44:45 +00:00
dbaron%fas.harvard.edu
d3232628b5 Fix crash and incorrect calculation of percentage line-height by computing relative to self's font-size rather than parent's font size. r=pierre sr=hyatt b=111405
git-svn-id: svn://10.0.0.236/trunk@109104 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:35:52 +00:00
hyatt%netscape.com
c0d0283f4f Perf and footprint opt. Make style re-resolution cheaper. r=glazou, sr=hewitt, bug 109261
git-svn-id: svn://10.0.0.236/trunk@108035 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:19:13 +00:00
dbaron%fas.harvard.edu
8c7cfc52d1 Fix inheritance of percentage values for 'line-height' by removing hacks to base percentage values for 'line-height' on the actual value rather than the computed value of 'font-size'. Fix various |const|-ness issues in nsRuleNode. b=97726 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107440 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 07:48:02 +00:00
dbaron%fas.harvard.edu
a222daa57a Moving nsRuleNode.cpp back to content/base/src from content/shared/src and inlining GetRule to fix linker errors on BeOS and probably also AIX, and since it doesn't need to be in content/shared and cvs won't like re-adding to content/html/style/src. b=104336
git-svn-id: svn://10.0.0.236/trunk@106143 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 06:25:08 +00:00