L. David Baron
d31701cad1
Bug 91419 patch 9: Fix comments and debugging output referring to "special" frames. r=mats
2014-02-06 17:45:33 -08:00
Cameron McCormack
b90dc73fc5
Bug 897763 - Take into account nsChangeHint_{NeedReflow,ClearAncestorIntrinsics} never being inherited for difference calculations on certain style structs. r=dbaron
2014-01-03 13:39:54 +11:00
Cameron McCormack
dd8ce60c6d
Bug 773296 - Part 3: Allow more than 27 style structs. r=dbaron
...
This bumps up nsStyleContext::mBits to a uint64_t so that it can fit
another style struct. If we're going to need to keep at least 27 style
structs, it might be better to split mBits up into two uint32_ts: one
for the flags and one for the style struct bits.
2013-12-12 13:09:40 +11:00
Cameron McCormack
10e5ff17b2
Bug 856879 - Remove constructor arguments argument from style struct macros. r=dbaron
2013-04-02 12:45:48 +11:00
David Zbarsky
3250bd906e
[Bug 847110] Fix up includes in layout/style r=dbaron
2013-03-02 19:31:48 -05:00
Daniel Holbert
b663c565e3
Bug 812822 part 1: Add flag 'eSkipFlexItemStyleFixup' to let our nsStyleContext creation functions skip the flex-item-specific chunk of ApplyStyleFixups(). r=bz
2013-02-20 23:34:58 -08:00
L. David Baron
309d5f8f42
Bug 781360 patch 4: Remove the Get from nsStyleContext::GetStyleData and nsIFrame::GetStyleDataExternal, which never return null. r=dholbert
2013-02-16 13:51:03 -08:00
L. David Baron
c5b9eee040
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
L. David Baron
59101dc21e
Bug 781360 patch 2: Rename nsRuleNode::GetPresContext to PresContext, since it can never return null. r=dholbert
2013-02-16 13:04:54 -08:00
L. David Baron
0836abe85d
Bug 781360 patch 1: Rename nsStyleContext::GetRuleNode to RuleNode, since it can never return null. r=dholbert
...
This makes it conform to our convention that getters returning pointers
that can never be null do not begin with "Get".
nsStyleContext's rule node is never null because we require a rule node
in order to construct a style context.
2013-02-16 13:04:53 -08:00
Isaac Aggrey
481e7dfb0b
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
L. David Baron
7204dd91a1
Remove aPresContext parameter to nsStyleContext constructor and document parameters to constructor. (Bug 791416) r=bzbarsky
2012-09-18 11:37:13 -07:00
David Zbarsky
ee2c50e32a
Fix typo in comment, no bug, r=me
2012-09-18 14:01:03 -04:00
L. David Baron
9ae6c3259d
Make nsStyleContext::CalcStyleDifference force comparison based on the parent's hint instead of the style struct ForceCompare methods. (Bug 779968, patch 6, the main patch) r=bzbarsky
...
This propagates the non-inherited (in the nsChangeHint sense, not the
CSS inheritance sense) parts of the parent's change hint through
ReResolveStyleContext so that we can use them in
nsStyleContext::CalcDifference. In the cases where we don't know the
parent's hint, we assume the worst, that all the non-inherited hints
were present in the parent's style change.
This should be a significant performance improvement handling simple
style changes (such as a style attribute change setting a non-inherited
property) on elements with large numbers of descendants that have data
in ForceCompare structs that can't be stored in the rule tree (for
example, margins or widths in em or rem units).
2012-09-07 10:13:36 -07:00
Ehsan Akhgari
e368dc9c85
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
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Masayuki Nakano
1adf21f3e7
Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky
2011-04-23 14:16:41 +09:00
L. David Baron
8ff298d446
Make nsCachedStyleData store arrays of nsStyleStruct*, and use style struct IDs for faster access to those arrays. (Bug 639231, patch 3) r=bzbarsky
2011-03-17 20:14:32 -07:00
Boris Zbarsky
c84c8c9e2d
Bug 631682. Make sure to start background image loads for the root element when we compute its style and decide to construct a frame. r+a=dbaron
2011-02-04 22:43:13 -05:00
L. David Baron
c5676916f0
Add nsStyleContext::Alloc for allocations scoped to the lifetime of the style context. (Bug 363249) r=bzbarsky
2010-07-02 21:18:55 -07:00
Boris Zbarsky
6fc99eb310
Bug 558943. Pass the right value for aIsLink from ReparentStyleContext. r=dbaron
2010-06-08 15:58:26 -04:00
Zack Weinberg
52c2d9375f
Eliminate NS_HIDDEN and NS_HIDDEN_ from layout/style/. Search-and-replace plus formatting fixes. rs=bzbarsky, no bug.
2010-04-06 14:52:17 -07:00
L. David Baron
5412d20e69
Make style contexts know if they are the if-visited style. (Bug 557287) r=bzbarsky
2010-04-06 12:42:41 -07:00
L. David Baron
eb2548e97d
Make nsStyleContext::FindChildWithRules deal with the visited style context. (Bug 147777) r=bzbarsky
2010-04-02 18:58:26 -07:00
L. David Baron
b33a804541
Use the appropriate color based on visitedness for the color or fallback color parts of 'fill' and 'stroke'. (Bug 147777) r=jwatt
2010-04-02 18:58:26 -07:00
L. David Baron
f27c596c76
Prerequisite comments for using the appropriate color for border colors. (Bug 147777) r=zweinberg
2010-04-02 18:58:26 -07:00
L. David Baron
4cf0bf0c58
Add function to nsStyleUtil for choosing the appropriate color from style data based on link visitedness. (Bug 147777) r=bzbarsky
2010-04-02 18:58:25 -07:00
L. David Baron
80348d8506
Add mechanism for separate style data for visited style. (Bug 147777) r=bzbarsky
2010-04-02 18:58:25 -07:00
Boris Zbarsky
68a96d16a0
Bug 527977 part 4. Have rulenode always cache inherit structs on the style context (posibly in addition to caching on the rulenode. r=zwol, sr=dbaron
2010-03-02 18:27:21 -05:00
Boris Zbarsky
60af0c64d6
Bug 527977 part 3. Change the style context cached struct storage; inline GetStyle* and PeekStyle* now that they're pretty dead-simple. r=zwol, sr=dbaron
2010-03-02 18:27:21 -05:00
Boris Zbarsky
5132d64872
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-11 02:37:40 -05:00
Boris Zbarsky
8202b90f61
Backing out bug 525608 and bug 525952
2009-12-10 18:28:08 -08:00
Boris Zbarsky
6eb3c28de7
Bug 525608 part 3. Change all style set consumers that ask for a pseudo style context to indicate what they're actually asking for (pseudo-element, anonymous box, or xul tree thing). r=dbaron
2009-12-10 14:36:05 -08:00
Boris Zbarsky
7813eeb6d1
Bug 525295. Rename nsStyleContext::GetPseudoType to GetPseudo. r=dbaron
2009-10-29 17:17:56 -04:00
L. David Baron
c46fca41b6
Make style contexts know whether they have data from a pseudo-element. (Bug 505515, Bug 435441) r=bzbarsky
2009-08-10 15:52:29 -07:00
L. David Baron
cb6012ec82
Remove nsStyleContext::DumpRegressionData, code that uses it, and code that exists only for it. (Bug 477522) r+sr=bzbarsky
2009-02-09 20:36:54 -08:00
L. David Baron
a16f1b0d6f
Remove nsStyleContext::Equals, since it is unused. (Bug 474675) r+sr=bzbarsky
2009-01-22 17:28:14 -08:00
L. David Baron
cca2d5f9d3
Add assertions to EndReconstruct that all style contexts have been reresolved. (Bug 473871) r+sr=bzbarsky
2009-01-16 13:32:09 -08:00
L. David Baron
95b09ff7ce
Better handling of overflowing integer values. (Bug 440230) r+sr=roc
2008-12-27 20:58:14 -05: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
tglek@mozilla.com
8cf3fb1c90
Clean up prbool misuse in layout. bug 398312, r+sr+a=dbaron
2007-10-09 17:00:05 -07:00
sharparrow1@yahoo.com
2217b2847d
Bug 386640: ClearStyleDataAndReflow is fundamentally broken. r+sr=bz
2007-07-25 10:14:13 -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
2084e073f8
Eliminate nsStyleBorderPadding and add margin/padding/content rect APIs to nsIFrame. b=332922 r+sr=roc
2006-12-20 01:23:45 +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
dbaron%dbaron.org
985c2fb959
Make what FindChildWithRules does actually be an MRU cache, and condense some if-else chains over mChild and mEmptyChild. b=335733 r+sr=bzbarsky
2006-04-28 00:09:05 +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