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

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.h

Issue 2646663002: [Blink] Don't center images in Android WebViews (Closed)
Patch Set: Fixing comments Created 3 years, 11 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: third_party/WebKit/Source/core/html/ImageDocument.h
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.h b/third_party/WebKit/Source/core/html/ImageDocument.h
index c391bdc8a1588805e078d17dcf770a56be42d64e..c57165329d388e73a2d3c03a86aba28d68eda6f0 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.h
+++ b/third_party/WebKit/Source/core/html/ImageDocument.h
@@ -63,6 +63,9 @@ class CORE_EXPORT ImageDocument final : public HTMLDocument {
void createDocumentStructure();
+ // Determines whether the image should be centered in the layout.
+ bool shouldCenterImage() const;
+
// Calculates how large the div needs to be to properly center the image.
int calculateDivWidth();

Powered by Google App Engine
This is Rietveld 408576698