зеркало из https://github.com/mozilla/gecko-dev.git
Bug 234851. Minor performance optimization to make sure we only try overflow propagation for HTML BODY elements, not BODY elements from any XML namespace. r+sr=bzbarsky
This commit is contained in:
Родитель
d2c6e71b7d
Коммит
6d1679954c
|
@ -6084,7 +6084,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresShell* aPre
|
|||
// it might have dynamically changed from scrollable to not scrollable,
|
||||
// and that might need to be propagated.
|
||||
PRBool propagatedScrollToViewport = PR_FALSE;
|
||||
if (aContent->GetNodeInfo()->Equals(nsHTMLAtoms::body)) {
|
||||
if (aContent->GetNodeInfo()->Equals(nsHTMLAtoms::body) &&
|
||||
aContent->IsContentOfType(nsIContent::eHTML)) {
|
||||
propagatedScrollToViewport =
|
||||
PropagateScrollToViewport(aPresContext) == aContent;
|
||||
}
|
||||
|
|
|
@ -6084,7 +6084,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresShell* aPre
|
|||
// it might have dynamically changed from scrollable to not scrollable,
|
||||
// and that might need to be propagated.
|
||||
PRBool propagatedScrollToViewport = PR_FALSE;
|
||||
if (aContent->GetNodeInfo()->Equals(nsHTMLAtoms::body)) {
|
||||
if (aContent->GetNodeInfo()->Equals(nsHTMLAtoms::body) &&
|
||||
aContent->IsContentOfType(nsIContent::eHTML)) {
|
||||
propagatedScrollToViewport =
|
||||
PropagateScrollToViewport(aPresContext) == aContent;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче