Simplify/improve ElementStyleResources "is sprite" heuristic
The HasBackgroundImage check is redundant because the helper function is called within an equivalent check. Also change so that current layer is checked, rather than always checking the first (top-most) layer. Update the test to include a case where doing this will help. Rename the helper method to BackgroundLayerMayBeSprite since it's no longer operating on a ComputedStyle. Change-Id: Ibfabfc4a3c68d042ab356f43cb6031697d4daf98 Reviewed-on: https://chromium-review.googlesource.com/852255Reviewed-by:rajendrant <rajendrant@chromium.org> Reviewed-by:
Scott Little <sclittle@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#536998}
Showing
Please register or sign in to comment