Commit f72000a1 authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Put back line breaking for view-source document

In crbug.com/920571, several changes were made for performance
reasons, and one of these changes was to stop breaking lines and
just allow each source line to take up one view-source-table line.
This did improve performance (significantly in some cases, e.g.
150X), but this is a behavior change that caused some developer
pain.

This CL puts back word breaking, temporarily, while a solution
to the developer pain point is found.

Bug: 920571
Change-Id: I2fc744c034b9ff90ca6e560fda5b077a8a8a1bcf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2529969
Commit-Queue: Koji Ishii <kojii@chromium.org>
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826028}
parent bd588ead
...@@ -27,9 +27,10 @@ body { ...@@ -27,9 +27,10 @@ body {
} }
table { table {
width: max-content; width: 100%;
border-spacing: 0; border-spacing: 0;
white-space: pre; white-space: pre-wrap !important;
word-break: break-word;
margin: 0; margin: 0;
font-size: initial; font-size: initial;
font-family: monospace; font-family: monospace;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment