зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209603 patch 6b - Rename nsStyleContext::HasCachedInheritedStyleData to HasCachedDependentStyleData. r=heycam
--HG-- extra : commitid : 1RWP1xtrXOe
This commit is contained in:
Родитель
2197897e6b
Коммит
51b146732f
|
@ -4051,7 +4051,7 @@ ElementRestyler::RestyleSelf(nsIFrame* aSelf,
|
||||||
for (nsStyleStructID sid = nsStyleStructID(0);
|
for (nsStyleStructID sid = nsStyleStructID(0);
|
||||||
sid < nsStyleStructID_Length;
|
sid < nsStyleStructID_Length;
|
||||||
sid = nsStyleStructID(sid + 1)) {
|
sid = nsStyleStructID(sid + 1)) {
|
||||||
if (oldContext->HasCachedInheritedStyleData(sid) &&
|
if (oldContext->HasCachedDependentStyleData(sid) &&
|
||||||
!(samePointerStructs & nsCachedStyleData::GetBitForSID(sid))) {
|
!(samePointerStructs & nsCachedStyleData::GetBitForSID(sid))) {
|
||||||
LOG_RESTYLE_CONTINUE("there are different struct pointers");
|
LOG_RESTYLE_CONTINUE("there are different struct pointers");
|
||||||
result = eRestyleResult_Continue;
|
result = eRestyleResult_Continue;
|
||||||
|
|
|
@ -1486,7 +1486,7 @@ nsStyleContext::GetCachedStyleDataAsString(uint32_t aStructs)
|
||||||
structs.Append(' ');
|
structs.Append(' ');
|
||||||
}
|
}
|
||||||
structs.AppendPrintf("%s=%p", StructName(i), data);
|
structs.AppendPrintf("%s=%p", StructName(i), data);
|
||||||
if (HasCachedInheritedStyleData(i)) {
|
if (HasCachedDependentStyleData(i)) {
|
||||||
structs.AppendLiteral("(dependent)");
|
structs.AppendLiteral("(dependent)");
|
||||||
} else {
|
} else {
|
||||||
structs.AppendLiteral("(owned)");
|
structs.AppendLiteral("(owned)");
|
||||||
|
|
|
@ -287,7 +287,7 @@ public:
|
||||||
* happen because it was inherited from the parent style context, or
|
* happen because it was inherited from the parent style context, or
|
||||||
* because it was stored conditionally on the rule node.
|
* because it was stored conditionally on the rule node.
|
||||||
*/
|
*/
|
||||||
bool HasCachedInheritedStyleData(nsStyleStructID aSID) {
|
bool HasCachedDependentStyleData(nsStyleStructID aSID) {
|
||||||
return (mBits & nsCachedStyleData::GetBitForSID(aSID)) &&
|
return (mBits & nsCachedStyleData::GetBitForSID(aSID)) &&
|
||||||
GetCachedStyleData(aSID);
|
GetCachedStyleData(aSID);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче