Closed Bug 1606528 Opened 6 years ago Closed 6 years ago

Implement BrowsingContext::IsTop()

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: tetsuharu, Assigned: tetsuharu)

References

Details

Attachments

(2 files)

I saw !bc->GetParent() frequently as checking whether it is a root or not.
I feel it's time to add BrowsingContext::IsRoot().

Type: defect → enhancement
Assignee: nobody → tetsuharu.ohzeki
Status: NEW → ASSIGNED
Summary: Implement BrowsingContext::IsRoot() → Implement BrowsingContext::IsTop()
Attachment #9118260 - Attachment description: Bug 1606528 - Implement BrowsingContext::IsRoot(). → Bug 1606528 - part 1: Implement BrowsingContext::IsTop().
Pushed by tetsuharu.ohzeki@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ed6e04433ec5 part 1: Implement BrowsingContext::IsTop(). r=kmag https://hg.mozilla.org/integration/autoland/rev/ba45d2a12dc1 part 2: Replace idioms with BrowsingContext::IsTop(). r=kmag
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: