mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
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:
1 parent
3f469554ec
commit
1688105140
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user