mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Cache the result of retrieving an element's client rectangle from layout.
This commit is contained in:
parent
148c24c29c
commit
6ab7a50b31
5 changed files with 125 additions and 22 deletions
|
@ -3709,7 +3709,7 @@ impl ScriptThread {
|
|||
new_size
|
||||
);
|
||||
window.set_window_size(new_size);
|
||||
window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize);
|
||||
window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize, None);
|
||||
|
||||
// http://dev.w3.org/csswg/cssom-view/#resizing-viewports
|
||||
if size_type == WindowSizeType::Resize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue