dbaron%dbaron.org
2183eba510
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
...
git-svn-id: svn://10.0.0.236/trunk@237429 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-08 23:11:02 +00:00
dbaron%dbaron.org
81ade401c6
Remove comment about exceptions that no longer exist thanks to bug 386640.
...
git-svn-id: svn://10.0.0.236/trunk@236754 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 16:26:22 +00:00
dbaron%dbaron.org
23ab448471
Make SetGenericFont not use aStartStruct-based computation since it's fundamentally incompatible with it. b=216456 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@231030 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-26 06:32:19 +00:00
dbaron%dbaron.org
1a0669a4e8
Fix enumerated values of font-size to depend on the right preference. b=389464 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@230988 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 23:14:47 +00:00
sharparrow1%yahoo.com
cf85fbccb8
Bug 386640: ClearStyleDataAndReflow is fundamentally broken. r+sr=bz
...
git-svn-id: svn://10.0.0.236/trunk@230941 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 17:14:14 +00:00
dbaron%dbaron.org
fb9626881b
Make aRuleDetail parameters to Compute*Data not be references. b=388546 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@230592 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-22 17:56:56 +00:00
jwalden%mit.edu
dda6ff3c99
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.
...
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dbaron%dbaron.org
2f24fe473a
Implement -moz-border-start and -moz-border-end. Patch by Simon Montagu <smontagu@smontagu.org> and me. b=74880 r/sr=smontagu/dbaron
...
git-svn-id: svn://10.0.0.236/trunk@229329 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-04 18:51:40 +00:00
dbaron%dbaron.org
e8bf2016b6
Make rule nodes know their level in the cascade. b=374907 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@226543 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 21:08:51 +00:00
dbaron%dbaron.org
5333b54172
Reduce #include dependencies on style system headers: reduce what nsRuleData.h pulls in. b=379089 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@225209 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-28 16:03:15 +00:00
benjamin%smedbergs.us
7262cdad6d
Bug 376636 - Building with gcc 4.3 and -pendatic fails due to extra semicolons, patch by Art Haas <ahaas@airmail.net>, rs=me
...
git-svn-id: svn://10.0.0.236/trunk@224885 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-23 14:22:04 +00:00
bzbarsky%mit.edu
11427fca97
Make the GetStyle* getters not go through GetStyleData() so they can be
...
faster. Bug 360870, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@216883 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-12 17:44:45 +00:00
dbaron%dbaron.org
4774b40871
nsRuleNode should not have a virtual destructor (and thus vtable pointer). b=335630 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@195587 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 20:01:59 +00:00
dbaron%dbaron.org
40ad3b0e51
Use macros for the beginning and end of nsRuleNode::Compute*Data. b=332333 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@194452 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-15 07:17:43 +00:00
dbaron%dbaron.org
a02fd2d2f8
File comments that show up in LXR and provide a quick summary of what's in each file.
...
git-svn-id: svn://10.0.0.236/trunk@192979 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-25 05:47:31 +00:00
dbaron%dbaron.org
61aa9f089d
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
...
git-svn-id: svn://10.0.0.236/trunk@189775 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-11 17:41:50 +00:00
dbaron%dbaron.org
58953a3ce0
Remove comment (from bug 91054) that meant to refer to eStyleUnit_Inherit, which was removed in bug 205790.
...
git-svn-id: svn://10.0.0.236/trunk@186624 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-27 19:37:14 +00:00
dbaron%dbaron.org
d11c71af28
More documentation and a little cleanup. b=281113 r+sr=bzbarsky (and for the previous comment change too)
...
git-svn-id: svn://10.0.0.236/trunk@168838 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-05 05:24:21 +00:00
dbaron%dbaron.org
8761160b0e
Fix comment.
...
git-svn-id: svn://10.0.0.236/trunk@168810 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-04 20:29:18 +00:00
dbaron%dbaron.org
9d5a6491c4
Add comments.
...
git-svn-id: svn://10.0.0.236/trunk@168807 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-04 20:11:00 +00:00
bryner%brianryner.com
865734bf2f
Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
...
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
dbaron%dbaron.org
5eab03ef1e
Reduce headers brought in by nsRuleNode.h. Split nsRuleData into its own file. b=64023 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@159531 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-20 06:11:27 +00:00
bryner%brianryner.com
e372b2e9a3
Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@159199 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:14:34 +00:00
roc+%cs.cmu.edu
f8fdf5f9c2
Bug 245297. Add basic style system support for columns. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@158023 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 11:57:37 +00:00
bryner%brianryner.com
b4bc041626
Apply NS_HIDDEN to nsCSSValue, nsRuleNode, and nsStyleContext based on profiling data showing that these functions have very high call counts. Bug 227537, r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@156319 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-12 21:20:09 +00:00
gerv%gerv.net
98831918fc
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
bryner%brianryner.com
2359d2f7c4
More nsIPresContext deCOMtamination (bug 229371). r+sr=roc.
...
git-svn-id: svn://10.0.0.236/trunk@154743 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 00:28:44 +00:00
alex.fritze%crocodile-clips.com
937a1cf846
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
git-svn-id: svn://10.0.0.236/trunk@152468 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 12:39:26 +00:00
dbaron%dbaron.org
6b800e75e5
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
...
git-svn-id: svn://10.0.0.236/trunk@152274 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 06:10:56 +00:00
dbaron%dbaron.org
914621cdfb
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
...
git-svn-id: svn://10.0.0.236/trunk@149940 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-02 22:24:32 +00:00
dbaron%dbaron.org
3ca89119fb
Convert jump tables to if-else trees to avoid the performance cost of function pointers. b=210550 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144620 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 03:46:27 +00:00
dbaron%dbaron.org
4f6b46a91e
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
...
git-svn-id: svn://10.0.0.236/trunk@143968 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-20 01:22:44 +00:00
dbaron%dbaron.org
906d582953
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
...
git-svn-id: svn://10.0.0.236/trunk@143831 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-18 01:59:57 +00:00
dbaron%dbaron.org
bf4ec31727
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
git-svn-id: svn://10.0.0.236/trunk@143421 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-07 22:14:42 +00:00
dbaron%dbaron.org
20478cc051
Split nsCSSDeclaration.h and .cpp into separate files for the structs (nsCSSStruct.h and .cpp) and nsCSSDeclaration. b=201681
...
git-svn-id: svn://10.0.0.236/trunk@141155 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 03:07:34 +00:00
bryner%netscape.com
0c66a2052e
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.
git-svn-id: svn://10.0.0.236/trunk@141016 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-11 00:56:27 +00:00
dbaron%dbaron.org
efc8215ab8
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
...
git-svn-id: svn://10.0.0.236/trunk@139384 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 15:29:36 +00:00
dbaron%dbaron.org
089db98924
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
...
git-svn-id: svn://10.0.0.236/trunk@139035 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:14:17 +00:00
dbaron%dbaron.org
3b86a016bb
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
...
git-svn-id: svn://10.0.0.236/trunk@139034 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:07:22 +00:00
bryner%netscape.com
c44337949a
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.
...
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
dbaron%fas.harvard.edu
e8f31961d7
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
...
git-svn-id: svn://10.0.0.236/trunk@133655 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-12 15:17:07 +00:00
dbaron%fas.harvard.edu
5603f12809
Add comments explaining lookups in nsCachedStyleData. b=156902 sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@126513 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 13:46:35 +00:00
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
08f53dff2a
The c++ standard requires that the throw list be used when declaring functions as well as defining them.
...
commercial compiler fixes for bug #149032
git-svn-id: svn://10.0.0.236/trunk@124604 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-03 17:14:41 +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
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
ad5fa0f47d
Fix HPUX bustage. (It's right, as always. I can't static_cast to an incomplete class.)
...
git-svn-id: svn://10.0.0.236/trunk@116827 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 03:09:02 +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
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
blythe%netscape.com
8f002dba27
Fix bug 107270
...
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:43:37 +00:00