зеркало из https://github.com/mozilla/gecko-dev.git
Don't try to reframe generated content for image state changes on it. Bug
313656, r=biesi, sr=dbaron
This commit is contained in:
Родитель
52cfc56bd2
Коммит
83bd8eee0c
|
@ -101,5 +101,6 @@ nsGenConImageContent::IntrinsicState() const
|
||||||
imageState |= NS_EVENT_STATE_SUPPRESSED;
|
imageState |= NS_EVENT_STATE_SUPPRESSED;
|
||||||
imageState &= ~NS_EVENT_STATE_BROKEN;
|
imageState &= ~NS_EVENT_STATE_BROKEN;
|
||||||
}
|
}
|
||||||
|
imageState &= ~NS_EVENT_STATE_LOADING;
|
||||||
return state | imageState;
|
return state | imageState;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10614,8 +10614,10 @@ nsCSSFrameConstructor::DoContentStateChanged(nsIContent* aContent,
|
||||||
// call will handle things.
|
// call will handle things.
|
||||||
nsIFrame* primaryFrame = mPresShell->GetPrimaryFrameFor(aContent);
|
nsIFrame* primaryFrame = mPresShell->GetPrimaryFrameFor(aContent);
|
||||||
if (primaryFrame) {
|
if (primaryFrame) {
|
||||||
if (aStateMask & (NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_USERDISABLED |
|
// If it's generated content, ignore LOADING/etc state changes on it.
|
||||||
NS_EVENT_STATE_SUPPRESSED | NS_EVENT_STATE_LOADING)) {
|
if (!primaryFrame->IsGeneratedContentFrame() &&
|
||||||
|
(aStateMask & (NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_USERDISABLED |
|
||||||
|
NS_EVENT_STATE_SUPPRESSED | NS_EVENT_STATE_LOADING))) {
|
||||||
hint = nsChangeHint_ReconstructFrame;
|
hint = nsChangeHint_ReconstructFrame;
|
||||||
} else {
|
} else {
|
||||||
PRUint8 app = primaryFrame->GetStyleDisplay()->mAppearance;
|
PRUint8 app = primaryFrame->GetStyleDisplay()->mAppearance;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче