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

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: comments addressed Created 4 years, 9 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
« no previous file with comments | « no previous file | java/org/chromium/distiller/extractors/embeds/ImageExtractor.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | java/org/chromium/distiller/extractors/embeds/ImageExtractor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698