Bug 55143

Summary: Web Inspector: Huge fonts in font preview
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Suggested fix
pfeldman: review-
[PATCH] Comments addressed
pfeldman: review-
[PATCH] Magic removed pfeldman: review+

Alexander Pavlov (apavlov)
Reported 2011-02-24 07:03:07 PST
1. Go to http://pleasingfungus.com/ 2. Open the inspector 3. Open the resource tab 4. Select flixelfont.ttf The font is HUGE! If the inspector window is resized, the font goes back to an appropriate size. Upstreaming http://code.google.com/p/chromium/issues/detail?id=46731
Attachments
[PATCH] Suggested fix (6.31 KB, patch)
2011-02-24 07:33 PST, Alexander Pavlov (apavlov)
pfeldman: review-
[PATCH] Comments addressed (6.44 KB, patch)
2011-02-24 08:38 PST, Alexander Pavlov (apavlov)
pfeldman: review-
[PATCH] Magic removed (6.30 KB, patch)
2011-02-25 04:16 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Alexander Pavlov (apavlov)
Comment 1 2011-02-24 07:33:00 PST
Created attachment 83653 [details] [PATCH] Suggested fix
Pavel Feldman
Comment 2 2011-02-24 07:43:56 PST
Comment on attachment 83653 [details] [PATCH] Suggested fix View in context: https://bugs.webkit.org/attachment.cgi?id=83653&action=review > Source/WebCore/inspector/front-end/FontView.js:56 > + var uniqueFontName = "WebInspectorFontPreview" + WebInspector.FontView._nextFontId(); Nit: No need for a method here, just inline it. > Source/WebCore/inspector/front-end/FontView.js:93 > + var display = element.style.display; You should encapsulate font metrics and use dummy element added to body, positioned absolutely, behind the screen.
Alexander Pavlov (apavlov)
Comment 3 2011-02-24 08:38:35 PST
Created attachment 83663 [details] [PATCH] Comments addressed
Pavel Feldman
Comment 4 2011-02-25 02:56:52 PST
Comment on attachment 83663 [details] [PATCH] Comments addressed View in context: https://bugs.webkit.org/attachment.cgi?id=83663&action=review > Source/WebCore/inspector/front-end/FontView.js:129 > + if (firstRun) This is magic, r- for this.
Alexander Pavlov (apavlov)
Comment 5 2011-02-25 04:16:10 PST
Created attachment 83793 [details] [PATCH] Magic removed
Alexander Pavlov (apavlov)
Comment 6 2011-02-25 05:36:14 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ... M Source/WebCore/ChangeLog M Source/WebCore/inspector/front-end/FontView.js Committed r79677
Note You need to log in before you can comment on or make changes to this bug.