Skip to content

make sure proper frame tree is sent when iframes change - #18149

Merged
bors-servo merged 1 commit into
servo:masterfrom
paulrouget:hittest-issue
Aug 21, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
paulrouget:hittest-issue

Conversation

@paulrouget

@paulrouget paulrouget commented Aug 19, 2017 •

Copy link
Copy Markdown
Contributor

We ran into a hittest issue because the frame tree was not correctly updated after #17425.

The frame tree should be updated on tab change (via send_frame_tree) or when the frame sub tree changes and it's the active one (via update_frame_tree_if_active).


  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/constellation.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 19, 2017

@cbrewster cbrewster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.


// Only send the frame tree if it's the active one or if no frame tree
// has been sent yet.
if self.active_browser_id == None || Some(top_level_browsing_context_id) == self.active_browser_id {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: self.active_browser_id.is_none()


}

// Send the current frame tree to compositor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ///


// Send the current frame tree to compositor
fn send_frame_tree(&mut self, top_level_browsing_context_id: TopLevelBrowsingContextId) {
// Re-send the frame tree to the compositor.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ///

@cbrewster

Copy link
Copy Markdown
Contributor

@bors-servo delegate+

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @paulrouget can now approve this pull request

@paulrouget

Copy link
Copy Markdown
Contributor Author

@bors-servo r=cbrewster

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 4edac8e has been approved by cbrewster

@highfive highfive assigned cbrewster and unassigned KiChjang Aug 21, 2017
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 21, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4edac8e with merge a1006a5...

bors-servo pushed a commit that referenced this pull request Aug 21, 2017
make sure proper frame tree is sent when iframes change

We ran into a hittest issue because the frame tree was not correctly updated after #17425.

The frame tree should be updated on tab change (via send_frame_tree) or when the frame sub tree changes and it's the active one (via update_frame_tree_if_active).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #18101 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18149)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: cbrewster
Pushing a1006a5 to master...

@bors-servo
bors-servo merged commit 4edac8e into servo:master Aug 21, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link hitboxes do not move when scrolling page

5 participants