L. David Baron
ca6c366dc6
Bug 781360 patch 3: Rename {nsIFrame,nsStyleContext,nsComputedDOMStyle}::GetStyle* to Style*, since they can never return null. r=dholbert
...
Except for the changes in:
layout/generic/nsIFrame.h (part)
layout/style/nsComputedDOMStyle.h (all)
layout/style/nsRuleNode.cpp (part)
layout/style/nsStyleContext.cpp (part)
layout/style/nsStyleContext.h (part)
(see patch 3b in the bug), this patch was written with the sed script:
s/\<GetStyle\(Font\|Color\|List\|Text\|Visibility\|Quotes\|UserInterface\|TableBorder\|SVG\|Background\|Position\|TextReset\|Display\|Content\|UIReset\|Table\|Margin\|Padding\|Border\|Outline\|XUL\|SVGReset\|Column\)\>/Style\1/g
2013-02-16 13:51:02 -08:00
Mats Palmgren
7532b4e736
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Boris Zbarsky
e7fc953610
Bug 776443 part 2. Support percent-less calc for internal table element widths. r=dbaron
2012-11-21 11:19:37 -05:00
Ryan VanderMeulen
f3c337d517
Backed out changesets 1a8b11ae0f4b, e02a02fd1208 (bug 776443), 86a3edf2960d (bug 812392), 26c59f23fd8f, and 288c74d7f87d (bug 812744) for mochitest orange.
...
CLOSED TREE
2012-11-21 12:47:40 -05:00
Boris Zbarsky
537fbfa9d6
Bug 776443 part 2. Support percent-less calc for internal table element widths. r=dbaron
2012-11-21 11:19:37 -05:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Boris Zbarsky
0c6d4d066f
Bug 735579. Correctly handle changes to column widths in fixed-layout tables. r=ehsan
2012-03-16 15:56:41 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Jan Küchler
8774547613
Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
2011-04-07 18:04:40 -07:00
L. David Baron
a08510dddd
Add support for calc() to the 'width' property. (Bug 585715) r=bzbarsky a2.0=blocking2.0+
2010-08-11 12:32:53 -07:00
Mats Palmgren
f82eedba5a
Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX. b=512106 r=roc
2009-09-16 17:01:36 +02:00
L. David Baron
90d9ab7f0a
Fix slight errors when widths can't be round-tripped through floats. (Bug 467141) r+sr=roc
2008-12-04 08:09:53 -08:00
Bernd
9113a49743
bug 458924 - activate the DidResizeColumns mechanism when column widths changes in fixed layout. r/sr=dbaron
2008-11-27 18:23:52 -08:00
L. David Baron
ca363c5843
Distribute extra space in fixed-layout tables where all columns have widths proportionally rather than equally, for compatibility. (Bug 445142) r=bernd sr=roc a=blocking1.9.1+
2008-11-25 15:22:39 -08:00
L. David Baron
45a6b84da8
Back out 6ce5f62a59455c79b3e12414989d3727f283b7c3 due to mac startup failures.
2008-11-25 14:38:06 -08:00
L. David Baron
dab5606cc8
Distribute extra space in fixed-layout tables where all columns have widths proportionally rather than equally, for compatibility. (Bug 445142) r=bernd sr=roc a=blocking1.9.1+
2008-11-25 13:27:54 -08:00
L. David Baron
6e815662e5
For fixed-layout tables, leave room for the cell spacing for all columns, whether they have cells originating in them or not, since we don't know if cells for those columns will arrive as the table loads incrementally. (Bug 444928) r=bernd sr=roc
2008-09-24 10:14:35 -07:00
Zack Weinberg
6071687c64
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
2176d67e34
Rename new width keywords to match CSS WG decision. b=402706 r+sr=bzbarsky a=blocking1.9+
2007-11-15 10:10:31 -08:00
263d44e417
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
b09985c9eb
Make mComputedWidth private, with a getter/setter, and make the setter update
...
the resize flags. Bug 367442, r+sr=dbaron
2007-01-26 00:05:12 +00:00
dbaron@dbaron.org
23c32c2914
Untabify.
2006-12-25 19:44:34 +00:00
mats.palmgren@bredband.net
8a34355d8d
Make the CSS 'ch' length unit work in most cases. b=363573 r+sr=dbaron
2006-12-17 14:06:42 +00:00
dbaron@dbaron.org
d21cb374bd
Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
2006-12-08 05:38:33 +00:00
bmlk@gmx.de
4ccc8c4f11
avoid memory leak on early return bug 333354 r/sr=bzbarsky
2006-05-25 14:56:44 +00:00
timeless@mozdev.org
c95a9608ea
Bug 298277 remove useless references to nsVoidArray
...
r=dbaron sr=dbaron
2006-02-23 10:30:59 +00:00
bmlk@gmx.de
7880f20a0c
don't shrink cells below borderpadding in fixed layout, bug 308019 r/sr=bzbarsky
2006-02-11 11:12:40 +00:00
bryner@brianryner.com
15745b0b06
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
gerv@gerv.net
a1ec040a65
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:30:37 +00:00
bmlk@gmx.de
073fdd99be
prescontext removal part 2 bug 229631 r/sr=roc
2003-12-29 16:58:20 +00:00
bmlk@gmx.de
af8832a6e5
reduce prescontext usage in basic layout strategy bug 229457 r/sr=roc
2003-12-28 17:02:40 +00:00
bmlk@gmx.de
f91c0e04ca
remove bogus array handling code bug 226757 r/sr=dbaron
2003-12-20 11:15:27 +00:00
bmlk@gmx.de
48217ac321
fixed table layout add cellspacing only for columns where cells originate. bug 220653 r/sr=bzbarsky
2003-10-21 19:29:14 +00:00
dbaron@dbaron.org
f98e358469
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
bmlk@gmx.de
3f7cab2c23
build warning fix bug 198738 r/sr=bzbarsky
2003-04-05 15:36:31 +00:00
bmlk@gmx.de
67db62969a
fix build warnings from my previous checkin
2003-03-22 12:21:22 +00:00
bmlk@gmx.de
27bbab1bb0
change table cell width to content width, bug 119100 r=jkeiser sr=bzbarsky
2003-03-21 19:35:36 +00:00
bryner@netscape.com
c98c382545
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
bzbarsky@mit.edu
fbada43197
Fix allocation of whitespace in table-layout:fixed to handle rounding
...
errors better. Bug 157890, r=karnaze, sr=dbaron, a=asa
2002-07-30 02:29:03 +00:00
jst@netscape.com
78ccba6821
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
cathleen@netscape.com
5139dae37b
eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
2002-02-05 01:41:13 +00:00
karnaze@netscape.com
b72c3a549f
bug 110474 - fix pixel rounding errors. sr=attinasi, r=bernd
2001-11-19 15:51:28 +00:00
karnaze@netscape.com
f23661affc
bug 60816 use correct cell when rowspan and colspan overlap. Fix pixel rounding errors. sr=attiansi, r=alexsavulov
2001-10-26 02:30:38 +00:00
gerv@gerv.net
58d409fba9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
2001-09-28 20:14:13 +00:00
karnaze@netscape.com
dffc3b4c67
table reflow coalescing, table reflow face lift. sr=attinasi
2001-03-13 06:38:59 +00:00
karnaze@netscape.com
9ebec189aa
bug 34176 - correct fixed table layout over allocated cols. sr=waterson, r=karnaze.
2001-01-26 23:44:59 +00:00
karnaze@netscape.com
c88090d762
bug 9848 - check for out of memory when calling new. r=dcone.
2000-11-30 15:53:55 +00:00
karnaze@netscape.com
a32f82f8dc
bug 14929 - Reallocate colspan adjusted col widths when there is a percent col being spanned.
2000-09-09 01:46:44 +00:00
karnaze@netscape.com
59d6a99d6d
bug 27529 - round column allocations to even pixel value. bug 18955 - don't allocate a col based on desired content if there is a fixed value. r=peterl.
2000-09-01 01:29:50 +00:00