<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19674</bug_id>
          
          <creation_ts>2008-06-19 08:23:03 -0700</creation_ts>
          <short_desc>Default font size should be the same as Safari, I.E. and Firefox: 16 (v.s. the current 14)</short_desc>
          <delta_ts>2009-10-05 04:43:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Meyer">ben</reporter>
          <assigned_to name="Tor Arne Vestbø">vestbo</assigned_to>
          <cc>abecsi</cc>
    
    <cc>hausmann</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83873</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Meyer">ben</who>
    <bug_when>2008-06-19 08:23:03 -0700</bug_when>
    <thetext>Safari, Mac IE, Camino, and Mozilla, etc all have a default size of 16 rather then 14.

Some more info from when Safari 1.0 changed its default to 16
http://weblogs.mozillazine.org/hyatt/archives/2003_04.html#002993</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145170</commentid>
    <comment_count>1</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2009-09-07 09:08:22 -0700</bug_when>
    <thetext>Simon, any idea why 14 was chosen? Unless we break something really bad I think we should go for 16 too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145229</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2009-09-07 13:08:34 -0700</bug_when>
    <thetext>tor, just a side note: many layout tests are have currently got their results  updated to expect fontsize default to 13 ... (yes in DRT/QT default it 13 :( )... so we have a double non-conformation here.    // To get DRT compliant to 

see it in DumpRenderTree.cpp

(...)
WebPage::WebPage()
(...)
    //some layout tests lets set the default fontsize to 13.
    settings()-&gt;setFontSize(QWebSettings::DefaultFontSize, 13);
(...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145230</commentid>
    <comment_count>3</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2009-09-07 13:12:03 -0700</bug_when>
    <thetext>ok , english version now:

&quot;... many layout tests had  their expected-results recently updated to expect fontsize default to 13 ...&quot;

sorry about the bugmail spam

(In reply to comment #2)
&gt; tor, just a side note: many layout tests are have currently got their results 
&gt; updated to expect fontsize default to 13 ... (yes in DRT/QT default it 13 :(
&gt; )... so we have a double non-conformation here.    // To get DRT compliant to 
&gt; 
&gt; see it in DumpRenderTree.cpp
&gt; 
&gt; (...)
&gt; WebPage::WebPage()
&gt; (...)
&gt;     //some layout tests lets set the default fontsize to 13.
&gt;     settings()-&gt;setFontSize(QWebSettings::DefaultFontSize, 13);
&gt; (...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147068</commentid>
    <comment_count>4</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2009-09-14 09:22:18 -0700</bug_when>
    <thetext>Hi!

I have changed the font sizes in DRT.cpp and qwebsettings.cpp to 16px and ran run-webkit-tests --ignore-mertics.
7 tests failed which previously didn&apos;t. Seems that the others have only font metrics problems. Reni and I are going to fully investigate this issue, and send patches to set the default size to 16px and update the metrics in files which need it.

The following tests failed, with render-tree differences:

editing/pasteboard/5761530-1.html:
  DRT places a tab in place of an expected space

editing/pasteboard/5780697-2.html:
  printed size variables differ
  maybe there is a quirksmode issue too 

fast/css/getComputedStyle/computed-style-without-renderer.html:
  border-top-width: 18px should be 1em=16px
  I met this issue once in another test where there was a approx 2px white border on the top but there shouldn&apos;t be. Maybe this expected expected a wrong value previously?

fast/css/getComputedStyle/computed-style
  -webkit-perspective-origin: Xpx Ypx twice there is one pixel Y difference

fast/history/history_reload.html:
  DRT fails the test, but QtLaucher does  it right

fast/html/text-field-input-types.html:
  DRT removes a space:
  -A B C D E F
  +A B C DE F

svg/batik/filters/feTile.svg:
  left border flows approx 3px over the edge, only one half of the first numbers can be seen

svg/custom/getscreenctm-in-mixed-content2.xhtml
  This tests the behaviour of SVGLocatable::getScreenCTM() in mixed content:
    Expected matrix [1, 0, 0, 1, 350, 56]
    Got matrix [1, 0, 0, 1, 405, 55]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147804</commentid>
    <comment_count>5</comment_count>
      <attachid>39694</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2009-09-17 08:24:38 -0700</bug_when>
    <thetext>Created attachment 39694
Fix default font sizes in DRT.cpp and qwebsettings.cpp

The patch reconciliates the default font sizes in DRT.cpp and qwebsettings.cpp for regular/fixed fonts from 13px/13px in DRT vs. 14px/14px in qwebsettings to 16px/13px which is the default on other platforms.

This breaks the metrics on ~450 tests, and introduces 8 new failing tests (with --ignore-metrics) which seem to be related to previously hidden bugs:

editing/pasteboard/5761530-1.html
editing/pasteboard/5780697-2.html
fast/css/getComputedStyle/computed-style-without-renderer.html
fast/css/getComputedStyle/computed-style
fast/history/history_reload.html
fast/html/text-field-input-types.html
svg/batik/filters/feTile.svg
svg/custom/getscreenctm-in-mixed-content2.xhtml

These get into the Skipped list for later investigation.
I&apos;ll push all the changes to my qtwebkit clone on gitorious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147807</commentid>
    <comment_count>6</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2009-09-17 08:36:32 -0700</bug_when>
    <thetext>Perfect, I&apos;ll land it once it&apos;s on gitorious</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150890</commentid>
    <comment_count>7</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2009-09-29 06:30:42 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Perfect, I&apos;ll land it once it&apos;s on gitorious

I&apos;ve pushed my changes to my gitorious clone:

http://www.gitorious.org/~bbandix/qtwebkit/bbandix-clone

Unforunately the patch has 43718 LOC, which is huge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150986</commentid>
    <comment_count>8</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2009-09-29 12:00:41 -0700</bug_when>
    <thetext>Landed in r48873.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>39694</attachid>
            <date>2009-09-17 08:24:38 -0700</date>
            <delta_ts>2009-09-17 08:24:38 -0700</delta_ts>
            <desc>Fix default font sizes in DRT.cpp and qwebsettings.cpp</desc>
            <filename>fontsize.patch</filename>
            <type>text/plain</type>
            <size>1793</size>
            <attacher name="Andras Becsi">abecsi</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9xdC9BcGkvcXdlYnNldHRpbmdzLmNwcCBiL1dlYktpdC9xdC9B
cGkvcXdlYnNldHRpbmdzLmNwcAppbmRleCA1Zjc0ZjM2Li5lZWRmN2QxIDEwMDY0NAotLS0gYS9X
ZWJLaXQvcXQvQXBpL3F3ZWJzZXR0aW5ncy5jcHAKKysrIGIvV2ViS2l0L3F0L0FwaS9xd2Vic2V0
dGluZ3MuY3BwCkBAIC0zNTYsOCArMzU2LDggQEAgUVdlYlNldHRpbmdzOjpRV2ViU2V0dGluZ3Mo
KQogICAgIC8vIEluaXRpYWxpemUgb3VyI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