Bug 992077 patch 2 - Use nsChangeHint_UpdateParentOverflow for changes to the top, right, bottom, and left properties. r=mats

These are the properties currently using UpdateOverflow where dynamic
changes of the properties do not affect the element's own overflow
areas, but instead affect the element's influence on its parent's
overflow areas.
This commit is contained in:
L. David Baron 2015-02-16 16:34:29 +13:00
Родитель f6a6550205
Коммит 9cb83cbc59
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1618,7 +1618,7 @@ nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) cons
if (mOffset != aOther.mOffset) {
if (IsAutonessEqual(mOffset, aOther.mOffset)) {
NS_UpdateHint(hint, nsChangeHint(nsChangeHint_RecomputePosition |
nsChangeHint_UpdateOverflow));
nsChangeHint_UpdateParentOverflow));
} else {
return NS_CombineHint(hint, nsChangeHint_AllReflowHints);
}

Просмотреть файл

@ -1331,7 +1331,7 @@ struct nsStylePosition {
static nsChangeHint MaxDifference() {
return NS_CombineHint(NS_STYLE_HINT_REFLOW,
nsChangeHint(nsChangeHint_RecomputePosition |
nsChangeHint_UpdateOverflow));
nsChangeHint_UpdateParentOverflow));
}
static nsChangeHint MaxDifferenceNeverInherited() {
// CalcDifference can return both nsChangeHint_ClearAncestorIntrinsics and