[cleanup] Remove intrinsic overrides in LayoutImage, etc. #23899
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initially added in:
https://chromium-review.googlesource.com/c/chromium/src/+/1150725/
https://chromium-review.googlesource.com/c/chromium/src/+/1191926/
https://chromium-review.googlesource.com/c/chromium/src/+/1210544/
This now appears to be (somewhat) dead code. Previous patches removed
the intrinsicSize attribute which this was initially hooked up to.
This code actually slightly dangerous at the moment, as it appears that
if you have certain feature policies turned on you will get subtly
different behaviour that what you expected.
E.g. the "document-write" policy?
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/feature_policy/feature_policy_features.json5;l=132?q=experimentalproductivityfeatures%20file:json5&ss=chromium%2Fchromium%2Fsrc&originalUrl=https:%2F%2Fcs.chromium.org%2F
This leaves the reporting behaviour in:
https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/layout/layout_image.cc;l=437?q=isdefaultintrinsicsize&ss=chromium&originalUrl=https:%2F%2Fcs.chromium.org%2F
Change-Id: I80d1d376753070dc94559e3177d31c0fd3439700
Reviewed-on: https://chromium-review.googlesource.com/2224992
WPT-Export-Revision: e8af1c3e8457b31ee5a8b899310cdfa51e07ac50