|
|
Chromium Code Reviews
DescriptionMake favicon and manifest icon processing more consistent for add to homescreen.
Manifest icons are used as-provided for add to homescreen on Android,
while favicons are processed to add rounded corners and padding.
This leads to inconsistent icon sizing when a site uses a manifest to
declare icons versus using <link rel="icon"> or favicons.
This CL is a first step in addressing the inconsistency by ensuring both
favicons and manifest icons are processed identically for add to
homescreen. The corner rounding is removed completely, while the
padding process is changed to only be applied on icons which have
nontransparent (alpha != 0) pixels in all four of their corners from either
source. This heuristic attempts to detect square icons with no existing
padding, which is often how favicons are produced. If any transparent
pixel in any corner is detected, no padding is applied.
A future CL will make the icon selection heuristic consistent between
favicons and manifest icons, which will complete the fix for this issue.
BUG=612028
Committed: https://crrev.com/96548fc8973a2e1fa7616d2de7fca20cbe5c98b6
Cr-Commit-Position: refs/heads/master@{#411494}
Patch Set 1 #Patch Set 2 : Rebase and remove corner rounding #Patch Set 3 : Only pad icons when all four corners are nontransparent #Patch Set 4 : Rebase #Patch Set 5 : Better variable naming #
Depends on Patchset: Messages
Total messages: 35 (21 generated)
Description was changed from ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons were previously used as they were for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by passing manifest icons through the same clipping and padding process as favicons for add to homescreen. BUG=612028 ========== to ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons were previously used as they were for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by passing manifest icons through the same clipping and padding process as favicons for add to homescreen. BUG=612028 ==========
dominickn@chromium.org changed reviewers: + dfalcantara@chromium.org
Description was changed from ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons were previously used as they were for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by passing manifest icons through the same clipping and padding process as favicons for add to homescreen. BUG=612028 ========== to ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by passing manifest icons through the same clipping and padding process as favicons for add to homescreen. BUG=612028 ==========
PTAL, thanks! I've manually verified that this change corrects the icon inconsistency issue in the bug, and produces icons of the same size whether they're taken from a manifest or from the favicon. I also ran clang-format over the file to fix up some indentation throughout.
lgtm yay for path unification
mlamouri@chromium.org changed reviewers: + mlamouri@chromium.org
Can you hold before landing this. The Manifest doesn't follow the favicon path for some reasons. Actually, there were discussions to no longer do rounding and padding because web authors were sometimes not really happy about it (think of a scare icon becoming rounded).
On 2016/05/23 22:02:10, Mounir Lamouri (slow) wrote: > Can you hold before landing this. The Manifest doesn't follow the favicon path > for some reasons. Actually, there were discussions to no longer do rounding and > padding because web authors were sometimes not really happy about it (think of a > scare icon becoming rounded). If that's the case, should I just remove the corner rounding and leave the padding for both? I think that would solve the inconsistent sizing issue in this bug
On 2016/05/23 at 22:09:16, dominickn wrote: > On 2016/05/23 22:02:10, Mounir Lamouri (slow) wrote: > > Can you hold before landing this. The Manifest doesn't follow the favicon path > > for some reasons. Actually, there were discussions to no longer do rounding and > > padding because web authors were sometimes not really happy about it (think of a > > scare icon becoming rounded). > > If that's the case, should I just remove the corner rounding and leave the padding for both? I think that would solve the inconsistent sizing issue in this bug I left a comment in the bug. Maybe we should discuss the issue there and come back to this CL when we agree on a solution?
Description was changed from ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by passing manifest icons through the same clipping and padding process as favicons for add to homescreen. BUG=612028 ========== to ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. BUG=612028 ==========
Description was changed from ========== Clip and pad manifest icons in the same way as favicons for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. BUG=612028 ========== to ========== Remove favicon corner rounding for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. BUG=612028 ==========
PTAL thanks! This now removes the corner rounding entirely for both favicons and manifest icons as per the designer opinions in crbug.com/612028
Left a comment on the bug.
Description was changed from ========== Remove favicon corner rounding for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. BUG=612028 ========== to ========== Make add to homescreen icon processing more consistent. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. The padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. BUG=612028 ==========
Description was changed from ========== Make add to homescreen icon processing more consistent. Manifest icons are used as-provided for add to homescreen on Android, while favicons were processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL corrects the inconsistency by removing the corner rounding from favicons, and passing manifest icons through the same padding process as favicons for add to homescreen. The padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. BUG=612028 ========== to ========== Make add to homescreen icon processing more consistent. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ==========
PTAL, thanks!
Description was changed from ========== Make add to homescreen icon processing more consistent. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ========== to ========== Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ==========
Seems fine to me. Most of the changes seemed to be cleanups. lgtm
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by dominickn@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/08/10 20:31:07, dfalcantara wrote: > Seems fine to me. Most of the changes seemed to be cleanups. > > lgtm Thanks! mlamouri: any comments before I land this?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Sorry, I did not finish my round of review yesterday. lgtm
The CQ bit was checked by dominickn@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dfalcantara@chromium.org Link to the patchset: https://codereview.chromium.org/1997313002/#ps80001 (title: "Better variable naming")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ========== to ========== Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 ========== to ========== Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 Committed: https://crrev.com/96548fc8973a2e1fa7616d2de7fca20cbe5c98b6 Cr-Commit-Position: refs/heads/master@{#411494} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/96548fc8973a2e1fa7616d2de7fca20cbe5c98b6 Cr-Commit-Position: refs/heads/master@{#411494} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
