To keep Bug 145324 "Large repaints when flexbox layout is used" specific to Layout and Rendering, I'm creating this bug for Web Inspector. --- * SUMMARY Large repaints when typing any character in console. See attached screenshot (https://bugs.webkit.org/attachment.cgi?id=253613). Particularly with the QuickConsole this is unexpected. * STEPS TO REPRODUCE 1. Inspect about:blank 2. Show Elements Tab 3. Focus quick console 4. Type in the quick console => each keystroke a large portion of the window gets a paint flash
<rdar://problem/25125720>
Created attachment 273813 [details] [Animated GIF] With translateZ hack Adding #content { transform: translateZ(0px); } somehow solves the problem. Adding that to #quick-console or .console-prompt doesn't affect repaint areas, which was surprising to me. I don't understand why the toolbar is being repainted but it's fixed in Bug 155386.
Created attachment 273815 [details] Patch
Comment on attachment 273815 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=273815&action=review > Source/WebInspectorUI/UserInterface/Views/Main.css:145 > + transform: translateZ(0); /* Promote #content into a layer to reduce repaint areas. */ Should add a URL to the WebKit bug.
Created attachment 273926 [details] Patch
Comment on attachment 273926 [details] Patch Clearing flags on attachment: 273926 Committed r198095: <http://trac.webkit.org/changeset/198095>
All reviewed patches have been landed. Closing bug.
Re-opened since this is blocked by bug 155467
(In reply to comment #8) > Re-opened since this is blocked by bug 155467 Rolled out in <http://trac.webkit.org/changeset/198158> as it made text look poor.
Created attachment 274268 [details] Patch #content {z-index: 1} reduces the repaint area without introducing a new layer (it doesn't show up in the Layers sidebar).
Comment on attachment 274268 [details] Patch Clearing flags on attachment: 274268 Committed r198346: <http://trac.webkit.org/changeset/198346>