mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Changed FindFrameWithContent() to ignore frames associated with
generated content
This commit is contained in:
parent
0195b45486
commit
8c0d3b76c9
@ -1863,7 +1863,13 @@ FindFrameWithContent(nsIFrame* aFrame, nsIContent* aContent)
|
||||
NS_RELEASE(styleContext);
|
||||
NS_IF_RELEASE(pseudoTag);
|
||||
|
||||
if (!isPlaceholder) {
|
||||
// Also ignore frames associated with generated content
|
||||
nsFrameState frameState;
|
||||
PRBool isGeneratedContent;
|
||||
aFrame->GetFrameState(&frameState);
|
||||
isGeneratedContent = (frameState & NS_FRAME_GENERATED_CONTENT) == NS_FRAME_GENERATED_CONTENT;
|
||||
|
||||
if (!isPlaceholder && !isGeneratedContent) {
|
||||
NS_IF_RELEASE(frameContent);
|
||||
return aFrame;
|
||||
}
|
||||
|
@ -1863,7 +1863,13 @@ FindFrameWithContent(nsIFrame* aFrame, nsIContent* aContent)
|
||||
NS_RELEASE(styleContext);
|
||||
NS_IF_RELEASE(pseudoTag);
|
||||
|
||||
if (!isPlaceholder) {
|
||||
// Also ignore frames associated with generated content
|
||||
nsFrameState frameState;
|
||||
PRBool isGeneratedContent;
|
||||
aFrame->GetFrameState(&frameState);
|
||||
isGeneratedContent = (frameState & NS_FRAME_GENERATED_CONTENT) == NS_FRAME_GENERATED_CONTENT;
|
||||
|
||||
if (!isPlaceholder && !isGeneratedContent) {
|
||||
NS_IF_RELEASE(frameContent);
|
||||
return aFrame;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user