mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 560447. Quiet lazy frame construction assertions for area's because they misbehave. r=bzbarsky
This commit is contained in:
parent
bf67d066e3
commit
8505796e6e
1
layout/base/crashtests/560447-1.html
Normal file
1
layout/base/crashtests/560447-1.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body onload="setTimeout(function(){document.getElementById('m').appendChild(document.createElement('area'));},0);"><map id="m" name="m"></map><img src="data:image/gif,GIF89a1%00%3C%00%D5%FF%00%9D%B6%85%18%1C%14%8E%A4xz%8Dg%3AC1%9F%B6%86%A3%B8%89%1F%23%1A%9C%AD%85(%2C!%AD%BC%93%0A%0B%08bkP%BC%C2%A0PP%3E%C7%C5%A9%BD%B4%85%13%11%0C%CA%B8%8A%CE%B6%85%B7%A2v3.%24%D0%B7%88%9F%8Ch%82rU%D2%BA%8D%D8%BF%9B%A2%94%80%D7%C9%B5%26!%1AC9.%C7%AD%96%EB%C6%B5%E6%CB%BE%AD%8F%88%F1%CB%C2%C0%C0%C0%F6%CC%C7%BF%9B%99%D2%A9%A8%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00!%F9%04%01%00%00%24%00%2C%00%00%00%001%00%3C%00%00%06%FF%40%92pH%2C%1A%8F%C4%D2%A8%84l%3AI%A5(%D3Y%0A%3D%14%06%83%E2%11%9A%3E%8DU%0E%E7%F1h4%1E%9CPh%09%25%86%1A%06%80%1CP0%9CC%DFa%89%03%2F%CC%FFu%0Af%0D%1CL%23%0F%06~%7Fru%1Cy%24%1C%0As%03%94%95%03%07%98%07%04%0C%08gp%02%0C%15%09%A3%A3%15%0C%00%06xO%23%0D~%03%09%04%B1%B1%07%0B%A7r%03%B1u%05%A0%0C%02%8B%02%0E%0E%00%0D_%1Cq%B8%03%8B%09%C9%8B%0E%B6%CE%8B%93%09%00%0A%5EG%25%0D%A0%04%CC%7F%CB%D1%03%0E%A2%0B%A4%DB%8B(%A8%23N%23%0A%0C%E5%D1%DE%8B%ED%B6%93%04%E6%E8N!%02%F0%D1%FC%97%DC%DD%F6%14%A4k%12%02%1A%BF%83%B8%0EN%FBsNA%17%82%0B%0F%F2%13%F0%EF%8F0%00%95%CE%D9)%84%24DD%89%20%0F%3A%20%B0%60%5B%1D%03%8E%8Ex%0C%C9%12%24%B2%2C)%8B%1C%FA%D8%B2%E6%1Cg0eF2%F0%D1AE%FF%9B%08%094J%82HN%C4K%BE%80%86%C45t%88%B19%A6%7C%05S%CA%92)%CA!%EB%E48%40%C1U%DCO%AA%8B%12*%88%19%E2X%BDn%F3%C0%F2cp%D1%A1%90%B2%006%85%25%90%14%A3Z%06%A7%F0%26-%F0%40%08%079%07%EA%CEa%9B%F4%80Z%01%01%128%10%80%82Y5H%80E%1A%06%10%400P%C6%B7%CA%09%84%0C%60r%3F9l%D5%02%80%970%15%24%3F%9EA%5E%04%BB%CF%F0U%B8%A9EK%C4%3C%C70_%12Y%DD%C9%3E%08%2C%ED%E4%06Q%1A%00%60%40s%F7%9F%D0%7Flo~%3A%A0%B2qs4%05(%C7S%02Q%01%06%07%02%60%FA%FA%BC%1D%1D%B7%B8%AF%F8%D1%FD%FC%97%BB%CDB%F6H%22_%1E%B4w%3A%C4%88%16%60%DF%3E%163%D3E%CA%D2%07%E0%93Q%81%FF%00%D6%A4%5B%7C2)%B0_9%06%40%A0%E0%82Y(%F2%07Es%08%40%17*%0D%0Cd%C4%03%84E%B3%8D%01%1B%400%FF%C1%87%1FZ%20%01%0A%13%CA%01L%89xi%F1%80%85F%84%60%E0j%B5%09%A0%803%20%D6%88%C2T%A0%05%93%89%03%08p%C0%06%3E%08%8C%C4%CD%2B%09h%40%81%075%82%88%82%04%09%90h_%16*%B2%F8%84%8B%EDd'K%05%1ALPA%92%1F%A20%81%06%0Dl%B0%81%09j%A8!e%1Ea%5C!%E6%06%1D0p%C1%96%5Czy%E6%23Txq%82%08or9%81%97t%F6y%84%96z%F2%E9%E7%A0B%00%1A%A7%05%84%12jh%92(d%90%E8%A0%8B%DA%98%C1%9C%8F6%11%A9%92%93V%FA%C8%08G%06j%01%A5%9A%16%A1%01%5E%81N%00B%A8_P%E0%00%05%A5%9E%8Aj%13%20%60%E0%00%88%16%D4X%C1%05%1A%BCz%C4%08%20%A8z%C1%87%17%D4z%EB%04oZ%E0%EA%A0'%0Ct%82%09%CC6%CB%EC%05%0E%60%F0!%04%1D%7C%D8A%02%AC%B2u%81%AB%234%7B%C2%17%A1TPA0%E4%92%EBA%04%B3N%20%91k%BA%1D%60%80%E4%04%1E%5C%2B%EE%B8%C1T%E0%C1%BD%F8z%80A%1E%BC%C2%1B%01%B1%15D%F0.%BC%D0%FEJA%05%18%80%60%CD%A3%C4u%D0%81%BE%F6b%F0%26%AB%EA%3A%00-%AB%05%7F8%02%A8%AB%88%90%80%87%D0zpA%06%19X%80A%02%BFB%20%F2%C9%F7%BA%E9%E1%87%99%FA%99%A5%06%25%5B%AC%01%1B%BC%BEy%AB%AC%C0%5E%20%2B%0A%F3N%60A%AE%BA%0A1%82%05%17%24%20%B1%D0!f%A0%C1%9A%1Ahpl%D1%24%80%F0A%07NS%ED%A7%09%95%06%01%00%3B" usemap="#m"></body></html>
|
@ -287,3 +287,4 @@ load 538207-1.xhtml
|
||||
load 538210-1.html
|
||||
load 541869-1.xhtml
|
||||
load 541869-2.html
|
||||
load 560447-1.html
|
||||
|
@ -6218,7 +6218,11 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
|
||||
while (content &&
|
||||
!content->HasFlag(NODE_DESCENDANTS_NEED_FRAMES)) {
|
||||
NS_ASSERTION(content->GetPrimaryFrame() &&
|
||||
!content->HasFlag(NODE_NEEDS_FRAME),
|
||||
(!content->HasFlag(NODE_NEEDS_FRAME) ||
|
||||
content->GetPrimaryFrame()->GetContent() != content),
|
||||
//XXX the content->GetPrimaryFrame()->GetContent() != content
|
||||
// check is needed due to bug 135040. Remove it once that's
|
||||
// fixed.
|
||||
"Ancestors of nodes with frames to be constructed lazily "
|
||||
"should have frames and not have NEEDS_FRAME bit set");
|
||||
content->SetFlags(NODE_DESCENDANTS_NEED_FRAMES);
|
||||
@ -6227,14 +6231,22 @@ nsCSSFrameConstructor::MaybeConstructLazily(Operation aOperation,
|
||||
|
||||
// Set NODE_NEEDS_FRAME on the new nodes.
|
||||
if (aOperation == CONTENTINSERT) {
|
||||
NS_ASSERTION(!aChild->GetPrimaryFrame(),
|
||||
NS_ASSERTION(!aChild->GetPrimaryFrame() ||
|
||||
aChild->GetPrimaryFrame()->GetContent() != aChild,
|
||||
//XXX the aChild->GetPrimaryFrame()->GetContent() != aChild
|
||||
// check is needed due to bug 135040. Remove it once that's
|
||||
// fixed.
|
||||
"setting NEEDS_FRAME on a node that already has a frame?");
|
||||
aChild->SetFlags(NODE_NEEDS_FRAME);
|
||||
} else { // CONTENTAPPEND
|
||||
PRUint32 containerCount = aContainer->GetChildCount();
|
||||
for (PRUint32 i = aIndex; i < containerCount; i++) {
|
||||
nsIContent* child = aContainer->GetChildAt(i);
|
||||
NS_ASSERTION(!child->GetPrimaryFrame(),
|
||||
NS_ASSERTION(!child->GetPrimaryFrame() ||
|
||||
child->GetPrimaryFrame()->GetContent() != child,
|
||||
//XXX the child->GetPrimaryFrame()->GetContent() != child
|
||||
// check is needed due to bug 135040. Remove it once that's
|
||||
// fixed.
|
||||
"setting NEEDS_FRAME on a node that already has a frame?");
|
||||
child->SetFlags(NODE_NEEDS_FRAME);
|
||||
}
|
||||
@ -6292,7 +6304,11 @@ nsCSSFrameConstructor::CreateNeededFrames(nsIContent* aContent)
|
||||
for (PRUint32 i = 0; i < childCount; i++) {
|
||||
nsIContent* child = aContent->GetChildAt(i);
|
||||
if (child->HasFlag(NODE_NEEDS_FRAME)) {
|
||||
NS_ASSERTION(!child->GetPrimaryFrame(),
|
||||
NS_ASSERTION(!child->GetPrimaryFrame() ||
|
||||
child->GetPrimaryFrame()->GetContent() != child,
|
||||
//XXX the child->GetPrimaryFrame()->GetContent() != child
|
||||
// check is needed due to bug 135040. Remove it once that's
|
||||
// fixed.
|
||||
"NEEDS_FRAME set on a node that already has a frame?");
|
||||
if (!inRun) {
|
||||
inRun = PR_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user