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

501 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 01352aa657 Bug 475986. Make text-align:start work on <html:th> correctly. r+sr=dbaron 2009-02-05 22:48:29 -05:00
L. David Baron 8ba395c73e Rename aInherited/inherited to aCanStoreInRuleTree/canStoreInRuleTree. (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
L. David Baron 36813aa498 Reverse the boolean meaning of inherited/aInherited. (This patch, without the next patch to rename things, makes the code make less sense.) (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
L. David Baron 69c66d75de Make the aInherited parameters to Compute*Data const. (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
L. David Baron 5a18374572 Fix incorrect uses of aInherited rather than inherited so that we can make aInherited const. (Bug 476598) r+sr=bzbarsky 2009-02-04 13:24:18 -08:00
Arpad Borsos c0f2dadc80 Bug 474369 - get rid of nsVoidArray; layout part; r+sr=roc 2009-02-03 15:42:18 +01:00
L. David Baron 53fb188c38 Keep old rule trees around until they are no longer referenced. (Bug 475128) r+sr=bzbarsky 2009-01-29 20:39:23 -08:00
L. David Baron 38d578f649 Implement CSS computation of font-stretch property and store it in the gfx font structures. (Bug 3512) r=vlad sr=bzbarsky 2009-01-29 12:39:18 -08:00
Keith Rarick 01dca56c79 Implement 'rem' unit from css3-values. (Bug 472195) r+sr=dbaron 2009-01-20 13:58:48 -08:00
L. David Baron 7e835827aa Avoid building user font set when handling units involving font metrics in media query expressions. (Bug 473892) r+sr=bzbarsky 2009-01-16 19:44:21 -08:00
L. David Baron 749140f06a Distinguish clip:rect(auto,auto,auto,auto) from clip:auto as the spec requires. (Bug 372063) r+sr=bzbarsky 2008-12-29 10:07:38 -05:00
L. David Baron 81ff27426a Make 'word-spacing: normal' just compute to '0', since that's what CSS 2.1 says to do, and thus change nsStyleText::mWordSpacing from nsStyleCoord to nscoord. (Bug 470705) r+sr=roc 2008-12-27 20:58:14 -05:00
L. David Baron b5ffda36db Fix bugs in handling of inherit, initial, and none for -moz-border-*-colors. (Bug 389404) r+sr=bzbarsky 2008-12-23 09:06:56 -05:00
L. David Baron ac1bee2193 Replace mechanism for restricting the properties that apply to :first-line and :first-letter. (Bug 469227) r+sr=bzbarsky 2008-12-12 10:59:03 -08:00
L. David Baron 02275e427c Remove some unreachable stub code for en (half an em) and cap (cap-height metric of font) units that we never create. (Bug 458878) r+sr=bzbarsky a=blocking1.9.1+ 2008-12-04 08:09:53 -08:00
Robert O'Callahan 35c0e7bd30 Bug 459968. Fix some integer overflows in the style system and in min/pref width computation for text. r+sr=dbaron 2008-11-26 11:53:58 +13:00
Brad Lassey f756be8f77 backing out changesets 026147c91538, fb2326fcfc36, ebf0c7cf17be, 57e6a1e9041e, 1f5d2c249f86 and d7a7824d6990 due to crash on linux talos machines durring tp. 2008-11-26 12:20:26 -05:00
Robert O'Callahan 9e8b129887 Bug 459968. Fix some integer overflows in the style system and in min/pref width computation for text. r+sr=dbaron 2008-11-26 11:53:58 +13:00
Boris Zbarsky 41c5ae0633 Bug 460664. Reset prop inheritance should skip first-line even if the whole struct is inheriting. r+sr=dbaron 2008-10-20 12:14:25 -04:00
L. David Baron d06d163f83 Fix failure to propagate aInherited result of nsRuleNode::CalcLength. (Bug 460440) r=kschwarz sr=bzbarsky 2008-10-20 14:07:09 +02:00
L. David Baron cb00b7c8e0 Remove additional chunk of code that should have been removed in bug 238072. (Bug 460029) r+sr=bzbarsky 2008-10-20 14:07:08 +02:00
Markus Stange 85e0b205be Bug 450939 - Add -moz-window-shadow CSS property, r+sr=dbaron 2008-10-14 16:44:25 +02:00
Arpad Borsos c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Zack Weinberg 4802b549e0 Bug 458463 - Rename nsStyleFont::mFlags to ::mGenericID and stop treating it like a bitfield; r+sr=dbaron 2008-10-10 16:56:18 +02:00
L. David Baron 16f9ced174 Add a flags table for CSS properties. (Bug 160403) r+sr=bzbarsky 2008-10-07 15:10:19 -07:00
L. David Baron 42047643c7 Fix warnings about breaking strict aliasing rules by making mChildren a union. (Bug 458813) r+sr=bzbarsky 2008-10-07 15:10:19 -07:00
Boris Zbarsky 8ca556e440 Bug 452969. Drop native theming for controls that inherit user-specified values. r+sr=dbaron 2008-10-07 14:53:22 -04:00
Zack Weinberg f21ce60ac3 Bug 450652 – Style system changes to support CSS3 border-radius – data structures for elliptical borders (part 1) [r+sr=dbaron] 2008-10-01 00:50:52 -05:00
Arpad Borsos 18b833c041 Bug 452797 - Clean up unused variables in layout/; v6; r+sr=roc 2008-09-20 15:42:03 +02:00
Arpad Borsos ed2268548d Bug 454475 - Fix "unhandled enumeration value" warnings in layout/; r+sr=roc 2008-09-16 13:25:35 +02:00
Keith Schwarz 48a87265ac Bug 435293. Implement CSS transforms. r=dbaron,r+sr=roc 2008-09-13 21:42:11 +12:00
L. David Baron 67b916836d Convert text-shadow and box-shadow storage from nsStyleCoord to nscoord. (Bug 443057) r+sr=bzbarsky 2008-09-12 20:45:37 -07:00
L. David Baron 9272a92fdf Convert border spacing storage from nsStyleCoord to nscoord. (Bug 443057) r+sr=bzbarsky 2008-09-12 20:45:37 -07:00
L. David Baron 703aefde59 Convert outline offset storage from nsStyleCoord to nscoord. (Bug 443057) r+sr=bzbarsky 2008-09-12 20:45:37 -07:00
Zack Weinberg 0299bad5bb Bug 453916: treat transparency strictly as a special case of color alpha. r+sr=dbaron 2008-09-12 08:35:53 -07:00
Zack Weinberg 1ebad2d826 Bug 441367 - reduce repetitive code in nsRuleNode.cpp with SetDiscrete() and SetFactor() helper functions. r+sr=dbaron 2008-09-06 06:56:23 -07:00
Zack Weinberg c475a8c8bd Bug 389406 – initial value for 'quotes' property is stored incorrectly and not reachable by -moz-initial; r+sr=dbaron 2008-08-19 10:18:58 -04:00
Robert O'Callahan edc33b1edc Bug 238072. Make generated content take the normal frame construction path. Relanding with changes so that counter and quote nodes are initialized after their frames are available, more like the old code. r+sr=dbaron,bzbarsky 2008-08-18 13:16:42 +12:00
Robert O'Callahan e77bdf3d25 Bug 238072 backout 2008-08-07 22:22:08 +12:00
Robert O'Callahan dcf51d2a34 Bug 238072. Rework generated content support to match CSS 2.1, making generated content take the normal frame construction path so supporting any style applied to it (including 'position', 'float', etc). r+sr=bz,r=dbaron 2008-08-07 13:18:24 +12:00
L. David Baron 7982784b57 Merge Quotes and CounterData storage types into ValuePairList. (Bug 322475) r+sr=bzbarsky 2008-08-04 15:15:11 -07:00
L. David Baron 62b65d2845 Implement Media Queries. (Bug 156716) r+sr=bzbarsky 2008-07-26 09:14:48 -07:00
Simon Montagu 0185f285af Support for word-wrap CSS property. Bug 99457, r+sr=dbaron, roc 2008-07-24 10:16:18 +03:00
Michael Ventnor d200b4c6a4 Bug 271586 – Implement CSS3 column-rule-*. r+sr=roc,dbaron 2008-07-19 12:38:25 +02:00
Andrew Smith ext:(%2C%20Rob%20Arnold%20%3Ctellrob%40gmail.com%3E%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 7d3343e0fa Implement css3 border-image property. (Bug 378217) r=vlad,dbaron,robarnold 2008-07-16 23:30:25 -07:00
L. David Baron 86c186dbd8 Backed out changeset 9b0b2391485c due to linker errors related to nsStyleStructInlines.h not being included enough. 2008-07-16 22:59:14 -07:00
Andrew Smith ext:(%2C%20Rob%20Arnold%20%3Ctellrob%40gmail.com%3E%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E) 269c2d355a Implement css3 border-image property. (Bug 378217) r=vlad,dbaron,robarnold 2008-07-16 22:18:38 -07:00
Zack Weinberg 28a8588125 Remove eStyleUnit_Chars and the special cases for it throughout layout, and make ch units go through the normal eStyleUnit_Coord cases. (Bug 363706) r+sr=dbaron 2008-07-15 14:31:36 -07:00
Zack Weinberg 947cb5c85f Add .zeroOrAveCharWidth field to gfxFont::Metrics. Initialize it in all font backends. Use it when computing CSS 'ch' units, and make eStyleUnit_Chars and nsLayoutUtils::CharsToCoord unused. (Bug 363706) r=roc sr=dbaron 2008-07-15 14:31:36 -07:00
L. David Baron bb92a0b039 Make rule node children destruction happen in a queue from the root rule node (or root of the subtree being destroyed) rather than using recursion. (Bug 439184.) r+sr=bzbarsky 2008-07-13 13:57:38 -07:00
L. David Baron f43140a296 Replace nsRuleList with a next sibling pointer on the rule node itself (saving one word in the normal linked list case, and wasting one in the hash table case). (Bug 439184.) r+sr=bzbarsky 2008-07-13 13:57:38 -07:00
Michael Ventnor 6317647cd2 Bug 444237 - "Crash with -moz-box-shadow: -moz-initial on input" [p=ventnor.bugzilla@gmail.com (Michael Ventnor) r+sr=dbaron] 2008-07-12 03:52:32 -05:00
Michael Ventnor b3e218a0a8 Bug 212633 - "Add support for CSS3 box-shadow" (parsing support) [p=ventnor.bugzilla@gmail.com (Michael Ventnor) r+sr=dbaron] 2008-07-07 19:56:52 -05:00
L. David Baron a6eaf5d9f2 Backed out changeset f6b609b0af6e 2008-06-17 16:10:53 -07:00
Zack Weinberg 5a32b9d546 Add .zeroOrAveCharWidth field to gfxFont::Metrics. Initialize it in all font backends. Use it when computing CSS 'ch' units. (Bug 363706) r=roc sr=dbaron 2008-06-17 14:37:56 -07:00
Simon Montagu 9faa7d6380 Remove unnecessary argument from SetBidiEnabled. Bug 435856, r+sr=roc 2008-06-16 02:28:17 -07:00
Christian Biesinger ext:(%2C%20Michael%20Ventnor%20%3Cventnor.bugzilla%40yahoo.com.au%3E) 36d201c8f8 Implement the computed value of text-shadow in the style system. (Bug 10713) r+sr=dbaron 2008-06-05 16:06:34 -07:00
Vladimir Vukicevic 977091d498 b=346189, children should optionally not affect size of XUL stack; r+sr=roc 2008-06-04 23:46:24 -07:00
L. David Baron c91ce9a492 Backed out changeset cf005233ebad (text-shadow style system changes) due to mochitest crash on Windows (which I can reproduce on Windows). 2008-06-03 16:42:13 -07:00
Christian Biesinger ext:(%2C%20Michael%20Ventnor%20%3Cventnor.bugzilla%40yahoo.com.au%3E) e3a5368590 Implement the computed value of text-shadow in the style system. b=10713 r+sr=dbaron 2008-06-03 15:25:31 -07:00
L. David Baron e943265e81 Allow the initial value of -moz-user-select to be specified with 'auto'. b=432888 r+sr=bzbarsky 2008-06-03 15:25:31 -07:00
vladimir@pobox.com 32bee1faae b=427122, padding on select elements is ignored ; r=dbaron, a=beltzner 2008-04-25 16:12:45 -07:00
vladimir@pobox.com 7ca24931ed backing out 2008-04-20 01:24:42 -07:00
vladimir@pobox.com ff8acc97ea b=427122, padding on select elements ignored, r=dbaron,a=beltzner 2008-04-19 23:42:00 -07:00
dbaron@dbaron.org 0d8b560733 Fix the weird Get* API on nsStyleSides in favor of returning structs by value, to avoid further occurrences of bug 420069. b=420069 r+sr=roc a=beltzner 2008-03-05 16:05:26 -08:00
dbaron@dbaron.org d98a9e860e Make 'top' and 'bottom' captions follow the CSS2.1 behavior and put the old behavior into 'top-outside' and 'bottom-outside'. b=363248,386704 r+sr=roc a=blocking1.9+ 2008-02-26 18:02:20 -08:00
dbaron@dbaron.org 8c3dc27a13 Make the minimum font size preference leave font-size:0 untouched. b=401046 r+sr=bzbarsky a=schrep 2008-02-09 11:15:09 -08:00
dbaron@dbaron.org e25ad078b7 Fix serialization of currentColor for some properties. b=414550 r+sr=bzbarsky a=schrep 2008-02-08 11:51:41 -08:00
reed@reedloden.com e3345a306d Bug 413274 - ""ASSERTION: How can this ever happen?: '*aUnconstrainedSize <= scriptLevelSize'"" [p=vladimir.sukhoy@gmail.com (Vlad Sukhoy) r+sr=roc a1.9=beltzner] 2008-01-26 19:55:40 -08:00
roc+@cs.cmu.edu ad856faa5b Bug 411603. Avoid circular definition and infinite recursion by interpreting 'scriptminsize' in em/ex units as relative to the parent font size. r+sr=dbaron 2008-01-13 12:57:03 -08:00
dwitte@stanford.edu 7e454eebf6 get rid of nsStyleStruct base type. b=408933, r+sr=dbaron, a=beltzner 2008-01-10 12:56:49 -08:00
roc+@cs.cmu.edu ab982faa16 Bug 355548. Clean up MathML's font handling by moving most of it to the style system. Creates nsMathMLElement to put functionality there. Tightens MathML attribute parsing and introduces full support for 'scriptsizemultiplier', 'scriptminsize' and their interactions with CSS font-size. r+sr=dbaron 2008-01-09 01:38:28 -08:00
roc+@cs.cmu.edu 96da482e7e backing out bug 355548 due to test failures 2008-01-08 15:11:27 -08:00
roc+@cs.cmu.edu c816d4ca4f Bug 355548. Clean up MathML's font handling by moving most of it to the style system. Creates nsMathMLElement to put functionality there. Tightens MathML attribute parsing and introduces full support for 'scriptsizemultiplier', 'scriptminsize' and their interactions with CSS font-size. r+sr=dbaron 2008-01-08 14:36:46 -08:00
bzbarsky@mit.edu 9049c9f1af Implement hixie's first-line proposal: only inherit properties that inherit by default from ::first-line. Inherit the reset properties from its style parent (which is the node that we'd inherit from if the ::first-line were not there). Bug 395623, r+sr=dbaron, a=beltzner 2007-11-07 09:13:00 -08:00
tor@cs.brown.edu 2e386ce30a Bug 399289 - leak of nsBaseURLParser with svg paint. r+sr+a=dbaron 2007-10-19 08:36:15 -07:00
tor@cs.brown.edu a0f7448299 Backout of 399289. 2007-10-15 11:59:22 -07:00
tor@cs.brown.edu e136016aac Bug 399289 - leak of nsBaseURLParser with svg paint. r=dbaron, sr=roc, a=dbaron 2007-10-15 09:37:04 -07:00
dbaron@dbaron.org 0c9f816e8a Make IsWidgetStyled use style system to really check whether author styled borders or backgrounds, rather than depending on default values in forms.css. b=240117 r+sr=bzbarsky a=roc 2007-10-08 16:11:01 -07:00
dbaron@dbaron.org 2bc4978388 Allow MapRuleInfoInto to map data for multiple structs at the same time. b=240117 r+sr=bzbarsky a=roc 2007-10-08 14:58:22 -07:00
bzbarsky@mit.edu 79546f9859 Relanding bug 390425, with attempted performance regression fix. r+sr+a=roc 2007-08-15 16:20:25 -07:00
tor@cs.brown.edu c9776f2873 Bug 383184 - Implement SVG lighting filters.
Style portion r+sr=dbaron, rest r=longsonr, sr=roc.
2007-07-25 23:57:42 -07:00
dbaron@dbaron.org 46b4b15fbf Remove additional unused code from system font redesign, and add one comment. b=377947 r+sr=bzbarsky 2007-07-25 23:41:37 -07:00
dbaron@dbaron.org ee607c6642 Make SetGenericFont not use aStartStruct-based computation since it's fundamentally incompatible with it. b=216456 r+sr=bzbarsky 2007-07-25 23:32:19 -07:00
dbaron@dbaron.org 5bf1dff4fa Fix enumerated values of font-size to depend on the right preference. b=389464 r+sr=bzbarsky 2007-07-25 16:12:38 -07:00
sharparrow1@yahoo.com 2217b2847d Bug 386640: ClearStyleDataAndReflow is fundamentally broken. r+sr=bz 2007-07-25 10:14:13 -07:00
dbaron@dbaron.org f2ea9d4a0e Implement -moz-initial for almost all remaining properties. b=80887 r+sr=bzbarsky 2007-07-24 08:27:11 -07:00
dbaron@dbaron.org 3df0ba7f03 Avoid potential recursion into Compute*Data on the same rule node (for an inherited struct), which can cause a leak. Add bolder and lighter font-weight to CheckFontProperties. Fix incorrect propagation of generic fonts in ComputeFontData. b=383979 r+sr=bzbarsky 2007-07-23 21:13:45 -07:00
dbaron@dbaron.org 16033c063e Implement remaining properties in computed style (with some hacks for counter() values for content), and fix some page-break-* bugs exposed by the added test coverage. b=316981 r+sr=bzbarsky 2007-07-22 10:58:37 -07:00
dbaron@dbaron.org 7c54e16491 Make CheckFontProperties consider font-size:larger and font-size:smaller as well. b=388548 r+sr=bzbarsky 2007-07-22 10:57:35 -07:00
dbaron@dbaron.org ee7b9906fd Make aRuleDetail parameters to Compute*Data not be references. b=388546 r+sr=bzbarsky 2007-07-22 10:56:56 -07:00
tor@cs.brown.edu d04fa35ca9 Bug 316908 - Add SVG to nsComputedDOMStyle. r+sr=dbaron 2007-07-21 07:20:25 -07:00
bzbarsky@mit.edu d074804c35 Propagate stylesheet principals through to XBL binding loads; streamline load
security checks in the XBL code (so that all the security checks are gated
through LoadBindingDocumentInfo).  Bug 204140, r=dbaron for the CSS changes,
r=sicking for the XBL changes, sr=sicking.

In particular, this change allows user stylesheets loaded from local files to
link to local files.
2007-07-18 14:56:57 -07:00
neil@parkwaycc.co.uk 10de8387c8 Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
jwalden@mit.edu 6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
dbaron@dbaron.org df3358641f Implement -moz-border-start and -moz-border-end. Patch by Simon Montagu <smontagu@smontagu.org> and me. b=74880 r/sr=smontagu/dbaron 2007-07-04 11:51:16 -07:00
roc+@cs.cmu.edu 5fe6149b7e Bug 383551. Clean up IsInlineFrame, nsStyleDisplay::IsBlockLevel and related methods. r+sr=dbaron 2007-06-26 19:31:35 -07:00
dbaron@dbaron.org 3f93d36016 Rewrite handling of CSS system fonts to fix bugs in cascading and serialization. b=377947 r+sr=bzbarsky 2007-06-12 11:28:56 -07:00
sharparrow1@yahoo.com ae4f1378a1 Bug 237770: Mozilla fails to ignore 'float' property even though 'position: absolute' is set. r=dbaron, sr=bzbarsky. 2007-05-22 22:55:03 -07:00
dbaron@dbaron.org ae75be2001 Revert part of bug 377521 to fix bug 380825 (and add comment). r+sr=bzbarsky 2007-05-16 14:17:21 -07:00
dbaron@dbaron.org 70f9b787c2 Rewrite the pref for forbidding pages from setting colors and backgrounds so that it changes transparency less often and interferes less with user and user-agent styles. b=58048, 255829, 255411 r+sr=bzbarsky 2007-05-16 14:10:31 -07:00
dbaron@dbaron.org 3546b59264 Make rule nodes know their level in the cascade. b=374907 r+sr=bzbarsky 2007-05-16 14:08:51 -07:00
bzbarsky@mit.edu d73793ab2b Fix regression bug 380842: allow block-display generated content on table cellsand captions again. r+sr=dbaron 2007-05-16 09:57:28 -07:00
masayuki@d-toybox.com 906193abd3 Bug 279246 Implement 'ime-mode' property (WinIE CSS) r+sr=dbaron 2007-05-16 08:51:37 -07:00
dbaron@dbaron.org 466cca9f63 Handle -moz-initial for 'font' shorthand (and fix bugs in some of its subproperties). b=377521 r+sr=bzbarsky 2007-05-14 22:13:49 -07:00
dbaron@dbaron.org f4e95ca927 Add eStyleUnit_None so we don't have to use eStyleUnit_Null as a real value for max-width and max-height. b=379741 r+sr=bzbarsky 2007-05-10 23:01:31 -07:00
dbaron@dbaron.org 9920e003d3 Remove eCSSUnit_Proportional and eStyleUnit_Proportional, which were used only for a removed feature. b=333352 r+sr=bzbarsky 2007-05-10 23:00:26 -07:00
mats.palmgren@bredband.net 3bda9b50af Fix a cursor:-moz-initial assertion and include it in the mochitests. b=379951 r+sr=dbaron 2007-05-07 23:56:14 -07:00
mats.palmgren@bredband.net e0ab9504a0 Backing out bug 379906 to fix orange. 2007-05-07 23:25:04 -07:00
mats.palmgren@bredband.net 288915b584 Fix a cursor:-moz-initial assertion and include it in the mochitests. b=379951 r+sr=dbaron 2007-05-07 22:46:37 -07:00
dbaron@dbaron.org ace3611ec9 Add support for -moz-intrinsic, -moz-min-intrinsic, -moz-shrink-wrap, and -moz-fill for width, min-width, and max-width. b=311415 r+sr=bzbarsky 2007-05-03 16:11:00 -07:00
bzbarsky@mit.edu 663c96c764 When we have a url() value that doesn't give us an imgIRequest (e.g. couldn'tcreate nsIURI, URI load blocked by security manager, etc), make sure to stillpick up the fallback value for cursor. Bug 379440, r+sr=dbaron 2007-05-02 23:33:13 -07:00
bzbarsky@mit.edu c51b87ebce Implement "content: none". Bug 378535, r+sr=dbaron 2007-04-26 21:43:06 -07:00
benjamin@smedbergs.us baab01ada6 Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me 2007-04-23 07:21:53 -07:00
dbaron@dbaron.org b774028305 A bunch of one-liners to fix bugs found by CSS mochitests. b=377731 r+sr=bzbarsky 2007-04-20 17:16:52 -07:00
dbaron@dbaron.org 028b212457 Fix regression of background-position serialization. b=258080 r+sr=bzbarsky 2007-04-18 13:41:14 -07:00
dbaron@dbaron.org 4ff6796341 Convert background-position to use nsCSSValuePair rather than acting like a shorthand property. b=258080 r+sr=bzbarsky 2007-04-15 15:25:20 -07:00
longsonr@gmail.com 37c4d4f137 Bug 368836 - improve support for initial in SVG. r+sr=dbaron 2007-04-11 01:27:27 -07:00
dbaron@dbaron.org 543be2506f Fix handling of initial and -moz-inherit for -moz-broken-image-icon, quotes, and -moz-box-ordinal-group. b=375363 r+sr=bzbarsky 2007-03-30 15:02:09 -07:00
dbaron@dbaron.org d98d9fdec5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
masayuki%d-toybox.com 3d231f620b Bug 335394 We should remove support for the 'invert' value ifdef MOZ_CAIRO_GFX r+sr=dbaron 2007-03-15 16:16:20 +00:00
sharparrow1%yahoo.com 76a64e5c22 Bug 177805: Fix the use of units in Gecko. r+sr=roc 2007-02-07 07:46:44 +00:00
dbaron%dbaron.org b04f7cdf5d Allow display:inline-block to be used on :before and :after. b=368622 r+sr=bzbarsky 2007-02-02 06:13:37 +00:00
longsonr%gmail.com 912df76954 Bug 307708 � filters should operate in linearRGB color space by default r=dbaron,r=tor,sr=roc 2007-01-30 13:19:55 +00:00
dbaron%dbaron.org 5cb78b8e99 Implement CSS display types inline-block and inline-table. b=9458, 18217 r+sr=bzbarsky 2007-01-27 18:36:57 +00:00
roc+%cs.cmu.edu 3ed500b867 Bug 366880. -moz-column-gap should support 'normal', which should be the initial value. r+sr=dbaron 2007-01-17 03:25:38 +00:00
tor%cs.brown.edu 5157ea0646 Bug 326143 - floodColor and floodOpacity should be non-inherited
properties.  r=dbaron
2007-01-09 20:40:09 +00:00
longsonr%gmail.com 063eebcb62 Bug 264132 � Implement fallback for SVG paint servers r=dbaron,sr=tor 2007-01-09 11:02:17 +00:00
tor%cs.brown.edu 5cce072b38 Bug 326143 - Implement feFlood and feTurbulence filter elements.
Patch by tor and malex@cs.utexas.edu, r=tor, sr=roc
2007-01-08 16:48:56 +00:00
bzbarsky%mit.edu 0a51e9bdb4 Make the GetStyle* getters not go through GetStyleData() so they can be
faster.  Bug 360870, r+sr=dbaron
2006-12-12 17:44:45 +00:00
sayrer%gmail.com 0d2f67fa51 bug 361005. remove nsCRT::strdup from layout. r+sr=bz 2006-11-17 01:49:06 +00:00
mats.palmgren%bredband.net 6b4972181b Limit -moz-column-count to 1000 to avoid "hang" for insanely large numbers. b=345583 r+sr=roc 2006-09-12 00:37:23 +00:00
dbaron%dbaron.org 16f0806114 Missed an out-of-memory check. b=335729 r+sr=bzbarsky 2006-04-27 23:56:53 +00:00
bzbarsky%mit.edu bcbece8b2c Make sure our IMAGE_NONE flag is always in sync with whether we have a
background image.  Bug 311526 followup, r+sr=dbaron
2006-04-21 17:52:14 +00:00
dbaron%dbaron.org b699322435 Use macros for the beginning and end of nsRuleNode::Compute*Data. b=332333 r+sr=bzbarsky 2006-04-15 07:17:43 +00:00
dbaron%dbaron.org 30f8db359a File comments that show up in LXR and provide a quick summary of what's in each file. 2006-03-25 05:47:31 +00:00
pavlov%pavlov.net 57f7478019 backing out 205001 as it broke Windows printing. r=dbaron 2006-02-21 22:56:02 +00:00
masayuki%d-toybox.com cd55c4a0c7 Bug 205001 the print scale is ignored at using CSS absolute length unit r=dbaron, sr=roc 2006-02-20 09:38:54 +00:00
dbaron%dbaron.org 94a40f887d Change the way having allow documents to use other fonts unset works: convert everything specified into either the monospace or serif/sans-serif generic depending on whether the monospace generic was specified anywhere in the list. b=159440 r+sr=bzbarsky 2006-02-11 17:41:50 +00:00
bzbarsky%mit.edu d8f049323c Fix rounding errors in percentage font-size handling. Bug 182670, patch by Eli
Friedman <sharparrow1@yahoo.com>, r=bzbarsky, sr=dbaron
2006-01-22 22:45:31 +00:00
tor%cs.brown.edu 5cd5d59918 Bug 316764 - implement <mask> and fix <clipPath> for multiple
overlapping children.  r=scootermorris
2006-01-20 17:00:43 +00:00
ginn.chen%sun.com 33c2528c30 Bug 255411 "Use my colors" preference makes popup/hover frames have transparent background
r=bzbarsky sr=dbaron
2005-09-23 08:08:09 +00:00
cbiesinger%web.de 5911657c5f bug 308409 convert ParseTextShadow to nsCSSValue::Array and nsCSSValueList
r+sr=dbaron
2005-09-20 12:04:45 +00:00
bzbarsky%mit.edu 608088a431 Implement :-moz-broken, :-moz-user-disabled, and :-moz-suppressed
pseudo-classes to allow styling of broken/blocked/disabled images, applets,
objects, embeds.  Bug 11011, r=biesi and roc, sr=dbaron
2005-09-18 18:05:40 +00:00
dbaron%dbaron.org 32e04f72e5 Remove unused canHaveExplicitInherit variable and fix some comments. b=308079 r+sr=bzbarsky 2005-09-12 04:55:36 +00:00
tor%cs.brown.edu 36c76bbadd Bug 301234 - implement subset of SVG filters. r=scooter 2005-09-06 22:30:40 +00:00
dbaron%dbaron.org 22c8c10292 Implement css3 syntax for url() values of cursor with optional hotspot coordinates. b=286303 r=biesi sr=bzbarsky a=asa 2005-07-01 04:29:42 +00:00
bzbarsky%mit.edu e61e1e1935 Fix border width inheritance by keeping track of both the border width we'd
have if our style were not none/hidden and the actual computed border width.
Bug 290377, r+sr=dbaron, a=asa
2005-04-29 15:44:38 +00:00
tor%cs.brown.edu 25434d72f5 Bug 290830 - svg pointer-events:none not working. r+sr+a=dbaron 2005-04-18 23:38:19 +00:00
tor%cs.brown.edu b689decba7 Bug 277135 - addressing svg style sr comments. r=scooter, sr=dbaron 2005-04-04 21:42:26 +00:00
dbaron%dbaron.org da745299c9 Implement CSS2 counters. b=3247 r+sr=bzbarsky 2005-04-01 23:07:00 +00:00
mats.palmgren%bredband.net 4f49d3bf00 Fix a few -moz-outline* problems and drop the prefix.
Change WARNING to ERROR in nsComputedDOMStyle.cpp and add a few more.
b=281972 r+sr=dbaron
2005-03-27 11:36:08 +00:00
dbaron%dbaron.org 9a7d3996ac Fix 'cursor' cascading issues with url()s. b=286388 r+sr=bzbarsky 2005-03-17 04:38:39 +00:00
bzbarsky%mit.edu a41405492a Null-check the various allocations we do in rulenode. Bug 245295, patch by
Daniel de Wildt <mozilla3q04@dewildt.de>, r+sr=bzbarsky
2005-02-25 13:14:36 +00:00
tor%cs.brown.edu 0ee1400807 Bug 193825 - <svg:clipPath> implementation.
r=scooter, sr=dbaron for shared moz files.
2005-01-25 03:55:03 +00:00
bzbarsky%mit.edu e0d76e033b Make sure to clear out content when we have it specified as none or initial,
even if we're ending up computing the difference from a cached struct.  Bug
273719, r+sr=dbaron
2005-01-13 03:49:20 +00:00
cbiesinger%web.de b71e2a3790 38447 layout,content,dom and xpwidget part: Implement Handling of URI Values on
CSS "cursor" Properties
for dom,layout,content: r+sr=bz
for widget: r+sr=roc
2004-12-30 21:56:11 +00:00
tor%cs.brown.edu b64db91538 Bug 216559 - CSS3 currentColor. Patch by scootermorris@comcast.net.
r=bz, sr=dbaron.
2004-12-09 23:51:25 +00:00
tor%cs.brown.edu b3e2c4245d Bug 238050 - implement SVG markers. r=scooter, moz common files sr=dbaron 2004-12-09 03:16:15 +00:00
dbaron%dbaron.org c21915db9d Remove unused iscoord parameter from CSS_PROP_* macros. b=205790 r+sr=bzbarsky 2004-11-30 19:24:34 +00:00
bzbarsky%mit.edu da145480c7 Fix asserts by making sure that border-spacing is always computed to coord
values.  Bug 270325, r+sr=dbaron
2004-11-30 18:30:58 +00:00
roc+%cs.cmu.edu c59dda520c Bug 271869. mBorderWidths need not be per-nsStyleBorder/nsStyleOutline, put it in the prescontext instead. r+sr=dbaron 2004-11-26 18:40:58 +00:00
tor%cs.brown.edu a4fd23d276 Bug 269891 - crash in stroke-dasharray sharing. r+sr=bzbarsky 2004-11-15 04:43:11 +00:00
tor%cs.brown.edu 4dc9eba112 Bug 103294 - improve parsing of SVG stroke-dasharray property. r+sr=bz 2004-11-09 18:19:28 +00:00
aaronleventhal%moonset.net 99ef95d12f Bug 251498. Implement outline-offset. r+sr=roc 2004-10-26 12:57:15 +00:00
dbaron%dbaron.org 23bc4069c3 Remove partial implementation of -moz-key-equivalent that was useful for nothing other than crashing. b=265721 r+sr=bzbarsky a=asa 2004-10-24 04:43:49 +00:00
dbaron%dbaron.org 52771912ef Remove partial implementation of -moz-key-equivalent that was useful for nothing other than crashing. b=265721 r+sr=bzbarsky a=asa 2004-10-24 04:32:21 +00:00
tor%cs.brown.edu 1d8fcac4c6 Bug 244917 - implement SVG gradients. Patch by scootermorris@comcast.net.
r=sicking,afri,tor,jwatt.  Shared mozilla code sr=tor,dbaron.
2004-10-14 23:02:53 +00:00
aaronleventhal%moonset.net b81f44f034 Nit - fixing comment for checkin to bug 24676 2004-10-10 02:50:43 +00:00
aaronleventhal%moonset.net a65d784429 Bug 24676. Support -moz-outline-radius. r=bzbarsky, sr=roc 2004-10-10 00:51:42 +00:00
bzbarsky%mit.edu 8266fddc46 Fix "normal" and "-moz-initial" values for "content" to do the right thing.
Bug 262624, r+sr=dbaron
2004-10-06 00:45:42 +00:00
bzbarsky%mit.edu a8a6ecf161 Add nsCSSValuePair type and use it for storage of some properties. Bug 208729,
r+sr=dbaron
2004-09-10 03:26:58 +00:00
dbaron%dbaron.org 3827991ce7 Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc 2004-09-05 00:04:04 +00:00
bryner%brianryner.com d082d2bf5e More nsIPresShell deCOMtamination:
- Made Get/SetAuthorStyleDisabled and ReconstructStyleData non-virtual when called internally.
- Inlined GetFrameSelection and renamed it to FrameSelection.
- Removed non-inline version of GetViewManager.
- Removed unused EnablePrefStyleRules and ArePrefStyleRulesEnabled.

Bug 253889, r+sr=roc.
2004-08-29 03:08:44 +00:00
dbaron%dbaron.org c1681a238f Backout the CSS parts of bug 72747 to see if that fixes the Tp regression. 2004-08-26 22:35:38 +00:00
dbaron%dbaron.org 5948a3cb75 Implement 'overflow-x' and 'overflow-y' CSS properties, long implemented by IE for Windows and proposed for CSS3. Implement scrolling='yes' and equivalents on frame and iframe. Various pieces of related cleanup (see comment 22 in bug). b=72747 r+sr=roc 2004-08-26 17:11:20 +00:00
dbaron%dbaron.org e7216e4d86 Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky 2004-08-04 03:23:37 +00:00
bryner%brianryner.com 5c02a6978c Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc 2004-07-31 23:15:21 +00:00
dbaron%dbaron.org 1236bd859f Back out 236889 due to 253755. 2004-07-31 07:42:12 +00:00
dbaron%dbaron.org ca843bb250 Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky 2004-07-29 20:07:25 +00:00
bryner%brianryner.com 0fd21c3872 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc. 2004-07-29 19:41:39 +00:00
dbaron%dbaron.org cdfbc24f0a Reduce headers brought in by nsRuleNode.h. Split nsRuleData into its own file. b=64023 r+sr=bzbarsky 2004-07-20 06:11:27 +00:00
roc+%cs.cmu.edu e0a7bb0095 Bug 251162. Add -moz-column-gap to the style system. r+sr=dbaron 2004-07-18 12:12:46 +00:00
dbaron%dbaron.org 0ee5ed9f79 When implementing the 'display' and 'float' fixups in CSS2.1 section 9.7 we can't cache data in the rule tree. b=245715, 237891 r+sr=bzbarsky 2004-07-17 18:57:04 +00:00
dbaron%dbaron.org f2d5d6aac6 Back out again (except indentation fix). b=236889 2004-07-16 23:28:36 +00:00
dbaron%dbaron.org f1aa7d5490 Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky Reland quarter of patch to test effect on pageload. 2004-07-16 22:55:42 +00:00
dbaron%dbaron.org 4da6a59fbe Backing out half of 236889. 2004-07-16 21:23:27 +00:00
dbaron%dbaron.org e4fd9c5b92 Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky Reland half of page to test effect on pageload. 2004-07-16 20:26:39 +00:00
bzbarsky%mit.edu 91e6373bba Testing backout of bug 236889 to see effect on performance. a=#mozilla 2004-07-15 02:54:01 +00:00
dbaron%dbaron.org 4847dc9d90 Load generated content images from the style system rather than the frame constructor. b=249809 r+sr=bzbarsky 2004-07-14 22:19:22 +00:00
dbaron%dbaron.org 8722abfd09 Load list-style-image in the style system rather than from frames. b=236889 r+sr=bzbarsky 2004-07-14 22:10:55 +00:00
roc+%cs.cmu.edu 087ede0319 Bug 245297. Add basic style system support for columns. r+sr=dbaron 2004-06-17 11:57:37 +00:00
bryner%brianryner.com 97a65f9548 Get rid of nsILanguageAtom and deCOMtaminate nsILanguageAtomService (bug 230603). Also, fix a bunch of atom double-addref leaks in nsFontMetricsXlib. r+sr=dbaron. 2004-06-08 23:53:59 +00:00
caillon%redhat.com 56b3fc7a8c Remove '-moz-resizer' from the style system.
Bug 242712. r+sr=dbaron
2004-05-05 21:37:32 +00:00
gerv%gerv.net 9d2ee4928c Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 21:52:36 +00:00
bryner%brianryner.com 0af1a79c51 More nsIPresContext deCOMtamination (bug 229371). r+sr=roc. 2004-04-13 00:28:44 +00:00
dbaron%dbaron.org 90369f8699 Rename FOR_CSS_SIDES to NS_FOR_CSS_SIDES, move it, and use it more. b=233795 r+sr=bzbarsky 2004-04-12 21:54:45 +00:00
bzbarsky%mit.edu 809c099e33 Fix bug 236921. This makes the root node's style context have no parent, makes
computed style calculations properly parent the computed context, and fixes a
but with "border-color: inherit" on the root.  r=caillon, sr=dbaron, a=asa
2004-03-29 16:00:38 +00:00
dbaron%dbaron.org 8461a47da2 Tweak nsRuleNode::GetStyleData and GetParentData and annotate with NS_LIKELY and NS_UNLIKELY. b=237042 r+sr=bzbarsky a=chofmann 2004-03-14 17:11:38 +00:00
bzbarsky%mit.edu 134fed8856 Load background images from style instead of from painting. This makes us
start loading the background images when we resolve style on an object that
needs them instead of when we scroll down and see it for the first time.  Bug
57607, r=pavlov, sr=dbaron
2004-03-09 03:57:51 +00:00
roc+%cs.cmu.edu dd193ec2ee Bug 215567. Make 'auto' bottom/right in clip rects give the rect NS_MAXSIZE so we don't think a cliprect is empty when it isn't. 2004-03-03 03:34:03 +00:00
mkaply%us.ibm.com 7a20037260 #234412
r=pedemont, sr=dbaron
Add divide by zero check to rulenode
2004-02-24 23:15:18 +00:00
bryner%brianryner.com 5f7a8b383e Inline boolean getters and setters on nsIPresContext, and change the storage to a bitfield. Bug 229371, r+sr=roc. 2004-02-20 17:49:01 +00:00
dbaron%dbaron.org 43ca4b48b9 Convert switch in nsCSSProps::LookupPropertyValue to use a table by adding to the CSS_PROP_* macros. b=208726 r+sr=bzbarsky 2004-02-19 18:02:20 +00:00
alex.fritze%crocodile-clips.com 5c676d4a47 Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).

Not part of default build; code is #ifdef'ed out.

r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 12:39:26 +00:00
dbaron%dbaron.org 8339f01ba5 Relanding changes for bug 74880. 2004-02-04 08:16:19 +00:00
dbaron%dbaron.org 9ecdb39d54 Backing out part of changes to see which part is causing performance problem. b=74880 2004-02-04 08:03:40 +00:00
dbaron%dbaron.org 474bdc807e Implement -moz-margin-start, -moz-margin-end, -moz-padding-start, and -moz-padding-end and cascade them correctly. Use them in html.css to improve default styles for lists in RTL documents. b=74880 r+sr=bzbarsky 2004-02-04 06:10:56 +00:00
bryner%brianryner.com 4f69ec2c2e Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron. 2004-02-02 22:17:21 +00:00
bryner%brianryner.com 42adb9f1be More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron 2004-02-01 10:09:07 +00:00
bryner%brianryner.com 08f53379c4 Continuing nsIPresContext deCOMtamination (bug 229371). Remove ReParentStyleContext - callers can call frame manager directly. Removed several unused setters. Inlined getters for default colors, font scaler, and focus ring width. Changed GetDefaultFont to return a const nsFont*. r+sr=dbaron. 2004-01-31 22:41:40 +00:00
dbaron%dbaron.org f3af1a7aef Fix two problems with display fixups. b=231787 r+sr=bzbarsky 2004-01-22 21:34:04 +00:00
bryner%brianryner.com ef5c330583 Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky. 2004-01-21 09:35:59 +00:00
dbaron%dbaron.org aa4d378d63 Fix parsing of 'cursor' property and ignoring of uri() values, which we don't support. b=77974 r+sr=bzbarsky 2004-01-18 01:12:58 +00:00
bryner%brianryner.com 16be23821e Additional cleanup related to bug 64116. r=bzbarsky. 2004-01-08 19:23:12 +00:00
bryner%brianryner.com e65d2d2fe5 Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron. 2004-01-07 22:30:53 +00:00
bryner%brianryner.com d572bc76cf deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky. 2003-12-24 21:51:50 +00:00
bryner%brianryner.com dfe3513814 Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky. 2003-12-21 05:36:36 +00:00
dbaron%dbaron.org 5803e6024c Fix problems when using generic font when the parent font is not generic but the closest ancestor with a generic font used the same generic. Miscellaneous cleanup. b=226871 r+sr=bzbarsky a=brendan 2003-12-02 22:24:32 +00:00
dbaron%dbaron.org a012b34247 Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa 2003-11-24 19:46:25 +00:00
dbaron%dbaron.org fa64c454c5 Scale fixed line-heights when the minimum font size pref kicks in. b=158868 r+sr=bzbarsky 2003-11-18 05:53:22 +00:00
dbaron%dbaron.org 0851395ebe Remove unneeded chromeOverride variable. b=225936 r+sr=bzbarsky 2003-11-17 04:10:55 +00:00
dbaron%dbaron.org c25969ae98 Clamp -moz-opacity to the range [0.0,1.0]. b=224478 r+sr=roc 2003-11-02 22:40:43 +00:00
uid502 91e2869af8 Bug 212366. Make '-moz-opacity' behave like CSS3 opacity: it does not inherit by default, and it composites the element and all its children as a group. r+sr=dbaron 2003-11-01 22:34:59 +00:00
uid502 d521946094 Bug 165149. More cleanup. Make nsStyleContext::GetPseudoType return a weak pointer. Also remove unnecessary arguments to nsHTMLContainerFrame::CreateViewForFrame. r+sr=bzbarsky 2003-10-17 02:38:37 +00:00
bzbarsky%mit.edu 7e19a9767b Add pref for the default :active styling. Bug 142163, patch by
mats.palmgren@bredband.net (Mats Palmgren), r=bzbarsky/sr=dbaron on the
layout/xpfe parts of the patch, r=glazou/sr=bzbarsky on the editor part,
moa=neil on the prefwindow changes.
2003-10-15 01:56:12 +00:00
dbaron%dbaron.org 5cce92dc2a Make URIs in the style system nsIURI pointers instead of strings. b=113173 r+sr=bzbarsky 2003-10-01 22:53:56 +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
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 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 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
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 57174ecf3a Fix bustage on compilers with broken for loop scoping. b=125246 2003-06-08 00:36:08 +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
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
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 3069e2548c Ensure that GetStyleData never returns null, even in out-of-memory, by storing a backup set of style structs to return in case of failure. b=154751 r+sr=bzbarsky 2003-03-13 15:29:36 +00:00
roc+%cs.cmu.edu 84b91a597c Bug 195883. %-values are not valid for '-moz-opacity'. 2003-03-08 03:08:25 +00:00
dbaron%dbaron.org 10878a0640 Remove unused variable (fix warning). b=171830 2003-03-06 21:01:52 +00:00
dbaron%dbaron.org 2c149384ef Fix for bustage on older gcc. b=117316 2003-03-06 20:16:35 +00:00
dbaron%dbaron.org c3fb353790 Implement garbage collection of the rule tree to fix some cases of memory growth and to allow us to move towards style rule immutability. b=117316 r+sr=bzbarsky 2003-03-06 19:14:17 +00:00
dbaron%dbaron.org 636a18962f Handle inline style changes by creating new style rules to wrap the modified nsCSSDeclarations, thus moving towards style rule immutability and away from property-based change hints. Patch from Boris Zbarsky <bzbarsky@mit.edu>. r=dbaron sr=roc b=171830 2003-03-06 19:07:22 +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
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