Don't try to reframe generated content for image state changes on it. Bug
313656, r=biesi, sr=dbaron git-svn-id: svn://10.0.0.236/trunk@183369 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -10614,8 +10614,10 @@ nsCSSFrameConstructor::DoContentStateChanged(nsIContent* aContent,
|
||||
// call will handle things.
|
||||
nsIFrame* primaryFrame = mPresShell->GetPrimaryFrameFor(aContent);
|
||||
if (primaryFrame) {
|
||||
if (aStateMask & (NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_USERDISABLED |
|
||||
NS_EVENT_STATE_SUPPRESSED | NS_EVENT_STATE_LOADING)) {
|
||||
// If it's generated content, ignore LOADING/etc state changes on it.
|
||||
if (!primaryFrame->IsGeneratedContentFrame() &&
|
||||
(aStateMask & (NS_EVENT_STATE_BROKEN | NS_EVENT_STATE_USERDISABLED |
|
||||
NS_EVENT_STATE_SUPPRESSED | NS_EVENT_STATE_LOADING))) {
|
||||
hint = nsChangeHint_ReconstructFrame;
|
||||
} else {
|
||||
PRUint8 app = primaryFrame->GetStyleDisplay()->mAppearance;
|
||||
|
||||
Reference in New Issue
Block a user