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

Unified Diff: components/dom_distiller/core/javascript/dom_distiller_viewer.js

Issue 1192363006: Update reader mode viewer according to specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: subtitle color, table cell padding, simplify striped table color, wide table scrolling Created 5 years, 5 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 | « components/dom_distiller/core/html/preview.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/javascript/dom_distiller_viewer.js
diff --git a/components/dom_distiller/core/javascript/dom_distiller_viewer.js b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
index bf114cf6c9ad14639da53c4fef3a71e2e56ad27c..f953414f028f055b849012a2330f92f1f680a242 100644
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
@@ -43,20 +43,12 @@ function showLoadingIndicator(isLastPage) {
updateLoadingIndicator(isLastPage);
}
-// Sets the title. The title will be exposed with a simple animation. This
-// should only be used when the title was not included in the initial html.
+// Sets the title.
function setTitle(title) {
var holder = document.getElementById('titleHolder');
- var collapse = document.getElementById('titleCollapse');
-
- collapse.style.height = "0px";
holder.textContent = title;
document.title = title;
- var newHeight = Math.max(90, holder.getBoundingClientRect().height);
-
- collapse.style.transition = "height 0.2s";
- collapse.style.height = newHeight + "px";
}
// Set the text direction of the document ('ltr', 'rtl', or 'auto').
« no previous file with comments | « components/dom_distiller/core/html/preview.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698