aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/pipeline.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2020-02-19 13:51:30 -0500
committerGitHub <noreply@github.com>2020-02-19 13:51:30 -0500
commit35b1548cb64357c5881b71ed43397dbd71aec141 (patch)
treef85940f5d05c8593f49ed9a598280af7b00b2403 /components/constellation/pipeline.rs
parent44783c89bbbc0f138776606a733bd277799346e9 (diff)
parent4a3bf52a7c408183d4c3eb7d29a6a528f180315d (diff)
downloadservo-35b1548cb64357c5881b71ed43397dbd71aec141.tar.gz
servo-35b1548cb64357c5881b71ed43397dbd71aec141.zip
Auto merge of #25777 - kunalmohan:24720-ImageCache, r=jdm
Take origin from current window instead of creating a new one in event of reflow Everytime a new `LayoutContext` was created, it created a new origin which caused endless stream of image loads to occur in case of reflow. The reason for this was that the existing image, although cached successfully, was not used because the entry in hashmap did not match because of different(new) origin. This is solved by storing the origin of a window in enum `ScriptReflow` and used in creating new `LayoutContext` in case of reflow. <!-- Please describe your changes on the following line: --> r?@jdm --- <!-- 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 #24720 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes <!-- 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. -->
Diffstat (limited to 'components/constellation/pipeline.rs')
0 files changed, 0 insertions, 0 deletions