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

Unified Diff: java/org/chromium/distiller/DomUtil.java

Issue 1754213004: Retain image sizes (Closed) Base URL: https://github.com/chromium/dom-distiller.git@master
Patch Set: Moving preserved attributes to the whitelist. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: java/org/chromium/distiller/DomUtil.java
diff --git a/java/org/chromium/distiller/DomUtil.java b/java/org/chromium/distiller/DomUtil.java
index 27690c4b482ef8aad7bc815ea79ed12ad2a6607d..0c0b8f0f09144ca8879089f2148017d5714769b8 100644
--- a/java/org/chromium/distiller/DomUtil.java
+++ b/java/org/chromium/distiller/DomUtil.java
@@ -321,6 +321,8 @@ public class DomUtil {
!"alt".equals(name) &&
!"srcset".equals(name) &&
!"dir".equals(name) &&
+ !"width".equals(name) &&
+ !"height".equals(name) &&
!"title".equals(name)) {
imgElement.removeAttribute(name);
} else {

Powered by Google App Engine
This is Rietveld 408576698