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

Unified Diff: Source/devtools/front_end/canvasProfiler.css

Issue 446763003: DevTools: Get rid of CSS hackery in CanvasProfiler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Source/devtools/front_end/profiler/CanvasProfileView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/canvasProfiler.css
diff --git a/Source/devtools/front_end/canvasProfiler.css b/Source/devtools/front_end/canvasProfiler.css
index bb8e267f5daedbe21c91d9aad252be595651f214..053269078d8e567590deff0ef1106c134c12cb93 100644
--- a/Source/devtools/front_end/canvasProfiler.css
+++ b/Source/devtools/front_end/canvasProfiler.css
@@ -42,18 +42,26 @@
text-align: center;
background-color: black;
overflow: hidden;
- padding: 5px 5px 10px 5px;
+ padding: 0;
color: white;
}
-.canvas-replay-image {
- zoom: 100;
- height: auto;
- width: auto;
- max-width: 100%;
- max-height: 100%;
- margin: auto;
- display: block;
+.canvas-replay-image-parent {
+ position: absolute;
+ top: 5px;
+ left: 5px;
+ right: 5px;
+ bottom: 10px;
+}
+
+.canvas-replay-image-parent > span {
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
+}
+
+.canvas-replay-image-parent > img {
+ vertical-align: middle;
}
.canvas-debug-info {
« no previous file with comments | « no previous file | Source/devtools/front_end/profiler/CanvasProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698