Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 2795173002: Do not show image placeholders for CSS sprites (Closed)

Created:
3 years, 8 months ago by Raj
Modified:
3 years, 6 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not show image placeholders for CSS sprites This CL recognizes if CSS background image is used for CSS sprites, and shows the full image instead of image placeholders. sprite BUG=678792 Review-Url: https://codereview.chromium.org/2795173002 Cr-Commit-Position: refs/heads/master@{#482122} Committed: https://chromium.googlesource.com/chromium/src/+/830854ccc657258329381910e6b1fa679a058ffe

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added layout test #

Patch Set 3 : Added layout test expected result #

Total comments: 10

Patch Set 4 : Addressed comments #

Total comments: 8

Patch Set 5 : Addressed kouhei comments #

Total comments: 8

Patch Set 6 : rebased #

Patch Set 7 : Addressed comments #

Total comments: 4

Patch Set 8 : rebased and addressed comments #

Total comments: 10

Patch Set 9 : Addressed comments #

Total comments: 3

Patch Set 10 : fixed nits #

Patch Set 11 : tryjob #

Patch Set 12 : remove a test #

Messages

Total messages: 42 (18 generated)
Raj
ptal https://codereview.chromium.org/2795173002/diff/1/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/1/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode122 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:122: // Simple hueristic to guess if CSS background ...
3 years, 8 months ago (2017-04-04 08:02:02 UTC) #2
suzyh_UTC10 (ex-contributor)
It's not clear to me why we want to do this. Is there a relevant ...
3 years, 8 months ago (2017-04-04 23:47:36 UTC) #3
Raj
Adding sclittle@ as well. Following thread summarizes the image replacement feature to for saving data. ...
3 years, 8 months ago (2017-04-10 20:42:46 UTC) #6
Raj
On 2017/04/10 20:42:46, Raj wrote: > Adding sclittle@ as well. > > Following thread summarizes ...
3 years, 8 months ago (2017-04-10 20:46:00 UTC) #7
kouhei (in TOK)
3 years, 8 months ago (2017-04-11 04:28:49 UTC) #9
suzyh_UTC10 (ex-contributor)
On 2017/04/10 at 20:46:00, rajendrant wrote: > On 2017/04/10 20:42:46, Raj wrote: > > Adding ...
3 years, 8 months ago (2017-04-11 04:30:48 UTC) #10
kouhei (in TOK)
https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/CSSImageSetValue.h File third_party/WebKit/Source/core/css/CSSImageSetValue.h (right): https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/CSSImageSetValue.h#newcode49 third_party/WebKit/Source/core/css/CSSImageSetValue.h:49: bool allowImagePlaceholder = false); Can we take ImagePlaceHolderRequestType? https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/loader/fetch/FetchRequest.h?type=cs&q=imageplaceholder+enum&sq=package:chromium&l=54 ...
3 years, 8 months ago (2017-04-11 07:45:59 UTC) #11
Raj
kouhei: ptal https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/CSSImageSetValue.h File third_party/WebKit/Source/core/css/CSSImageSetValue.h (right): https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/CSSImageSetValue.h#newcode49 third_party/WebKit/Source/core/css/CSSImageSetValue.h:49: bool allowImagePlaceholder = false); On 2017/04/11 07:45:59, ...
3 years, 8 months ago (2017-04-20 19:01:17 UTC) #13
kouhei (in TOK)
https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode127 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:127: (!style.logicalHeight().isAuto() || !style.logicalWidth().isAuto()); On 2017/04/20 19:01:17, Raj wrote: > ...
3 years, 8 months ago (2017-04-24 00:02:20 UTC) #14
Raj
kouhei: ptal https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/60001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode127 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:127: (!style.logicalHeight().isAuto() || !style.logicalWidth().isAuto()); On 2017/04/24 00:02:19, kouhei ...
3 years, 7 months ago (2017-04-28 03:43:27 UTC) #16
kouhei (in TOK)
https://codereview.chromium.org/2795173002/diff/120001/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html File third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html (right): https://codereview.chromium.org/2795173002/diff/120001/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html#newcode1 third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html:1: <!DOCTYPE html> Please modify this test so that it ...
3 years, 7 months ago (2017-04-28 03:50:50 UTC) #17
Raj
kouhei: ptal https://codereview.chromium.org/2795173002/diff/120001/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html File third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html (right): https://codereview.chromium.org/2795173002/diff/120001/third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html#newcode1 third_party/WebKit/LayoutTests/http/tests/previews/client-lofi.html:1: <!DOCTYPE html> On 2017/04/28 03:50:50, kouhei wrote: ...
3 years, 7 months ago (2017-04-28 18:01:21 UTC) #18
sclittle
https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode126 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:126: (!style.LogicalHeight().IsAuto() || !style.LogicalWidth().IsAuto()); These LogicalWidth/Height().IsAuto() checks seem odd - ...
3 years, 7 months ago (2017-04-28 23:55:54 UTC) #19
Raj
https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode126 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:126: (!style.LogicalHeight().IsAuto() || !style.LogicalWidth().IsAuto()); On 2017/04/28 23:55:54, sclittle wrote: > ...
3 years, 7 months ago (2017-04-30 18:35:28 UTC) #20
kouhei (in TOK)
Thanks for addressing the comments! lgtm from myside re: core/ changes. Please wait for sclittle@ ...
3 years, 7 months ago (2017-05-01 01:30:23 UTC) #22
sclittle
https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode126 third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp:126: (!style.LogicalHeight().IsAuto() || !style.LogicalWidth().IsAuto()); On 2017/04/30 18:35:28, Raj wrote: > ...
3 years, 7 months ago (2017-05-08 20:34:45 UTC) #23
rajendrant
sclittle: ptal client-lofi-expected.png is the updated placeholder image with icons. https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp File third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp (right): https://codereview.chromium.org/2795173002/diff/160001/third_party/WebKit/Source/core/css/resolver/ElementStyleResources.cpp#newcode126 ...
3 years, 6 months ago (2017-06-12 20:31:04 UTC) #25
sclittle
https://codereview.chromium.org/2795173002/diff/180001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp File third_party/WebKit/Source/core/css/CSSImageSetValue.cpp (right): https://codereview.chromium.org/2795173002/diff/180001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp#newcode128 third_party/WebKit/Source/core/css/CSSImageSetValue.cpp:128: document.GetSettings()->GetFetchImagePlaceholders() && Could you remove the Settings checks here? ...
3 years, 6 months ago (2017-06-13 00:28:27 UTC) #26
rajendrant
sclittle: ptal https://codereview.chromium.org/2795173002/diff/180001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp File third_party/WebKit/Source/core/css/CSSImageSetValue.cpp (right): https://codereview.chromium.org/2795173002/diff/180001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp#newcode128 third_party/WebKit/Source/core/css/CSSImageSetValue.cpp:128: document.GetSettings()->GetFetchImagePlaceholders() && On 2017/06/13 00:28:27, sclittle wrote: ...
3 years, 6 months ago (2017-06-21 19:00:58 UTC) #27
sclittle
LGTM % nits https://codereview.chromium.org/2795173002/diff/200001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp File third_party/WebKit/Source/core/css/CSSImageSetValue.cpp (right): https://codereview.chromium.org/2795173002/diff/200001/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp#newcode33 third_party/WebKit/Source/core/css/CSSImageSetValue.cpp:33: #include "core/frame/Settings.h" nit: Remove unused include ...
3 years, 6 months ago (2017-06-21 20:46:56 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2795173002/220001
3 years, 6 months ago (2017-06-22 20:12:46 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/483772)
3 years, 6 months ago (2017-06-22 22:59:47 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2795173002/260001
3 years, 6 months ago (2017-06-24 00:15:51 UTC) #39
commit-bot: I haz the power
3 years, 6 months ago (2017-06-24 02:16:55 UTC) #42
Message was sent while issue was closed.
Committed patchset #12 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/830854ccc657258329381910e6b1...

Powered by Google App Engine
This is Rietveld 408576698