forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename loading distance threshold to margin
This change aligns the lazy loading image observer implementation with the spec language, reduces confusion as threshold has an entirely different meaning in the context of intersection observers, and paves the way for the followup change to use scroll-margin instead of root-margin for the lazy loading image intersection observer. Specs: https://html.spec.whatwg.org/#lazy-load-root-margin https://www.w3.org/TR/intersection-observer/#dom-intersectionobserverinit-rootmargin https://www.w3.org/TR/intersection-observer/#dom-intersectionobserverinit-threshold R=pdr Bug: 1391989 Low-Coverage-Reason: TRIVIAL_CHANGE no effective coverage change. Change-Id: Ic1faf75042b20c46f0cea8ee1a9bc7afcc06ee15 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5028435 Commit-Queue: Traian Captan <tcaptan@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1225081}
- Loading branch information
1 parent
ece7f2a
commit bacaa80
Showing
7 changed files
with
90 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters