[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-10851-g50815da

ossy at webkit.org ossy at webkit.org
Wed Dec 22 17:47:12 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 7f2f2222c095d38621dfe09a717e824b4adfee14
Author: ossy at webkit.org <ossy at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 30 08:56:46 2010 +0000

    [Qt] Fix bugs when building WebKit with Qt 4.7.1
    https://bugs.webkit.org/show_bug.cgi?id=46248
    
    Reviewed by Andreas Kling.
    
    Migrate to Qt 4.7.1, add failing tests to the Skipped list,
    remove passing tests from Skipped list, update expected files.
    
    * platform/qt/Skipped:
    * platform/qt/css1/basic/class_as_selector-expected.txt:
    * platform/qt/css1/basic/comments-expected.txt:
    * platform/qt/css1/basic/containment-expected.txt:
    * platform/qt/css1/basic/contextual_selectors-expected.txt:
    * platform/qt/css1/basic/grouping-expected.txt:
    * platform/qt/css1/basic/id_as_selector-expected.txt:
    * platform/qt/css1/basic/inheritance-expected.txt:
    * platform/qt/css1/box_properties/border-expected.txt:
    * platform/qt/css1/box_properties/border_bottom-expected.txt:
    * platform/qt/css1/box_properties/border_bottom_inline-expected.txt:
    * platform/qt/css1/box_properties/border_bottom_width-expected.txt:
    * platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt:
    * platform/qt/css1/box_properties/border_color-expected.txt:
    * platform/qt/css1/box_properties/border_color_inline-expected.txt:
    * platform/qt/css1/box_properties/border_inline-expected.txt:
    * platform/qt/css1/box_properties/border_left-expected.txt:
    * platform/qt/css1/box_properties/border_left_inline-expected.txt:
    * platform/qt/css1/box_properties/border_left_width-expected.txt:
    * platform/qt/css1/box_properties/border_left_width_inline-expected.txt:
    * platform/qt/css1/box_properties/border_right-expected.txt:
    * platform/qt/css1/box_properties/border_right_inline-expected.txt:
    * platform/qt/css1/box_properties/border_right_width-expected.txt:
    * platform/qt/css1/box_properties/border_right_width_inline-expected.txt:
    * platform/qt/css1/box_properties/border_style-expected.txt:
    * platform/qt/css1/box_properties/border_style_inline-expected.txt:
    * platform/qt/css1/box_properties/border_top-expected.txt:
    * platform/qt/css1/box_properties/border_top_inline-expected.txt:
    * platform/qt/css1/box_properties/border_top_width-expected.txt:
    * platform/qt/css1/box_properties/border_top_width_inline-expected.txt:
    * platform/qt/css1/box_properties/border_width-expected.txt:
    * platform/qt/css1/box_properties/border_width_inline-expected.txt:
    * platform/qt/css1/box_properties/clear-expected.txt:
    * platform/qt/css1/box_properties/clear_float-expected.txt:
    * platform/qt/css1/box_properties/float-expected.txt:
    * platform/qt/css1/box_properties/float_elements_in_series-expected.txt:
    * platform/qt/css1/box_properties/float_margin-expected.txt:
    * platform/qt/css1/box_properties/height-expected.txt:
    * platform/qt/css1/box_properties/margin-expected.txt:
    * platform/qt/css1/box_properties/margin_bottom-expected.txt:
    * platform/qt/css1/box_properties/margin_bottom_inline-expected.txt:
    * platform/qt/css1/box_properties/margin_inline-expected.txt:
    * platform/qt/css1/box_properties/margin_left-expected.txt:
    * platform/qt/css1/box_properties/margin_left_inline-expected.txt:
    * platform/qt/css1/box_properties/margin_right-expected.txt:
    * platform/qt/css1/box_properties/margin_right_inline-expected.txt:
    * platform/qt/css1/box_properties/margin_top-expected.txt:
    * platform/qt/css1/box_properties/margin_top_inline-expected.txt:
    * platform/qt/css1/box_properties/padding-expected.txt:
    * platform/qt/css1/box_properties/padding_bottom-expected.txt:
    * platform/qt/css1/box_properties/padding_bottom_inline-expected.txt:
    * platform/qt/css1/box_properties/padding_inline-expected.txt:
    * platform/qt/css1/box_properties/padding_left-expected.txt:
    * platform/qt/css1/box_properties/padding_left_inline-expected.txt:
    * platform/qt/css1/box_properties/padding_right-expected.txt:
    * platform/qt/css1/box_properties/padding_right_inline-expected.txt:
    * platform/qt/css1/box_properties/padding_top-expected.txt:
    * platform/qt/css1/box_properties/padding_top_inline-expected.txt:
    * platform/qt/css1/box_properties/width-expected.txt:
    * platform/qt/css1/cascade/cascade_order-expected.txt:
    * platform/qt/css1/cascade/important-expected.txt:
    * platform/qt/css1/classification/display-expected.txt:
    * platform/qt/css1/classification/list_style-expected.txt:
    * platform/qt/css1/classification/list_style_image-expected.txt:
    * platform/qt/css1/classification/list_style_position-expected.txt:
    * platform/qt/css1/classification/list_style_type-expected.txt:
    * platform/qt/css1/color_and_background/background-expected.txt:
    * platform/qt/css1/color_and_background/background_attachment-expected.txt:
    * platform/qt/css1/color_and_background/background_color-expected.txt:
    * platform/qt/css1/color_and_background/background_image-expected.txt:
    * platform/qt/css1/color_and_background/background_position-expected.txt:
    * platform/qt/css1/color_and_background/background_repeat-expected.txt:
    * platform/qt/css1/color_and_background/color-expected.txt:
    * platform/qt/css1/conformance/forward_compatible_parsing-expected.txt:
    * platform/qt/css1/font_properties/font-expected.txt:
    * platform/qt/css1/font_properties/font_family-expected.txt:
    * platform/qt/css1/font_properties/font_size-expected.txt:
    * platform/qt/css1/font_properties/font_style-expected.txt:
    * platform/qt/css1/font_properties/font_variant-expected.txt:
    * platform/qt/css1/font_properties/font_weight-expected.txt:
    * platform/qt/css1/formatting_model/canvas-expected.txt:
    * platform/qt/css1/formatting_model/floating_elements-expected.txt:
    * platform/qt/css1/formatting_model/height_of_lines-expected.txt:
    * platform/qt/css1/formatting_model/horizontal_formatting-expected.txt:
    * platform/qt/css1/formatting_model/inline_elements-expected.txt:
    * platform/qt/css1/formatting_model/replaced_elements-expected.txt:
    * platform/qt/css1/formatting_model/vertical_formatting-expected.txt:
    * platform/qt/css1/pseudo/anchor-expected.txt:
    * platform/qt/css1/pseudo/firstletter-expected.txt:
    * platform/qt/css1/pseudo/firstline-expected.txt:
    * platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt:
    * platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt:
    * platform/qt/css1/text_properties/letter_spacing-expected.txt:
    * platform/qt/css1/text_properties/line_height-expected.txt:
    * platform/qt/css1/text_properties/text_align-expected.txt:
    * platform/qt/css1/text_properties/text_decoration-expected.txt:
    * platform/qt/css1/text_properties/text_indent-expected.txt:
    * platform/qt/css1/text_properties/text_transform-expected.txt:
    * platform/qt/css1/text_properties/vertical_align-expected.txt:
    * platform/qt/css1/text_properties/word_spacing-expected.txt:
    * platform/qt/css1/units/color_units-expected.txt:
    * platform/qt/css1/units/length_units-expected.txt:
    * platform/qt/css1/units/percentage_units-expected.txt:
    * platform/qt/css1/units/urls-expected.txt:
    * platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt:
    * platform/qt/css2.1/t1508-c527-font-03-b-expected.txt:
    * platform/qt/css2.1/t1508-c527-font-06-b-expected.txt:
    * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
    * platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt:
    * platform/qt/editing/inserting/paragraph-separator-03-expected.txt:
    * platform/qt/editing/pasteboard/5027857-expected.txt:
    * platform/qt/editing/pasteboard/innerText-inline-table-expected.txt:
    * platform/qt/editing/pasteboard/paste-pre-001-expected.txt:
    * platform/qt/editing/pasteboard/paste-pre-002-expected.txt:
    * platform/qt/editing/pasteboard/paste-text-019-expected.txt:
    * platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt:
    * platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt:
    * platform/qt/fast/dom/gc-10-expected.txt:
    * platform/qt/fast/forms/isindex-placeholder-expected.txt:
    * platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt:
    * platform/qt/fast/frames/viewsource-on-image-file-expected.txt:
    * platform/qt/fast/lists/003-vertical-expected.txt:
    * platform/qt/fast/table/border-collapsing/004-vertical-expected.txt:
    * platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt:
    * platform/qt/fast/text/international/hindi-whitespace-expected.txt:
    * platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt:
    * platform/qt/svg/custom/bug45331-expected.txt:
    * platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72896 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 6655b1b..ec1b5f8 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,142 @@
+2010-11-30  Csaba Osztrogonác  <ossy at webkit.org>
+
+        Reviewed by Andreas Kling.
+
+        [Qt] Fix bugs when building WebKit with Qt 4.7.1
+        https://bugs.webkit.org/show_bug.cgi?id=46248
+
+        Migrate to Qt 4.7.1, add failing tests to the Skipped list,
+        remove passing tests from Skipped list, update expected files.
+
+        * platform/qt/Skipped:
+        * platform/qt/css1/basic/class_as_selector-expected.txt:
+        * platform/qt/css1/basic/comments-expected.txt:
+        * platform/qt/css1/basic/containment-expected.txt:
+        * platform/qt/css1/basic/contextual_selectors-expected.txt:
+        * platform/qt/css1/basic/grouping-expected.txt:
+        * platform/qt/css1/basic/id_as_selector-expected.txt:
+        * platform/qt/css1/basic/inheritance-expected.txt:
+        * platform/qt/css1/box_properties/border-expected.txt:
+        * platform/qt/css1/box_properties/border_bottom-expected.txt:
+        * platform/qt/css1/box_properties/border_bottom_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_bottom_width-expected.txt:
+        * platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_color-expected.txt:
+        * platform/qt/css1/box_properties/border_color_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_left-expected.txt:
+        * platform/qt/css1/box_properties/border_left_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_left_width-expected.txt:
+        * platform/qt/css1/box_properties/border_left_width_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_right-expected.txt:
+        * platform/qt/css1/box_properties/border_right_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_right_width-expected.txt:
+        * platform/qt/css1/box_properties/border_right_width_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_style-expected.txt:
+        * platform/qt/css1/box_properties/border_style_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_top-expected.txt:
+        * platform/qt/css1/box_properties/border_top_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_top_width-expected.txt:
+        * platform/qt/css1/box_properties/border_top_width_inline-expected.txt:
+        * platform/qt/css1/box_properties/border_width-expected.txt:
+        * platform/qt/css1/box_properties/border_width_inline-expected.txt:
+        * platform/qt/css1/box_properties/clear-expected.txt:
+        * platform/qt/css1/box_properties/clear_float-expected.txt:
+        * platform/qt/css1/box_properties/float-expected.txt:
+        * platform/qt/css1/box_properties/float_elements_in_series-expected.txt:
+        * platform/qt/css1/box_properties/float_margin-expected.txt:
+        * platform/qt/css1/box_properties/height-expected.txt:
+        * platform/qt/css1/box_properties/margin-expected.txt:
+        * platform/qt/css1/box_properties/margin_bottom-expected.txt:
+        * platform/qt/css1/box_properties/margin_bottom_inline-expected.txt:
+        * platform/qt/css1/box_properties/margin_inline-expected.txt:
+        * platform/qt/css1/box_properties/margin_left-expected.txt:
+        * platform/qt/css1/box_properties/margin_left_inline-expected.txt:
+        * platform/qt/css1/box_properties/margin_right-expected.txt:
+        * platform/qt/css1/box_properties/margin_right_inline-expected.txt:
+        * platform/qt/css1/box_properties/margin_top-expected.txt:
+        * platform/qt/css1/box_properties/margin_top_inline-expected.txt:
+        * platform/qt/css1/box_properties/padding-expected.txt:
+        * platform/qt/css1/box_properties/padding_bottom-expected.txt:
+        * platform/qt/css1/box_properties/padding_bottom_inline-expected.txt:
+        * platform/qt/css1/box_properties/padding_inline-expected.txt:
+        * platform/qt/css1/box_properties/padding_left-expected.txt:
+        * platform/qt/css1/box_properties/padding_left_inline-expected.txt:
+        * platform/qt/css1/box_properties/padding_right-expected.txt:
+        * platform/qt/css1/box_properties/padding_right_inline-expected.txt:
+        * platform/qt/css1/box_properties/padding_top-expected.txt:
+        * platform/qt/css1/box_properties/padding_top_inline-expected.txt:
+        * platform/qt/css1/box_properties/width-expected.txt:
+        * platform/qt/css1/cascade/cascade_order-expected.txt:
+        * platform/qt/css1/cascade/important-expected.txt:
+        * platform/qt/css1/classification/display-expected.txt:
+        * platform/qt/css1/classification/list_style-expected.txt:
+        * platform/qt/css1/classification/list_style_image-expected.txt:
+        * platform/qt/css1/classification/list_style_position-expected.txt:
+        * platform/qt/css1/classification/list_style_type-expected.txt:
+        * platform/qt/css1/color_and_background/background-expected.txt:
+        * platform/qt/css1/color_and_background/background_attachment-expected.txt:
+        * platform/qt/css1/color_and_background/background_color-expected.txt:
+        * platform/qt/css1/color_and_background/background_image-expected.txt:
+        * platform/qt/css1/color_and_background/background_position-expected.txt:
+        * platform/qt/css1/color_and_background/background_repeat-expected.txt:
+        * platform/qt/css1/color_and_background/color-expected.txt:
+        * platform/qt/css1/conformance/forward_compatible_parsing-expected.txt:
+        * platform/qt/css1/font_properties/font-expected.txt:
+        * platform/qt/css1/font_properties/font_family-expected.txt:
+        * platform/qt/css1/font_properties/font_size-expected.txt:
+        * platform/qt/css1/font_properties/font_style-expected.txt:
+        * platform/qt/css1/font_properties/font_variant-expected.txt:
+        * platform/qt/css1/font_properties/font_weight-expected.txt:
+        * platform/qt/css1/formatting_model/canvas-expected.txt:
+        * platform/qt/css1/formatting_model/floating_elements-expected.txt:
+        * platform/qt/css1/formatting_model/height_of_lines-expected.txt:
+        * platform/qt/css1/formatting_model/horizontal_formatting-expected.txt:
+        * platform/qt/css1/formatting_model/inline_elements-expected.txt:
+        * platform/qt/css1/formatting_model/replaced_elements-expected.txt:
+        * platform/qt/css1/formatting_model/vertical_formatting-expected.txt:
+        * platform/qt/css1/pseudo/anchor-expected.txt:
+        * platform/qt/css1/pseudo/firstletter-expected.txt:
+        * platform/qt/css1/pseudo/firstline-expected.txt:
+        * platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt:
+        * platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt:
+        * platform/qt/css1/text_properties/letter_spacing-expected.txt:
+        * platform/qt/css1/text_properties/line_height-expected.txt:
+        * platform/qt/css1/text_properties/text_align-expected.txt:
+        * platform/qt/css1/text_properties/text_decoration-expected.txt:
+        * platform/qt/css1/text_properties/text_indent-expected.txt:
+        * platform/qt/css1/text_properties/text_transform-expected.txt:
+        * platform/qt/css1/text_properties/vertical_align-expected.txt:
+        * platform/qt/css1/text_properties/word_spacing-expected.txt:
+        * platform/qt/css1/units/color_units-expected.txt:
+        * platform/qt/css1/units/length_units-expected.txt:
+        * platform/qt/css1/units/percentage_units-expected.txt:
+        * platform/qt/css1/units/urls-expected.txt:
+        * platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt:
+        * platform/qt/css2.1/t1508-c527-font-03-b-expected.txt:
+        * platform/qt/css2.1/t1508-c527-font-06-b-expected.txt:
+        * platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
+        * platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt:
+        * platform/qt/editing/inserting/paragraph-separator-03-expected.txt:
+        * platform/qt/editing/pasteboard/5027857-expected.txt:
+        * platform/qt/editing/pasteboard/innerText-inline-table-expected.txt:
+        * platform/qt/editing/pasteboard/paste-pre-001-expected.txt:
+        * platform/qt/editing/pasteboard/paste-pre-002-expected.txt:
+        * platform/qt/editing/pasteboard/paste-text-019-expected.txt:
+        * platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt:
+        * platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt:
+        * platform/qt/fast/dom/gc-10-expected.txt:
+        * platform/qt/fast/forms/isindex-placeholder-expected.txt:
+        * platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt:
+        * platform/qt/fast/frames/viewsource-on-image-file-expected.txt:
+        * platform/qt/fast/lists/003-vertical-expected.txt:
+        * platform/qt/fast/table/border-collapsing/004-vertical-expected.txt:
+        * platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt:
+        * platform/qt/fast/text/international/hindi-whitespace-expected.txt:
+        * platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt:
+        * platform/qt/svg/custom/bug45331-expected.txt:
+        * platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt:
+
 2010-11-29  Dan Bernstein  <mitz at apple.com>
 
         Skip editing/text-iterator/findString.html on platforms that do not have an implementation of
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 66ae90b..6a7753a 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -48,6 +48,7 @@
 # - failing transitions tests
 # - failing websocket tests
 # - new tests without expected results
+# - Qt 4.7 related bugs
 # - new skipped tests yet to be sorted
 
 
@@ -223,50 +224,6 @@ http/tests/xmlhttprequest/logout.html
 http/tests/xmlhttprequest/methods-async.html
 http/tests/xmlhttprequest/workers/shared-worker-methods.html
 
-# --- Fixed in Qt 4.7. Unskip when buildbot is upgraded.
-# Many of these tests exercise preflighted requests, which are not supported with Qt older than 4.7.
-http/tests/xmlhttprequest/cross-origin-authorization.html
-http/tests/xmlhttprequest/cross-origin-no-authorization.html
-http/tests/xmlhttprequest/cross-origin-authorization-with-embedder.html
-http/tests/xmlhttprequest/simple-cross-origin-denied-events-post.html
-http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html
-http/tests/xmlhttprequest/access-control-basic-get-fail-non-simple.html
-http/tests/xmlhttprequest/access-control-response-with-body.html
-http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache.html
-http/tests/xmlhttprequest/XMLHttpRequestException.html
-http/tests/xmlhttprequest/access-control-and-redirects.html
-http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html
-http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-method.html
-http/tests/xmlhttprequest/access-control-basic-non-simple-allow-async.html
-http/tests/xmlhttprequest/access-control-basic-non-simple-allow.html
-http/tests/xmlhttprequest/access-control-basic-non-simple-deny-cached.html
-http/tests/xmlhttprequest/access-control-basic-post-fail-non-simple-content-type.html
-http/tests/xmlhttprequest/access-control-basic-whitelist-request-headers.html
-http/tests/xmlhttprequest/access-control-preflight-async-header-denied.html
-http/tests/xmlhttprequest/access-control-preflight-async-method-denied.html
-http/tests/xmlhttprequest/access-control-preflight-async-not-supported.html
-http/tests/xmlhttprequest/access-control-preflight-credential-async.html
-http/tests/xmlhttprequest/access-control-preflight-credential-sync.html
-http/tests/xmlhttprequest/access-control-preflight-headers-async.html
-http/tests/xmlhttprequest/access-control-preflight-headers-sync.html
-http/tests/xmlhttprequest/access-control-preflight-sync-header-denied.html
-http/tests/xmlhttprequest/access-control-preflight-sync-method-denied.html
-http/tests/xmlhttprequest/access-control-preflight-sync-not-supported.html
-http/tests/xmlhttprequest/access-control-response-with-body-sync.html
-http/tests/xmlhttprequest/cache-override.html
-http/tests/xmlhttprequest/simple-cross-origin-progress-events.html
-http/tests/xmlhttprequest/methods-lower-case.html
-http/tests/xmlhttprequest/methods.html
-http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html
-http/tests/xmlhttprequest/state-after-network-error.html
-http/tests/xmlhttprequest/workers/methods-async.html
-http/tests/xmlhttprequest/workers/methods.html
-http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
-
-# --- http://bugreports.qt.nokia.com/browse/QTBUG-9618
-# (fixed in qt-4.7)
-http/tests/xmlhttprequest/cookies.html
-
 # Caused by the way Qt caches network connections using user at hostname as the key
 # See https://bugs.webkit.org/show_bug.cgi?id=37084 and http://bugreports.qt.nokia.com/browse/QTBUG-9619
 http/tests/xmlhttprequest/re-login-async.html
@@ -290,6 +247,17 @@ http/tests/xmlhttprequest/send-array-buffer.html
 # Missing DRT ability to set accept cookie policy
 http/tests/xmlhttprequest/cross-origin-cookie-storage.html
 
+# Still fail with Qt 4.7.1
+http/tests/xmlhttprequest/cache-override.html
+http/tests/xmlhttprequest/cross-origin-authorization.html
+http/tests/xmlhttprequest/cross-origin-no-authorization.html
+http/tests/xmlhttprequest/methods-lower-case.html
+http/tests/xmlhttprequest/methods.html
+http/tests/xmlhttprequest/redirect-cross-origin-tripmine.html
+http/tests/xmlhttprequest/workers/methods-async.html
+http/tests/xmlhttprequest/workers/methods.html
+http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
+
 # =========================================================================== #
 #       Failing inserting tests.                                              #
 # =========================================================================== #
@@ -553,6 +521,10 @@ fast/forms/menulist-width-change.html
 # https://bugs.webkit.org/show_bug.cgi?id=49906
 fast/workers/storage/interrupt-database-sync.html
 
+# [Qt] http/tests/websocket/tests/reload-crash.html fails intermittently with time out
+# https://bugs.webkit.org/show_bug.cgi?id=50152
+http/tests/websocket/tests/reload-crash.html
+
 # =========================================================================== #
 # failing media tests
 # =========================================================================== #
@@ -5134,6 +5106,47 @@ editing/selection/transformed-selection-rects.html
 svg/W3C-SVG-1.1/filters-light-04-f.svg
 
 # ============================================================================= #
+# Qt 4.7 related bugs
+# ============================================================================= #
+
+# [Qt] Some Unicode tests fail with Qt version >= 4.7.0
+# https://bugs.webkit.org/show_bug.cgi?id=46251
+fast/js/encode-URI-test.html 
+fast/js/regexp-range-bound-ffff.html 
+fast/js/switch-behaviour.html 
+fast/url/anchor.html 
+fast/url/path.html 
+http/tests/websocket/tests/bad-sub-protocol-non-ascii.html
+
+# [Qt] editing/execCommand/move-selection-back-line.html fails with Qt 4.7.1
+# https://bugs.webkit.org/show_bug.cgi?id=50144
+editing/execCommand/move-selection-back-line.html
+
+# [Qt] fast/forms/textarea-appearance-wrap.html fails with Qt 4.7.1
+# https://bugs.webkit.org/show_bug.cgi?id=50145
+fast/forms/textarea-appearance-wrap.html
+
+# [Qt] 4 css2.1/t1202-counter tests fail with Qt 4.7.1
+# https://bugs.webkit.org/show_bug.cgi?id=50146
+css2.1/t1202-counter-09-b.html 
+css2.1/t1202-counter-15-b.html 
+css2.1/t1202-counters-09-b.html 
+css2.1/t1202-counters-15-b.html
+
+# [Qt] 4 fast/text tests fail with Qt 4.7.1
+# https://bugs.webkit.org/show_bug.cgi?id=50147
+fast/text/format-control.html
+fast/text/justification-padding-mid-word.html
+fast/text/zero-width-characters.html
+fast/text/international/khmer-selection.html
+
+# 3 media tests fail with Qt version 4.6.3 and 4.7.0
+# https://bugs.webkit.org/show_bug.cgi?id=46249
+media/restore-from-page-cache.html
+media/video-can-play-type.html
+media/video-delay-load-event.html
+
+# ============================================================================= #
 # new skipped tests yet to be sorted
 # ============================================================================= #
 fast/dom/Geolocation/callback-to-remote-context2.html
@@ -5252,9 +5265,6 @@ fullscreen/
 # https://bugs.webkit.org/show_bug.cgi?id=45194
 fast/text/decomposed-after-stacked-diacritics.html
 
-# Fixed in Qt 4.7.1 - Unskip when buildbot is upgraded.
-fast/canvas/canvas-closePath-single-point.html
-
 # viewport meta tag tests that differ from the Opera results
 fast/viewport/viewport-65.html
 fast/viewport/viewport-82.html
@@ -5307,11 +5317,6 @@ fast/dom/nodesFromRect-inner-documents.html
 # It fails, because 3D canvas is disabled by default.
 http/tests/canvas/webgl/origin-clean-conformance.html
 
-# 3 media tests fail with Qt version 4.6.3 and 4.7.0
-# https://bugs.webkit.org/show_bug.cgi?id=46249
-media/restore-from-page-cache.html
-media/video-can-play-type.html
-media/video-delay-load-event.html
 
 # https://bugs.webkit.org/show_bug.cgi?id=46223
 # The WebKit plugin implementation does not support iframe shims.
diff --git a/LayoutTests/platform/qt/css1/basic/class_as_selector-expected.txt b/LayoutTests/platform/qt/css1/basic/class_as_selector-expected.txt
index b9d7e53..bd85828 100644
--- a/LayoutTests/platform/qt/css1/basic/class_as_selector-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/class_as_selector-expected.txt
@@ -7,15 +7,15 @@ layer at (0,0) size 784x621
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 176x62
-          text run at (0,1) width 160: ".one {color: green;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 128: ".1 {color: red;}"
-          text run at (128,17) width 0: " "
-          text run at (0,33) width 152: ".a1 {color: green;}"
-          text run at (152,33) width 0: " "
-          text run at (0,49) width 176: "P.two {color: purple;}"
-          text run at (176,49) width 0: " "
+        RenderText {#text} at (0,0) size 120x64
+          text run at (0,0) width 109: ".one {color: green;}"
+          text run at (109,0) width 0: " "
+          text run at (0,16) width 81: ".1 {color: red;}"
+          text run at (81,16) width 0: " "
+          text run at (0,32) width 102: ".a1 {color: green;}"
+          text run at (102,32) width 0: " "
+          text run at (0,48) width 120: "P.two {color: purple;}"
+          text run at (120,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 206x21
@@ -30,9 +30,9 @@ layer at (0,0) size 784x621
         RenderText {#text} at (0,0) size 213x21
           text run at (0,0) width 213: "This sentence should be purple."
       RenderBlock {PRE} at (0,280) size 768x16
-        RenderText {#text} at (0,1) size 280x14
-          text run at (0,1) width 280: "This sentence should NOT be purple."
-          text run at (280,1) width 0: " "
+        RenderText {#text} at (0,0) size 216x16
+          text run at (0,0) width 216: "This sentence should NOT be purple."
+          text run at (216,0) width 0: " "
       RenderBlock {UL} at (0,312) size 768x21
         RenderListItem {LI} at (40,0) size 728x21
           RenderListMarker at (-18,0) size 7x21: bullet
@@ -63,9 +63,9 @@ layer at (0,0) size 784x621
                 RenderText {#text} at (0,0) size 213x21
                   text run at (0,0) width 213: "This sentence should be purple."
               RenderBlock {PRE} at (4,152) size 592x16
-                RenderText {#text} at (0,1) size 280x14
-                  text run at (0,1) width 280: "This sentence should NOT be purple."
-                  text run at (280,1) width 0: " "
+                RenderText {#text} at (0,0) size 216x16
+                  text run at (0,0) width 216: "This sentence should NOT be purple."
+                  text run at (216,0) width 0: " "
               RenderBlock {UL} at (4,184) size 592x21
                 RenderListItem {LI} at (40,0) size 552x21
                   RenderListMarker at (-18,0) size 7x21: bullet
diff --git a/LayoutTests/platform/qt/css1/basic/comments-expected.txt b/LayoutTests/platform/qt/css1/basic/comments-expected.txt
index b5df526..8dcbd5f 100644
--- a/LayoutTests/platform/qt/css1/basic/comments-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/comments-expected.txt
@@ -7,36 +7,36 @@ layer at (0,0) size 784x939
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x240
-        RenderText {#text} at (0,1) size 336x238
-          text run at (0,1) width 232: "/* This is a CSS1 comment. */"
-          text run at (232,1) width 0: " "
-          text run at (0,17) width 336: ".one {color: green;} /* Another comment */"
-          text run at (336,17) width 0: " "
-          text run at (0,33) width 288: "/* The following should not be used:"
-          text run at (288,33) width 0: " "
-          text run at (0,49) width 168: ".two {color: red;} */"
-          text run at (168,49) width 0: " "
-          text run at (0,65) width 320: ".three {color: green; /* color: red; */}"
-          text run at (320,65) width 0: " "
-          text run at (0,81) width 24: "/**"
-          text run at (24,81) width 0: " "
-          text run at (0,97) width 176: ".four {color: red;} */"
-          text run at (176,97) width 0: " "
-          text run at (0,113) width 168: ".five {color: green;}"
-          text run at (168,113) width 0: " "
-          text run at (0,129) width 32: "/**/"
-          text run at (32,129) width 0: " "
-          text run at (0,145) width 160: ".six {color: green;}"
-          text run at (160,145) width 0: " "
-          text run at (0,161) width 88: "/*********/"
-          text run at (88,161) width 0: " "
-          text run at (0,177) width 176: ".seven {color: green;}"
-          text run at (176,177) width 0: " "
-          text run at (0,193) width 128: "/* a comment **/"
-          text run at (128,193) width 0: " "
-          text run at (0,209) width 176: ".eight {color: green;}"
-          text run at (176,209) width 0: " "
-          text run at (0,225) width 0: " "
+        RenderText {#text} at (0,0) size 242x240
+          text run at (0,0) width 176: "/* This is a CSS1 comment. */"
+          text run at (176,0) width 0: " "
+          text run at (0,16) width 242: ".one {color: green;} /* Another comment */"
+          text run at (242,16) width 0: " "
+          text run at (0,32) width 207: "/* The following should not be used:"
+          text run at (207,32) width 0: " "
+          text run at (0,48) width 107: ".two {color: red;} */"
+          text run at (107,48) width 0: " "
+          text run at (0,64) width 205: ".three {color: green; /* color: red; */}"
+          text run at (205,64) width 0: " "
+          text run at (0,80) width 14: "/**"
+          text run at (14,80) width 0: " "
+          text run at (0,96) width 109: ".four {color: red;} */"
+          text run at (109,96) width 0: " "
+          text run at (0,112) width 109: ".five {color: green;}"
+          text run at (109,112) width 0: " "
+          text run at (0,128) width 18: "/**/"
+          text run at (18,128) width 0: " "
+          text run at (0,144) width 105: ".six {color: green;}"
+          text run at (105,144) width 0: " "
+          text run at (0,160) width 53: "/*********/"
+          text run at (53,160) width 0: " "
+          text run at (0,176) width 123: ".seven {color: green;}"
+          text run at (123,176) width 0: " "
+          text run at (0,192) width 96: "/* a comment **/"
+          text run at (96,192) width 0: " "
+          text run at (0,208) width 116: ".eight {color: green;}"
+          text run at (116,208) width 0: " "
+          text run at (0,224) width 0: " "
       RenderBlock {HR} at (0,290) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,308) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 206x21
diff --git a/LayoutTests/platform/qt/css1/basic/containment-expected.txt b/LayoutTests/platform/qt/css1/basic/containment-expected.txt
index 096289c..b2514fc 100644
--- a/LayoutTests/platform/qt/css1/basic/containment-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/containment-expected.txt
@@ -1,89 +1,88 @@
-layer at (0,0) size 784x1079
+layer at (0,0) size 784x1058
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x1079
-  RenderBlock {HTML} at (0,0) size 784x1079
-    RenderBody {BODY} at (8,8) size 768x1063 [bgcolor=#CCCCCC]
+layer at (0,0) size 784x1058
+  RenderBlock {HTML} at (0,0) size 784x1058
+    RenderBody {BODY} at (8,8) size 768x1042 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x160
-        RenderText {#text} at (0,1) size 728x158
-          text run at (0,1) width 624: "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"linktest.css\" title=\"Default SS\">"
-          text run at (624,1) width 0: " "
-          text run at (0,17) width 728: "<LINK rel=\"alternate stylesheet\" type=\"text/css\" href=\"linktest2.css\" title=\"Alternate SS\">"
-          text run at (728,17) width 0: " "
-          text run at (0,33) width 208: "@import url(imptest1.css);"
-          text run at (208,33) width 0: " "
-          text run at (0,49) width 192: "@import \"imptest1a.css\";"
-          text run at (192,49) width 0: " "
-          text run at (0,65) width 128: "UL {color: red;}"
-          text run at (128,65) width 0: " "
-          text run at (0,81) width 176: ".four {color: purple;}"
-          text run at (176,81) width 0: " "
-          text run at (0,97) width 208: "@import url(imptest2.css);"
-          text run at (208,97) width 0: " "
-          text run at (0,113) width 32: "<!--"
-          text run at (32,113) width 0: " "
-          text run at (0,129) width 168: "P.six {color: green;}"
-          text run at (168,129) width 0: " "
-          text run at (0,145) width 24: "-->"
-          text run at (24,145) width 0: " "
+        RenderText {#text} at (0,0) size 524x160
+          text run at (0,0) width 452: "<LINK rel=\"stylesheet\" type=\"text/css\" href=\"linktest.css\" title=\"Default SS\">"
+          text run at (452,0) width 0: " "
+          text run at (0,16) width 524: "<LINK rel=\"alternate stylesheet\" type=\"text/css\" href=\"linktest2.css\" title=\"Alternate SS\">"
+          text run at (524,16) width 0: " "
+          text run at (0,32) width 154: "@import url(imptest1.css);"
+          text run at (154,32) width 0: " "
+          text run at (0,48) width 149: "@import \"imptest1a.css\";"
+          text run at (149,48) width 0: " "
+          text run at (0,64) width 86: "UL {color: red;}"
+          text run at (86,64) width 0: " "
+          text run at (0,80) width 113: ".four {color: purple;}"
+          text run at (113,80) width 0: " "
+          text run at (0,96) width 154: "@import url(imptest2.css);"
+          text run at (154,96) width 0: " "
+          text run at (0,112) width 20: "<!--"
+          text run at (20,112) width 0: " "
+          text run at (0,128) width 114: "P.six {color: green;}"
+          text run at (114,128) width 0: " "
+          text run at (0,144) width 16: "-->"
+          text run at (16,144) width 0: " "
       RenderBlock {HR} at (0,210) size 768x2 [border: (1px inset #000000)]
-      RenderBlock {P} at (0,228) size 768x42
+      RenderBlock {P} at (0,228) size 768x21
         RenderText {#text} at (0,0) size 431x21
           text run at (0,0) width 431: "This sentence should be underlined due to the linked style sheet "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (431,5) size 96x14
-            text run at (431,5) width 96: "linktest.css"
-        RenderText {#text} at (527,0) size 747x42
-          text run at (527,0) width 220: ", the reference to which is shown"
-          text run at (0,21) width 44: "above."
-      RenderBlock {P} at (0,286) size 768x42
+        RenderInline {CODE} at (0,0) size 67x16
+          RenderText {#text} at (431,3) size 67x16
+            text run at (431,3) width 67: "linktest.css"
+        RenderText {#text} at (498,0) size 268x21
+          text run at (498,0) width 268: ", the reference to which is shown above."
+      RenderBlock {P} at (0,265) size 768x42
         RenderText {#text} at (0,0) size 470x21
           text run at (0,0) width 470: "This sentence should NOT be underlined due to the linked style sheet "
-        RenderInline {CODE} at (0,0) size 104x14
-          RenderText {#text} at (470,5) size 104x14
-            text run at (470,5) width 104: "linktest2.css"
-        RenderText {#text} at (574,0) size 8x21
-          text run at (574,0) width 8: ", "
+        RenderInline {CODE} at (0,0) size 74x16
+          RenderText {#text} at (470,3) size 74x16
+            text run at (470,3) width 74: "linktest2.css"
+        RenderText {#text} at (544,0) size 8x21
+          text run at (544,0) width 8: ", "
         RenderInline {STRONG} at (0,0) size 41x21
-          RenderText {#text} at (582,0) size 41x21
-            text run at (582,0) width 41: "unless"
-        RenderText {#text} at (623,0) size 741x42
-          text run at (623,0) width 118: " the external style"
-          text run at (0,21) width 388: "sheet \"Alternate SS\" has been selected via the user agent."
-      RenderBlock {UL} at (0,344) size 768x63 [color=#FF0000]
+          RenderText {#text} at (552,0) size 41x21
+            text run at (552,0) width 41: "unless"
+        RenderText {#text} at (593,0) size 749x42
+          text run at (593,0) width 156: " the external style sheet"
+          text run at (0,21) width 350: "\"Alternate SS\" has been selected via the user agent."
+      RenderBlock {UL} at (0,323) size 768x63 [color=#FF0000]
         RenderListItem {LI} at (40,0) size 728x21 [color=#008000]
           RenderListMarker at (-18,0) size 7x21: bullet
           RenderText {#text} at (0,0) size 416x21
             text run at (0,0) width 416: "This sentence should be green due to an imported style sheet ["
-          RenderInline {CODE} at (0,0) size 208x14
-            RenderText {#text} at (416,5) size 208x14
-              text run at (416,5) width 208: "@import url(imptest1.css);"
-          RenderText {#text} at (624,0) size 9x21
-            text run at (624,0) width 9: "]."
+          RenderInline {CODE} at (0,0) size 154x16
+            RenderText {#text} at (416,3) size 154x16
+              text run at (416,3) width 154: "@import url(imptest1.css);"
+          RenderText {#text} at (570,0) size 9x21
+            text run at (570,0) width 9: "]."
         RenderListItem {LI} at (40,21) size 728x21 [color=#800080]
           RenderListMarker at (-18,0) size 7x21: bullet
           RenderText {#text} at (0,0) size 423x21
             text run at (0,0) width 423: "This sentence should be purple due to an imported style sheet ["
-          RenderInline {CODE} at (0,0) size 184x14
-            RenderText {#text} at (423,5) size 184x14
-              text run at (423,5) width 184: "@import \"imptest1a.css\""
-          RenderText {#text} at (607,0) size 9x21
-            text run at (607,0) width 9: "]."
+          RenderInline {CODE} at (0,0) size 145x16
+            RenderText {#text} at (423,3) size 145x16
+              text run at (423,3) width 145: "@import \"imptest1a.css\""
+          RenderText {#text} at (568,0) size 9x21
+            text run at (568,0) width 9: "]."
         RenderListItem {LI} at (40,42) size 728x21 [color=#008000]
           RenderListMarker at (-18,0) size 7x21: bullet
           RenderText {#text} at (0,0) size 424x21
             text run at (0,0) width 424: "This sentence should be green thanks to the STYLE attribute ["
-          RenderInline {CODE} at (0,0) size 168x14
-            RenderText {#text} at (424,5) size 168x14
-              text run at (424,5) width 168: "STYLE=\"color: green;\""
-          RenderText {#text} at (592,0) size 9x21
-            text run at (592,0) width 9: "]."
-      RenderBlock {P} at (0,423) size 768x21 [color=#800080]
+          RenderInline {CODE} at (0,0) size 132x16
+            RenderText {#text} at (424,3) size 132x16
+              text run at (424,3) width 132: "STYLE=\"color: green;\""
+          RenderText {#text} at (556,0) size 9x21
+            text run at (556,0) width 9: "]."
+      RenderBlock {P} at (0,402) size 768x21 [color=#800080]
         RenderText {#text} at (0,0) size 545x21
           text run at (0,0) width 545: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
-      RenderBlock {OL} at (0,460) size 768x63
+      RenderBlock {OL} at (0,439) size 768x63
         RenderListItem {LI} at (40,0) size 728x21
           RenderListMarker at (-21,0) size 16x21: "1"
           RenderText {#text} at (0,0) size 214x21
@@ -96,24 +95,24 @@ layer at (0,0) size 784x1079
           RenderListMarker at (-21,0) size 16x21: "3"
           RenderText {#text} at (0,0) size 551x21
             text run at (0,0) width 551: "If it IS purple, then the browser hasn't correctly parsed the preceding paragraph."
-      RenderBlock {P} at (0,539) size 768x42
+      RenderBlock {P} at (0,518) size 768x42
         RenderText {#text} at (0,0) size 751x21
           text run at (0,0) width 209: "This sentence should be black. "
           text run at (209,0) width 542: "If it is red, then the browser has inappropriately imported the styles from the file"
-        RenderInline {TT} at (0,0) size 96x14
-          RenderText {#text} at (0,26) size 96x14
-            text run at (0,26) width 96: "imptest2.css"
-        RenderText {#text} at (96,21) size 33x21
-          text run at (96,21) width 33: " (see "
+        RenderInline {TT} at (0,0) size 75x16
+          RenderText {#text} at (0,24) size 75x16
+            text run at (0,24) width 75: "imptest2.css"
+        RenderText {#text} at (75,21) size 33x21
+          text run at (75,21) width 33: " (see "
         RenderInline {A} at (0,0) size 70x21 [color=#0000FF]
-          RenderText {#text} at (129,21) size 70x21
-            text run at (129,21) width 70: "section 3.0"
-        RenderText {#text} at (199,21) size 290x21
-          text run at (199,21) width 290: " of the CSS1 specification for more details)."
-      RenderBlock {P} at (0,597) size 768x21 [color=#008000]
+          RenderText {#text} at (108,21) size 70x21
+            text run at (108,21) width 70: "section 3.0"
+        RenderText {#text} at (178,21) size 290x21
+          text run at (178,21) width 290: " of the CSS1 specification for more details)."
+      RenderBlock {P} at (0,576) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 222x21
           text run at (0,0) width 222: "This paragraph should be green."
-      RenderTable {TABLE} at (0,634) size 768x429 [border: (1px outset #808080)]
+      RenderTable {TABLE} at (0,613) size 768x429 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x427
           RenderTableRow {TR} at (0,0) size 766x29
             RenderTableCell {TD} at (0,0) size 766x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
@@ -128,54 +127,54 @@ layer at (0,0) size 784x1079
               RenderBlock {P} at (4,4) size 746x42
                 RenderText {#text} at (0,0) size 431x21
                   text run at (0,0) width 431: "This sentence should be underlined due to the linked style sheet "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (431,5) size 96x14
-                    text run at (431,5) width 96: "linktest.css"
-                RenderText {#text} at (527,0) size 699x42
-                  text run at (527,0) width 172: ", the reference to which is"
-                  text run at (0,21) width 92: "shown above."
+                RenderInline {CODE} at (0,0) size 67x16
+                  RenderText {#text} at (431,3) size 67x16
+                    text run at (431,3) width 67: "linktest.css"
+                RenderText {#text} at (498,0) size 718x42
+                  text run at (498,0) width 220: ", the reference to which is shown"
+                  text run at (0,21) width 44: "above."
               RenderBlock {P} at (4,62) size 746x42
                 RenderText {#text} at (0,0) size 470x21
                   text run at (0,0) width 470: "This sentence should NOT be underlined due to the linked style sheet "
-                RenderInline {CODE} at (0,0) size 104x14
-                  RenderText {#text} at (470,5) size 104x14
-                    text run at (470,5) width 104: "linktest2.css"
-                RenderText {#text} at (574,0) size 8x21
-                  text run at (574,0) width 8: ", "
+                RenderInline {CODE} at (0,0) size 74x16
+                  RenderText {#text} at (470,3) size 74x16
+                    text run at (470,3) width 74: "linktest2.css"
+                RenderText {#text} at (544,0) size 8x21
+                  text run at (544,0) width 8: ", "
                 RenderInline {STRONG} at (0,0) size 41x21
-                  RenderText {#text} at (582,0) size 41x21
-                    text run at (582,0) width 41: "unless"
-                RenderText {#text} at (623,0) size 741x42
-                  text run at (623,0) width 118: " the external style"
+                  RenderText {#text} at (552,0) size 41x21
+                    text run at (552,0) width 41: "unless"
+                RenderText {#text} at (593,0) size 711x42
+                  text run at (593,0) width 118: " the external style"
                   text run at (0,21) width 388: "sheet \"Alternate SS\" has been selected via the user agent."
               RenderBlock {UL} at (4,120) size 746x63 [color=#FF0000]
                 RenderListItem {LI} at (40,0) size 706x21 [color=#008000]
                   RenderListMarker at (-18,0) size 7x21: bullet
                   RenderText {#text} at (0,0) size 416x21
                     text run at (0,0) width 416: "This sentence should be green due to an imported style sheet ["
-                  RenderInline {CODE} at (0,0) size 208x14
-                    RenderText {#text} at (416,5) size 208x14
-                      text run at (416,5) width 208: "@import url(imptest1.css);"
-                  RenderText {#text} at (624,0) size 9x21
-                    text run at (624,0) width 9: "]."
+                  RenderInline {CODE} at (0,0) size 154x16
+                    RenderText {#text} at (416,3) size 154x16
+                      text run at (416,3) width 154: "@import url(imptest1.css);"
+                  RenderText {#text} at (570,0) size 9x21
+                    text run at (570,0) width 9: "]."
                 RenderListItem {LI} at (40,21) size 706x21 [color=#800080]
                   RenderListMarker at (-18,0) size 7x21: bullet
                   RenderText {#text} at (0,0) size 423x21
                     text run at (0,0) width 423: "This sentence should be purple due to an imported style sheet ["
-                  RenderInline {CODE} at (0,0) size 184x14
-                    RenderText {#text} at (423,5) size 184x14
-                      text run at (423,5) width 184: "@import \"imptest1a.css\""
-                  RenderText {#text} at (607,0) size 9x21
-                    text run at (607,0) width 9: "]."
+                  RenderInline {CODE} at (0,0) size 145x16
+                    RenderText {#text} at (423,3) size 145x16
+                      text run at (423,3) width 145: "@import \"imptest1a.css\""
+                  RenderText {#text} at (568,0) size 9x21
+                    text run at (568,0) width 9: "]."
                 RenderListItem {LI} at (40,42) size 706x21 [color=#008000]
                   RenderListMarker at (-18,0) size 7x21: bullet
                   RenderText {#text} at (0,0) size 424x21
                     text run at (0,0) width 424: "This sentence should be green thanks to the STYLE attribute ["
-                  RenderInline {CODE} at (0,0) size 168x14
-                    RenderText {#text} at (424,5) size 168x14
-                      text run at (424,5) width 168: "STYLE=\"color: green;\""
-                  RenderText {#text} at (592,0) size 9x21
-                    text run at (592,0) width 9: "]."
+                  RenderInline {CODE} at (0,0) size 132x16
+                    RenderText {#text} at (424,3) size 132x16
+                      text run at (424,3) width 132: "STYLE=\"color: green;\""
+                  RenderText {#text} at (556,0) size 9x21
+                    text run at (556,0) width 9: "]."
               RenderBlock {P} at (4,199) size 746x21 [color=#800080]
                 RenderText {#text} at (0,0) size 545x21
                   text run at (0,0) width 545: "This sentence should be purple, and it doesn't have a terminating paragraph tag."
@@ -197,16 +196,16 @@ layer at (0,0) size 784x1079
                   text run at (0,0) width 209: "This sentence should be black. "
                   text run at (209,0) width 518: "If it is red, then the browser has inappropriately imported the styles from the"
                   text run at (0,21) width 24: "file "
-                RenderInline {TT} at (0,0) size 96x14
-                  RenderText {#text} at (24,26) size 96x14
-                    text run at (24,26) width 96: "imptest2.css"
-                RenderText {#text} at (120,21) size 33x21
-                  text run at (120,21) width 33: " (see "
+                RenderInline {TT} at (0,0) size 75x16
+                  RenderText {#text} at (24,24) size 75x16
+                    text run at (24,24) width 75: "imptest2.css"
+                RenderText {#text} at (99,21) size 33x21
+                  text run at (99,21) width 33: " (see "
                 RenderInline {A} at (0,0) size 70x21 [color=#0000FF]
-                  RenderText {#text} at (153,21) size 70x21
-                    text run at (153,21) width 70: "section 3.0"
-                RenderText {#text} at (223,21) size 290x21
-                  text run at (223,21) width 290: " of the CSS1 specification for more details)."
+                  RenderText {#text} at (132,21) size 70x21
+                    text run at (132,21) width 70: "section 3.0"
+                RenderText {#text} at (202,21) size 290x21
+                  text run at (202,21) width 290: " of the CSS1 specification for more details)."
               RenderBlock {P} at (4,373) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 222x21
                   text run at (0,0) width 222: "This paragraph should be green."
diff --git a/LayoutTests/platform/qt/css1/basic/contextual_selectors-expected.txt b/LayoutTests/platform/qt/css1/basic/contextual_selectors-expected.txt
index d9d2601..128abbf 100644
--- a/LayoutTests/platform/qt/css1/basic/contextual_selectors-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/contextual_selectors-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 472x62
-          text run at (0,1) width 288: "P {color: navy; font-family: serif;}"
-          text run at (288,1) width 0: " "
-          text run at (0,17) width 472: "HTML BODY TABLE P {color: purple; font-family: sans-serif;}"
-          text run at (472,17) width 0: " "
-          text run at (0,33) width 224: "EM, UL LI LI {color: green;}"
-          text run at (224,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 356x64
+          text run at (0,0) width 191: "P {color: navy; font-family: serif;}"
+          text run at (191,0) width 0: " "
+          text run at (0,16) width 356: "HTML BODY TABLE P {color: purple; font-family: sans-serif;}"
+          text run at (356,16) width 0: " "
+          text run at (0,32) width 158: "EM, UL LI LI {color: green;}"
+          text run at (158,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 784x21 [color=#000080]
         RenderText {#text} at (0,0) size 671x21
diff --git a/LayoutTests/platform/qt/css1/basic/grouping-expected.txt b/LayoutTests/platform/qt/css1/basic/grouping-expected.txt
index 078accd..4c16d86 100644
--- a/LayoutTests/platform/qt/css1/basic/grouping-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/grouping-expected.txt
@@ -7,10 +7,10 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 272x30
-          text run at (0,1) width 272: ".one, .two, .three {color: green;}"
-          text run at (272,1) width 0: " "
-          text run at (0,17) width 0: " "
+        RenderText {#text} at (0,0) size 182x32
+          text run at (0,0) width 182: ".one, .two, .three {color: green;}"
+          text run at (182,0) width 0: " "
+          text run at (0,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 784x21 [color=#008000]
         RenderText {#text} at (0,0) size 206x21
diff --git a/LayoutTests/platform/qt/css1/basic/id_as_selector-expected.txt b/LayoutTests/platform/qt/css1/basic/id_as_selector-expected.txt
index ce462e7..0d64eee 100644
--- a/LayoutTests/platform/qt/css1/basic/id_as_selector-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/id_as_selector-expected.txt
@@ -7,22 +7,22 @@ layer at (0,0) size 784x669
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x128
-        RenderText {#text} at (0,1) size 272x126
-          text run at (0,1) width 160: "#one {color: green;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 152: "#a1 {color: green;}"
-          text run at (152,17) width 0: " "
-          text run at (0,33) width 224: "P#two, P#two2 {color: blue;}"
-          text run at (224,33) width 0: " "
-          text run at (0,49) width 272: "P#three, P#three2 {color: purple;}"
-          text run at (272,49) width 0: " "
-          text run at (0,65) width 168: "#four {color: green;}"
-          text run at (168,65) width 0: " "
-          text run at (0,81) width 152: "#a2 {color: green;}"
-          text run at (152,81) width 0: " "
-          text run at (0,97) width 240: "P#five, P#five2 {color: blue;}"
-          text run at (240,97) width 0: " "
-          text run at (0,113) width 240: "P#six, P#six2 {color: purple;}"
+        RenderText {#text} at (0,0) size 192x128
+          text run at (0,0) width 112: "#one {color: green;}"
+          text run at (112,0) width 0: " "
+          text run at (0,16) width 105: "#a1 {color: green;}"
+          text run at (105,16) width 0: " "
+          text run at (0,32) width 163: "P#two, P#two2 {color: blue;}"
+          text run at (163,32) width 0: " "
+          text run at (0,48) width 192: "P#three, P#three2 {color: purple;}"
+          text run at (192,48) width 0: " "
+          text run at (0,64) width 113: "#four {color: green;}"
+          text run at (113,64) width 0: " "
+          text run at (0,80) width 105: "#a2 {color: green;}"
+          text run at (105,80) width 0: " "
+          text run at (0,96) width 165: "P#five, P#five2 {color: blue;}"
+          text run at (165,96) width 0: " "
+          text run at (0,112) width 168: "P#six, P#six2 {color: purple;}"
       RenderBlock {HR} at (0,178) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,196) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 206x21
@@ -33,60 +33,60 @@ layer at (0,0) size 784x669
       RenderBlock {P} at (0,270) size 768x21 [color=#0000FF]
         RenderText {#text} at (0,0) size 218x21
           text run at (0,0) width 218: "This paragraph should be blue ["
-        RenderInline {TT} at (0,0) size 64x14
-          RenderText {#text} at (218,5) size 64x14
-            text run at (218,5) width 64: "ID=\"two\""
-        RenderText {#text} at (282,0) size 9x21
-          text run at (282,0) width 9: "]."
+        RenderInline {TT} at (0,0) size 51x16
+          RenderText {#text} at (218,3) size 51x16
+            text run at (218,3) width 51: "ID=\"two\""
+        RenderText {#text} at (269,0) size 9x21
+          text run at (269,0) width 9: "]."
       RenderBlock {PRE} at (0,307) size 768x16
-        RenderText {#text} at (0,1) size 392x14
-          text run at (0,1) width 392: "This sentence should NOT be blue [PRE ID=\"two2\"]."
-          text run at (392,1) width 0: " "
+        RenderText {#text} at (0,0) size 306x16
+          text run at (0,0) width 306: "This sentence should NOT be blue [PRE ID=\"two2\"]."
+          text run at (306,0) width 0: " "
       RenderBlock {PRE} at (0,336) size 768x16
-        RenderText {#text} at (0,1) size 472x14
-          text run at (0,1) width 472: "This sentence should be black, not purple [PRE ID=\"three\"]."
-          text run at (472,1) width 0: " "
+        RenderText {#text} at (0,0) size 349x16
+          text run at (0,0) width 349: "This sentence should be black, not purple [PRE ID=\"three\"]."
+          text run at (349,0) width 0: " "
       RenderBlock {UL} at (0,368) size 768x21
         RenderListItem {LI} at (40,0) size 728x21
           RenderListMarker at (-18,0) size 7x21: bullet
           RenderText {#text} at (0,0) size 252x21
             text run at (0,0) width 252: "This sentence should NOT be purple."
-      RenderTable {TABLE} at (0,405) size 422x248 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 420x246
-          RenderTableRow {TR} at (0,0) size 420x29
-            RenderTableCell {TD} at (0,0) size 420x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+      RenderTable {TABLE} at (0,405) size 329x248 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 327x246
+          RenderTableRow {TR} at (0,0) size 327x29
+            RenderTableCell {TD} at (0,0) size 327x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 420x217
+          RenderTableRow {TR} at (0,29) size 327x217
             RenderTableCell {TD} at (0,123) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 408x217 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {P} at (4,4) size 400x21 [color=#008000]
+            RenderTableCell {TD} at (12,29) size 315x217 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {P} at (4,4) size 307x21 [color=#008000]
                 RenderText {#text} at (0,0) size 206x21
                   text run at (0,0) width 206: "This sentence should be green."
-              RenderBlock {P} at (4,41) size 400x21 [color=#008000]
+              RenderBlock {P} at (4,41) size 307x21 [color=#008000]
                 RenderText {#text} at (0,0) size 206x21
                   text run at (0,0) width 206: "This sentence should be green."
-              RenderBlock {P} at (4,78) size 400x21 [color=#0000FF]
+              RenderBlock {P} at (4,78) size 307x21 [color=#0000FF]
                 RenderText {#text} at (0,0) size 218x21
                   text run at (0,0) width 218: "This paragraph should be blue ["
-                RenderInline {TT} at (0,0) size 72x14
-                  RenderText {#text} at (218,5) size 72x14
-                    text run at (218,5) width 72: "ID=\"five\""
-                RenderText {#text} at (290,0) size 9x21
-                  text run at (290,0) width 9: "]."
-              RenderBlock {PRE} at (4,115) size 400x16
-                RenderText {#text} at (0,1) size 400x14
-                  text run at (0,1) width 400: "This sentence should NOT be blue [PRE ID=\"five2\"]."
-                  text run at (400,1) width 0: " "
-              RenderBlock {PRE} at (4,144) size 400x16
-                RenderText {#text} at (0,1) size 360x14
-                  text run at (0,1) width 360: "This sentence should be black [PRE ID=\"six\"]."
-                  text run at (360,1) width 0: " "
-              RenderBlock {UL} at (4,176) size 400x21
-                RenderListItem {LI} at (40,0) size 360x21
+                RenderInline {TT} at (0,0) size 52x16
+                  RenderText {#text} at (218,3) size 52x16
+                    text run at (218,3) width 52: "ID=\"five\""
+                RenderText {#text} at (270,0) size 9x21
+                  text run at (270,0) width 9: "]."
+              RenderBlock {PRE} at (4,115) size 307x16
+                RenderText {#text} at (0,0) size 307x16
+                  text run at (0,0) width 307: "This sentence should NOT be blue [PRE ID=\"five2\"]."
+                  text run at (307,0) width 0: " "
+              RenderBlock {PRE} at (4,144) size 307x16
+                RenderText {#text} at (0,0) size 272x16
+                  text run at (0,0) width 272: "This sentence should be black [PRE ID=\"six\"]."
+                  text run at (272,0) width 0: " "
+              RenderBlock {UL} at (4,176) size 307x21
+                RenderListItem {LI} at (40,0) size 267x21
                   RenderListMarker at (-18,0) size 7x21: bullet
                   RenderText {#text} at (0,0) size 252x21
                     text run at (0,0) width 252: "This sentence should NOT be purple."
diff --git a/LayoutTests/platform/qt/css1/basic/inheritance-expected.txt b/LayoutTests/platform/qt/css1/basic/inheritance-expected.txt
index 7aaf8b2..40933cb 100644
--- a/LayoutTests/platform/qt/css1/basic/inheritance-expected.txt
+++ b/LayoutTests/platform/qt/css1/basic/inheritance-expected.txt
@@ -7,21 +7,21 @@ layer at (0,0) size 784x779
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 272x110
-          text run at (0,1) width 160: "BODY {color: green;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 136: "H3 {color: blue;}"
-          text run at (136,17) width 0: " "
-          text run at (0,33) width 152: "EM {color: purple;}"
-          text run at (152,33) width 0: " "
-          text run at (0,49) width 208: ".one {font-style: italic;}"
-          text run at (208,49) width 0: " "
-          text run at (0,65) width 272: ".two {text-decoration: underline;}"
-          text run at (272,65) width 0: " "
-          text run at (0,81) width 152: "#two {color: navy;}"
-          text run at (152,81) width 0: " "
-          text run at (0,97) width 184: ".three {color: purple;}"
-          text run at (184,97) width 0: " "
+        RenderText {#text} at (0,0) size 186x112
+          text run at (0,0) width 121: "BODY {color: green;}"
+          text run at (121,0) width 0: " "
+          text run at (0,16) width 92: "H3 {color: blue;}"
+          text run at (92,16) width 0: " "
+          text run at (0,32) width 107: "EM {color: purple;}"
+          text run at (107,32) width 0: " "
+          text run at (0,48) width 130: ".one {font-style: italic;}"
+          text run at (130,48) width 0: " "
+          text run at (0,64) width 186: ".two {text-decoration: underline;}"
+          text run at (186,64) width 0: " "
+          text run at (0,80) width 107: "#two {color: navy;}"
+          text run at (107,80) width 0: " "
+          text run at (0,96) width 120: ".three {color: purple;}"
+          text run at (120,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #008000)]
       RenderBlock {H3} at (0,182) size 768x25 [color=#0000FF]
         RenderText {#text} at (0,0) size 220x25
@@ -58,34 +58,34 @@ layer at (0,0) size 784x779
       RenderBlock {P} at (0,350) size 768x21
         RenderText {#text} at (0,0) size 313x21
           text run at (0,0) width 313: "This sentence should be underlined, including "
-        RenderInline {TT} at (0,0) size 72x14
-          RenderText {#text} at (313,5) size 72x14
-            text run at (313,5) width 72: "this part"
-        RenderText {#text} at (385,0) size 8x21
-          text run at (385,0) width 8: ", "
+        RenderInline {TT} at (0,0) size 47x16
+          RenderText {#text} at (313,3) size 47x16
+            text run at (313,3) width 47: "this part"
+        RenderText {#text} at (360,0) size 8x21
+          text run at (360,0) width 8: ", "
         RenderInline {I} at (0,0) size 53x21
-          RenderText {#text} at (393,0) size 53x21
-            text run at (393,0) width 53: "this part"
-        RenderText {#text} at (446,0) size 8x21
-          text run at (446,0) width 8: ", "
+          RenderText {#text} at (368,0) size 53x21
+            text run at (368,0) width 53: "this part"
+        RenderText {#text} at (421,0) size 8x21
+          text run at (421,0) width 8: ", "
         RenderInline {EM} at (0,0) size 53x21 [color=#800080]
-          RenderText {#text} at (454,0) size 53x21
-            text run at (454,0) width 53: "this part"
-        RenderText {#text} at (507,0) size 38x21
-          text run at (507,0) width 38: ", and "
+          RenderText {#text} at (429,0) size 53x21
+            text run at (429,0) width 53: "this part"
+        RenderText {#text} at (482,0) size 38x21
+          text run at (482,0) width 38: ", and "
         RenderInline {STRONG} at (0,0) size 57x21
-          RenderText {#text} at (545,0) size 57x21
-            text run at (545,0) width 57: "this part"
-        RenderText {#text} at (602,0) size 4x21
-          text run at (602,0) width 4: "."
+          RenderText {#text} at (520,0) size 57x21
+            text run at (520,0) width 57: "this part"
+        RenderText {#text} at (577,0) size 4x21
+          text run at (577,0) width 4: "."
       RenderBlock {P} at (0,387) size 768x21 [color=#000080]
         RenderText {#text} at (0,0) size 464x21
           text run at (0,0) width 464: "This sentence should also be underlined, as well as dark blue (navy), "
-        RenderInline {TT} at (0,0) size 152x14
-          RenderText {#text} at (464,5) size 152x14
-            text run at (464,5) width 152: "including this part"
-        RenderText {#text} at (616,0) size 4x21
-          text run at (616,0) width 4: "."
+        RenderInline {TT} at (0,0) size 102x16
+          RenderText {#text} at (464,3) size 102x16
+            text run at (464,3) width 102: "including this part"
+        RenderText {#text} at (566,0) size 4x21
+          text run at (566,0) width 4: "."
       RenderBlock {P} at (0,424) size 768x21 [color=#800080]
         RenderText {#text} at (0,0) size 284x21
           text run at (0,0) width 284: "This sentence should be purple, including "
@@ -99,19 +99,19 @@ layer at (0,0) size 784x779
             text run at (375,0) width 187: "this part (which is spanned)"
         RenderText {#text} at (562,0) size 4x21
           text run at (562,0) width 4: "."
-      RenderTable {TABLE} at (0,461) size 642x302 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 640x300
-          RenderTableRow {TR} at (0,0) size 640x29
-            RenderTableCell {TD} at (0,0) size 640x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+      RenderTable {TABLE} at (0,461) size 603x302 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 601x300
+          RenderTableRow {TR} at (0,0) size 601x29
+            RenderTableCell {TD} at (0,0) size 601x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 640x271
+          RenderTableRow {TR} at (0,29) size 601x271
             RenderTableCell {TD} at (0,150) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 628x271 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {H3} at (4,4) size 620x25 [color=#0000FF]
+            RenderTableCell {TD} at (12,29) size 589x271 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {H3} at (4,4) size 581x25 [color=#0000FF]
                 RenderText {#text} at (0,0) size 220x25
                   text run at (0,0) width 220: "This sentence should show "
                 RenderInline {STRONG} at (0,0) size 35x25
@@ -124,7 +124,7 @@ layer at (0,0) size 784x779
                     text run at (297,0) width 51: "purple"
                 RenderText {#text} at (348,0) size 5x25
                   text run at (348,0) width 5: "."
-              RenderBlock {H3} at (4,47) size 620x25 [color=#0000FF]
+              RenderBlock {H3} at (4,47) size 581x25 [color=#0000FF]
                 RenderText {#text} at (0,0) size 197x25
                   text run at (0,0) width 197: "This sentence should be "
                 RenderInline {SPAN} at (0,0) size 34x25
@@ -132,7 +132,7 @@ layer at (0,0) size 784x779
                     text run at (197,0) width 34: "blue"
                 RenderText {#text} at (231,0) size 104x25
                   text run at (231,0) width 104: " throughout."
-              RenderBlock {P} at (4,90) size 620x21
+              RenderBlock {P} at (4,90) size 581x21
                 RenderText {#text} at (0,0) size 241x21
                   text run at (0,0) width 241: "This should be green except for the "
                 RenderInline {EM} at (0,0) size 118x21 [color=#800080]
@@ -140,41 +140,41 @@ layer at (0,0) size 784x779
                     text run at (241,0) width 118: "emphasized words"
                 RenderText {#text} at (359,0) size 171x21
                   text run at (359,0) width 171: ", which should be purple."
-              RenderBlock {H3} at (4,129) size 620x25 [color=#0000FF]
+              RenderBlock {H3} at (4,129) size 581x25 [color=#0000FF]
                 RenderText {#text} at (0,0) size 296x25
                   text run at (0,0) width 296: "This should be blue and underlined."
-              RenderBlock {P} at (4,172) size 620x21
+              RenderBlock {P} at (4,172) size 581x21
                 RenderText {#text} at (0,0) size 313x21
                   text run at (0,0) width 313: "This sentence should be underlined, including "
-                RenderInline {TT} at (0,0) size 72x14
-                  RenderText {#text} at (313,5) size 72x14
-                    text run at (313,5) width 72: "this part"
-                RenderText {#text} at (385,0) size 8x21
-                  text run at (385,0) width 8: ", "
+                RenderInline {TT} at (0,0) size 47x16
+                  RenderText {#text} at (313,3) size 47x16
+                    text run at (313,3) width 47: "this part"
+                RenderText {#text} at (360,0) size 8x21
+                  text run at (360,0) width 8: ", "
                 RenderInline {I} at (0,0) size 53x21
-                  RenderText {#text} at (393,0) size 53x21
-                    text run at (393,0) width 53: "this part"
-                RenderText {#text} at (446,0) size 8x21
-                  text run at (446,0) width 8: ", "
+                  RenderText {#text} at (368,0) size 53x21
+                    text run at (368,0) width 53: "this part"
+                RenderText {#text} at (421,0) size 8x21
+                  text run at (421,0) width 8: ", "
                 RenderInline {EM} at (0,0) size 53x21 [color=#800080]
-                  RenderText {#text} at (454,0) size 53x21
-                    text run at (454,0) width 53: "this part"
-                RenderText {#text} at (507,0) size 38x21
-                  text run at (507,0) width 38: ", and "
+                  RenderText {#text} at (429,0) size 53x21
+                    text run at (429,0) width 53: "this part"
+                RenderText {#text} at (482,0) size 38x21
+                  text run at (482,0) width 38: ", and "
                 RenderInline {STRONG} at (0,0) size 57x21
-                  RenderText {#text} at (545,0) size 57x21
-                    text run at (545,0) width 57: "this part"
-                RenderText {#text} at (602,0) size 4x21
-                  text run at (602,0) width 4: "."
-              RenderBlock {P} at (4,209) size 620x21 [color=#000080]
+                  RenderText {#text} at (520,0) size 57x21
+                    text run at (520,0) width 57: "this part"
+                RenderText {#text} at (577,0) size 4x21
+                  text run at (577,0) width 4: "."
+              RenderBlock {P} at (4,209) size 581x21 [color=#000080]
                 RenderText {#text} at (0,0) size 464x21
                   text run at (0,0) width 464: "This sentence should also be underlined, as well as dark blue (navy), "
-                RenderInline {TT} at (0,0) size 152x14
-                  RenderText {#text} at (464,5) size 152x14
-                    text run at (464,5) width 152: "including this part"
-                RenderText {#text} at (616,0) size 4x21
-                  text run at (616,0) width 4: "."
-              RenderBlock {P} at (4,246) size 620x21 [color=#800080]
+                RenderInline {TT} at (0,0) size 102x16
+                  RenderText {#text} at (464,3) size 102x16
+                    text run at (464,3) width 102: "including this part"
+                RenderText {#text} at (566,0) size 4x21
+                  text run at (566,0) width 4: "."
+              RenderBlock {P} at (4,246) size 581x21 [color=#800080]
                 RenderText {#text} at (0,0) size 284x21
                   text run at (0,0) width 284: "This sentence should be purple, including "
                 RenderInline {STRONG} at (0,0) size 57x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border-expected.txt
index a16e65b..6edc446 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border-expected.txt
@@ -7,25 +7,25 @@ layer at (0,0) size 784x1553
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x144
-        RenderText {#text} at (0,1) size 272x142
-          text run at (0,1) width 272: ".one {border: medium black solid;}"
-          text run at (272,1) width 0: " "
-          text run at (0,17) width 264: ".two {border: thin maroon ridge;}"
-          text run at (264,17) width 0: " "
-          text run at (0,33) width 272: ".three {border: 10px teal outset;}"
-          text run at (272,33) width 0: " "
-          text run at (0,49) width 264: ".four {border: 10px olive inset;}"
-          text run at (264,49) width 0: " "
-          text run at (0,65) width 224: ".five {border: 10px maroon;}"
-          text run at (224,65) width 0: " "
-          text run at (0,81) width 232: ".six {border: maroon double;}"
-          text run at (232,81) width 0: " "
-          text run at (0,97) width 256: ".seven {border: left red solid;}"
-          text run at (256,97) width 0: " "
-          text run at (0,113) width 168: ".eight {border: 0px;}"
-          text run at (168,113) width 0: " "
-          text run at (0,129) width 232: "TD {border: 2px solid green;}"
-          text run at (232,129) width 0: " "
+        RenderText {#text} at (0,0) size 197x144
+          text run at (0,0) width 197: ".one {border: medium black solid;}"
+          text run at (197,0) width 0: " "
+          text run at (0,16) width 184: ".two {border: thin maroon ridge;}"
+          text run at (184,16) width 0: " "
+          text run at (0,32) width 186: ".three {border: 10px teal outset;}"
+          text run at (186,32) width 0: " "
+          text run at (0,48) width 177: ".four {border: 10px olive inset;}"
+          text run at (177,48) width 0: " "
+          text run at (0,64) width 160: ".five {border: 10px maroon;}"
+          text run at (160,64) width 0: " "
+          text run at (0,80) width 166: ".six {border: maroon double;}"
+          text run at (166,80) width 0: " "
+          text run at (0,96) width 170: ".seven {border: left red solid;}"
+          text run at (170,96) width 0: " "
+          text run at (0,112) width 113: ".eight {border: 0px;}"
+          text run at (113,112) width 0: " "
+          text run at (0,128) width 165: "TD {border: 2px solid green;}"
+          text run at (165,128) width 0: " "
       RenderBlock {HR} at (0,194) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,212) size 768x42
         RenderText {#text} at (0,0) size 747x42
@@ -47,20 +47,20 @@ layer at (0,0) size 784x1553
       RenderBlock {P} at (0,466) size 768x42
         RenderText {#text} at (0,0) size 382x21
           text run at (0,0) width 382: "This paragraph should have no border around it, as the "
-        RenderInline {TT} at (0,0) size 96x14
-          RenderText {#text} at (382,5) size 96x14
-            text run at (382,5) width 96: "border-style"
-        RenderText {#text} at (478,0) size 755x42
-          text run at (478,0) width 277: " was not set, and it should not be offset in"
-          text run at (0,21) width 61: "any way."
+        RenderInline {TT} at (0,0) size 68x16
+          RenderText {#text} at (382,3) size 68x16
+            text run at (382,3) width 68: "border-style"
+        RenderText {#text} at (450,0) size 756x42
+          text run at (450,0) width 306: " was not set, and it should not be offset in any"
+          text run at (0,21) width 32: "way."
       RenderBlock {P} at (0,524) size 768x48 [border: (3px double #800000)]
         RenderText {#text} at (3,3) size 583x21
           text run at (3,3) width 583: "This paragraph should have a medium maroon double border around it, even though "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (586,8) size 96x14
-            text run at (586,8) width 96: "border-width"
-        RenderText {#text} at (682,3) size 735x42
-          text run at (682,3) width 56: " was not"
+        RenderInline {CODE} at (0,0) size 70x16
+          RenderText {#text} at (586,6) size 70x16
+            text run at (586,6) width 70: "border-width"
+        RenderText {#text} at (656,3) size 709x42
+          text run at (656,3) width 56: " was not"
           text run at (3,24) width 86: "explicitly set."
       RenderBlock {P} at (0,588) size 768x21
         RenderText {#text} at (0,0) size 675x21
@@ -133,20 +133,20 @@ layer at (0,0) size 784x1553
               RenderBlock {P} at (5,259) size 742x42
                 RenderText {#text} at (0,0) size 382x21
                   text run at (0,0) width 382: "This paragraph should have no border around it, as the "
-                RenderInline {TT} at (0,0) size 96x14
-                  RenderText {#text} at (382,5) size 96x14
-                    text run at (382,5) width 96: "border-style"
-                RenderText {#text} at (478,0) size 738x42
-                  text run at (478,0) width 260: " was not set, and it should not be offset"
-                  text run at (0,21) width 78: "in any way."
+                RenderInline {TT} at (0,0) size 68x16
+                  RenderText {#text} at (382,3) size 68x16
+                    text run at (382,3) width 68: "border-style"
+                RenderText {#text} at (450,0) size 727x42
+                  text run at (450,0) width 277: " was not set, and it should not be offset in"
+                  text run at (0,21) width 61: "any way."
               RenderBlock {P} at (5,317) size 742x48 [border: (3px double #800000)]
                 RenderText {#text} at (3,3) size 583x21
                   text run at (3,3) width 583: "This paragraph should have a medium maroon double border around it, even though "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (586,8) size 96x14
-                    text run at (586,8) width 96: "border-width"
-                RenderText {#text} at (682,3) size 735x42
-                  text run at (682,3) width 56: " was not"
+                RenderInline {CODE} at (0,0) size 70x16
+                  RenderText {#text} at (586,6) size 70x16
+                    text run at (586,6) width 70: "border-width"
+                RenderText {#text} at (656,3) size 709x42
+                  text run at (656,3) width 56: " was not"
                   text run at (3,24) width 86: "explicitly set."
               RenderBlock {P} at (5,381) size 742x21
                 RenderText {#text} at (0,0) size 675x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_bottom-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_bottom-expected.txt
index 659563d..91abb8a 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_bottom-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_bottom-expected.txt
@@ -7,15 +7,15 @@ layer at (0,0) size 784x1095
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 344x62
-          text run at (0,1) width 328: ".one {border-bottom: purple double 10px;}"
-          text run at (328,1) width 0: " "
-          text run at (0,17) width 320: ".two {border-bottom: purple thin solid;}"
-          text run at (320,17) width 0: " "
-          text run at (0,33) width 344: ".three {border-bottom: black medium solid;}"
-          text run at (344,33) width 0: " "
-          text run at (0,49) width 288: "TD {border-bottom: green 2px solid;}"
-          text run at (288,49) width 0: " "
+        RenderText {#text} at (0,0) size 249x64
+          text run at (0,0) width 238: ".one {border-bottom: purple double 10px;}"
+          text run at (238,0) width 0: " "
+          text run at (0,16) width 219: ".two {border-bottom: purple thin solid;}"
+          text run at (219,16) width 0: " "
+          text run at (0,32) width 249: ".three {border-bottom: black medium solid;}"
+          text run at (249,32) width 0: " "
+          text run at (0,48) width 209: "TD {border-bottom: green 2px solid;}"
+          text run at (209,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x42
         RenderText {#text} at (0,0) size 731x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_bottom_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_bottom_inline-expected.txt
index 44027ab..216fea0 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_bottom_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_bottom_inline-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 328x46
-          text run at (0,1) width 328: ".one {border-bottom: purple double 10px;}"
-          text run at (328,1) width 0: " "
-          text run at (0,17) width 320: ".two {border-bottom: purple thin solid;}"
-          text run at (320,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 238x48
+          text run at (0,0) width 238: ".one {border-bottom: purple double 10px;}"
+          text run at (238,0) width 0: " "
+          text run at (0,16) width 219: ".two {border-bottom: purple thin solid;}"
+          text run at (219,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x63 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 708x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_bottom_width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_bottom_width-expected.txt
index c595c71..9f47461 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_bottom_width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_bottom_width-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x937
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 464x94
-          text run at (0,1) width 456: ".zero {background-color: silver; border-bottom-width: 0;}"
-          text run at (456,1) width 0: " "
-          text run at (0,17) width 432: ".one {border-bottom-width: 50px; border-style: solid;}"
-          text run at (432,17) width 0: " "
-          text run at (0,33) width 440: ".two {border-bottom-width: thick; border-style: solid;}"
-          text run at (440,33) width 0: " "
-          text run at (0,49) width 464: ".three {border-bottom-width: medium; border-style: solid;}"
-          text run at (464,49) width 0: " "
-          text run at (0,65) width 440: ".four {border-bottom-width: thin; border-style: solid;}"
-          text run at (440,65) width 0: " "
-          text run at (0,81) width 272: ".five {border-bottom-width: 25px;}"
-          text run at (272,81) width 0: " "
+        RenderText {#text} at (0,0) size 328x96
+          text run at (0,0) width 320: ".zero {background-color: silver; border-bottom-width: 0;}"
+          text run at (320,0) width 0: " "
+          text run at (0,16) width 302: ".one {border-bottom-width: 50px; border-style: solid;}"
+          text run at (302,16) width 0: " "
+          text run at (0,32) width 301: ".two {border-bottom-width: thick; border-style: solid;}"
+          text run at (301,32) width 0: " "
+          text run at (0,48) width 328: ".three {border-bottom-width: medium; border-style: solid;}"
+          text run at (328,48) width 0: " "
+          text run at (0,64) width 296: ".four {border-bottom-width: thin; border-style: solid;}"
+          text run at (296,64) width 0: " "
+          text run at (0,80) width 191: ".five {border-bottom-width: 25px;}"
+          text run at (191,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 163x21
           text run at (0,0) width 163: "(These will only work if "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (163,5) size 96x14
-            text run at (163,5) width 96: "border-style"
-        RenderText {#text} at (259,0) size 96x21
-          text run at (259,0) width 96: " is supported.)"
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (163,3) size 68x16
+            text run at (163,3) width 68: "border-style"
+        RenderText {#text} at (231,0) size 96x21
+          text run at (231,0) width 96: " is supported.)"
       RenderBlock {P} at (0,201) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -47,57 +47,57 @@ layer at (0,0) size 784x937
       RenderBlock {P} at (0,457) size 768x21
         RenderText {#text} at (0,0) size 580x21
           text run at (0,0) width 580: "This element should have no border and no extra \"padding\" on its bottom side, as no "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (580,5) size 96x14
-            text run at (580,5) width 96: "border-style"
-        RenderText {#text} at (676,0) size 56x21
-          text run at (676,0) width 56: " was set."
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (580,3) size 68x16
+            text run at (580,3) width 68: "border-style"
+        RenderText {#text} at (648,0) size 56x21
+          text run at (648,0) width 56: " was set."
       RenderBlock {P} at (0,494) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
-      RenderTable {TABLE} at (0,531) size 754x390 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 752x388
-          RenderTableRow {TR} at (0,0) size 752x29
-            RenderTableCell {TD} at (0,0) size 752x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+      RenderTable {TABLE} at (0,531) size 726x390 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 724x388
+          RenderTableRow {TR} at (0,0) size 724x29
+            RenderTableCell {TD} at (0,0) size 724x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 752x359
+          RenderTableRow {TR} at (0,29) size 724x359
             RenderTableCell {TD} at (0,194) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 740x359 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {P} at (4,4) size 732x21
+            RenderTableCell {TD} at (12,29) size 712x359 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {P} at (4,4) size 704x21
                 RenderText {#text} at (0,0) size 163x21
                   text run at (0,0) width 163: "(These will only work if "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (163,5) size 96x14
-                    text run at (163,5) width 96: "border-style"
-                RenderText {#text} at (259,0) size 96x21
-                  text run at (259,0) width 96: " is supported.)"
-              RenderBlock {P} at (4,41) size 732x21 [bgcolor=#C0C0C0]
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (163,3) size 68x16
+                    text run at (163,3) width 68: "border-style"
+                RenderText {#text} at (231,0) size 96x21
+                  text run at (231,0) width 96: " is supported.)"
+              RenderBlock {P} at (4,41) size 704x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
-              RenderBlock {P} at (4,78) size 732x74 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,78) size 704x74 [border: (3px solid #000000) (50px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,3) size 412x21
                   text run at (3,3) width 412: "This element should have a bottom border width of 50 pixels."
-              RenderBlock {P} at (4,168) size 732x29 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,168) size 704x29 [border: (3px solid #000000) (5px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,3) size 371x21
                   text run at (3,3) width 371: "This element should have a thick bottom border width."
-              RenderBlock {P} at (4,213) size 732x27 [border: (3px solid #000000)]
+              RenderBlock {P} at (4,213) size 704x27 [border: (3px solid #000000)]
                 RenderText {#text} at (3,3) size 392x21
                   text run at (3,3) width 392: "This element should have a medium bottom border width."
-              RenderBlock {P} at (4,256) size 732x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,256) size 704x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,3) size 364x21
                   text run at (3,3) width 364: "This element should have a thin bottom border width."
-              RenderBlock {P} at (4,297) size 732x21
+              RenderBlock {P} at (4,297) size 704x21
                 RenderText {#text} at (0,0) size 580x21
                   text run at (0,0) width 580: "This element should have no border and no extra \"padding\" on its bottom side, as no "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (580,5) size 96x14
-                    text run at (580,5) width 96: "border-style"
-                RenderText {#text} at (676,0) size 56x21
-                  text run at (676,0) width 56: " was set."
-              RenderBlock {P} at (4,334) size 732x21 [bgcolor=#C0C0C0]
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (580,3) size 68x16
+                    text run at (580,3) width 68: "border-style"
+                RenderText {#text} at (648,0) size 56x21
+                  text run at (648,0) width 56: " was set."
+              RenderBlock {P} at (4,334) size 704x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt
index 2930e9b..71bfd51 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt
@@ -7,42 +7,42 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 432x46
-          text run at (0,1) width 432: ".one {border-bottom-width: 25px; border-style: solid;}"
-          text run at (432,1) width 0: " "
-          text run at (0,17) width 432: ".two {border-bottom-width: thin; border-style: solid;}"
-          text run at (432,17) width 0: " "
-          text run at (0,33) width 280: ".three {border-bottom-width: 25px;}"
-          text run at (280,33) width 0: " "
+        RenderText {#text} at (0,0) size 302x48
+          text run at (0,0) width 302: ".one {border-bottom-width: 25px; border-style: solid;}"
+          text run at (302,0) width 0: " "
+          text run at (0,16) width 294: ".two {border-bottom-width: thin; border-style: solid;}"
+          text run at (294,16) width 0: " "
+          text run at (0,32) width 199: ".three {border-bottom-width: 25px;}"
+          text run at (199,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x112 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         RenderText {#text} at (3,3) size 181x21
           text run at (3,3) width 181: "This element has a class of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (184,8) size 24x14
-            text run at (184,8) width 24: "one"
-        RenderText {#text} at (208,3) size 171x21
-          text run at (208,3) width 8: ". "
-          text run at (216,3) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 179x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
-          RenderText {#text} at (382,3) size 149x21
-            text run at (382,3) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (531,8) size 24x14
-              text run at (531,8) width 24: "two"
-        RenderText {#text} at (558,3) size 755x63
-          text run at (558,3) width 200: ", which should result in a thin"
+        RenderInline {TT} at (0,0) size 21x16
+          RenderText {#text} at (184,6) size 21x16
+            text run at (184,6) width 21: "one"
+        RenderText {#text} at (205,3) size 171x21
+          text run at (205,3) width 8: ". "
+          text run at (213,3) width 163: "However, it contains an "
+        RenderInline {SPAN} at (0,0) size 175x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          RenderText {#text} at (379,3) size 149x21
+            text run at (379,3) width 149: "inline element of class "
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (528,6) size 20x16
+              text run at (528,6) width 20: "two"
+        RenderText {#text} at (551,3) size 755x63
+          text run at (551,3) width 200: ", which should result in a thin"
           text run at (3,24) width 755: "solid border on the bottom side of each box in the inline element (and the UA's default border on the other three"
           text run at (3,45) width 45: "sides). "
           text run at (48,45) width 110: "There is also an "
-        RenderInline {SPAN} at (0,0) size 189x21
+        RenderInline {SPAN} at (0,0) size 178x21
           RenderText {#text} at (158,45) size 149x21
             text run at (158,45) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 40x14
-            RenderText {#text} at (307,50) size 40x14
-              text run at (307,50) width 40: "three"
-        RenderText {#text} at (347,45) size 761x42
-          text run at (347,45) width 417: ", which should have no bottom border width or visible border"
+          RenderInline {TT} at (0,0) size 29x16
+            RenderText {#text} at (307,48) size 29x16
+              text run at (307,48) width 29: "three"
+        RenderText {#text} at (336,45) size 750x42
+          text run at (336,45) width 417: ", which should have no bottom border width or visible border"
           text run at (3,66) width 215: "because no border style was set."
       RenderTable {TABLE} at (0,244) size 784x151 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 782x149
@@ -59,29 +59,29 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,4) size 762x112 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,3) size 181x21
                   text run at (3,3) width 181: "This element has a class of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (184,8) size 24x14
-                    text run at (184,8) width 24: "one"
-                RenderText {#text} at (208,3) size 171x21
-                  text run at (208,3) width 8: ". "
-                  text run at (216,3) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 179x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
-                  RenderText {#text} at (382,3) size 149x21
-                    text run at (382,3) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (531,8) size 24x14
-                      text run at (531,8) width 24: "two"
-                RenderText {#text} at (558,3) size 755x63
-                  text run at (558,3) width 200: ", which should result in a thin"
+                RenderInline {TT} at (0,0) size 21x16
+                  RenderText {#text} at (184,6) size 21x16
+                    text run at (184,6) width 21: "one"
+                RenderText {#text} at (205,3) size 171x21
+                  text run at (205,3) width 8: ". "
+                  text run at (213,3) width 163: "However, it contains an "
+                RenderInline {SPAN} at (0,0) size 175x25 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  RenderText {#text} at (379,3) size 149x21
+                    text run at (379,3) width 149: "inline element of class "
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (528,6) size 20x16
+                      text run at (528,6) width 20: "two"
+                RenderText {#text} at (551,3) size 755x63
+                  text run at (551,3) width 200: ", which should result in a thin"
                   text run at (3,24) width 755: "solid border on the bottom side of each box in the inline element (and the UA's default border on the other three"
                   text run at (3,45) width 45: "sides). "
                   text run at (48,45) width 110: "There is also an "
-                RenderInline {SPAN} at (0,0) size 189x21
+                RenderInline {SPAN} at (0,0) size 178x21
                   RenderText {#text} at (158,45) size 149x21
                     text run at (158,45) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 40x14
-                    RenderText {#text} at (307,50) size 40x14
-                      text run at (307,50) width 40: "three"
-                RenderText {#text} at (347,45) size 710x42
-                  text run at (347,45) width 366: ", which should have no bottom border width or visible"
-                  text run at (3,66) width 266: "border because no border style was set."
+                  RenderInline {TT} at (0,0) size 29x16
+                    RenderText {#text} at (307,48) size 29x16
+                      text run at (307,48) width 29: "three"
+                RenderText {#text} at (336,45) size 750x42
+                  text run at (336,45) width 417: ", which should have no bottom border width or visible border"
+                  text run at (3,66) width 215: "because no border style was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_color-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_color-expected.txt
index 2a1a0e1..fb02066 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_color-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_color-expected.txt
@@ -7,13 +7,13 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 728x46
-          text run at (0,1) width 392: ".one {border-color: purple; border-style: solid;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
-          text run at (568,17) width 0: " "
-          text run at (0,33) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
-          text run at (728,33) width 0: " "
+        RenderText {#text} at (0,0) size 507x48
+          text run at (0,0) width 263: ".one {border-color: purple; border-style: solid;}"
+          text run at (263,0) width 0: " "
+          text run at (0,16) width 394: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (394,16) width 0: " "
+          text run at (0,32) width 507: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (507,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x27 [border: (3px solid #800080)]
         RenderText {#text} at (3,3) size 389x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_color_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_color_inline-expected.txt
index 2f8e7b7..5e4f10c 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_color_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_color_inline-expected.txt
@@ -7,13 +7,13 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 728x46
-          text run at (0,1) width 392: ".one {border-color: purple; border-style: solid;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 568: ".two {border-color: purple; border-width: medium; border-style: solid;}"
-          text run at (568,17) width 0: " "
-          text run at (0,33) width 728: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
-          text run at (728,33) width 0: " "
+        RenderText {#text} at (0,0) size 507x48
+          text run at (0,0) width 263: ".one {border-color: purple; border-style: solid;}"
+          text run at (263,0) width 0: " "
+          text run at (0,16) width 394: ".two {border-color: purple; border-width: medium; border-style: solid;}"
+          text run at (394,16) width 0: " "
+          text run at (0,32) width 507: ".three {border-color: purple green blue yellow; border-width: medium; border-style: solid;}"
+          text run at (507,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x84 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 720x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_inline-expected.txt
index 69f9ed2..3d37519 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_inline-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 256x46
-          text run at (0,1) width 256: ".one {border: 10px teal outset;}"
-          text run at (256,1) width 0: " "
-          text run at (0,17) width 256: ".two {border: 10px olive inset;}"
-          text run at (256,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 178x48
+          text run at (0,0) width 178: ".one {border: 10px teal outset;}"
+          text run at (178,0) width 0: " "
+          text run at (0,16) width 175: ".two {border: 10px olive inset;}"
+          text run at (175,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x63 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 720x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_left-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_left-expected.txt
index f60f747..3c0d687 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_left-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_left-expected.txt
@@ -7,21 +7,21 @@ layer at (0,0) size 784x1137
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 344x110
-          text run at (0,1) width 176: "P {margin-left: 20px;}"
-          text run at (176,1) width 0: " "
-          text run at (0,17) width 312: ".one {border-left: purple double 10px;}"
-          text run at (312,17) width 0: " "
-          text run at (0,33) width 304: ".two {border-left: purple thin solid;}"
-          text run at (304,33) width 0: " "
-          text run at (0,49) width 336: ".threea {border-left: black medium solid;}"
-          text run at (336,49) width 0: " "
-          text run at (0,65) width 344: ".threeb {border-left: purple medium solid;}"
-          text run at (344,65) width 0: " "
-          text run at (0,81) width 328: ".threec {border-left: blue medium solid;}"
-          text run at (328,81) width 0: " "
-          text run at (0,97) width 272: "TD {border-left: green 2px solid;}"
-          text run at (272,97) width 0: " "
+        RenderText {#text} at (0,0) size 238x112
+          text run at (0,0) width 122: "P {margin-left: 20px;}"
+          text run at (122,0) width 0: " "
+          text run at (0,16) width 216: ".one {border-left: purple double 10px;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 197: ".two {border-left: purple thin solid;}"
+          text run at (197,32) width 0: " "
+          text run at (0,48) width 234: ".threea {border-left: black medium solid;}"
+          text run at (234,48) width 0: " "
+          text run at (0,64) width 238: ".threeb {border-left: purple medium solid;}"
+          text run at (238,64) width 0: " "
+          text run at (0,80) width 227: ".threec {border-left: blue medium solid;}"
+          text run at (227,80) width 0: " "
+          text run at (0,96) width 187: "TD {border-left: green 2px solid;}"
+          text run at (187,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (20,180) size 748x42
         RenderText {#text} at (0,0) size 704x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_left_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_left_inline-expected.txt
index bacb95c..bb628c1 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_left_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_left_inline-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 312x62
-          text run at (0,1) width 176: "P {margin-left: 20px;}"
-          text run at (176,1) width 0: " "
-          text run at (0,17) width 312: ".one {border-left: purple double 10px;}"
-          text run at (312,17) width 0: " "
-          text run at (0,33) width 304: ".two {border-left: purple thin solid;}"
-          text run at (304,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 216x64
+          text run at (0,0) width 122: "P {margin-left: 20px;}"
+          text run at (122,0) width 0: " "
+          text run at (0,16) width 216: ".one {border-left: purple double 10px;}"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 197: ".two {border-left: purple thin solid;}"
+          text run at (197,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (20,132) size 764x63 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 749x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_left_width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_left_width-expected.txt
index c9ee22e..b1df23b 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_left_width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_left_width-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x937
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 448x94
-          text run at (0,1) width 440: ".zero {background-color: silver; border-left-width: 0;}"
-          text run at (440,1) width 0: " "
-          text run at (0,17) width 416: ".one {border-left-width: 50px; border-style: solid;}"
-          text run at (416,17) width 0: " "
-          text run at (0,33) width 424: ".two {border-left-width: thick; border-style: solid;}"
-          text run at (424,33) width 0: " "
-          text run at (0,49) width 448: ".three {border-left-width: medium; border-style: solid;}"
-          text run at (448,49) width 0: " "
-          text run at (0,65) width 424: ".four {border-left-width: thin; border-style: solid;}"
-          text run at (424,65) width 0: " "
-          text run at (0,81) width 256: ".five {border-left-width: 25px;}"
-          text run at (256,81) width 0: " "
+        RenderText {#text} at (0,0) size 306x96
+          text run at (0,0) width 298: ".zero {background-color: silver; border-left-width: 0;}"
+          text run at (298,0) width 0: " "
+          text run at (0,16) width 280: ".one {border-left-width: 50px; border-style: solid;}"
+          text run at (280,16) width 0: " "
+          text run at (0,32) width 279: ".two {border-left-width: thick; border-style: solid;}"
+          text run at (279,32) width 0: " "
+          text run at (0,48) width 306: ".three {border-left-width: medium; border-style: solid;}"
+          text run at (306,48) width 0: " "
+          text run at (0,64) width 274: ".four {border-left-width: thin; border-style: solid;}"
+          text run at (274,64) width 0: " "
+          text run at (0,80) width 169: ".five {border-left-width: 25px;}"
+          text run at (169,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 163x21
           text run at (0,0) width 163: "(These will only work if "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (163,5) size 96x14
-            text run at (163,5) width 96: "border-style"
-        RenderText {#text} at (259,0) size 96x21
-          text run at (259,0) width 96: " is supported.)"
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (163,3) size 68x16
+            text run at (163,3) width 68: "border-style"
+        RenderText {#text} at (231,0) size 96x21
+          text run at (231,0) width 96: " is supported.)"
       RenderBlock {P} at (0,201) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -51,11 +51,11 @@ layer at (0,0) size 784x937
       RenderBlock {P} at (0,494) size 768x21
         RenderText {#text} at (0,0) size 553x21
           text run at (0,0) width 553: "This element should have no border and no extra \"padding\" on its left side, as no "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (553,5) size 96x14
-            text run at (553,5) width 96: "border-style"
-        RenderText {#text} at (649,0) size 56x21
-          text run at (649,0) width 56: " was set."
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (553,3) size 68x16
+            text run at (553,3) width 68: "border-style"
+        RenderText {#text} at (621,0) size 56x21
+          text run at (621,0) width 56: " was set."
       RenderTable {TABLE} at (0,531) size 768x390 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x388
           RenderTableRow {TR} at (0,0) size 766x29
@@ -71,11 +71,11 @@ layer at (0,0) size 784x937
               RenderBlock {P} at (4,4) size 746x21
                 RenderText {#text} at (0,0) size 163x21
                   text run at (0,0) width 163: "(These will only work if "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (163,5) size 96x14
-                    text run at (163,5) width 96: "border-style"
-                RenderText {#text} at (259,0) size 96x21
-                  text run at (259,0) width 96: " is supported.)"
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (163,3) size 68x16
+                    text run at (163,3) width 68: "border-style"
+                RenderText {#text} at (231,0) size 96x21
+                  text run at (231,0) width 96: " is supported.)"
               RenderBlock {P} at (4,41) size 746x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
@@ -98,8 +98,8 @@ layer at (0,0) size 784x937
               RenderBlock {P} at (4,334) size 746x21
                 RenderText {#text} at (0,0) size 553x21
                   text run at (0,0) width 553: "This element should have no border and no extra \"padding\" on its left side, as no "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (553,5) size 96x14
-                    text run at (553,5) width 96: "border-style"
-                RenderText {#text} at (649,0) size 56x21
-                  text run at (649,0) width 56: " was set."
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (553,3) size 68x16
+                    text run at (553,3) width 68: "border-style"
+                RenderText {#text} at (621,0) size 56x21
+                  text run at (621,0) width 56: " was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_left_width_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_left_width_inline-expected.txt
index e8d0e94..592c108 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_left_width_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_left_width_inline-expected.txt
@@ -7,31 +7,31 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 416x46
-          text run at (0,1) width 416: ".one {border-left-width: 25px; border-style: solid;}"
-          text run at (416,1) width 0: " "
-          text run at (0,17) width 416: ".two {border-left-width: thin; border-style: solid;}"
-          text run at (416,17) width 0: " "
-          text run at (0,33) width 264: ".three {border-left-width: 25px;}"
-          text run at (264,33) width 0: " "
+        RenderText {#text} at (0,0) size 280x48
+          text run at (0,0) width 280: ".one {border-left-width: 25px; border-style: solid;}"
+          text run at (280,0) width 0: " "
+          text run at (0,16) width 272: ".two {border-left-width: thin; border-style: solid;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 177: ".three {border-left-width: 25px;}"
+          text run at (177,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x90 [border: (3px solid #000000) (25px solid #000000)]
         RenderText {#text} at (25,3) size 181x21
           text run at (25,3) width 181: "This element has a class of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (206,8) size 24x14
-            text run at (206,8) width 24: "one"
-        RenderText {#text} at (230,3) size 171x21
-          text run at (230,3) width 8: ". "
-          text run at (238,3) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 177x27 [border: (3px solid #000000) (1px solid #000000)]
-          RenderText {#text} at (402,3) size 149x21
-            text run at (402,3) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (551,8) size 24x14
-              text run at (551,8) width 24: "two"
-        RenderText {#text} at (578,3) size 753x42
-          text run at (578,3) width 200: ", which should result in a thin"
+        RenderInline {TT} at (0,0) size 21x16
+          RenderText {#text} at (206,6) size 21x16
+            text run at (206,6) width 21: "one"
+        RenderText {#text} at (227,3) size 171x21
+          text run at (227,3) width 8: ". "
+          text run at (235,3) width 163: "However, it contains an "
+        RenderInline {SPAN} at (0,0) size 173x27 [border: (3px solid #000000) (1px solid #000000)]
+          RenderText {#text} at (399,3) size 149x21
+            text run at (399,3) width 149: "inline element of class "
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (548,6) size 20x16
+              text run at (548,6) width 20: "two"
+        RenderText {#text} at (571,3) size 746x42
+          text run at (571,3) width 200: ", which should result in a thin"
           text run at (25,24) width 229: "solid border on the left side of the "
         RenderInline {STRONG} at (0,0) size 27x21
           RenderText {#text} at (254,24) size 27x21
@@ -40,14 +40,14 @@ layer at (0,0) size 800x600
           text run at (281,24) width 493: " box in the inline element (and the UA's default border on the other three"
           text run at (25,45) width 45: "sides). "
           text run at (70,45) width 110: "There is also an "
-        RenderInline {SPAN} at (0,0) size 189x21
+        RenderInline {SPAN} at (0,0) size 178x21
           RenderText {#text} at (180,45) size 149x21
             text run at (180,45) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 40x14
-            RenderText {#text} at (329,50) size 40x14
-              text run at (329,50) width 40: "three"
-        RenderText {#text} at (369,45) size 734x42
-          text run at (369,45) width 390: ", which should have no left border width or visible border"
+          RenderInline {TT} at (0,0) size 29x16
+            RenderText {#text} at (329,48) size 29x16
+              text run at (329,48) width 29: "three"
+        RenderText {#text} at (358,45) size 723x42
+          text run at (358,45) width 390: ", which should have no left border width or visible border"
           text run at (25,66) width 215: "because no border style was set."
       RenderTable {TABLE} at (0,222) size 784x129 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 782x127
@@ -64,20 +64,20 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,4) size 762x90 [border: (3px solid #000000) (25px solid #000000)]
                 RenderText {#text} at (25,3) size 181x21
                   text run at (25,3) width 181: "This element has a class of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (206,8) size 24x14
-                    text run at (206,8) width 24: "one"
-                RenderText {#text} at (230,3) size 171x21
-                  text run at (230,3) width 8: ". "
-                  text run at (238,3) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 177x27 [border: (3px solid #000000) (1px solid #000000)]
-                  RenderText {#text} at (402,3) size 149x21
-                    text run at (402,3) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (551,8) size 24x14
-                      text run at (551,8) width 24: "two"
-                RenderText {#text} at (578,3) size 722x42
-                  text run at (578,3) width 169: ", which should result in a"
+                RenderInline {TT} at (0,0) size 21x16
+                  RenderText {#text} at (206,6) size 21x16
+                    text run at (206,6) width 21: "one"
+                RenderText {#text} at (227,3) size 171x21
+                  text run at (227,3) width 8: ". "
+                  text run at (235,3) width 163: "However, it contains an "
+                RenderInline {SPAN} at (0,0) size 173x27 [border: (3px solid #000000) (1px solid #000000)]
+                  RenderText {#text} at (399,3) size 149x21
+                    text run at (399,3) width 149: "inline element of class "
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (548,6) size 20x16
+                      text run at (548,6) width 20: "two"
+                RenderText {#text} at (571,3) size 715x42
+                  text run at (571,3) width 169: ", which should result in a"
                   text run at (25,24) width 260: "thin solid border on the left side of the "
                 RenderInline {STRONG} at (0,0) size 27x21
                   RenderText {#text} at (285,24) size 27x21
@@ -86,12 +86,12 @@ layer at (0,0) size 800x600
                   text run at (312,24) width 414: " box in the inline element (and the UA's default border on the"
                   text run at (25,45) width 124: "other three sides). "
                   text run at (149,45) width 110: "There is also an "
-                RenderInline {SPAN} at (0,0) size 189x21
+                RenderInline {SPAN} at (0,0) size 178x21
                   RenderText {#text} at (259,45) size 149x21
                     text run at (259,45) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 40x14
-                    RenderText {#text} at (408,50) size 40x14
-                      text run at (408,50) width 40: "three"
-                RenderText {#text} at (448,45) size 716x42
-                  text run at (448,45) width 293: ", which should have no left border width or"
+                  RenderInline {TT} at (0,0) size 29x16
+                    RenderText {#text} at (408,48) size 29x16
+                      text run at (408,48) width 29: "three"
+                RenderText {#text} at (437,45) size 705x42
+                  text run at (437,45) width 293: ", which should have no left border width or"
                   text run at (25,66) width 312: "visible border because no border style was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_right-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_right-expected.txt
index 538e598..99466dd 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_right-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_right-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 320x62
-          text run at (0,1) width 184: "P {margin-right: 20px;}"
-          text run at (184,1) width 0: " "
-          text run at (0,17) width 320: ".one {border-right: purple double 10px;}"
-          text run at (320,17) width 0: " "
-          text run at (0,33) width 312: ".two {border-right: purple thin solid;}"
-          text run at (312,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 223x64
+          text run at (0,0) width 129: "P {margin-right: 20px;}"
+          text run at (129,0) width 0: " "
+          text run at (0,16) width 223: ".one {border-right: purple double 10px;}"
+          text run at (223,16) width 0: " "
+          text run at (0,32) width 204: ".two {border-right: purple thin solid;}"
+          text run at (204,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 764x63 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 761x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_right_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_right_inline-expected.txt
index be2baee..9dfad15 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_right_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_right_inline-expected.txt
@@ -7,21 +7,21 @@ layer at (0,0) size 784x1221
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 352x110
-          text run at (0,1) width 184: "P {margin-right: 20px;}"
-          text run at (184,1) width 0: " "
-          text run at (0,17) width 320: ".one {border-right: purple double 10px;}"
-          text run at (320,17) width 0: " "
-          text run at (0,33) width 312: ".two {border-right: purple thin solid;}"
-          text run at (312,33) width 0: " "
-          text run at (0,49) width 344: ".threea {border-right: black medium solid;}"
-          text run at (344,49) width 0: " "
-          text run at (0,65) width 352: ".threeb {border-right: purple medium solid;}"
-          text run at (352,65) width 0: " "
-          text run at (0,81) width 336: ".threec {border-right: blue medium solid;}"
-          text run at (336,81) width 0: " "
-          text run at (0,97) width 280: "TD {border-right: green 2px solid;}"
-          text run at (280,97) width 0: " "
+        RenderText {#text} at (0,0) size 245x112
+          text run at (0,0) width 129: "P {margin-right: 20px;}"
+          text run at (129,0) width 0: " "
+          text run at (0,16) width 223: ".one {border-right: purple double 10px;}"
+          text run at (223,16) width 0: " "
+          text run at (0,32) width 204: ".two {border-right: purple thin solid;}"
+          text run at (204,32) width 0: " "
+          text run at (0,48) width 241: ".threea {border-right: black medium solid;}"
+          text run at (241,48) width 0: " "
+          text run at (0,64) width 245: ".threeb {border-right: purple medium solid;}"
+          text run at (245,64) width 0: " "
+          text run at (0,80) width 234: ".threec {border-right: blue medium solid;}"
+          text run at (234,80) width 0: " "
+          text run at (0,96) width 194: "TD {border-right: green 2px solid;}"
+          text run at (194,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,180) size 748x42
         RenderText {#text} at (0,0) size 716x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_right_width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_right_width-expected.txt
index e10335b..ad4ffa7 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_right_width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_right_width-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x937
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 456x94
-          text run at (0,1) width 448: ".zero {background-color: silver; border-right-width: 0;}"
-          text run at (448,1) width 0: " "
-          text run at (0,17) width 424: ".one {border-right-width: 25px; border-style: solid;}"
-          text run at (424,17) width 0: " "
-          text run at (0,33) width 432: ".two {border-right-width: thick; border-style: solid;}"
-          text run at (432,33) width 0: " "
-          text run at (0,49) width 456: ".three {border-right-width: medium; border-style: solid;}"
-          text run at (456,49) width 0: " "
-          text run at (0,65) width 432: ".four {border-right-width: thin; border-style: solid;}"
-          text run at (432,65) width 0: " "
-          text run at (0,81) width 272: ".five {border-right-width: 100px;}"
-          text run at (272,81) width 0: " "
+        RenderText {#text} at (0,0) size 313x96
+          text run at (0,0) width 305: ".zero {background-color: silver; border-right-width: 0;}"
+          text run at (305,0) width 0: " "
+          text run at (0,16) width 287: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (287,16) width 0: " "
+          text run at (0,32) width 286: ".two {border-right-width: thick; border-style: solid;}"
+          text run at (286,32) width 0: " "
+          text run at (0,48) width 313: ".three {border-right-width: medium; border-style: solid;}"
+          text run at (313,48) width 0: " "
+          text run at (0,64) width 281: ".four {border-right-width: thin; border-style: solid;}"
+          text run at (281,64) width 0: " "
+          text run at (0,80) width 183: ".five {border-right-width: 100px;}"
+          text run at (183,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 163x21
           text run at (0,0) width 163: "(These will only work if "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (163,5) size 96x14
-            text run at (163,5) width 96: "border-style"
-        RenderText {#text} at (259,0) size 96x21
-          text run at (259,0) width 96: " is supported.)"
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (163,3) size 68x16
+            text run at (163,3) width 68: "border-style"
+        RenderText {#text} at (231,0) size 96x21
+          text run at (231,0) width 96: " is supported.)"
       RenderBlock {P} at (0,201) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -51,11 +51,11 @@ layer at (0,0) size 784x937
       RenderBlock {P} at (0,494) size 768x21
         RenderText {#text} at (0,0) size 565x21
           text run at (0,0) width 565: "This element should have no border and no extra \"padding\" on its right side, as no "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (565,5) size 96x14
-            text run at (565,5) width 96: "border-style"
-        RenderText {#text} at (661,0) size 56x21
-          text run at (661,0) width 56: " was set."
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (565,3) size 68x16
+            text run at (565,3) width 68: "border-style"
+        RenderText {#text} at (633,0) size 56x21
+          text run at (633,0) width 56: " was set."
       RenderTable {TABLE} at (0,531) size 768x390 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x388
           RenderTableRow {TR} at (0,0) size 766x29
@@ -71,11 +71,11 @@ layer at (0,0) size 784x937
               RenderBlock {P} at (4,4) size 746x21
                 RenderText {#text} at (0,0) size 163x21
                   text run at (0,0) width 163: "(These will only work if "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (163,5) size 96x14
-                    text run at (163,5) width 96: "border-style"
-                RenderText {#text} at (259,0) size 96x21
-                  text run at (259,0) width 96: " is supported.)"
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (163,3) size 68x16
+                    text run at (163,3) width 68: "border-style"
+                RenderText {#text} at (231,0) size 96x21
+                  text run at (231,0) width 96: " is supported.)"
               RenderBlock {P} at (4,41) size 746x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
@@ -98,8 +98,8 @@ layer at (0,0) size 784x937
               RenderBlock {P} at (4,334) size 746x21
                 RenderText {#text} at (0,0) size 565x21
                   text run at (0,0) width 565: "This element should have no border and no extra \"padding\" on its right side, as no "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (565,5) size 96x14
-                    text run at (565,5) width 96: "border-style"
-                RenderText {#text} at (661,0) size 56x21
-                  text run at (661,0) width 56: " was set."
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (565,3) size 68x16
+                    text run at (565,3) width 68: "border-style"
+                RenderText {#text} at (633,0) size 56x21
+                  text run at (633,0) width 56: " was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_right_width_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_right_width_inline-expected.txt
index fd3e594..c21c247 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_right_width_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_right_width_inline-expected.txt
@@ -7,31 +7,31 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 424x46
-          text run at (0,1) width 424: ".one {border-right-width: 25px; border-style: solid;}"
-          text run at (424,1) width 0: " "
-          text run at (0,17) width 424: ".two {border-right-width: thin; border-style: solid;}"
-          text run at (424,17) width 0: " "
-          text run at (0,33) width 272: ".three {border-right-width: 25px;}"
-          text run at (272,33) width 0: " "
+        RenderText {#text} at (0,0) size 287x48
+          text run at (0,0) width 287: ".one {border-right-width: 25px; border-style: solid;}"
+          text run at (287,0) width 0: " "
+          text run at (0,16) width 279: ".two {border-right-width: thin; border-style: solid;}"
+          text run at (279,16) width 0: " "
+          text run at (0,32) width 184: ".three {border-right-width: 25px;}"
+          text run at (184,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x90 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
         RenderText {#text} at (3,3) size 181x21
           text run at (3,3) width 181: "This element has a class of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (184,8) size 24x14
-            text run at (184,8) width 24: "one"
-        RenderText {#text} at (208,3) size 171x21
-          text run at (208,3) width 8: ". "
-          text run at (216,3) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 177x27 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
-          RenderText {#text} at (382,3) size 149x21
-            text run at (382,3) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (531,8) size 24x14
-              text run at (531,8) width 24: "two"
-        RenderText {#text} at (556,3) size 753x42
-          text run at (556,3) width 200: ", which should result in a thin"
+        RenderInline {TT} at (0,0) size 21x16
+          RenderText {#text} at (184,6) size 21x16
+            text run at (184,6) width 21: "one"
+        RenderText {#text} at (205,3) size 171x21
+          text run at (205,3) width 8: ". "
+          text run at (213,3) width 163: "However, it contains an "
+        RenderInline {SPAN} at (0,0) size 173x27 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+          RenderText {#text} at (379,3) size 149x21
+            text run at (379,3) width 149: "inline element of class "
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (528,6) size 20x16
+              text run at (528,6) width 20: "two"
+        RenderText {#text} at (549,3) size 746x42
+          text run at (549,3) width 200: ", which should result in a thin"
           text run at (3,24) width 241: "solid border on the right side of the "
         RenderInline {STRONG} at (0,0) size 23x21
           RenderText {#text} at (244,24) size 23x21
@@ -40,14 +40,14 @@ layer at (0,0) size 800x600
           text run at (267,24) width 454: " box of the inline element (and the UA's default border on the other"
           text run at (3,45) width 84: "three sides). "
           text run at (87,45) width 110: "There is also an "
-        RenderInline {SPAN} at (0,0) size 189x21
+        RenderInline {SPAN} at (0,0) size 178x21
           RenderText {#text} at (197,45) size 149x21
             text run at (197,45) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 40x14
-            RenderText {#text} at (346,50) size 40x14
-              text run at (346,50) width 40: "three"
-        RenderText {#text} at (386,45) size 734x42
-          text run at (386,45) width 351: ", which should have no right border width or visible"
+          RenderInline {TT} at (0,0) size 29x16
+            RenderText {#text} at (346,48) size 29x16
+              text run at (346,48) width 29: "three"
+        RenderText {#text} at (375,45) size 723x42
+          text run at (375,45) width 351: ", which should have no right border width or visible"
           text run at (3,66) width 266: "border because no border style was set."
       RenderTable {TABLE} at (0,222) size 784x129 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 782x127
@@ -64,20 +64,20 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,4) size 762x90 [border: (3px solid #000000) (25px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,3) size 181x21
                   text run at (3,3) width 181: "This element has a class of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (184,8) size 24x14
-                    text run at (184,8) width 24: "one"
-                RenderText {#text} at (208,3) size 171x21
-                  text run at (208,3) width 8: ". "
-                  text run at (216,3) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 177x27 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
-                  RenderText {#text} at (382,3) size 149x21
-                    text run at (382,3) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (531,8) size 24x14
-                      text run at (531,8) width 24: "two"
-                RenderText {#text} at (556,3) size 722x42
-                  text run at (556,3) width 169: ", which should result in a"
+                RenderInline {TT} at (0,0) size 21x16
+                  RenderText {#text} at (184,6) size 21x16
+                    text run at (184,6) width 21: "one"
+                RenderText {#text} at (205,3) size 171x21
+                  text run at (205,3) width 8: ". "
+                  text run at (213,3) width 163: "However, it contains an "
+                RenderInline {SPAN} at (0,0) size 173x27 [border: (3px solid #000000) (1px solid #000000) (3px solid #000000)]
+                  RenderText {#text} at (379,3) size 149x21
+                    text run at (379,3) width 149: "inline element of class "
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (528,6) size 20x16
+                      text run at (528,6) width 20: "two"
+                RenderText {#text} at (549,3) size 715x42
+                  text run at (549,3) width 169: ", which should result in a"
                   text run at (3,24) width 272: "thin solid border on the right side of the "
                 RenderInline {STRONG} at (0,0) size 23x21
                   RenderText {#text} at (275,24) size 23x21
@@ -86,12 +86,12 @@ layer at (0,0) size 800x600
                   text run at (298,24) width 414: " box of the inline element (and the UA's default border on the"
                   text run at (3,45) width 124: "other three sides). "
                   text run at (127,45) width 110: "There is also an "
-                RenderInline {SPAN} at (0,0) size 189x21
+                RenderInline {SPAN} at (0,0) size 178x21
                   RenderText {#text} at (237,45) size 149x21
                     text run at (237,45) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 40x14
-                    RenderText {#text} at (386,50) size 40x14
-                      text run at (386,50) width 40: "three"
-                RenderText {#text} at (426,45) size 728x42
-                  text run at (426,45) width 305: ", which should have no right border width or"
+                  RenderInline {TT} at (0,0) size 29x16
+                    RenderText {#text} at (386,48) size 29x16
+                      text run at (386,48) width 29: "three"
+                RenderText {#text} at (415,45) size 717x42
+                  text run at (415,45) width 305: ", which should have no right border width or"
                   text run at (3,66) width 312: "visible border because no border style was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_style-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_style-expected.txt
index a858cbf..50c44eb 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_style-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_style-expected.txt
@@ -7,31 +7,31 @@ layer at (0,0) size 784x1397
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x192
-        RenderText {#text} at (0,1) size 632x190
-          text run at (0,1) width 560: ".one {border-style: dotted; border-color: black; border-width: thick;}"
-          text run at (560,1) width 0: " "
-          text run at (0,17) width 560: ".two {border-style: dashed; border-color: black; border-width: thick;}"
-          text run at (560,17) width 0: " "
-          text run at (0,33) width 568: ".three {border-style: solid; border-color: black; border-width: thick;}"
-          text run at (568,33) width 0: " "
-          text run at (0,49) width 568: ".four {border-style: double; border-color: black; border-width: thick;}"
-          text run at (568,49) width 0: " "
-          text run at (0,65) width 568: ".five {border-style: groove; border-color: olive; border-width: thick;}"
-          text run at (568,65) width 0: " "
-          text run at (0,81) width 552: ".six {border-style: ridge; border-color: olive; border-width: thick;}"
-          text run at (552,81) width 0: " "
-          text run at (0,97) width 568: ".seven {border-style: inset; border-color: olive; border-width: thick;}"
-          text run at (568,97) width 0: " "
-          text run at (0,113) width 576: ".eight {border-style: outset; border-color: olive; border-width: thick;}"
-          text run at (576,113) width 0: " "
-          text run at (0,129) width 632: ".nine {border-style: double groove; border-color: purple; border-width: thick;}"
-          text run at (632,129) width 0: " "
-          text run at (0,145) width 368: ".ten {border-style: double groove ridge inset;"
-          text run at (368,145) width 0: " "
-          text run at (0,161) width 368: "   border-color: purple; border-width: thick;}"
-          text run at (368,161) width 0: " "
-          text run at (0,177) width 552: ".eleven {border-style: none; border-color: red; border-width: thick;}"
-          text run at (552,177) width 0: " "
+        RenderText {#text} at (0,0) size 434x192
+          text run at (0,0) width 382: ".one {border-style: dotted; border-color: black; border-width: thick;}"
+          text run at (382,0) width 0: " "
+          text run at (0,16) width 387: ".two {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (387,16) width 0: " "
+          text run at (0,32) width 381: ".three {border-style: solid; border-color: black; border-width: thick;}"
+          text run at (381,32) width 0: " "
+          text run at (0,48) width 385: ".four {border-style: double; border-color: black; border-width: thick;}"
+          text run at (385,48) width 0: " "
+          text run at (0,64) width 381: ".five {border-style: groove; border-color: olive; border-width: thick;}"
+          text run at (381,64) width 0: " "
+          text run at (0,80) width 366: ".six {border-style: ridge; border-color: olive; border-width: thick;}"
+          text run at (366,80) width 0: " "
+          text run at (0,96) width 384: ".seven {border-style: inset; border-color: olive; border-width: thick;}"
+          text run at (384,96) width 0: " "
+          text run at (0,112) width 385: ".eight {border-style: outset; border-color: olive; border-width: thick;}"
+          text run at (385,112) width 0: " "
+          text run at (0,128) width 434: ".nine {border-style: double groove; border-color: purple; border-width: thick;}"
+          text run at (434,128) width 0: " "
+          text run at (0,144) width 255: ".ten {border-style: double groove ridge inset;"
+          text run at (255,144) width 0: " "
+          text run at (0,160) width 245: "   border-color: purple; border-width: thick;}"
+          text run at (245,160) width 0: " "
+          text run at (0,176) width 378: ".eleven {border-style: none; border-color: red; border-width: thick;}"
+          text run at (378,176) width 0: " "
       RenderBlock {HR} at (0,242) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,260) size 768x31 [border: (5px dotted #000000)]
         RenderText {#text} at (5,5) size 516x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_style_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_style_inline-expected.txt
index de5ec3a..4b73658 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_style_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_style_inline-expected.txt
@@ -7,13 +7,13 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 568x46
-          text run at (0,1) width 560: ".one {border-style: dashed; border-color: black; border-width: thick;}"
-          text run at (560,1) width 0: " "
-          text run at (0,17) width 544: ".two {border-style: groove; border-color: red; border-width: thick;}"
-          text run at (544,17) width 0: " "
-          text run at (0,33) width 568: ".three {border-style: none; border-color: purple; border-width: thick;}"
-          text run at (568,33) width 0: " "
+        RenderText {#text} at (0,0) size 388x48
+          text run at (0,0) width 388: ".one {border-style: dashed; border-color: black; border-width: thick;}"
+          text run at (388,0) width 0: " "
+          text run at (0,16) width 371: ".two {border-style: groove; border-color: red; border-width: thick;}"
+          text run at (371,16) width 0: " "
+          text run at (0,32) width 386: ".three {border-style: none; border-color: purple; border-width: thick;}"
+          text run at (386,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x84 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 706x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_top-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_top-expected.txt
index 46b6794..cce3755 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_top-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_top-expected.txt
@@ -7,15 +7,15 @@ layer at (0,0) size 784x1053
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 320x62
-          text run at (0,1) width 304: ".one {border-top: purple double 10px;}"
-          text run at (304,1) width 0: " "
-          text run at (0,17) width 296: ".two {border-top: purple thin solid;}"
-          text run at (296,17) width 0: " "
-          text run at (0,33) width 320: ".three {border-top: black medium solid;}"
-          text run at (320,33) width 0: " "
-          text run at (0,49) width 264: "TD {border-top: green 2px solid;}"
-          text run at (264,49) width 0: " "
+        RenderText {#text} at (0,0) size 227x64
+          text run at (0,0) width 216: ".one {border-top: purple double 10px;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 197: ".two {border-top: purple thin solid;}"
+          text run at (197,16) width 0: " "
+          text run at (0,32) width 227: ".three {border-top: black medium solid;}"
+          text run at (227,32) width 0: " "
+          text run at (0,48) width 187: "TD {border-top: green 2px solid;}"
+          text run at (187,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x42
         RenderText {#text} at (0,0) size 756x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_top_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_top_inline-expected.txt
index f713fb0..d899a9b 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_top_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_top_inline-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 304x46
-          text run at (0,1) width 304: ".one {border-top: purple double 10px;}"
-          text run at (304,1) width 0: " "
-          text run at (0,17) width 296: ".two {border-top: purple thin solid;}"
-          text run at (296,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 216x48
+          text run at (0,0) width 216: ".one {border-top: purple double 10px;}"
+          text run at (216,0) width 0: " "
+          text run at (0,16) width 197: ".two {border-top: purple thin solid;}"
+          text run at (197,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x63 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 708x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_top_width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_top_width-expected.txt
index 96acde3..b9fe1a9 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_top_width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_top_width-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x813
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 440x94
-          text run at (0,1) width 432: ".zero {background-color: silver; border-top-width: 0;}"
-          text run at (432,1) width 0: " "
-          text run at (0,17) width 408: ".one {border-top-width: 25px; border-style: solid;}"
-          text run at (408,17) width 0: " "
-          text run at (0,33) width 416: ".two {border-top-width: thick; border-style: solid;}"
-          text run at (416,33) width 0: " "
-          text run at (0,49) width 440: ".three {border-top-width: medium; border-style: solid;}"
-          text run at (440,49) width 0: " "
-          text run at (0,65) width 416: ".four {border-top-width: thin; border-style: solid;}"
-          text run at (416,65) width 0: " "
-          text run at (0,81) width 248: ".five {border-top-width: 25px;}"
-          text run at (248,81) width 0: " "
+        RenderText {#text} at (0,0) size 306x96
+          text run at (0,0) width 298: ".zero {background-color: silver; border-top-width: 0;}"
+          text run at (298,0) width 0: " "
+          text run at (0,16) width 280: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (280,16) width 0: " "
+          text run at (0,32) width 279: ".two {border-top-width: thick; border-style: solid;}"
+          text run at (279,32) width 0: " "
+          text run at (0,48) width 306: ".three {border-top-width: medium; border-style: solid;}"
+          text run at (306,48) width 0: " "
+          text run at (0,64) width 274: ".four {border-top-width: thin; border-style: solid;}"
+          text run at (274,64) width 0: " "
+          text run at (0,80) width 169: ".five {border-top-width: 25px;}"
+          text run at (169,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 163x21
           text run at (0,0) width 163: "(These will only work if "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (163,5) size 96x14
-            text run at (163,5) width 96: "border-style"
-        RenderText {#text} at (259,0) size 96x21
-          text run at (259,0) width 96: " is supported.)"
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (163,3) size 68x16
+            text run at (163,3) width 68: "border-style"
+        RenderText {#text} at (231,0) size 96x21
+          text run at (231,0) width 96: " is supported.)"
       RenderBlock {P} at (0,201) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -47,51 +47,51 @@ layer at (0,0) size 784x813
       RenderBlock {P} at (0,432) size 768x21
         RenderText {#text} at (0,0) size 575x21
           text run at (0,0) width 575: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (575,5) size 96x14
-            text run at (575,5) width 96: "border-style"
-        RenderText {#text} at (671,0) size 56x21
-          text run at (671,0) width 56: " was set."
-      RenderTable {TABLE} at (0,469) size 749x328 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 747x326
-          RenderTableRow {TR} at (0,0) size 747x29
-            RenderTableCell {TD} at (0,0) size 747x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (575,3) size 68x16
+            text run at (575,3) width 68: "border-style"
+        RenderText {#text} at (643,0) size 56x21
+          text run at (643,0) width 56: " was set."
+      RenderTable {TABLE} at (0,469) size 721x328 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 719x326
+          RenderTableRow {TR} at (0,0) size 719x29
+            RenderTableCell {TD} at (0,0) size 719x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 747x297
+          RenderTableRow {TR} at (0,29) size 719x297
             RenderTableCell {TD} at (0,163) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 735x297 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {P} at (4,4) size 727x21
+            RenderTableCell {TD} at (12,29) size 707x297 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {P} at (4,4) size 699x21
                 RenderText {#text} at (0,0) size 163x21
                   text run at (0,0) width 163: "(These will only work if "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (163,5) size 96x14
-                    text run at (163,5) width 96: "border-style"
-                RenderText {#text} at (259,0) size 96x21
-                  text run at (259,0) width 96: " is supported.)"
-              RenderBlock {P} at (4,41) size 727x21 [bgcolor=#C0C0C0]
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (163,3) size 68x16
+                    text run at (163,3) width 68: "border-style"
+                RenderText {#text} at (231,0) size 96x21
+                  text run at (231,0) width 96: " is supported.)"
+              RenderBlock {P} at (4,41) size 699x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
-              RenderBlock {P} at (4,78) size 727x49 [border: (25px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,78) size 699x49 [border: (25px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,25) size 407x21
                   text run at (3,25) width 407: "This paragraph should have a top border width of 25 pixels."
-              RenderBlock {P} at (4,143) size 727x29 [border: (5px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,143) size 699x29 [border: (5px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,5) size 366x21
                   text run at (3,5) width 366: "This paragraph should have a thick top border width."
-              RenderBlock {P} at (4,188) size 727x27 [border: (3px solid #000000)]
+              RenderBlock {P} at (4,188) size 699x27 [border: (3px solid #000000)]
                 RenderText {#text} at (3,3) size 387x21
                   text run at (3,3) width 387: "This paragraph should have a medium top border width."
-              RenderBlock {P} at (4,231) size 727x25 [border: (1px solid #000000) (3px solid #000000)]
+              RenderBlock {P} at (4,231) size 699x25 [border: (1px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,1) size 359x21
                   text run at (3,1) width 359: "This paragraph should have a thin top border width."
-              RenderBlock {P} at (4,272) size 727x21
+              RenderBlock {P} at (4,272) size 699x21
                 RenderText {#text} at (0,0) size 575x21
                   text run at (0,0) width 575: "This paragraph should have no border and no extra \"padding\" on its top side, as no "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (575,5) size 96x14
-                    text run at (575,5) width 96: "border-style"
-                RenderText {#text} at (671,0) size 56x21
-                  text run at (671,0) width 56: " was set."
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (575,3) size 68x16
+                    text run at (575,3) width 68: "border-style"
+                RenderText {#text} at (643,0) size 56x21
+                  text run at (643,0) width 56: " was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_top_width_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_top_width_inline-expected.txt
index 76b1d2e..6928236 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_top_width_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_top_width_inline-expected.txt
@@ -7,41 +7,41 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 408x46
-          text run at (0,1) width 408: ".one {border-top-width: 25px; border-style: solid;}"
-          text run at (408,1) width 0: " "
-          text run at (0,17) width 408: ".two {border-top-width: thin; border-style: solid;}"
-          text run at (408,17) width 0: " "
-          text run at (0,33) width 256: ".three {border-top-width: 25px;}"
-          text run at (256,33) width 0: " "
+        RenderText {#text} at (0,0) size 280x48
+          text run at (0,0) width 280: ".one {border-top-width: 25px; border-style: solid;}"
+          text run at (280,0) width 0: " "
+          text run at (0,16) width 272: ".two {border-top-width: thin; border-style: solid;}"
+          text run at (272,16) width 0: " "
+          text run at (0,32) width 177: ".three {border-top-width: 25px;}"
+          text run at (177,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x112 [border: (25px solid #000000) (3px solid #000000)]
         RenderText {#text} at (3,25) size 181x21
           text run at (3,25) width 181: "This element has a class of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (184,30) size 24x14
-            text run at (184,30) width 24: "one"
-        RenderText {#text} at (208,25) size 171x21
-          text run at (208,25) width 8: ". "
-          text run at (216,25) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 179x25 [border: (1px solid #000000) (3px solid #000000)]
-          RenderText {#text} at (382,25) size 149x21
-            text run at (382,25) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (531,30) size 24x14
-              text run at (531,30) width 24: "two"
-        RenderText {#text} at (558,25) size 774x63
-          text run at (558,25) width 200: ", which should result in a thin"
+        RenderInline {TT} at (0,0) size 21x16
+          RenderText {#text} at (184,28) size 21x16
+            text run at (184,28) width 21: "one"
+        RenderText {#text} at (205,25) size 171x21
+          text run at (205,25) width 8: ". "
+          text run at (213,25) width 163: "However, it contains an "
+        RenderInline {SPAN} at (0,0) size 175x25 [border: (1px solid #000000) (3px solid #000000)]
+          RenderText {#text} at (379,25) size 149x21
+            text run at (379,25) width 149: "inline element of class "
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (528,28) size 20x16
+              text run at (528,28) width 20: "two"
+        RenderText {#text} at (551,25) size 774x63
+          text run at (551,25) width 200: ", which should result in a thin"
           text run at (3,46) width 774: "solid border on the top side of each box in the inline element (and the UA's default border on the other three sides)."
           text run at (3,67) width 110: "There is also an "
-        RenderInline {SPAN} at (0,0) size 189x21
+        RenderInline {SPAN} at (0,0) size 178x21
           RenderText {#text} at (113,67) size 149x21
             text run at (113,67) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 40x14
-            RenderText {#text} at (262,72) size 40x14
-              text run at (262,72) width 40: "three"
-        RenderText {#text} at (302,67) size 768x42
-          text run at (302,67) width 469: ", which should have no top border width or visible border because no"
+          RenderInline {TT} at (0,0) size 29x16
+            RenderText {#text} at (262,70) size 29x16
+              text run at (262,70) width 29: "three"
+        RenderText {#text} at (291,67) size 757x42
+          text run at (291,67) width 469: ", which should have no top border width or visible border because no"
           text run at (3,88) width 137: "border style was set."
       RenderTable {TABLE} at (0,244) size 784x151 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 782x149
@@ -58,29 +58,29 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,4) size 762x112 [border: (25px solid #000000) (3px solid #000000)]
                 RenderText {#text} at (3,25) size 181x21
                   text run at (3,25) width 181: "This element has a class of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (184,30) size 24x14
-                    text run at (184,30) width 24: "one"
-                RenderText {#text} at (208,25) size 171x21
-                  text run at (208,25) width 8: ". "
-                  text run at (216,25) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 179x25 [border: (1px solid #000000) (3px solid #000000)]
-                  RenderText {#text} at (382,25) size 149x21
-                    text run at (382,25) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (531,30) size 24x14
-                      text run at (531,30) width 24: "two"
-                RenderText {#text} at (558,25) size 755x63
-                  text run at (558,25) width 200: ", which should result in a thin"
+                RenderInline {TT} at (0,0) size 21x16
+                  RenderText {#text} at (184,28) size 21x16
+                    text run at (184,28) width 21: "one"
+                RenderText {#text} at (205,25) size 171x21
+                  text run at (205,25) width 8: ". "
+                  text run at (213,25) width 163: "However, it contains an "
+                RenderInline {SPAN} at (0,0) size 175x25 [border: (1px solid #000000) (3px solid #000000)]
+                  RenderText {#text} at (379,25) size 149x21
+                    text run at (379,25) width 149: "inline element of class "
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (528,28) size 20x16
+                      text run at (528,28) width 20: "two"
+                RenderText {#text} at (551,25) size 748x63
+                  text run at (551,25) width 200: ", which should result in a thin"
                   text run at (3,46) width 729: "solid border on the top side of each box in the inline element (and the UA's default border on the other three"
                   text run at (3,67) width 45: "sides). "
                   text run at (48,67) width 110: "There is also an "
-                RenderInline {SPAN} at (0,0) size 189x21
+                RenderInline {SPAN} at (0,0) size 178x21
                   RenderText {#text} at (158,67) size 149x21
                     text run at (158,67) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 40x14
-                    RenderText {#text} at (307,72) size 40x14
-                      text run at (307,72) width 40: "three"
-                RenderText {#text} at (347,67) size 735x42
-                  text run at (347,67) width 391: ", which should have no top border width or visible border"
+                  RenderInline {TT} at (0,0) size 29x16
+                    RenderText {#text} at (307,70) size 29x16
+                      text run at (307,70) width 29: "three"
+                RenderText {#text} at (336,67) size 724x42
+                  text run at (336,67) width 391: ", which should have no top border width or visible border"
                   text run at (3,88) width 215: "because no border style was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_width-expected.txt
index 02335bb..3c673d8 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_width-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x957
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 408x94
-          text run at (0,1) width 400: ".zero {background-color: silver; border-width: 0;}"
-          text run at (400,1) width 0: " "
-          text run at (0,17) width 376: ".one {border-width: 50px; border-style: solid;}"
-          text run at (376,17) width 0: " "
-          text run at (0,33) width 384: ".two {border-width: thick; border-style: solid;}"
-          text run at (384,33) width 0: " "
-          text run at (0,49) width 408: ".three {border-width: medium; border-style: solid;}"
-          text run at (408,49) width 0: " "
-          text run at (0,65) width 384: ".four {border-width: thin; border-style: solid;}"
-          text run at (384,65) width 0: " "
-          text run at (0,81) width 216: ".five {border-width: 25px;}"
-          text run at (216,81) width 0: " "
+        RenderText {#text} at (0,0) size 284x96
+          text run at (0,0) width 276: ".zero {background-color: silver; border-width: 0;}"
+          text run at (276,0) width 0: " "
+          text run at (0,16) width 258: ".one {border-width: 50px; border-style: solid;}"
+          text run at (258,16) width 0: " "
+          text run at (0,32) width 257: ".two {border-width: thick; border-style: solid;}"
+          text run at (257,32) width 0: " "
+          text run at (0,48) width 284: ".three {border-width: medium; border-style: solid;}"
+          text run at (284,48) width 0: " "
+          text run at (0,64) width 252: ".four {border-width: thin; border-style: solid;}"
+          text run at (252,64) width 0: " "
+          text run at (0,80) width 147: ".five {border-width: 25px;}"
+          text run at (147,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 163x21
           text run at (0,0) width 163: "(These will only work if "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (163,5) size 96x14
-            text run at (163,5) width 96: "border-style"
-        RenderText {#text} at (259,0) size 96x21
-          text run at (259,0) width 96: " is supported.)"
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (163,3) size 68x16
+            text run at (163,3) width 68: "border-style"
+        RenderText {#text} at (231,0) size 96x21
+          text run at (231,0) width 96: " is supported.)"
       RenderBlock {P} at (0,201) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -47,51 +47,51 @@ layer at (0,0) size 784x957
       RenderBlock {P} at (0,504) size 768x21
         RenderText {#text} at (0,0) size 538x21
           text run at (0,0) width 538: "This element should have no border and no extra \"padding\" on any side, as no "
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (538,5) size 96x14
-            text run at (538,5) width 96: "border-style"
-        RenderText {#text} at (634,0) size 56x21
-          text run at (634,0) width 56: " was set."
-      RenderTable {TABLE} at (0,541) size 712x400 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 710x398
-          RenderTableRow {TR} at (0,0) size 710x29
-            RenderTableCell {TD} at (0,0) size 710x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+        RenderInline {CODE} at (0,0) size 68x16
+          RenderText {#text} at (538,3) size 68x16
+            text run at (538,3) width 68: "border-style"
+        RenderText {#text} at (606,0) size 56x21
+          text run at (606,0) width 56: " was set."
+      RenderTable {TABLE} at (0,541) size 684x400 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 682x398
+          RenderTableRow {TR} at (0,0) size 682x29
+            RenderTableCell {TD} at (0,0) size 682x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 710x369
+          RenderTableRow {TR} at (0,29) size 682x369
             RenderTableCell {TD} at (0,199) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 698x369 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {P} at (4,4) size 690x21
+            RenderTableCell {TD} at (12,29) size 670x369 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {P} at (4,4) size 662x21
                 RenderText {#text} at (0,0) size 163x21
                   text run at (0,0) width 163: "(These will only work if "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (163,5) size 96x14
-                    text run at (163,5) width 96: "border-style"
-                RenderText {#text} at (259,0) size 96x21
-                  text run at (259,0) width 96: " is supported.)"
-              RenderBlock {P} at (4,41) size 690x21 [bgcolor=#C0C0C0]
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (163,3) size 68x16
+                    text run at (163,3) width 68: "border-style"
+                RenderText {#text} at (231,0) size 96x21
+                  text run at (231,0) width 96: " is supported.)"
+              RenderBlock {P} at (4,41) size 662x21 [bgcolor=#C0C0C0]
                 RenderText {#text} at (0,0) size 214x21
                   text run at (0,0) width 214: "This element has a class of zero."
-              RenderBlock {P} at (4,78) size 690x121 [border: (50px solid #000000)]
+              RenderBlock {P} at (4,78) size 662x121 [border: (50px solid #000000)]
                 RenderText {#text} at (50,50) size 419x21
                   text run at (50,50) width 419: "This element should have an overall border width of 50 pixels."
-              RenderBlock {P} at (4,215) size 690x31 [border: (5px solid #000000)]
+              RenderBlock {P} at (4,215) size 662x31 [border: (5px solid #000000)]
                 RenderText {#text} at (5,5) size 369x21
                   text run at (5,5) width 369: "This element should have a thick overall border width."
-              RenderBlock {P} at (4,262) size 690x27 [border: (3px solid #000000)]
+              RenderBlock {P} at (4,262) size 662x27 [border: (3px solid #000000)]
                 RenderText {#text} at (3,3) size 390x21
                   text run at (3,3) width 390: "This element should have a medium overall border width."
-              RenderBlock {P} at (4,305) size 690x23 [border: (1px solid #000000)]
+              RenderBlock {P} at (4,305) size 662x23 [border: (1px solid #000000)]
                 RenderText {#text} at (1,1) size 362x21
                   text run at (1,1) width 362: "This element should have a thin overall border width."
-              RenderBlock {P} at (4,344) size 690x21
+              RenderBlock {P} at (4,344) size 662x21
                 RenderText {#text} at (0,0) size 538x21
                   text run at (0,0) width 538: "This element should have no border and no extra \"padding\" on any side, as no "
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (538,5) size 96x14
-                    text run at (538,5) width 96: "border-style"
-                RenderText {#text} at (634,0) size 56x21
-                  text run at (634,0) width 56: " was set."
+                RenderInline {CODE} at (0,0) size 68x16
+                  RenderText {#text} at (538,3) size 68x16
+                    text run at (538,3) width 68: "border-style"
+                RenderText {#text} at (606,0) size 56x21
+                  text run at (606,0) width 56: " was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/border_width_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/border_width_inline-expected.txt
index 6abf029..909ed47 100644
--- a/LayoutTests/platform/qt/css1/box_properties/border_width_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/border_width_inline-expected.txt
@@ -7,41 +7,41 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 376x46
-          text run at (0,1) width 376: ".one {border-width: 25px; border-style: solid;}"
-          text run at (376,1) width 0: " "
-          text run at (0,17) width 376: ".two {border-width: thin; border-style: solid;}"
-          text run at (376,17) width 0: " "
-          text run at (0,33) width 224: ".three {border-width: 25px;}"
-          text run at (224,33) width 0: " "
+        RenderText {#text} at (0,0) size 258x48
+          text run at (0,0) width 258: ".one {border-width: 25px; border-style: solid;}"
+          text run at (258,0) width 0: " "
+          text run at (0,16) width 250: ".two {border-width: thin; border-style: solid;}"
+          text run at (250,16) width 0: " "
+          text run at (0,32) width 155: ".three {border-width: 25px;}"
+          text run at (155,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x113 [border: (25px solid #000000)]
         RenderText {#text} at (25,25) size 181x21
           text run at (25,25) width 181: "This element has a class of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (206,30) size 24x14
-            text run at (206,30) width 24: "one"
-        RenderText {#text} at (230,25) size 171x21
-          text run at (230,25) width 8: ". "
-          text run at (238,25) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 175x23 [border: (1px solid #000000)]
-          RenderText {#text} at (402,25) size 149x21
-            text run at (402,25) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (551,30) size 24x14
-              text run at (551,30) width 24: "two"
-        RenderText {#text} at (576,25) size 720x42
-          text run at (576,25) width 169: ", which should result in a"
+        RenderInline {TT} at (0,0) size 21x16
+          RenderText {#text} at (206,28) size 21x16
+            text run at (206,28) width 21: "one"
+        RenderText {#text} at (227,25) size 171x21
+          text run at (227,25) width 8: ". "
+          text run at (235,25) width 163: "However, it contains an "
+        RenderInline {SPAN} at (0,0) size 171x23 [border: (1px solid #000000)]
+          RenderText {#text} at (399,25) size 149x21
+            text run at (399,25) width 149: "inline element of class "
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (548,28) size 20x16
+              text run at (548,28) width 20: "two"
+        RenderText {#text} at (569,25) size 713x42
+          text run at (569,25) width 169: ", which should result in a"
           text run at (25,46) width 427: "thin solid border on each side of each box in the inline element. "
           text run at (452,46) width 110: "There is also an "
-        RenderInline {SPAN} at (0,0) size 189x21
+        RenderInline {SPAN} at (0,0) size 178x21
           RenderText {#text} at (562,46) size 149x21
             text run at (562,46) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 40x14
-            RenderText {#text} at (711,51) size 40x14
-              text run at (711,51) width 40: "three"
-        RenderText {#text} at (751,46) size 730x42
-          text run at (751,46) width 4: ","
+          RenderInline {TT} at (0,0) size 29x16
+            RenderText {#text} at (711,49) size 29x16
+              text run at (711,49) width 29: "three"
+        RenderText {#text} at (740,46) size 719x42
+          text run at (740,46) width 4: ","
           text run at (25,67) width 460: "which should have no border width because no border style was set."
       RenderTable {TABLE} at (0,245) size 784x152 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 782x150
@@ -58,27 +58,27 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,4) size 762x113 [border: (25px solid #000000)]
                 RenderText {#text} at (25,25) size 181x21
                   text run at (25,25) width 181: "This element has a class of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (206,30) size 24x14
-                    text run at (206,30) width 24: "one"
-                RenderText {#text} at (230,25) size 171x21
-                  text run at (230,25) width 8: ". "
-                  text run at (238,25) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 175x23 [border: (1px solid #000000)]
-                  RenderText {#text} at (402,25) size 149x21
-                    text run at (402,25) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (551,30) size 24x14
-                      text run at (551,30) width 24: "two"
-                RenderText {#text} at (576,25) size 708x42
-                  text run at (576,25) width 157: ", which should result in"
+                RenderInline {TT} at (0,0) size 21x16
+                  RenderText {#text} at (206,28) size 21x16
+                    text run at (206,28) width 21: "one"
+                RenderText {#text} at (227,25) size 171x21
+                  text run at (227,25) width 8: ". "
+                  text run at (235,25) width 163: "However, it contains an "
+                RenderInline {SPAN} at (0,0) size 171x23 [border: (1px solid #000000)]
+                  RenderText {#text} at (399,25) size 149x21
+                    text run at (399,25) width 149: "inline element of class "
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (548,28) size 20x16
+                      text run at (548,28) width 20: "two"
+                RenderText {#text} at (569,25) size 701x42
+                  text run at (569,25) width 157: ", which should result in"
                   text run at (25,46) width 439: "a thin solid border on each side of each box in the inline element. "
                   text run at (464,46) width 110: "There is also an "
                 RenderInline {SPAN} at (0,0) size 694x42
                   RenderText {#text} at (574,46) size 145x21
                     text run at (574,46) width 145: "inline element of class"
-                  RenderInline {TT} at (0,0) size 40x14
-                    RenderText {#text} at (25,72) size 40x14
-                      text run at (25,72) width 40: "three"
-                RenderText {#text} at (65,67) size 468x21
-                  text run at (65,67) width 468: ", which should have no border width because no border style was set."
+                  RenderInline {TT} at (0,0) size 29x16
+                    RenderText {#text} at (25,70) size 29x16
+                      text run at (25,70) width 29: "three"
+                RenderText {#text} at (54,67) size 468x21
+                  text run at (54,67) width 468: ", which should have no border width because no border style was set."
diff --git a/LayoutTests/platform/qt/css1/box_properties/clear-expected.txt b/LayoutTests/platform/qt/css1/box_properties/clear-expected.txt
index 513d33b..8670bf8 100644
--- a/LayoutTests/platform/qt/css1/box_properties/clear-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/clear-expected.txt
@@ -7,15 +7,15 @@ layer at (0,0) size 784x1025
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 168x62
-          text run at (0,1) width 152: ".one {clear: left;}"
-          text run at (152,1) width 0: " "
-          text run at (0,17) width 160: ".two {clear: right;}"
-          text run at (160,17) width 0: " "
-          text run at (0,33) width 168: ".three {clear: both;}"
-          text run at (168,33) width 0: " "
-          text run at (0,49) width 160: ".four {clear: none;}"
-          text run at (160,49) width 0: " "
+        RenderText {#text} at (0,0) size 110x64
+          text run at (0,0) width 95: ".one {clear: left;}"
+          text run at (95,0) width 0: " "
+          text run at (0,16) width 101: ".two {clear: right;}"
+          text run at (101,16) width 0: " "
+          text run at (0,32) width 110: ".three {clear: both;}"
+          text run at (110,32) width 0: " "
+          text run at (0,48) width 106: ".four {clear: none;}"
+          text run at (106,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderImage {IMG} at (0,124) size 15x50
       RenderBlock {P} at (0,132) size 768x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/clear_float-expected.txt b/LayoutTests/platform/qt/css1/box_properties/clear_float-expected.txt
index 5742641..ee384de 100644
--- a/LayoutTests/platform/qt/css1/box_properties/clear_float-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/clear_float-expected.txt
@@ -7,23 +7,23 @@ layer at (0,0) size 784x918
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,34) size 768x144
-        RenderText {#text} at (0,1) size 616x142
-          text run at (0,1) width 392: "P { margin: 0; padding: 0; text-align:  justify;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 0: " "
-          text run at (0,33) width 384: "DIV.menu {float: left; clear: left; width: 11em;"
-          text run at (384,33) width 0: " "
-          text run at (0,49) width 464: "          margin: 0; margin-bottom: 10px; padding: 0.5em;}"
-          text run at (464,49) width 0: " "
-          text run at (0,65) width 432: "DIV.menu H1 {font-size: 1.2em; margin: 0; padding: 0;}"
-          text run at (432,65) width 0: " "
-          text run at (0,81) width 448: "DIV.menu UL {margin: 0.2em 0.3em 0.2em 1em; padding: 0;}"
-          text run at (448,81) width 0: " "
-          text run at (0,97) width 616: "DIV.article {padding: 0.5em; margin: 0; margin-left: 14em; margin-right: 2em;"
-          text run at (616,97) width 0: " "
-          text run at (0,113) width 480: "             color: black; background: yellow; clear: none;}"
-          text run at (480,113) width 0: " "
-          text run at (0,129) width 0: " "
+        RenderText {#text} at (0,0) size 442x144
+          text run at (0,0) width 259: "P { margin: 0; padding: 0; text-align:  justify;}"
+          text run at (259,0) width 0: " "
+          text run at (0,16) width 0: " "
+          text run at (0,32) width 261: "DIV.menu {float: left; clear: left; width: 11em;"
+          text run at (261,32) width 0: " "
+          text run at (0,48) width 326: "          margin: 0; margin-bottom: 10px; padding: 0.5em;}"
+          text run at (326,48) width 0: " "
+          text run at (0,64) width 318: "DIV.menu H1 {font-size: 1.2em; margin: 0; padding: 0;}"
+          text run at (318,64) width 0: " "
+          text run at (0,80) width 354: "DIV.menu UL {margin: 0.2em 0.3em 0.2em 1em; padding: 0;}"
+          text run at (354,80) width 0: " "
+          text run at (0,96) width 442: "DIV.article {padding: 0.5em; margin: 0; margin-left: 14em; margin-right: 2em;"
+          text run at (442,96) width 0: " "
+          text run at (0,112) width 318: "             color: black; background: yellow; clear: none;}"
+          text run at (318,112) width 0: " "
+          text run at (0,128) width 0: " "
       RenderBlock {HR} at (0,191) size 768x2 [border: (1px inset #000000)]
       RenderBlock (floating) {DIV} at (0,201) size 192x131 [color=#FFFFFF] [bgcolor=#008000]
         RenderBlock {H1} at (8,8) size 176x25
diff --git a/LayoutTests/platform/qt/css1/box_properties/float-expected.txt b/LayoutTests/platform/qt/css1/box_properties/float-expected.txt
index 65be663..3c19659 100644
--- a/LayoutTests/platform/qt/css1/box_properties/float-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/float-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 160x46
-          text run at (0,1) width 152: ".one {float: left;}"
-          text run at (152,1) width 0: " "
-          text run at (0,17) width 160: ".two {float: right;}"
-          text run at (160,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 98x48
+          text run at (0,0) width 92: ".one {float: left;}"
+          text run at (92,0) width 0: " "
+          text run at (0,16) width 98: ".two {float: right;}"
+          text run at (98,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderImage {IMG} at (0,108) size 15x50
       RenderBlock {P} at (0,116) size 784x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/float_elements_in_series-expected.txt b/LayoutTests/platform/qt/css1/box_properties/float_elements_in_series-expected.txt
index 33f17d8..191f995 100644
--- a/LayoutTests/platform/qt/css1/box_properties/float_elements_in_series-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/float_elements_in_series-expected.txt
@@ -7,31 +7,31 @@ layer at (0,0) size 784x740
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,34) size 768x208
-        RenderText {#text} at (0,1) size 512x206
-          text run at (0,1) width 392: "P { margin: 0; padding: 0; text-align:  justify;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 0: " "
-          text run at (0,33) width 336: "DIV.yellow, DIV.blue, DIV.red, DIV.green {"
-          text run at (336,33) width 0: " "
-          text run at (0,49) width 336: " width: 60px; padding: 20px; margin: 10px;"
-          text run at (336,49) width 0: " "
-          text run at (0,65) width 472: " border: 20px solid black; float: left; text-align: center;"
-          text run at (472,65) width 0: " "
-          text run at (0,81) width 360: " font-family: \"Times New Roman\",Times,serif;}"
-          text run at (360,81) width 0: " "
-          text run at (0,97) width 512: "DIV.yellow {margin-left: 0px; background: yellow; color: black;}"
-          text run at (512,97) width 0: " "
-          text run at (0,113) width 336: "DIV.blue {background: blue; color: white;}"
-          text run at (336,113) width 0: " "
-          text run at (0,129) width 320: "DIV.red {background: red; color: black;}"
-          text run at (320,129) width 0: " "
-          text run at (0,145) width 352: "DIV.green {background: green; color: white;}"
-          text run at (352,145) width 0: " "
-          text run at (0,161) width 192: "DIV.below {clear: both;}"
-          text run at (192,161) width 0: " "
-          text run at (0,177) width 200: "TABLE {margin: 20px 0px;}"
-          text run at (200,177) width 0: " "
-          text run at (0,193) width 0: " "
+        RenderText {#text} at (0,0) size 362x208
+          text run at (0,0) width 259: "P { margin: 0; padding: 0; text-align:  justify;}"
+          text run at (259,0) width 0: " "
+          text run at (0,16) width 0: " "
+          text run at (0,32) width 246: "DIV.yellow, DIV.blue, DIV.red, DIV.green {"
+          text run at (246,32) width 0: " "
+          text run at (0,48) width 246: " width: 60px; padding: 20px; margin: 10px;"
+          text run at (246,48) width 0: " "
+          text run at (0,64) width 310: " border: 20px solid black; float: left; text-align: center;"
+          text run at (310,64) width 0: " "
+          text run at (0,80) width 270: " font-family: \"Times New Roman\",Times,serif;}"
+          text run at (270,80) width 0: " "
+          text run at (0,96) width 362: "DIV.yellow {margin-left: 0px; background: yellow; color: black;}"
+          text run at (362,96) width 0: " "
+          text run at (0,112) width 239: "DIV.blue {background: blue; color: white;}"
+          text run at (239,112) width 0: " "
+          text run at (0,128) width 228: "DIV.red {background: red; color: black;}"
+          text run at (228,128) width 0: " "
+          text run at (0,144) width 255: "DIV.green {background: green; color: white;}"
+          text run at (255,144) width 0: " "
+          text run at (0,160) width 136: "DIV.below {clear: both;}"
+          text run at (136,160) width 0: " "
+          text run at (0,176) width 158: "TABLE {margin: 20px 0px;}"
+          text run at (158,176) width 0: " "
+          text run at (0,192) width 0: " "
       RenderBlock {HR} at (0,255) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,265) size 768x42
         RenderText {#text} at (0,0) size 768x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/float_margin-expected.txt b/LayoutTests/platform/qt/css1/box_properties/float_margin-expected.txt
index d21177e..5ea7678 100644
--- a/LayoutTests/platform/qt/css1/box_properties/float_margin-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/float_margin-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 784x2259
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x144
-        RenderText {#text} at (0,1) size 560x142
-          text run at (0,1) width 344: "P.test {background: white; font-size: 20px;"
-          text run at (344,1) width 0: " "
-          text run at (0,17) width 560: "        margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}"
-          text run at (560,17) width 0: " "
-          text run at (0,33) width 312: "IMG {padding: 0; border: 0; margin: 0;}"
-          text run at (312,33) width 0: " "
-          text run at (0,49) width 200: "P.test IMG {float: left;}"
-          text run at (200,49) width 0: " "
-          text run at (0,65) width 352: "#img2 {margin-top: 30px; margin-left: 30px;}"
-          text run at (352,65) width 0: " "
-          text run at (0,81) width 368: "#img3 {margin-top: -30px; margin-left: -30px;}"
-          text run at (368,81) width 0: " "
-          text run at (0,97) width 384: "#img4 {margin-right: 30px; margin-bottom: 30px;}"
-          text run at (384,97) width 0: " "
-          text run at (0,113) width 400: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
-          text run at (400,113) width 0: " "
-          text run at (0,129) width 0: " "
+        RenderText {#text} at (0,0) size 376x144
+          text run at (0,0) width 246: "P.test {background: white; font-size: 20px;"
+          text run at (246,0) width 0: " "
+          text run at (0,16) width 376: "        margin-left: 30px; margin-right: 10px; padding: 0; border: 0;}"
+          text run at (376,16) width 0: " "
+          text run at (0,32) width 222: "IMG {padding: 0; border: 0; margin: 0;}"
+          text run at (222,32) width 0: " "
+          text run at (0,48) width 131: "P.test IMG {float: left;}"
+          text run at (131,48) width 0: " "
+          text run at (0,64) width 253: "#img2 {margin-top: 30px; margin-left: 30px;}"
+          text run at (253,64) width 0: " "
+          text run at (0,80) width 261: "#img3 {margin-top: -30px; margin-left: -30px;}"
+          text run at (261,80) width 0: " "
+          text run at (0,96) width 282: "#img4 {margin-right: 30px; margin-bottom: 30px;}"
+          text run at (282,96) width 0: " "
+          text run at (0,112) width 290: "#img5 {margin-right: -30px; margin-bottom: -30px;}"
+          text run at (290,112) width 0: " "
+          text run at (0,128) width 0: " "
       RenderBlock {HR} at (0,194) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (30,216) size 728x104 [bgcolor=#FFFFFF]
         RenderText {#text} at (0,0) size 702x104
diff --git a/LayoutTests/platform/qt/css1/box_properties/height-expected.txt b/LayoutTests/platform/qt/css1/box_properties/height-expected.txt
index ab255ad..c71b8df 100644
--- a/LayoutTests/platform/qt/css1/box_properties/height-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/height-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 784x1007
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x48
-        RenderText {#text} at (0,1) size 168x46
-          text run at (0,1) width 160: ".one {height: 50px;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 168: ".two {height: 100px;}"
-          text run at (168,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 118x48
+          text run at (0,0) width 112: ".one {height: 50px;}"
+          text run at (112,0) width 0: " "
+          text run at (0,16) width 118: ".two {height: 100px;}"
+          text run at (118,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 768x2 [border: (1px inset #000000)]
       RenderBlock (anonymous) at (0,108) size 768x50
         RenderImage {IMG} at (0,0) size 50x50
@@ -33,11 +33,11 @@ layer at (0,0) size 784x1007
         RenderText {#text} at (0,0) size 765x42
           text run at (0,0) width 765: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the size"
           text run at (0,21) width 187: "has been doubled using the "
-        RenderInline {CODE} at (0,0) size 48x14
-          RenderText {#text} at (187,26) size 48x14
-            text run at (187,26) width 48: "height"
-        RenderText {#text} at (235,21) size 73x21
-          text run at (235,21) width 73: " property)."
+        RenderInline {CODE} at (0,0) size 35x16
+          RenderText {#text} at (187,24) size 35x16
+            text run at (187,24) width 35: "height"
+        RenderText {#text} at (222,21) size 73x21
+          text run at (222,21) width 73: " property)."
       RenderTable {TABLE} at (0,538) size 768x453 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x451
           RenderTableRow {TR} at (0,0) size 766x29
@@ -69,8 +69,8 @@ layer at (0,0) size 784x1007
                 RenderText {#text} at (0,0) size 737x42
                   text run at (0,0) width 737: "The rectangular image above should be 100 pixels tall and 30 pixels wide (the original image is 50x15, and the"
                   text run at (0,21) width 215: "size has been doubled using the "
-                RenderInline {CODE} at (0,0) size 48x14
-                  RenderText {#text} at (215,26) size 48x14
-                    text run at (215,26) width 48: "height"
-                RenderText {#text} at (263,21) size 73x21
-                  text run at (263,21) width 73: " property)."
+                RenderInline {CODE} at (0,0) size 35x16
+                  RenderText {#text} at (215,24) size 35x16
+                    text run at (215,24) width 35: "height"
+                RenderText {#text} at (250,21) size 73x21
+                  text run at (250,21) width 73: " property)."
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin-expected.txt
index 6f64edb..97ab14d 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin-expected.txt
@@ -7,21 +7,21 @@ layer at (0,0) size 786x2845
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 360x110
-          text run at (0,1) width 352: ".zero {background-color: silver; margin: 0;}"
-          text run at (352,1) width 0: " "
-          text run at (0,17) width 360: ".one {margin: 0.5in; background-color: aqua;}"
-          text run at (360,17) width 0: " "
-          text run at (0,33) width 352: ".two {margin: 25px; background-color: aqua;}"
-          text run at (352,33) width 0: " "
-          text run at (0,49) width 360: ".three {margin: 5em; background-color: aqua;}"
-          text run at (360,49) width 0: " "
-          text run at (0,65) width 352: ".four {margin: 25%; background-color: aqua;}"
-          text run at (352,65) width 0: " "
-          text run at (0,81) width 168: ".five {margin: 25px;}"
-          text run at (168,81) width 0: " "
-          text run at (0,97) width 360: ".six {margin: -10px; background-color: aqua;}"
-          text run at (360,97) width 0: " "
+        RenderText {#text} at (0,0) size 264x112
+          text run at (0,0) width 245: ".zero {background-color: silver; margin: 0;}"
+          text run at (245,0) width 0: " "
+          text run at (0,16) width 259: ".one {margin: 0.5in; background-color: aqua;}"
+          text run at (259,16) width 0: " "
+          text run at (0,32) width 258: ".two {margin: 25px; background-color: aqua;}"
+          text run at (258,32) width 0: " "
+          text run at (0,48) width 264: ".three {margin: 5em; background-color: aqua;}"
+          text run at (264,48) width 0: " "
+          text run at (0,64) width 258: ".four {margin: 25%; background-color: aqua;}"
+          text run at (258,64) width 0: " "
+          text run at (0,80) width 116: ".five {margin: 25px;}"
+          text run at (116,80) width 0: " "
+          text run at (0,96) width 259: ".six {margin: -10px; background-color: aqua;}"
+          text run at (259,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,180) size 768x42
         RenderText {#text} at (0,0) size 706x42
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_bottom-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_bottom-expected.txt
index 2243248..bafe294 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_bottom-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_bottom-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 784x1863
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x144
-        RenderText {#text} at (0,1) size 416x142
-          text run at (0,1) width 408: ".zero {background-color: silver; margin-bottom: 0;}"
-          text run at (408,1) width 0: " "
-          text run at (0,17) width 416: ".one {margin-bottom: 0.5in; background-color: aqua;}"
-          text run at (416,17) width 0: " "
-          text run at (0,33) width 408: ".two {margin-bottom: 25px; background-color: aqua;}"
-          text run at (408,33) width 0: " "
-          text run at (0,49) width 416: ".three {margin-bottom: 5em; background-color: aqua;}"
-          text run at (416,49) width 0: " "
-          text run at (0,65) width 408: ".four {margin-bottom: 25%; background-color: aqua;}"
-          text run at (408,65) width 0: " "
-          text run at (0,81) width 224: ".five {margin-bottom: 25px;}"
-          text run at (224,81) width 0: " "
-          text run at (0,97) width 416: ".six {margin-bottom: -10px; background-color: aqua;}"
-          text run at (416,97) width 0: " "
-          text run at (0,113) width 176: "P, UL {margin-top: 0;}"
-          text run at (176,113) width 0: " "
-          text run at (0,129) width 0: " "
+        RenderText {#text} at (0,0) size 308x144
+          text run at (0,0) width 289: ".zero {background-color: silver; margin-bottom: 0;}"
+          text run at (289,0) width 0: " "
+          text run at (0,16) width 303: ".one {margin-bottom: 0.5in; background-color: aqua;}"
+          text run at (303,16) width 0: " "
+          text run at (0,32) width 302: ".two {margin-bottom: 25px; background-color: aqua;}"
+          text run at (302,32) width 0: " "
+          text run at (0,48) width 308: ".three {margin-bottom: 5em; background-color: aqua;}"
+          text run at (308,48) width 0: " "
+          text run at (0,64) width 302: ".four {margin-bottom: 25%; background-color: aqua;}"
+          text run at (302,64) width 0: " "
+          text run at (0,80) width 160: ".five {margin-bottom: 25px;}"
+          text run at (160,80) width 0: " "
+          text run at (0,96) width 303: ".six {margin-bottom: -10px; background-color: aqua;}"
+          text run at (303,96) width 0: " "
+          text run at (0,112) width 125: "P, UL {margin-top: 0;}"
+          text run at (125,112) width 0: " "
+          text run at (0,128) width 0: " "
       RenderBlock {HR} at (0,194) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,204) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_bottom_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_bottom_inline-expected.txt
index 1cbe6e4..73119d6 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_bottom_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_bottom_inline-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 416x30
-          text run at (0,1) width 408: ".one {margin-bottom: 25px; background-color: aqua;}"
-          text run at (408,1) width 0: " "
-          text run at (0,17) width 416: ".two {margin-bottom: -10px; background-color: aqua;}"
-          text run at (416,17) width 0: " "
+        RenderText {#text} at (0,0) size 306x32
+          text run at (0,0) width 303: ".one {margin-bottom: 25px; background-color: aqua;}"
+          text run at (303,0) width 0: " "
+          text run at (0,16) width 306: ".two {margin-bottom: -10px; background-color: aqua;}"
+          text run at (306,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 784x63 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 515x21
           text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
           text run at (419,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 771x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 768x42 [bgcolor=#00FFFF]
           RenderText {#text} at (515,0) size 149x21
             text run at (515,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (664,5) size 24x14
-              text run at (664,5) width 24: "one"
-          RenderText {#text} at (688,0) size 771x42
-            text run at (688,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (664,3) size 21x16
+              text run at (664,3) width 21: "one"
+          RenderText {#text} at (685,0) size 768x42
+            text run at (685,0) width 83: ", giving it an"
             text run at (0,21) width 305: "aqua background and a 25px bottom margin"
         RenderText {#text} at (305,21) size 775x42
           text run at (305,21) width 8: ". "
@@ -34,14 +34,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 515x21
           text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
           text run at (419,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 771x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 767x42 [bgcolor=#00FFFF]
           RenderText {#text} at (515,0) size 149x21
             text run at (515,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (664,5) size 24x14
-              text run at (664,5) width 24: "two"
-          RenderText {#text} at (688,0) size 771x42
-            text run at (688,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (664,3) size 20x16
+              text run at (664,3) width 20: "two"
+          RenderText {#text} at (684,0) size 767x42
+            text run at (684,0) width 83: ", giving it an"
             text run at (0,21) width 310: "aqua background and a -10px bottom margin"
         RenderText {#text} at (310,21) size 780x42
           text run at (310,21) width 8: ". "
@@ -63,14 +63,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 515x21
                   text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
                   text run at (419,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 750x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 747x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (515,0) size 149x21
                     text run at (515,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (664,5) size 24x14
-                      text run at (664,5) width 24: "one"
-                  RenderText {#text} at (688,0) size 750x42
-                    text run at (688,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (664,3) size 21x16
+                      text run at (664,3) width 21: "one"
+                  RenderText {#text} at (685,0) size 747x42
+                    text run at (685,0) width 62: ", giving it"
                     text run at (0,21) width 326: "an aqua background and a 25px bottom margin"
                 RenderText {#text} at (326,21) size 691x42
                   text run at (326,21) width 8: ". "
@@ -80,14 +80,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 515x21
                   text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
                   text run at (419,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 750x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 746x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (515,0) size 149x21
                     text run at (515,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (664,5) size 24x14
-                      text run at (664,5) width 24: "two"
-                  RenderText {#text} at (688,0) size 750x42
-                    text run at (688,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (664,3) size 20x16
+                      text run at (664,3) width 20: "two"
+                  RenderText {#text} at (684,0) size 746x42
+                    text run at (684,0) width 62: ", giving it"
                     text run at (0,21) width 331: "an aqua background and a -10px bottom margin"
                 RenderText {#text} at (331,21) size 696x42
                   text run at (331,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_inline-expected.txt
index c7cbcb4..5cf5755 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_inline-expected.txt
@@ -7,13 +7,13 @@ layer at (0,0) size 784x837
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x48
-        RenderText {#text} at (0,1) size 360x46
-          text run at (0,1) width 352: ".zero {background-color: silver; margin: 0;}"
-          text run at (352,1) width 0: " "
-          text run at (0,17) width 352: ".one {margin: 25px; background-color: aqua;}"
-          text run at (352,17) width 0: " "
-          text run at (0,33) width 360: ".two {margin: -10px; background-color: aqua;}"
-          text run at (360,33) width 0: " "
+        RenderText {#text} at (0,0) size 262x48
+          text run at (0,0) width 245: ".zero {background-color: silver; margin: 0;}"
+          text run at (245,0) width 0: " "
+          text run at (0,16) width 259: ".one {margin: 25px; background-color: aqua;}"
+          text run at (259,16) width 0: " "
+          text run at (0,32) width 262: ".two {margin: -10px; background-color: aqua;}"
+          text run at (262,32) width 0: " "
       RenderBlock {HR} at (0,98) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,108) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
@@ -22,14 +22,14 @@ layer at (0,0) size 784x837
         RenderText {#text} at (0,0) size 515x21
           text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
           text run at (419,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 762x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 759x42 [bgcolor=#00FFFF]
           RenderText {#text} at (540,0) size 149x21
             text run at (540,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (689,5) size 24x14
-              text run at (689,5) width 24: "one"
-          RenderText {#text} at (713,0) size 762x42
-            text run at (713,0) width 49: ", giving"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (689,3) size 21x16
+              text run at (689,3) width 21: "one"
+          RenderText {#text} at (710,0) size 759x42
+            text run at (710,0) width 49: ", giving"
             text run at (0,21) width 287: "it an aqua background and a 25px margin"
         RenderText {#text} at (312,21) size 765x84
           text run at (312,21) width 8: ". "
@@ -45,14 +45,14 @@ layer at (0,0) size 784x837
         RenderText {#text} at (0,0) size 515x21
           text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
           text run at (419,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 761x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 757x42 [bgcolor=#00FFFF]
           RenderText {#text} at (505,0) size 149x21
             text run at (505,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (654,5) size 24x14
-              text run at (654,5) width 24: "two"
-          RenderText {#text} at (678,0) size 761x42
-            text run at (678,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (654,3) size 20x16
+              text run at (654,3) width 20: "two"
+          RenderText {#text} at (674,0) size 757x42
+            text run at (674,0) width 83: ", giving it an"
             text run at (0,21) width 258: "aqua background and a -10px margin"
         RenderText {#text} at (248,21) size 756x84
           text run at (248,21) width 8: ". "
@@ -83,14 +83,14 @@ layer at (0,0) size 784x837
                 RenderText {#text} at (0,0) size 515x21
                   text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
                   text run at (419,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 717x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 714x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (540,0) size 149x21
                     text run at (540,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (689,5) size 24x14
-                      text run at (689,5) width 24: "one"
-                  RenderText {#text} at (713,0) size 717x42
-                    text run at (713,0) width 4: ","
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (689,3) size 21x16
+                      text run at (689,3) width 21: "one"
+                  RenderText {#text} at (710,0) size 714x42
+                    text run at (710,0) width 4: ","
                     text run at (0,21) width 332: "giving it an aqua background and a 25px margin"
                 RenderText {#text} at (357,21) size 722x84
                   text run at (357,21) width 8: ". "
@@ -106,14 +106,14 @@ layer at (0,0) size 784x837
                 RenderText {#text} at (0,0) size 515x21
                   text run at (0,0) width 419: "This element is unstyled save for a background color of gray.. "
                   text run at (419,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 740x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 736x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (505,0) size 149x21
                     text run at (505,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (654,5) size 24x14
-                      text run at (654,5) width 24: "two"
-                  RenderText {#text} at (678,0) size 740x42
-                    text run at (678,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (654,3) size 20x16
+                      text run at (654,3) width 20: "two"
+                  RenderText {#text} at (674,0) size 736x42
+                    text run at (674,0) width 62: ", giving it"
                     text run at (0,21) width 279: "an aqua background and a -10px margin"
                 RenderText {#text} at (269,21) size 745x84
                   text run at (269,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_left-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_left-expected.txt
index 99c6e8f..39959ef 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_left-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_left-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x1131
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 408x94
-          text run at (0,1) width 392: ".zero {background-color: silver; margin-left: 0;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 400: ".one {margin-left: 0.5in; background-color: aqua;}"
-          text run at (400,17) width 0: " "
-          text run at (0,33) width 392: ".two {margin-left: 25px; background-color: aqua;}"
-          text run at (392,33) width 0: " "
-          text run at (0,49) width 400: ".three {margin-left: 5em; background-color: aqua;}"
-          text run at (400,49) width 0: " "
-          text run at (0,65) width 392: ".four {margin-left: 25%; background-color: aqua;}"
-          text run at (392,65) width 0: " "
-          text run at (0,81) width 408: ".five {margin-left: -10px; background-color: aqua;}"
-          text run at (408,81) width 0: " "
+        RenderText {#text} at (0,0) size 286x96
+          text run at (0,0) width 267: ".zero {background-color: silver; margin-left: 0;}"
+          text run at (267,0) width 0: " "
+          text run at (0,16) width 281: ".one {margin-left: 0.5in; background-color: aqua;}"
+          text run at (281,16) width 0: " "
+          text run at (0,32) width 280: ".two {margin-left: 25px; background-color: aqua;}"
+          text run at (280,32) width 0: " "
+          text run at (0,48) width 286: ".three {margin-left: 5em; background-color: aqua;}"
+          text run at (286,48) width 0: " "
+          text run at (0,64) width 280: ".four {margin-left: 25%; background-color: aqua;}"
+          text run at (280,64) width 0: " "
+          text run at (0,80) width 285: ".five {margin-left: -10px; background-color: aqua;}"
+          text run at (285,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_left_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_left_inline-expected.txt
index da87429..878facd 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_left_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_left_inline-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 400x30
-          text run at (0,1) width 392: ".one {margin-left: 25px; background-color: aqua;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 400: ".two {margin-left: -10px; background-color: aqua;}"
-          text run at (400,17) width 0: " "
+        RenderText {#text} at (0,0) size 284x32
+          text run at (0,0) width 281: ".one {margin-left: 25px; background-color: aqua;}"
+          text run at (281,0) width 0: " "
+          text run at (0,16) width 284: ".two {margin-left: -10px; background-color: aqua;}"
+          text run at (284,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 784x42 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 170x21 [bgcolor=#00FFFF]
           RenderText {#text} at (603,0) size 149x21
             text run at (603,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (752,5) size 24x14
-              text run at (752,5) width 24: "one"
-        RenderText {#text} at (776,0) size 780x42
-          text run at (776,0) width 4: ","
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (752,3) size 21x16
+              text run at (752,3) width 21: "one"
+        RenderText {#text} at (773,0) size 777x42
+          text run at (773,0) width 4: ","
           text run at (0,21) width 363: "which should result in 25-pixel left margin only in the "
         RenderInline {STRONG} at (0,0) size 27x21
           RenderText {#text} at (363,21) size 27x21
@@ -35,14 +35,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
           RenderText {#text} at (568,0) size 149x21
             text run at (568,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (717,5) size 24x14
-              text run at (717,5) width 24: "two"
-        RenderText {#text} at (741,0) size 745x42
-          text run at (741,0) width 4: ","
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (717,3) size 20x16
+              text run at (717,3) width 20: "two"
+        RenderText {#text} at (737,0) size 741x42
+          text run at (737,0) width 4: ","
           text run at (0,21) width 348: "which should result in -10px left margin only in the "
         RenderInline {STRONG} at (0,0) size 27x21
           RenderText {#text} at (348,21) size 27x21
@@ -68,28 +68,28 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 748x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (603,0) size 145x21
                     text run at (603,0) width 145: "inline element of class"
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (0,26) size 24x14
-                      text run at (0,26) width 24: "one"
-                RenderText {#text} at (24,21) size 371x21
-                  text run at (24,21) width 371: ", which should result in 25-pixel left margin only in the "
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (0,24) size 21x16
+                      text run at (0,24) width 21: "one"
+                RenderText {#text} at (21,21) size 371x21
+                  text run at (21,21) width 371: ", which should result in 25-pixel left margin only in the "
                 RenderInline {STRONG} at (0,0) size 27x21
-                  RenderText {#text} at (395,21) size 27x21
-                    text run at (395,21) width 27: "first"
-                RenderText {#text} at (422,21) size 247x21
-                  text run at (422,21) width 247: " line in which the inline box appears."
+                  RenderText {#text} at (392,21) size 27x21
+                    text run at (392,21) width 27: "first"
+                RenderText {#text} at (419,21) size 247x21
+                  text run at (419,21) width 247: " line in which the inline box appears."
               RenderBlock {P} at (4,62) size 762x42 [bgcolor=#808080]
                 RenderText {#text} at (0,0) size 578x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
                   RenderText {#text} at (568,0) size 149x21
                     text run at (568,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (717,5) size 24x14
-                      text run at (717,5) width 24: "two"
-                RenderText {#text} at (741,0) size 745x42
-                  text run at (741,0) width 4: ","
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (717,3) size 20x16
+                      text run at (717,3) width 20: "two"
+                RenderText {#text} at (737,0) size 741x42
+                  text run at (737,0) width 4: ","
                   text run at (0,21) width 348: "which should result in -10px left margin only in the "
                 RenderInline {STRONG} at (0,0) size 27x21
                   RenderText {#text} at (348,21) size 27x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_right-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_right-expected.txt
index 4aaae3a..0f5c5c6 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_right-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_right-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 786x1152
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 560x94
-          text run at (0,1) width 552: ".zero {background-color: silver; margin-right: 0; text-align: right;}"
-          text run at (552,1) width 0: " "
-          text run at (0,17) width 560: ".one {margin-right: 0.5in; text-align: right; background-color: aqua;}"
-          text run at (560,17) width 0: " "
-          text run at (0,33) width 552: ".two {margin-right: 25px; text-align: right; background-color: aqua;}"
-          text run at (552,33) width 0: " "
-          text run at (0,49) width 560: ".three {margin-right: 5em; text-align: right; background-color: aqua;}"
-          text run at (560,49) width 0: " "
-          text run at (0,65) width 552: ".four {margin-right: 25%; text-align: right; background-color: aqua;}"
-          text run at (552,65) width 0: " "
-          text run at (0,81) width 416: ".five {margin-right: -10px; background-color: aqua;}"
-          text run at (416,81) width 0: " "
+        RenderText {#text} at (0,0) size 387x96
+          text run at (0,0) width 368: ".zero {background-color: silver; margin-right: 0; text-align: right;}"
+          text run at (368,0) width 0: " "
+          text run at (0,16) width 382: ".one {margin-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (382,16) width 0: " "
+          text run at (0,32) width 381: ".two {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (381,32) width 0: " "
+          text run at (0,48) width 387: ".three {margin-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (387,48) width 0: " "
+          text run at (0,64) width 381: ".four {margin-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (381,64) width 0: " "
+          text run at (0,80) width 292: ".five {margin-right: -10px; background-color: aqua;}"
+          text run at (292,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (554,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_right_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_right_inline-expected.txt
index 1600c99..5e99a2f 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_right_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_right_inline-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 552x30
-          text run at (0,1) width 552: ".one {margin-right: 25px; text-align: right; background-color: aqua;}"
-          text run at (552,1) width 0: " "
-          text run at (0,17) width 408: ".two {margin-right: -10px; background-color: aqua;}"
-          text run at (408,17) width 0: " "
+        RenderText {#text} at (0,0) size 382x32
+          text run at (0,0) width 382: ".one {margin-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (382,0) width 0: " "
+          text run at (0,16) width 291: ".two {margin-right: -10px; background-color: aqua;}"
+          text run at (291,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 784x42 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 170x21 [bgcolor=#00FFFF]
           RenderText {#text} at (578,0) size 149x21
             text run at (578,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (727,5) size 24x14
-              text run at (727,5) width 24: "one"
-        RenderText {#text} at (776,0) size 780x42
-          text run at (776,0) width 4: ","
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (727,3) size 21x16
+              text run at (727,3) width 21: "one"
+        RenderText {#text} at (773,0) size 777x42
+          text run at (773,0) width 4: ","
           text run at (0,21) width 375: "which should result in 25-pixel right margin only in the "
         RenderInline {STRONG} at (0,0) size 23x21
           RenderText {#text} at (375,21) size 23x21
@@ -35,14 +35,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
           RenderText {#text} at (578,0) size 149x21
             text run at (578,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (727,5) size 24x14
-              text run at (727,5) width 24: "two"
-        RenderText {#text} at (741,0) size 745x42
-          text run at (741,0) width 4: ","
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (727,3) size 20x16
+              text run at (727,3) width 20: "two"
+        RenderText {#text} at (737,0) size 741x42
+          text run at (737,0) width 4: ","
           text run at (0,21) width 360: "which should result in -10px right margin only in the "
         RenderInline {STRONG} at (0,0) size 23x21
           RenderText {#text} at (360,21) size 23x21
@@ -68,28 +68,28 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 723x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (578,0) size 145x21
                     text run at (578,0) width 145: "inline element of class"
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (0,26) size 24x14
-                      text run at (0,26) width 24: "one"
-                RenderText {#text} at (49,21) size 383x21
-                  text run at (49,21) width 383: ", which should result in 25-pixel right margin only in the "
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (0,24) size 21x16
+                      text run at (0,24) width 21: "one"
+                RenderText {#text} at (46,21) size 383x21
+                  text run at (46,21) width 383: ", which should result in 25-pixel right margin only in the "
                 RenderInline {STRONG} at (0,0) size 23x21
-                  RenderText {#text} at (432,21) size 23x21
-                    text run at (432,21) width 23: "last"
-                RenderText {#text} at (455,21) size 247x21
-                  text run at (455,21) width 247: " line in which the inline box appears."
+                  RenderText {#text} at (429,21) size 23x21
+                    text run at (429,21) width 23: "last"
+                RenderText {#text} at (452,21) size 247x21
+                  text run at (452,21) width 247: " line in which the inline box appears."
               RenderBlock {P} at (4,62) size 762x42 [bgcolor=#808080]
                 RenderText {#text} at (0,0) size 578x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
                   RenderText {#text} at (578,0) size 149x21
                     text run at (578,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (727,5) size 24x14
-                      text run at (727,5) width 24: "two"
-                RenderText {#text} at (741,0) size 745x42
-                  text run at (741,0) width 4: ","
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (727,3) size 20x16
+                      text run at (727,3) width 20: "two"
+                RenderText {#text} at (737,0) size 741x42
+                  text run at (737,0) width 4: ","
                   text run at (0,21) width 360: "which should result in -10px right margin only in the "
                 RenderInline {STRONG} at (0,0) size 23x21
                   RenderText {#text} at (360,21) size 23x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_top-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_top-expected.txt
index 9d111bb..359e224 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_top-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_top-expected.txt
@@ -7,23 +7,23 @@ layer at (0,0) size 784x1760
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,34) size 768x128
-        RenderText {#text} at (0,1) size 392x126
-          text run at (0,1) width 384: ".zero {background-color: silver; margin-top: 0;}"
-          text run at (384,1) width 0: " "
-          text run at (0,17) width 392: ".one {margin-top: 0.5in; background-color: aqua;}"
-          text run at (392,17) width 0: " "
-          text run at (0,33) width 384: ".two {margin-top: 25px; background-color: aqua;}"
-          text run at (384,33) width 0: " "
-          text run at (0,49) width 392: ".three {margin-top: 5em; background-color: aqua;}"
-          text run at (392,49) width 0: " "
-          text run at (0,65) width 384: ".four {margin-top: 25%; background-color: aqua;}"
-          text run at (384,65) width 0: " "
-          text run at (0,81) width 200: ".five {margin-top: 25px;}"
-          text run at (200,81) width 0: " "
-          text run at (0,97) width 392: ".six {margin-top: -10px; background-color: aqua;}"
-          text run at (392,97) width 0: " "
-          text run at (0,113) width 200: "P, UL {margin-bottom: 0;}"
-          text run at (200,113) width 0: " "
+        RenderText {#text} at (0,0) size 286x128
+          text run at (0,0) width 267: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (267,0) width 0: " "
+          text run at (0,16) width 281: ".one {margin-top: 0.5in; background-color: aqua;}"
+          text run at (281,16) width 0: " "
+          text run at (0,32) width 280: ".two {margin-top: 25px; background-color: aqua;}"
+          text run at (280,32) width 0: " "
+          text run at (0,48) width 286: ".three {margin-top: 5em; background-color: aqua;}"
+          text run at (286,48) width 0: " "
+          text run at (0,64) width 280: ".four {margin-top: 25%; background-color: aqua;}"
+          text run at (280,64) width 0: " "
+          text run at (0,80) width 138: ".five {margin-top: 25px;}"
+          text run at (138,80) width 0: " "
+          text run at (0,96) width 281: ".six {margin-top: -10px; background-color: aqua;}"
+          text run at (281,96) width 0: " "
+          text run at (0,112) width 147: "P, UL {margin-bottom: 0;}"
+          text run at (147,112) width 0: " "
       RenderBlock {HR} at (0,175) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,185) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/margin_top_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/margin_top_inline-expected.txt
index 8fed2e7..7f57f30 100644
--- a/LayoutTests/platform/qt/css1/box_properties/margin_top_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/margin_top_inline-expected.txt
@@ -7,27 +7,27 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 392x62
-          text run at (0,1) width 384: ".zero {background-color: silver; margin-top: 0;}"
-          text run at (384,1) width 0: " "
-          text run at (0,17) width 384: ".one {margin-top: 25px; background-color: aqua;}"
-          text run at (384,17) width 0: " "
-          text run at (0,33) width 392: ".two {margin-top: -10px; background-color: aqua;}"
-          text run at (392,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 284x64
+          text run at (0,0) width 267: ".zero {background-color: silver; margin-top: 0;}"
+          text run at (267,0) width 0: " "
+          text run at (0,16) width 281: ".one {margin-top: 25px; background-color: aqua;}"
+          text run at (281,16) width 0: " "
+          text run at (0,32) width 284: ".two {margin-top: -10px; background-color: aqua;}"
+          text run at (284,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 784x63 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 764x42 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "one"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (660,3) size 21x16
+              text run at (660,3) width 21: "one"
+          RenderText {#text} at (681,0) size 764x42
+            text run at (681,0) width 83: ", giving it an"
             text run at (0,21) width 279: "aqua background and a 25px top margin"
         RenderText {#text} at (279,21) size 756x42
           text run at (279,21) width 8: ". "
@@ -37,14 +37,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 758x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 754x42 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "two"
-          RenderText {#text} at (684,0) size 758x42
-            text run at (684,0) width 74: ", giving the"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (660,3) size 20x16
+              text run at (660,3) width 20: "two"
+          RenderText {#text} at (680,0) size 754x42
+            text run at (680,0) width 74: ", giving the"
             text run at (0,21) width 402: "inline element an aqua background and a -10px top margin"
         RenderText {#text} at (402,21) size 754x42
           text run at (402,21) width 8: ". "
@@ -66,14 +66,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 743x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "one"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (660,3) size 21x16
+                      text run at (660,3) width 21: "one"
+                  RenderText {#text} at (681,0) size 743x42
+                    text run at (681,0) width 62: ", giving it"
                     text run at (0,21) width 300: "an aqua background and a 25px top margin"
                 RenderText {#text} at (300,21) size 757x42
                   text run at (300,21) width 8: ". "
@@ -83,14 +83,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 758x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 754x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "two"
-                  RenderText {#text} at (684,0) size 758x42
-                    text run at (684,0) width 74: ", giving the"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (660,3) size 20x16
+                      text run at (660,3) width 20: "two"
+                  RenderText {#text} at (680,0) size 754x42
+                    text run at (680,0) width 74: ", giving the"
                     text run at (0,21) width 402: "inline element an aqua background and a -10px top margin"
                 RenderText {#text} at (402,21) size 754x42
                   text run at (402,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding-expected.txt
index d8f1808..5e9e95a 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x2330
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 376x94
-          text run at (0,1) width 360: ".zero {background-color: silver; padding: 0;}"
-          text run at (360,1) width 0: " "
-          text run at (0,17) width 368: ".one {padding: 0.5in; background-color: aqua;}"
-          text run at (368,17) width 0: " "
-          text run at (0,33) width 360: ".two {padding: 25px; background-color: aqua;}"
-          text run at (360,33) width 0: " "
-          text run at (0,49) width 368: ".three {padding: 5em; background-color: aqua;}"
-          text run at (368,49) width 0: " "
-          text run at (0,65) width 360: ".four {padding: 25%; background-color: aqua;}"
-          text run at (360,65) width 0: " "
-          text run at (0,81) width 376: ".five {padding: -20px; background-color: aqua;}"
-          text run at (376,81) width 0: " "
+        RenderText {#text} at (0,0) size 270x96
+          text run at (0,0) width 251: ".zero {background-color: silver; padding: 0;}"
+          text run at (251,0) width 0: " "
+          text run at (0,16) width 265: ".one {padding: 0.5in; background-color: aqua;}"
+          text run at (265,16) width 0: " "
+          text run at (0,32) width 264: ".two {padding: 25px; background-color: aqua;}"
+          text run at (264,32) width 0: " "
+          text run at (0,48) width 270: ".three {padding: 5em; background-color: aqua;}"
+          text run at (270,48) width 0: " "
+          text run at (0,64) width 264: ".four {padding: 25%; background-color: aqua;}"
+          text run at (264,64) width 0: " "
+          text run at (0,80) width 269: ".five {padding: -20px; background-color: aqua;}"
+          text run at (269,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_bottom-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_bottom-expected.txt
index 8a71bda..a1a7817 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_bottom-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_bottom-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x1657
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 432x94
-          text run at (0,1) width 416: ".zero {background-color: silver; padding-bottom: 0;}"
-          text run at (416,1) width 0: " "
-          text run at (0,17) width 424: ".one {padding-bottom: 0.5in; background-color: aqua;}"
-          text run at (424,17) width 0: " "
-          text run at (0,33) width 416: ".two {padding-bottom: 25px; background-color: aqua;}"
-          text run at (416,33) width 0: " "
-          text run at (0,49) width 424: ".three {padding-bottom: 5em; background-color: aqua;}"
-          text run at (424,49) width 0: " "
-          text run at (0,65) width 416: ".four {padding-bottom: 25%; background-color: aqua;}"
-          text run at (416,65) width 0: " "
-          text run at (0,81) width 432: ".five {padding-bottom: -20px; background-color: aqua;}"
-          text run at (432,81) width 0: " "
+        RenderText {#text} at (0,0) size 314x96
+          text run at (0,0) width 295: ".zero {background-color: silver; padding-bottom: 0;}"
+          text run at (295,0) width 0: " "
+          text run at (0,16) width 309: ".one {padding-bottom: 0.5in; background-color: aqua;}"
+          text run at (309,16) width 0: " "
+          text run at (0,32) width 308: ".two {padding-bottom: 25px; background-color: aqua;}"
+          text run at (308,32) width 0: " "
+          text run at (0,48) width 314: ".three {padding-bottom: 5em; background-color: aqua;}"
+          text run at (314,48) width 0: " "
+          text run at (0,64) width 308: ".four {padding-bottom: 25%; background-color: aqua;}"
+          text run at (308,64) width 0: " "
+          text run at (0,80) width 313: ".five {padding-bottom: -20px; background-color: aqua;}"
+          text run at (313,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_bottom_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_bottom_inline-expected.txt
index 6613be6..c4ee5f3 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_bottom_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_bottom_inline-expected.txt
@@ -7,25 +7,25 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 424x46
-          text run at (0,1) width 416: ".one {padding-bottom: 25px; background-color: aqua;}"
-          text run at (416,1) width 0: " "
-          text run at (0,17) width 424: ".two {padding-bottom: -10px; background-color: aqua;}"
-          text run at (424,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 312x48
+          text run at (0,0) width 309: ".one {padding-bottom: 25px; background-color: aqua;}"
+          text run at (309,0) width 0: " "
+          text run at (0,16) width 312: ".two {padding-bottom: -10px; background-color: aqua;}"
+          text run at (312,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x84 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x67 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 764x67 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "one"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (660,3) size 21x16
+              text run at (660,3) width 21: "one"
+          RenderText {#text} at (681,0) size 764x42
+            text run at (681,0) width 83: ", giving it an"
             text run at (0,21) width 312: "aqua background and a 25px bottom padding"
         RenderText {#text} at (312,21) size 782x63
           text run at (312,21) width 8: ". "
@@ -37,14 +37,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 763x42 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "two"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (660,3) size 20x16
+              text run at (660,3) width 20: "two"
+          RenderText {#text} at (680,0) size 763x42
+            text run at (680,0) width 83: ", giving it an"
             text run at (0,21) width 599: "aqua background and no bottom padding, since negative padding values are not allowed"
         RenderText {#text} at (599,21) size 726x42
           text run at (599,21) width 8: ". "
@@ -66,14 +66,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x67 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 743x67 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "one"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (660,3) size 21x16
+                      text run at (660,3) width 21: "one"
+                  RenderText {#text} at (681,0) size 743x42
+                    text run at (681,0) width 62: ", giving it"
                     text run at (0,21) width 333: "an aqua background and a 25px bottom padding"
                 RenderText {#text} at (333,21) size 744x63
                   text run at (333,21) width 8: ". "
@@ -85,14 +85,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 742x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "two"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (660,3) size 20x16
+                      text run at (660,3) width 20: "two"
+                  RenderText {#text} at (680,0) size 742x42
+                    text run at (680,0) width 62: ", giving it"
                     text run at (0,21) width 620: "an aqua background and no bottom padding, since negative padding values are not allowed"
                 RenderText {#text} at (620,21) size 747x42
                   text run at (620,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_inline-expected.txt
index 25339d1..0ddf3e6 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_inline-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 784x835
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 368x62
-          text run at (0,1) width 360: ".zero {background-color: silver; padding: 0;}"
-          text run at (360,1) width 0: " "
-          text run at (0,17) width 360: ".one {padding: 25px; background-color: aqua;}"
-          text run at (360,17) width 0: " "
-          text run at (0,33) width 368: ".two {padding: -10px; background-color: aqua;}"
-          text run at (368,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 268x64
+          text run at (0,0) width 251: ".zero {background-color: silver; padding: 0;}"
+          text run at (251,0) width 0: " "
+          text run at (0,16) width 265: ".one {padding: 25px; background-color: aqua;}"
+          text run at (265,16) width 0: " "
+          text run at (0,32) width 268: ".two {padding: -10px; background-color: aqua;}"
+          text run at (268,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
@@ -23,24 +23,24 @@ layer at (0,0) size 784x835
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 758x92 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 768x92 [bgcolor=#00FFFF]
           RenderText {#text} at (536,0) size 149x21
             text run at (536,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (685,5) size 24x14
-              text run at (685,5) width 24: "one"
-          RenderText {#text} at (709,0) size 758x42
-            text run at (709,0) width 49: ", giving"
-            text run at (0,21) width 294: "it an aqua background and a 25px padding"
-        RenderText {#text} at (319,21) size 759x105
-          text run at (319,21) width 8: ". "
-          text run at (327,21) width 357: "Padding on inline elements does not affect line-height"
-          text run at (0,42) width 487: "calculations, so all lines in this element should have the same line-height. "
-          text run at (487,42) width 257: "There may be implementation-specific"
-          text run at (0,63) width 637: "limits on how much of the padding the user agent is able to display above and below each line. "
-          text run at (637,63) width 104: "However, there"
-          text run at (0,84) width 759: "should be at least 25px of padding to the left side of the inline box in the first line it appears, and 25px of padding"
-          text run at (0,105) width 491: "to the right side of the inline element box in the last line where it appears."
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (685,3) size 21x16
+              text run at (685,3) width 21: "one"
+          RenderText {#text} at (706,0) size 768x42
+            text run at (706,0) width 62: ", giving it"
+            text run at (0,21) width 281: "an aqua background and a 25px padding"
+        RenderText {#text} at (306,21) size 767x105
+          text run at (306,21) width 8: ". "
+          text run at (314,21) width 444: "Padding on inline elements does not affect line-height calculations,"
+          text run at (0,42) width 400: "so all lines in this element should have the same line-height. "
+          text run at (400,42) width 351: "There may be implementation-specific limits on how"
+          text run at (0,63) width 543: "much of the padding the user agent is able to display above and below each line. "
+          text run at (543,63) width 224: "However, there should be at least"
+          text run at (0,84) width 765: "25px of padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of"
+          text run at (0,105) width 365: "the inline element box in the last line where it appears."
       RenderBlock {P} at (0,311) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
           text run at (0,0) width 214: "This element has a class of zero."
@@ -48,14 +48,14 @@ layer at (0,0) size 784x835
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 763x42 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "two"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (660,3) size 20x16
+              text run at (660,3) width 20: "two"
+          RenderText {#text} at (680,0) size 763x42
+            text run at (680,0) width 83: ", giving it an"
             text run at (0,21) width 547: "aqua background and no padding, since negative padding values are not allowed"
         RenderText {#text} at (547,21) size 736x42
           text run at (547,21) width 8: ". "
@@ -83,14 +83,14 @@ layer at (0,0) size 784x835
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 713x92 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 710x92 [bgcolor=#00FFFF]
                   RenderText {#text} at (536,0) size 149x21
                     text run at (536,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (685,5) size 24x14
-                      text run at (685,5) width 24: "one"
-                  RenderText {#text} at (709,0) size 713x42
-                    text run at (709,0) width 4: ","
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (685,3) size 21x16
+                      text run at (685,3) width 21: "one"
+                  RenderText {#text} at (706,0) size 710x42
+                    text run at (706,0) width 4: ","
                     text run at (0,21) width 339: "giving it an aqua background and a 25px padding"
                 RenderText {#text} at (364,21) size 744x105
                   text run at (364,21) width 8: ". "
@@ -108,14 +108,14 @@ layer at (0,0) size 784x835
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 742x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "two"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (660,3) size 20x16
+                      text run at (660,3) width 20: "two"
+                  RenderText {#text} at (680,0) size 742x42
+                    text run at (680,0) width 62: ", giving it"
                     text run at (0,21) width 568: "an aqua background and no padding, since negative padding values are not allowed"
                 RenderText {#text} at (568,21) size 721x42
                   text run at (568,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_left-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_left-expected.txt
index 9abfc3e..cd6d409 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_left-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_left-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x1141
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 416x94
-          text run at (0,1) width 400: ".zero {background-color: silver; padding-left: 0;}"
-          text run at (400,1) width 0: " "
-          text run at (0,17) width 408: ".one {padding-left: 0.5in; background-color: aqua;}"
-          text run at (408,17) width 0: " "
-          text run at (0,33) width 400: ".two {padding-left: 25px; background-color: aqua;}"
-          text run at (400,33) width 0: " "
-          text run at (0,49) width 408: ".three {padding-left: 5em; background-color: aqua;}"
-          text run at (408,49) width 0: " "
-          text run at (0,65) width 400: ".four {padding-left: 25%; background-color: aqua;}"
-          text run at (400,65) width 0: " "
-          text run at (0,81) width 416: ".five {padding-left: -20px; background-color: aqua;}"
-          text run at (416,81) width 0: " "
+        RenderText {#text} at (0,0) size 292x96
+          text run at (0,0) width 273: ".zero {background-color: silver; padding-left: 0;}"
+          text run at (273,0) width 0: " "
+          text run at (0,16) width 287: ".one {padding-left: 0.5in; background-color: aqua;}"
+          text run at (287,16) width 0: " "
+          text run at (0,32) width 286: ".two {padding-left: 25px; background-color: aqua;}"
+          text run at (286,32) width 0: " "
+          text run at (0,48) width 292: ".three {padding-left: 5em; background-color: aqua;}"
+          text run at (292,48) width 0: " "
+          text run at (0,64) width 286: ".four {padding-left: 25%; background-color: aqua;}"
+          text run at (286,64) width 0: " "
+          text run at (0,80) width 291: ".five {padding-left: -20px; background-color: aqua;}"
+          text run at (291,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_left_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_left_inline-expected.txt
index 903db84..0a30bbc 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_left_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_left_inline-expected.txt
@@ -7,23 +7,23 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 408x46
-          text run at (0,1) width 400: ".one {padding-left: 25px; background-color: aqua;}"
-          text run at (400,1) width 0: " "
-          text run at (0,17) width 408: ".two {padding-left: -10px; background-color: aqua;}"
-          text run at (408,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 290x48
+          text run at (0,0) width 287: ".one {padding-left: 25px; background-color: aqua;}"
+          text run at (287,0) width 0: " "
+          text run at (0,16) width 290: ".two {padding-left: -10px; background-color: aqua;}"
+          text run at (290,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x63 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 198x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 195x21 [bgcolor=#00FFFF]
           RenderText {#text} at (603,0) size 149x21
             text run at (603,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (752,5) size 24x14
-              text run at (752,5) width 24: "one"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (752,3) size 21x16
+              text run at (752,3) width 21: "one"
         RenderText {#text} at (0,21) size 603x21
           text run at (0,21) width 603: "which should result in 25-pixel left padding (which should also be a light blue) only in the "
         RenderInline {STRONG} at (0,0) size 27x21
@@ -36,12 +36,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
           RenderText {#text} at (578,0) size 149x21
             text run at (578,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (727,5) size 24x14
-              text run at (727,5) width 24: "two"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (727,3) size 20x16
+              text run at (727,3) width 20: "two"
         RenderText {#text} at (0,21) size 588x21
           text run at (0,21) width 588: "which should result in -10px left padding (which should also be a light blue) only in the "
         RenderInline {STRONG} at (0,0) size 27x21
@@ -69,27 +69,27 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 748x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (603,0) size 145x21
                     text run at (603,0) width 145: "inline element of class"
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (0,26) size 24x14
-                      text run at (0,26) width 24: "one"
-                RenderText {#text} at (24,21) size 607x21
-                  text run at (24,21) width 607: " which should result in 25-pixel left padding (which should also be a light blue) only in the "
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (0,24) size 21x16
+                      text run at (0,24) width 21: "one"
+                RenderText {#text} at (21,21) size 607x21
+                  text run at (21,21) width 607: " which should result in 25-pixel left padding (which should also be a light blue) only in the "
                 RenderInline {STRONG} at (0,0) size 27x21
-                  RenderText {#text} at (631,21) size 27x21
-                    text run at (631,21) width 27: "first"
-                RenderText {#text} at (658,21) size 748x42
-                  text run at (658,21) width 90: " line in which"
+                  RenderText {#text} at (628,21) size 27x21
+                    text run at (628,21) width 27: "first"
+                RenderText {#text} at (655,21) size 745x42
+                  text run at (655,21) width 90: " line in which"
                   text run at (0,42) width 153: "the inline box appears."
               RenderBlock {P} at (4,83) size 762x63 [bgcolor=#808080]
                 RenderText {#text} at (0,0) size 578x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
                   RenderText {#text} at (578,0) size 149x21
                     text run at (578,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (727,5) size 24x14
-                      text run at (727,5) width 24: "two"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (727,3) size 20x16
+                      text run at (727,3) width 20: "two"
                 RenderText {#text} at (0,21) size 588x21
                   text run at (0,21) width 588: "which should result in -10px left padding (which should also be a light blue) only in the "
                 RenderInline {STRONG} at (0,0) size 27x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_right-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_right-expected.txt
index 8f00d5e..265a9de 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_right-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_right-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x1309
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 576x94
-          text run at (0,1) width 408: ".zero {background-color: silver; padding-right: 0;}"
-          text run at (408,1) width 0: " "
-          text run at (0,17) width 568: ".one {padding-right: 0.5in; text-align: right; background-color: aqua;}"
-          text run at (568,17) width 0: " "
-          text run at (0,33) width 560: ".two {padding-right: 25px; text-align: right; background-color: aqua;}"
-          text run at (560,33) width 0: " "
-          text run at (0,49) width 568: ".three {padding-right: 5em; text-align: right; background-color: aqua;}"
-          text run at (568,49) width 0: " "
-          text run at (0,65) width 560: ".four {padding-right: 25%; text-align: right; background-color: aqua;}"
-          text run at (560,65) width 0: " "
-          text run at (0,81) width 576: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
-          text run at (576,81) width 0: " "
+        RenderText {#text} at (0,0) size 393x96
+          text run at (0,0) width 280: ".zero {background-color: silver; padding-right: 0;}"
+          text run at (280,0) width 0: " "
+          text run at (0,16) width 388: ".one {padding-right: 0.5in; text-align: right; background-color: aqua;}"
+          text run at (388,16) width 0: " "
+          text run at (0,32) width 387: ".two {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (387,32) width 0: " "
+          text run at (0,48) width 393: ".three {padding-right: 5em; text-align: right; background-color: aqua;}"
+          text run at (393,48) width 0: " "
+          text run at (0,64) width 387: ".four {padding-right: 25%; text-align: right; background-color: aqua;}"
+          text run at (387,64) width 0: " "
+          text run at (0,80) width 392: ".five {padding-right: -20px; text-align: right; background-color: aqua;}"
+          text run at (392,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_right_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_right_inline-expected.txt
index 9d9c248..67a7f0b 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_right_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_right_inline-expected.txt
@@ -7,25 +7,25 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 568x46
-          text run at (0,1) width 560: ".one {padding-right: 25px; text-align: right; background-color: aqua;}"
-          text run at (560,1) width 0: " "
-          text run at (0,17) width 568: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
-          text run at (568,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 391x48
+          text run at (0,0) width 388: ".one {padding-right: 25px; text-align: right; background-color: aqua;}"
+          text run at (388,0) width 0: " "
+          text run at (0,16) width 391: ".two {padding-right: -10px; text-align: right; background-color: aqua;}"
+          text run at (391,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x63 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 198x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 195x21 [bgcolor=#00FFFF]
           RenderText {#text} at (578,0) size 149x21
             text run at (578,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (727,5) size 24x14
-              text run at (727,5) width 24: "one"
-        RenderText {#text} at (776,0) size 780x42
-          text run at (776,0) width 4: ","
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (727,3) size 21x16
+              text run at (727,3) width 21: "one"
+        RenderText {#text} at (773,0) size 777x42
+          text run at (773,0) width 4: ","
           text run at (0,21) width 603: "which should result in 25-pixel right padding (which should also be light blue) only in the "
         RenderInline {STRONG} at (0,0) size 23x21
           RenderText {#text} at (603,21) size 23x21
@@ -37,14 +37,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 578x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 163: "However, it contains an "
-        RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
           RenderText {#text} at (578,0) size 149x21
             text run at (578,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (727,5) size 24x14
-              text run at (727,5) width 24: "two"
-        RenderText {#text} at (751,0) size 755x42
-          text run at (751,0) width 4: ","
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (727,3) size 20x16
+              text run at (727,3) width 20: "two"
+        RenderText {#text} at (747,0) size 751x42
+          text run at (747,0) width 4: ","
           text run at (0,21) width 632: "which should result in no right padding, since negative padding values are not allowed, in the "
         RenderInline {STRONG} at (0,0) size 23x21
           RenderText {#text} at (632,21) size 23x21
@@ -71,29 +71,29 @@ layer at (0,0) size 800x600
                 RenderInline {SPAN} at (0,0) size 723x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (578,0) size 145x21
                     text run at (578,0) width 145: "inline element of class"
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (0,26) size 24x14
-                      text run at (0,26) width 24: "one"
-                RenderText {#text} at (49,21) size 611x21
-                  text run at (49,21) width 611: ", which should result in 25-pixel right padding (which should also be light blue) only in the "
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (0,24) size 21x16
+                      text run at (0,24) width 21: "one"
+                RenderText {#text} at (46,21) size 611x21
+                  text run at (46,21) width 611: ", which should result in 25-pixel right padding (which should also be light blue) only in the "
                 RenderInline {STRONG} at (0,0) size 23x21
-                  RenderText {#text} at (660,21) size 23x21
-                    text run at (660,21) width 23: "last"
-                RenderText {#text} at (683,21) size 728x42
-                  text run at (683,21) width 45: " line in"
+                  RenderText {#text} at (657,21) size 23x21
+                    text run at (657,21) width 23: "last"
+                RenderText {#text} at (680,21) size 725x42
+                  text run at (680,21) width 45: " line in"
                   text run at (0,42) width 198: "which the inline box appears."
               RenderBlock {P} at (4,83) size 762x63 [bgcolor=#808080]
                 RenderText {#text} at (0,0) size 578x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 163: "However, it contains an "
-                RenderInline {SPAN} at (0,0) size 173x21 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 169x21 [bgcolor=#00FFFF]
                   RenderText {#text} at (578,0) size 149x21
                     text run at (578,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (727,5) size 24x14
-                      text run at (727,5) width 24: "two"
-                RenderText {#text} at (751,0) size 755x42
-                  text run at (751,0) width 4: ","
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (727,3) size 20x16
+                      text run at (727,3) width 20: "two"
+                RenderText {#text} at (747,0) size 751x42
+                  text run at (747,0) width 4: ","
                   text run at (0,21) width 632: "which should result in no right padding, since negative padding values are not allowed, in the "
                 RenderInline {STRONG} at (0,0) size 23x21
                   RenderText {#text} at (632,21) size 23x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_top-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_top-expected.txt
index 2a5e544..1b48ec0 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_top-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_top-expected.txt
@@ -7,19 +7,19 @@ layer at (0,0) size 784x1583
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 408x94
-          text run at (0,1) width 392: ".zero {background-color: silver; padding-top: 0;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 400: ".one {padding-top: 0.5in; background-color: aqua;}"
-          text run at (400,17) width 0: " "
-          text run at (0,33) width 392: ".two {padding-top: 25px; background-color: aqua;}"
-          text run at (392,33) width 0: " "
-          text run at (0,49) width 400: ".three {padding-top: 5em; background-color: aqua;}"
-          text run at (400,49) width 0: " "
-          text run at (0,65) width 392: ".four {padding-top: 25%; background-color: aqua;}"
-          text run at (392,65) width 0: " "
-          text run at (0,81) width 408: ".five {padding-top: -20px; background-color: aqua;}"
-          text run at (408,81) width 0: " "
+        RenderText {#text} at (0,0) size 292x96
+          text run at (0,0) width 273: ".zero {background-color: silver; padding-top: 0;}"
+          text run at (273,0) width 0: " "
+          text run at (0,16) width 287: ".one {padding-top: 0.5in; background-color: aqua;}"
+          text run at (287,16) width 0: " "
+          text run at (0,32) width 286: ".two {padding-top: 25px; background-color: aqua;}"
+          text run at (286,32) width 0: " "
+          text run at (0,48) width 292: ".three {padding-top: 5em; background-color: aqua;}"
+          text run at (292,48) width 0: " "
+          text run at (0,64) width 286: ".four {padding-top: 25%; background-color: aqua;}"
+          text run at (286,64) width 0: " "
+          text run at (0,80) width 291: ".five {padding-top: -20px; background-color: aqua;}"
+          text run at (291,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21 [bgcolor=#C0C0C0]
         RenderText {#text} at (0,0) size 214x21
diff --git a/LayoutTests/platform/qt/css1/box_properties/padding_top_inline-expected.txt b/LayoutTests/platform/qt/css1/box_properties/padding_top_inline-expected.txt
index a63f1b7..584fdc0 100644
--- a/LayoutTests/platform/qt/css1/box_properties/padding_top_inline-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/padding_top_inline-expected.txt
@@ -7,25 +7,25 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 400x46
-          text run at (0,1) width 392: ".one {padding-top: 25px; background-color: aqua;}"
-          text run at (392,1) width 0: " "
-          text run at (0,17) width 400: ".two {padding-top: -10px; background-color: aqua;}"
-          text run at (400,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 290x48
+          text run at (0,0) width 287: ".one {padding-top: 25px; background-color: aqua;}"
+          text run at (287,0) width 0: " "
+          text run at (0,16) width 290: ".two {padding-top: -10px; background-color: aqua;}"
+          text run at (290,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x84 [bgcolor=#808080]
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x67 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 764x67 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "one"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 21x16
+            RenderText {#text} at (660,3) size 21x16
+              text run at (660,3) width 21: "one"
+          RenderText {#text} at (681,0) size 764x42
+            text run at (681,0) width 83: ", giving it an"
             text run at (0,21) width 286: "aqua background and a 25px top padding"
         RenderText {#text} at (286,21) size 776x63
           text run at (286,21) width 8: ". "
@@ -37,14 +37,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 511x21
           text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
           text run at (415,0) width 96: "It contains an "
-        RenderInline {SPAN} at (0,0) size 767x42 [bgcolor=#00FFFF]
+        RenderInline {SPAN} at (0,0) size 763x42 [bgcolor=#00FFFF]
           RenderText {#text} at (511,0) size 149x21
             text run at (511,0) width 149: "inline element of class "
-          RenderInline {TT} at (0,0) size 24x14
-            RenderText {#text} at (660,5) size 24x14
-              text run at (660,5) width 24: "two"
-          RenderText {#text} at (684,0) size 767x42
-            text run at (684,0) width 83: ", giving it an"
+          RenderInline {TT} at (0,0) size 20x16
+            RenderText {#text} at (660,3) size 20x16
+              text run at (660,3) width 20: "two"
+          RenderText {#text} at (680,0) size 763x42
+            text run at (680,0) width 83: ", giving it an"
             text run at (0,21) width 573: "aqua background and no top padding, since negative padding values are not allowed"
         RenderText {#text} at (573,21) size 762x42
           text run at (573,21) width 8: ". "
@@ -66,14 +66,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x67 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 743x67 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "one"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 21x16
+                    RenderText {#text} at (660,3) size 21x16
+                      text run at (660,3) width 21: "one"
+                  RenderText {#text} at (681,0) size 743x42
+                    text run at (681,0) width 62: ", giving it"
                     text run at (0,21) width 307: "an aqua background and a 25px top padding"
                 RenderText {#text} at (307,21) size 759x63
                   text run at (307,21) width 8: ". "
@@ -85,14 +85,14 @@ layer at (0,0) size 800x600
                 RenderText {#text} at (0,0) size 511x21
                   text run at (0,0) width 415: "This element is unstyled save for a background color of gray. "
                   text run at (415,0) width 96: "It contains an "
-                RenderInline {SPAN} at (0,0) size 746x42 [bgcolor=#00FFFF]
+                RenderInline {SPAN} at (0,0) size 742x42 [bgcolor=#00FFFF]
                   RenderText {#text} at (511,0) size 149x21
                     text run at (511,0) width 149: "inline element of class "
-                  RenderInline {TT} at (0,0) size 24x14
-                    RenderText {#text} at (660,5) size 24x14
-                      text run at (660,5) width 24: "two"
-                  RenderText {#text} at (684,0) size 746x42
-                    text run at (684,0) width 62: ", giving it"
+                  RenderInline {TT} at (0,0) size 20x16
+                    RenderText {#text} at (660,3) size 20x16
+                      text run at (660,3) width 20: "two"
+                  RenderText {#text} at (680,0) size 742x42
+                    text run at (680,0) width 62: ", giving it"
                     text run at (0,21) width 594: "an aqua background and no top padding, since negative padding values are not allowed"
                 RenderText {#text} at (594,21) size 721x42
                   text run at (594,21) width 8: ". "
diff --git a/LayoutTests/platform/qt/css1/box_properties/width-expected.txt b/LayoutTests/platform/qt/css1/box_properties/width-expected.txt
index 8e2ae91..6d428f1 100644
--- a/LayoutTests/platform/qt/css1/box_properties/width-expected.txt
+++ b/LayoutTests/platform/qt/css1/box_properties/width-expected.txt
@@ -7,13 +7,13 @@ layer at (0,0) size 784x1476
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x48
-        RenderText {#text} at (0,1) size 152x46
-          text run at (0,1) width 152: ".one {width: 50px;}"
-          text run at (152,1) width 0: " "
-          text run at (0,17) width 144: ".two {width: 50%;}"
-          text run at (144,17) width 0: " "
-          text run at (0,33) width 152: "TABLE {width: 50%;}"
-          text run at (152,33) width 0: " "
+        RenderText {#text} at (0,0) size 122x48
+          text run at (0,0) width 107: ".one {width: 50px;}"
+          text run at (107,0) width 0: " "
+          text run at (0,16) width 104: ".two {width: 50%;}"
+          text run at (104,16) width 0: " "
+          text run at (0,32) width 122: "TABLE {width: 50%;}"
+          text run at (122,32) width 0: " "
       RenderBlock {HR} at (0,98) size 768x2 [border: (1px inset #000000)]
       RenderBlock (anonymous) at (0,108) size 768x50
         RenderImage {IMG} at (0,0) size 50x50
@@ -34,12 +34,12 @@ layer at (0,0) size 784x1476
           text run at (0,42) width 298: "itself be half as wide as the BODY element). "
           text run at (298,42) width 83: "This is extra"
           text run at (0,63) width 369: "text included to ensure that this will be a fair test of the"
-        RenderInline {CODE} at (0,0) size 40x14
-          RenderText {#text} at (0,89) size 40x14
-            text run at (0,89) width 40: "width"
-        RenderText {#text} at (40,84) size 362x42
-          text run at (40,84) width 322: " property without the need for the user to resize"
-          text run at (0,105) width 139: "the viewing window."
+        RenderInline {CODE} at (0,0) size 30x16
+          RenderText {#text} at (0,87) size 30x16
+            text run at (0,87) width 30: "width"
+        RenderText {#text} at (30,84) size 377x42
+          text run at (30,84) width 347: " property without the need for the user to resize the"
+          text run at (0,105) width 114: "viewing window."
       RenderTable {TABLE} at (0,790) size 384x670 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 382x668
           RenderTableRow {TR} at (0,0) size 382x29
@@ -78,9 +78,9 @@ layer at (0,0) size 784x1476
                   text run at (0,126) width 143: "extra text included to"
                   text run at (0,147) width 164: "ensure that this will be a"
                   text run at (0,168) width 97: "fair test of the "
-                RenderInline {CODE} at (0,0) size 40x14
-                  RenderText {#text} at (97,173) size 40x14
-                    text run at (97,173) width 40: "width"
+                RenderInline {CODE} at (0,0) size 30x16
+                  RenderText {#text} at (97,171) size 30x16
+                    text run at (97,171) width 30: "width"
                 RenderText {#text} at (0,189) size 177x63
                   text run at (0,189) width 177: "property without the need"
                   text run at (0,210) width 162: "for the user to resize the"
diff --git a/LayoutTests/platform/qt/css1/cascade/cascade_order-expected.txt b/LayoutTests/platform/qt/css1/cascade/cascade_order-expected.txt
index 855aefa..416d044 100644
--- a/LayoutTests/platform/qt/css1/cascade/cascade_order-expected.txt
+++ b/LayoutTests/platform/qt/css1/cascade/cascade_order-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x873
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x176
-        RenderText {#text} at (0,1) size 576x174
-          text run at (0,1) width 576: "<LINK rel=\"stylesheet\" type=\"text/css\" HREF=\"../resources/linktest.css\">"
-          text run at (576,1) width 0: " "
-          text run at (0,17) width 152: "LI {color: purple;}"
-          text run at (152,17) width 0: " "
-          text run at (0,33) width 160: "UL LI {color: blue;}"
-          text run at (160,33) width 0: " "
-          text run at (0,49) width 184: "UL LI LI {color: gray;}"
-          text run at (184,49) width 0: " "
-          text run at (0,65) width 176: "LI.red {color: green;}"
-          text run at (176,65) width 0: " "
-          text run at (0,81) width 216: "UL LI.mar {color: #660000;}"
-          text run at (216,81) width 0: " "
-          text run at (0,97) width 200: "UL LI#gre {color: green;}"
-          text run at (200,97) width 0: " "
-          text run at (0,113) width 160: ".test {color: blue;}"
-          text run at (160,113) width 0: " "
-          text run at (0,129) width 176: ".test {color: purple;}"
-          text run at (176,129) width 0: " "
-          text run at (0,145) width 296: ".one {text-decoration: line-through;}"
-          text run at (296,145) width 0: " "
-          text run at (0,161) width 0: " "
+        RenderText {#text} at (0,0) size 432x176
+          text run at (0,0) width 432: "<LINK rel=\"stylesheet\" type=\"text/css\" HREF=\"../resources/linktest.css\">"
+          text run at (432,0) width 0: " "
+          text run at (0,16) width 98: "LI {color: purple;}"
+          text run at (98,16) width 0: " "
+          text run at (0,32) width 107: "UL LI {color: blue;}"
+          text run at (107,32) width 0: " "
+          text run at (0,48) width 123: "UL LI LI {color: gray;}"
+          text run at (123,48) width 0: " "
+          text run at (0,64) width 117: "LI.red {color: green;}"
+          text run at (117,64) width 0: " "
+          text run at (0,80) width 158: "UL LI.mar {color: #660000;}"
+          text run at (158,80) width 0: " "
+          text run at (0,96) width 140: "UL LI#gre {color: green;}"
+          text run at (140,96) width 0: " "
+          text run at (0,112) width 102: ".test {color: blue;}"
+          text run at (102,112) width 0: " "
+          text run at (0,128) width 113: ".test {color: purple;}"
+          text run at (113,128) width 0: " "
+          text run at (0,144) width 202: ".one {text-decoration: line-through;}"
+          text run at (202,144) width 0: " "
+          text run at (0,160) width 0: " "
       RenderBlock {HR} at (0,226) size 768x2 [border: (1px inset #000000)]
       RenderBlock {UL} at (0,244) size 768x168
         RenderListItem {LI} at (40,0) size 728x21 [color=#0000FF]
@@ -71,11 +71,11 @@ layer at (0,0) size 784x873
       RenderBlock {P} at (0,465) size 768x21 [color=#800080]
         RenderText {#text} at (0,0) size 218x21
           text run at (0,0) width 218: "This sentence should be purple ["
-        RenderInline {CODE} at (0,0) size 96x14
-          RenderText {#text} at (218,5) size 96x14
-            text run at (218,5) width 96: "class=\"test\""
-        RenderText {#text} at (314,0) size 9x21
-          text run at (314,0) width 9: "]."
+        RenderInline {CODE} at (0,0) size 71x16
+          RenderText {#text} at (218,3) size 71x16
+            text run at (218,3) width 71: "class=\"test\""
+        RenderText {#text} at (289,0) size 9x21
+          text run at (289,0) width 9: "]."
       RenderBlock {P} at (0,502) size 768x21
         RenderText {#text} at (0,0) size 736x21
           text run at (0,0) width 736: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
@@ -132,11 +132,11 @@ layer at (0,0) size 784x873
               RenderBlock {P} at (4,225) size 736x21 [color=#800080]
                 RenderText {#text} at (0,0) size 218x21
                   text run at (0,0) width 218: "This sentence should be purple ["
-                RenderInline {CODE} at (0,0) size 96x14
-                  RenderText {#text} at (218,5) size 96x14
-                    text run at (218,5) width 96: "class=\"test\""
-                RenderText {#text} at (314,0) size 9x21
-                  text run at (314,0) width 9: "]."
+                RenderInline {CODE} at (0,0) size 71x16
+                  RenderText {#text} at (218,3) size 71x16
+                    text run at (218,3) width 71: "class=\"test\""
+                RenderText {#text} at (289,0) size 9x21
+                  text run at (289,0) width 9: "]."
               RenderBlock {P} at (4,262) size 736x21
                 RenderText {#text} at (0,0) size 736x21
                   text run at (0,0) width 736: "This text should be stricken (overriding the imported underline; only works if LINKed sheets are supported)."
diff --git a/LayoutTests/platform/qt/css1/cascade/important-expected.txt b/LayoutTests/platform/qt/css1/cascade/important-expected.txt
index 91af934..fc196d5 100644
--- a/LayoutTests/platform/qt/css1/cascade/important-expected.txt
+++ b/LayoutTests/platform/qt/css1/cascade/important-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 232x62
-          text run at (0,1) width 232: "P {color: green ! important;}"
-          text run at (232,1) width 0: " "
-          text run at (0,17) width 120: "P {color: red;}"
-          text run at (120,17) width 0: " "
-          text run at (0,33) width 176: "P#id1 {color: purple;}"
-          text run at (176,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 159x64
+          text run at (0,0) width 159: "P {color: green ! important;}"
+          text run at (159,0) width 0: " "
+          text run at (0,16) width 79: "P {color: red;}"
+          text run at (79,16) width 0: " "
+          text run at (0,32) width 120: "P#id1 {color: purple;}"
+          text run at (120,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 784x42 [color=#008000]
         RenderText {#text} at (0,0) size 729x42
@@ -23,12 +23,12 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,190) size 784x42 [color=#008000]
         RenderText {#text} at (0,0) size 427x21
           text run at (0,0) width 427: "This sentence should also be green, even though it has an ID of "
-        RenderInline {TT} at (0,0) size 24x14
-          RenderText {#text} at (427,5) size 24x14
-            text run at (427,5) width 24: "id1"
-        RenderText {#text} at (451,0) size 773x42
-          text run at (451,0) width 278: ", which would ordinarily make it purple. "
-          text run at (729,0) width 44: "This is"
+        RenderInline {TT} at (0,0) size 17x16
+          RenderText {#text} at (427,3) size 17x16
+            text run at (427,3) width 17: "id1"
+        RenderText {#text} at (444,0) size 766x42
+          text run at (444,0) width 278: ", which would ordinarily make it purple. "
+          text run at (722,0) width 44: "This is"
           text run at (0,21) width 760: "because declarations marked important have more weight than normal declarations given in a STYLE attribute."
       RenderBlock {P} at (0,248) size 784x42 [color=#008000]
         RenderText {#text} at (0,0) size 749x42
@@ -54,12 +54,12 @@ layer at (0,0) size 800x600
               RenderBlock {P} at (4,62) size 762x63 [color=#008000]
                 RenderText {#text} at (0,0) size 427x21
                   text run at (0,0) width 427: "This sentence should also be green, even though it has an ID of "
-                RenderInline {TT} at (0,0) size 24x14
-                  RenderText {#text} at (427,5) size 24x14
-                    text run at (427,5) width 24: "id1"
-                RenderText {#text} at (451,0) size 759x63
-                  text run at (451,0) width 278: ", which would ordinarily make it purple. "
-                  text run at (729,0) width 30: "This"
+                RenderInline {TT} at (0,0) size 17x16
+                  RenderText {#text} at (427,3) size 17x16
+                    text run at (427,3) width 17: "id1"
+                RenderText {#text} at (444,0) size 752x63
+                  text run at (444,0) width 278: ", which would ordinarily make it purple. "
+                  text run at (722,0) width 30: "This"
                   text run at (0,21) width 707: "is because declarations marked important have more weight than normal declarations given in a STYLE"
                   text run at (0,42) width 63: "attribute."
               RenderBlock {P} at (4,141) size 762x42 [color=#008000]
diff --git a/LayoutTests/platform/qt/css1/classification/display-expected.txt b/LayoutTests/platform/qt/css1/classification/display-expected.txt
index 2c4b866..d24a13f 100644
--- a/LayoutTests/platform/qt/css1/classification/display-expected.txt
+++ b/LayoutTests/platform/qt/css1/classification/display-expected.txt
@@ -7,17 +7,17 @@ layer at (0,0) size 784x899
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x80
-        RenderText {#text} at (0,1) size 568x78
-          text run at (0,1) width 176: ".one {display: block;}"
-          text run at (176,1) width 0: " "
-          text run at (0,17) width 184: ".two {display: inline;}"
-          text run at (184,17) width 0: " "
-          text run at (0,33) width 568: ".three {display: list-item; list-style-type: square; margin-left: 3em;}"
-          text run at (568,33) width 0: " "
-          text run at (0,49) width 272: ".four {display: none; color: red;}"
-          text run at (272,49) width 0: " "
-          text run at (0,65) width 152: "I {display: block;}"
-          text run at (152,65) width 0: " "
+        RenderText {#text} at (0,0) size 379x80
+          text run at (0,0) width 121: ".one {display: block;}"
+          text run at (121,0) width 0: " "
+          text run at (0,16) width 119: ".two {display: inline;}"
+          text run at (119,16) width 0: " "
+          text run at (0,32) width 379: ".three {display: list-item; list-style-type: square; margin-left: 3em;}"
+          text run at (379,32) width 0: " "
+          text run at (0,48) width 181: ".four {display: none; color: red;}"
+          text run at (181,48) width 0: " "
+          text run at (0,64) width 100: "I {display: block;}"
+          text run at (100,64) width 0: " "
       RenderBlock {HR} at (0,130) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,148) size 768x21
         RenderText {#text} at (0,0) size 308x21
@@ -33,24 +33,24 @@ layer at (0,0) size 784x899
             text run at (163,21) width 577: "They should therefore appear, along with the sentence above, to be all one paragraph"
             text run at (0,42) width 196: "which is four sentences long. "
             text run at (196,42) width 267: "If this is not the case, then the keyword "
-          RenderInline {CODE} at (0,0) size 48x14
-            RenderText {#text} at (463,47) size 48x14
-              text run at (463,47) width 48: "inline"
-          RenderText {#text} at (511,42) size 115x21
-            text run at (511,42) width 115: " is being ignored."
+          RenderInline {CODE} at (0,0) size 30x16
+            RenderText {#text} at (463,45) size 30x16
+              text run at (463,45) width 30: "inline"
+          RenderText {#text} at (493,42) size 115x21
+            text run at (493,42) width 115: " is being ignored."
         RenderText {#text} at (0,0) size 0x0
       RenderListItem {P} at (48,264) size 720x63
         RenderListMarker at (-18,0) size 7x21: black square
         RenderText {#text} at (0,0) size 707x42
           text run at (0,0) width 707: "This sentence should be treated as a list-item, and therefore be rendered however this user agent displays"
           text run at (0,21) width 80: "list items (if "
-        RenderInline {CODE} at (0,0) size 120x14
-          RenderText {#text} at (80,26) size 120x14
-            text run at (80,26) width 120: "list-style-type"
-        RenderText {#text} at (200,21) size 712x42
-          text run at (200,21) width 390: " is supported, there will be a square for the item marker). "
-          text run at (590,21) width 122: "A 3em left margin"
-          text run at (0,42) width 528: "has been applied in order to ensure that there is space for the list-item marker."
+        RenderInline {CODE} at (0,0) size 78x16
+          RenderText {#text} at (80,24) size 78x16
+            text run at (80,24) width 78: "list-style-type"
+        RenderText {#text} at (158,21) size 697x42
+          text run at (158,21) width 390: " is supported, there will be a square for the item marker). "
+          text run at (548,21) width 149: "A 3em left margin has"
+          text run at (0,42) width 501: "been applied in order to ensure that there is space for the list-item marker."
       RenderBlock {P} at (0,343) size 768x21
         RenderText {#text} at (0,0) size 486x21
           text run at (0,0) width 486: "The next paragraph should be invisible (if it's visible, you'll see red text)."
@@ -94,24 +94,24 @@ layer at (0,0) size 784x899
                     text run at (213,21) width 500: "They should therefore appear, along with the sentence above, to be all one"
                     text run at (0,42) width 273: "paragraph which is four sentences long. "
                     text run at (273,42) width 267: "If this is not the case, then the keyword "
-                  RenderInline {CODE} at (0,0) size 48x14
-                    RenderText {#text} at (540,47) size 48x14
-                      text run at (540,47) width 48: "inline"
-                  RenderText {#text} at (588,42) size 115x21
-                    text run at (588,42) width 115: " is being ignored."
+                  RenderInline {CODE} at (0,0) size 30x16
+                    RenderText {#text} at (540,45) size 30x16
+                      text run at (540,45) width 30: "inline"
+                  RenderText {#text} at (570,42) size 115x21
+                    text run at (570,42) width 115: " is being ignored."
                 RenderText {#text} at (0,0) size 0x0
               RenderListItem {P} at (52,120) size 698x63
                 RenderListMarker at (-18,0) size 7x21: black square
                 RenderText {#text} at (0,0) size 649x42
                   text run at (0,0) width 649: "This sentence should be treated as a list-item, and therefore be rendered however this user agent"
                   text run at (0,21) width 138: "displays list items (if "
-                RenderInline {CODE} at (0,0) size 120x14
-                  RenderText {#text} at (138,26) size 120x14
-                    text run at (138,26) width 120: "list-style-type"
-                RenderText {#text} at (258,21) size 692x42
-                  text run at (258,21) width 390: " is supported, there will be a square for the item marker). "
-                  text run at (648,21) width 44: "A 3em"
-                  text run at (0,42) width 606: "left margin has been applied in order to ensure that there is space for the list-item marker."
+                RenderInline {CODE} at (0,0) size 78x16
+                  RenderText {#text} at (138,24) size 78x16
+                    text run at (138,24) width 78: "list-style-type"
+                RenderText {#text} at (216,21) size 675x42
+                  text run at (216,21) width 390: " is supported, there will be a square for the item marker). "
+                  text run at (606,21) width 69: "A 3em left"
+                  text run at (0,42) width 581: "margin has been applied in order to ensure that there is space for the list-item marker."
               RenderBlock {P} at (4,199) size 746x21
                 RenderText {#text} at (0,0) size 486x21
                   text run at (0,0) width 486: "The next paragraph should be invisible (if it's visible, you'll see red text)."
diff --git a/LayoutTests/platform/qt/css1/classification/list_style-expected.txt b/LayoutTests/platform/qt/css1/classification/list_style-expected.txt
index c2a29c6..8eb0569 100644
--- a/LayoutTests/platform/qt/css1/classification/list_style-expected.txt
+++ b/LayoutTests/platform/qt/css1/classification/list_style-expected.txt
@@ -7,11 +7,11 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 496x30
-          text run at (0,1) width 304: ".one {list-style: upper-alpha inside;}"
-          text run at (304,1) width 0: " "
-          text run at (0,17) width 496: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
-          text run at (496,17) width 0: " "
+        RenderText {#text} at (0,0) size 327x32
+          text run at (0,0) width 203: ".one {list-style: upper-alpha inside;}"
+          text run at (203,0) width 0: " "
+          text run at (0,16) width 327: ".two {list-style: url(../resources/oransqr.gif) disc outside;}"
+          text run at (327,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {UL} at (0,100) size 784x42
         RenderListItem {LI} at (40,0) size 744x42
diff --git a/LayoutTests/platform/qt/css1/classification/list_style_image-expected.txt b/LayoutTests/platform/qt/css1/classification/list_style_image-expected.txt
index 0162e5d..acb2d5d 100644
--- a/LayoutTests/platform/qt/css1/classification/list_style_image-expected.txt
+++ b/LayoutTests/platform/qt/css1/classification/list_style_image-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 440x46
-          text run at (0,1) width 440: ".one {list-style-image: url(../resources/oransqr.gif);}"
-          text run at (440,1) width 0: " "
-          text run at (0,17) width 240: ".two {list-style-image: none;}"
-          text run at (240,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 293x48
+          text run at (0,0) width 293: ".one {list-style-image: url(../resources/oransqr.gif);}"
+          text run at (293,0) width 0: " "
+          text run at (0,16) width 164: ".two {list-style-image: none;}"
+          text run at (164,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {UL} at (0,116) size 784x63
         RenderListItem {LI} at (40,0) size 744x21
diff --git a/LayoutTests/platform/qt/css1/classification/list_style_position-expected.txt b/LayoutTests/platform/qt/css1/classification/list_style_position-expected.txt
index 906c3cb..47f31d3 100644
--- a/LayoutTests/platform/qt/css1/classification/list_style_position-expected.txt
+++ b/LayoutTests/platform/qt/css1/classification/list_style_position-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 288x46
-          text run at (0,1) width 288: ".one {list-style-position: outside;}"
-          text run at (288,1) width 0: " "
-          text run at (0,17) width 280: ".two {list-style-position: inside;}"
-          text run at (280,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 189x48
+          text run at (0,0) width 189: ".one {list-style-position: outside;}"
+          text run at (189,0) width 0: " "
+          text run at (0,16) width 180: ".two {list-style-position: inside;}"
+          text run at (180,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {UL} at (0,116) size 784x42
         RenderListItem {LI} at (40,0) size 744x42
diff --git a/LayoutTests/platform/qt/css1/classification/list_style_type-expected.txt b/LayoutTests/platform/qt/css1/classification/list_style_type-expected.txt
index 86454cf..a966e33 100644
--- a/LayoutTests/platform/qt/css1/classification/list_style_type-expected.txt
+++ b/LayoutTests/platform/qt/css1/classification/list_style_type-expected.txt
@@ -7,26 +7,26 @@ layer at (0,0) size 784x1705
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x160
-        RenderText {#text} at (0,1) size 304x158
-          text run at (0,1) width 232: ".one {list-style-type: disc;}"
-          text run at (232,1) width 0: " "
-          text run at (0,17) width 248: ".two {list-style-type: circle;}"
-          text run at (248,17) width 0: " "
-          text run at (0,33) width 264: ".three {list-style-type: square;}"
-          text run at (264,33) width 0: " "
-          text run at (0,49) width 296: ".four {list-style-type: lower-roman;}"
-          text run at (296,49) width 0: " "
-          text run at (0,65) width 296: ".five {list-style-type: upper-roman;}"
-          text run at (296,65) width 0: " "
-          text run at (0,81) width 288: ".six {list-style-type: lower-alpha;}"
-          text run at (288,81) width 0: " "
-          text run at (0,97) width 304: ".seven {list-style-type: upper-alpha;}"
-          text run at (304,97) width 0: " "
-          text run at (0,113) width 272: ".eight {list-style-type: decimal;}"
-          text run at (272,113) width 0: " "
-          text run at (0,129) width 240: ".nine {list-style-type: none;}"
-          text run at (240,129) width 0: " "
-          text run at (0,145) width 0: " "
+        RenderText {#text} at (0,0) size 208x160
+          text run at (0,0) width 151: ".one {list-style-type: disc;}"
+          text run at (151,0) width 0: " "
+          text run at (0,16) width 157: ".two {list-style-type: circle;}"
+          text run at (157,16) width 0: " "
+          text run at (0,32) width 174: ".three {list-style-type: square;}"
+          text run at (174,32) width 0: " "
+          text run at (0,48) width 198: ".four {list-style-type: lower-roman;}"
+          text run at (198,48) width 0: " "
+          text run at (0,64) width 199: ".five {list-style-type: upper-roman;}"
+          text run at (199,64) width 0: " "
+          text run at (0,80) width 188: ".six {list-style-type: lower-alpha;}"
+          text run at (188,80) width 0: " "
+          text run at (0,96) width 208: ".seven {list-style-type: upper-alpha;}"
+          text run at (208,96) width 0: " "
+          text run at (0,112) width 179: ".eight {list-style-type: decimal;}"
+          text run at (179,112) width 0: " "
+          text run at (0,128) width 158: ".nine {list-style-type: none;}"
+          text run at (158,128) width 0: " "
+          text run at (0,144) width 0: " "
       RenderBlock {HR} at (0,210) size 768x2 [border: (1px inset #000000)]
       RenderBlock {UL} at (0,228) size 768x63
         RenderListItem {LI} at (40,0) size 728x21
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background-expected.txt
index c4fcb3d..4a8ec3e 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background-expected.txt
@@ -7,27 +7,27 @@ layer at (0,0) size 784x803
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 648x62
-          text run at (0,1) width 648: "BODY {background: green url(../resources/oransqr.gif) repeat-x center top fixed;}"
-          text run at (648,1) width 0: " "
-          text run at (0,17) width 568: ".one {background: lime url(../resources/oransqr.gif) repeat-y 100% 0%;}"
-          text run at (568,17) width 0: " "
-          text run at (0,33) width 592: ".two {background: lime url(../resources/oransqr.gif) repeat-y center top;}"
-          text run at (592,33) width 0: " "
-          text run at (0,49) width 592: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
-          text run at (592,49) width 0: " "
+        RenderText {#text} at (0,0) size 465x64
+          text run at (0,0) width 465: "BODY {background: green url(../resources/oransqr.gif) repeat-x center top fixed;}"
+          text run at (465,0) width 0: " "
+          text run at (0,16) width 411: ".one {background: lime url(../resources/oransqr.gif) repeat-y 100% 0%;}"
+          text run at (411,16) width 0: " "
+          text run at (0,32) width 412: ".two {background: lime url(../resources/oransqr.gif) repeat-y center top;}"
+          text run at (412,32) width 0: " "
+          text run at (0,48) width 403: ".three {background: lime url(../resources/oransqr.gif) repeat-x left top;}"
+          text run at (403,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x63
         RenderText {#text} at (0,0) size 749x42
           text run at (0,0) width 749: "This document should have a green background with an orange strip running across the entire top of the page,"
           text run at (0,21) width 37: "since "
-        RenderInline {CODE} at (0,0) size 64x14
-          RenderText {#text} at (37,26) size 64x14
-            text run at (37,26) width 64: "repeat-x"
-        RenderText {#text} at (101,21) size 758x42
-          text run at (101,21) width 316: " indicates tiling in both directions of the x-axis. "
-          text run at (417,21) width 323: "Furthermore, the strip should be fixed in place. "
-          text run at (740,21) width 18: "I'll"
+        RenderInline {CODE} at (0,0) size 47x16
+          RenderText {#text} at (37,24) size 47x16
+            text run at (37,24) width 47: "repeat-x"
+        RenderText {#text} at (84,21) size 741x42
+          text run at (84,21) width 316: " indicates tiling in both directions of the x-axis. "
+          text run at (400,21) width 323: "Furthermore, the strip should be fixed in place. "
+          text run at (723,21) width 18: "I'll"
           text run at (0,42) width 607: "have to add extra text at the end of this page to make it long enough to scroll conveniently."
       RenderBlock {P} at (0,211) size 768x63 [bgcolor=#00FF00]
         RenderText {#text} at (0,0) size 758x63
@@ -66,12 +66,12 @@ layer at (0,0) size 784x803
                 RenderText {#text} at (0,0) size 709x42
                   text run at (0,0) width 709: "This document should have a green background with an orange strip running across the entire top of the"
                   text run at (0,21) width 77: "page, since "
-                RenderInline {CODE} at (0,0) size 64x14
-                  RenderText {#text} at (77,26) size 64x14
-                    text run at (77,26) width 64: "repeat-x"
-                RenderText {#text} at (141,21) size 733x42
-                  text run at (141,21) width 316: " indicates tiling in both directions of the x-axis. "
-                  text run at (457,21) width 276: "Furthermore, the strip should be fixed in"
+                RenderInline {CODE} at (0,0) size 47x16
+                  RenderText {#text} at (77,24) size 47x16
+                    text run at (77,24) width 47: "repeat-x"
+                RenderText {#text} at (124,21) size 716x42
+                  text run at (124,21) width 316: " indicates tiling in both directions of the x-axis. "
+                  text run at (440,21) width 276: "Furthermore, the strip should be fixed in"
                   text run at (0,42) width 43: "place. "
                   text run at (43,42) width 629: "I'll have to add extra text at the end of this page to make it long enough to scroll conveniently."
               RenderBlock {P} at (4,83) size 746x63 [bgcolor=#00FF00]
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background_attachment-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background_attachment-expected.txt
index 4eab7f2..811ce5f 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background_attachment-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background_attachment-expected.txt
@@ -1,16 +1,16 @@
-layer at (0,0) size 880x1313
-  RenderView at (0,0) size 784x584
-layer at (0,0) size 880x1313
+layer at (0,0) size 784x1313
+  RenderView at (0,0) size 784x600
+layer at (0,0) size 784x1313
   RenderBlock {HTML} at (0,0) size 784x1313
     RenderBody {BODY} at (8,8) size 768x1297 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x32
-        RenderText {#text} at (0,1) size 872x30
-          text run at (0,1) width 872: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
-          text run at (872,1) width 0: " "
-          text run at (0,17) width 0: " "
+        RenderText {#text} at (0,0) size 644x32
+          text run at (0,0) width 644: "BODY {background-image: url(../resources/bg.gif); background-repeat: repeat-x; background-attachment: fixed;}"
+          text run at (644,0) width 0: " "
+          text run at (0,16) width 0: " "
       RenderBlock {HR} at (0,82) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 768x105
         RenderText {#text} at (0,0) size 767x105
@@ -70,17 +70,17 @@ layer at (0,0) size 880x1313
           text run at (0,0) width 748: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard to"
           text run at (0,21) width 320: "the canvas or if it scrolls along with the content."
       RenderBlock {PRE} at (0,512) size 768x80
-        RenderText {#text} at (0,1) size 296x78
-          text run at (0,1) width 72: "  BODY { "
-          text run at (72,1) width 0: " "
-          text run at (0,17) width 296: "    background: red url(pendant.gif);"
-          text run at (296,17) width 0: " "
-          text run at (0,33) width 256: "    background-repeat: repeat-y;"
-          text run at (256,33) width 0: " "
-          text run at (0,49) width 264: "    background-attachment: fixed;"
-          text run at (264,49) width 0: " "
-          text run at (0,65) width 24: "  }"
-          text run at (24,65) width 0: " "
+        RenderText {#text} at (0,0) size 203x80
+          text run at (0,0) width 57: "  BODY { "
+          text run at (57,0) width 0: " "
+          text run at (0,16) width 203: "    background: red url(pendant.gif);"
+          text run at (203,16) width 0: " "
+          text run at (0,32) width 182: "    background-repeat: repeat-y;"
+          text run at (182,32) width 0: " "
+          text run at (0,48) width 192: "    background-attachment: fixed;"
+          text run at (192,48) width 0: " "
+          text run at (0,64) width 12: "  }"
+          text run at (12,64) width 0: " "
       RenderBlock {P} at (0,608) size 768x63
         RenderInline {EM} at (0,0) size 74x21
           RenderText {#text} at (0,0) size 74x21
@@ -159,17 +159,17 @@ layer at (0,0) size 880x1313
                   text run at (0,0) width 731: "If a background image is specified, the value of 'background-attachment' determines if it is fixed with regard"
                   text run at (0,21) width 337: "to the canvas or if it scrolls along with the content."
               RenderBlock {PRE} at (4,416) size 746x80
-                RenderText {#text} at (0,1) size 296x78
-                  text run at (0,1) width 72: "  BODY { "
-                  text run at (72,1) width 0: " "
-                  text run at (0,17) width 296: "    background: red url(pendant.gif);"
-                  text run at (296,17) width 0: " "
-                  text run at (0,33) width 256: "    background-repeat: repeat-y;"
-                  text run at (256,33) width 0: " "
-                  text run at (0,49) width 264: "    background-attachment: fixed;"
-                  text run at (264,49) width 0: " "
-                  text run at (0,65) width 24: "  }"
-                  text run at (24,65) width 0: " "
+                RenderText {#text} at (0,0) size 203x80
+                  text run at (0,0) width 57: "  BODY { "
+                  text run at (57,0) width 0: " "
+                  text run at (0,16) width 203: "    background: red url(pendant.gif);"
+                  text run at (203,16) width 0: " "
+                  text run at (0,32) width 182: "    background-repeat: repeat-y;"
+                  text run at (182,32) width 0: " "
+                  text run at (0,48) width 192: "    background-attachment: fixed;"
+                  text run at (192,48) width 0: " "
+                  text run at (0,64) width 12: "  }"
+                  text run at (12,64) width 0: " "
               RenderBlock {P} at (4,512) size 746x63
                 RenderInline {EM} at (0,0) size 74x21
                   RenderText {#text} at (0,0) size 74x21
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background_color-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background_color-expected.txt
index 8d2de1f..79fc1fb 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background_color-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background_color-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 784x635
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 296x62
-          text run at (0,1) width 224: "P {background-color: green;}"
-          text run at (224,1) width 0: " "
-          text run at (0,17) width 240: ".one {background-color: lime;}"
-          text run at (240,17) width 0: " "
-          text run at (0,33) width 296: ".two {background-color: transparent;}"
-          text run at (296,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 212x64
+          text run at (0,0) width 164: "P {background-color: green;}"
+          text run at (164,0) width 0: " "
+          text run at (0,16) width 172: ".one {background-color: lime;}"
+          text run at (172,16) width 0: " "
+          text run at (0,32) width 212: ".two {background-color: transparent;}"
+          text run at (212,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x21 [bgcolor=#008000]
         RenderText {#text} at (0,0) size 298x21
@@ -32,13 +32,13 @@ layer at (0,0) size 784x635
           text run at (83,21) width 8: ". "
           text run at (91,21) width 675: "This is because the background color of the parent element (the paragraph) should \"shine through\""
           text run at (0,42) width 334: "the SPANned word \"sentence,\" which was set to "
-        RenderInline {CODE} at (0,0) size 88x14
-          RenderText {#text} at (334,47) size 88x14
-            text run at (334,47) width 88: "transparent"
-        RenderText {#text} at (422,42) size 713x42
-          text run at (422,42) width 8: ". "
-          text run at (430,42) width 283: "If the document background is visible, the"
-          text run at (0,63) width 131: "browser is in error."
+        RenderInline {CODE} at (0,0) size 65x16
+          RenderText {#text} at (334,45) size 65x16
+            text run at (334,45) width 65: "transparent"
+        RenderText {#text} at (399,42) size 764x42
+          text run at (399,42) width 8: ". "
+          text run at (407,42) width 357: "If the document background is visible, the browser is"
+          text run at (0,63) width 57: "in error."
       RenderBlock {P} at (0,306) size 768x42
         RenderText {#text} at (0,0) size 765x42
           text run at (0,0) width 499: "This element should allow the document background to \"shine through.\" "
@@ -72,13 +72,13 @@ layer at (0,0) size 784x635
                   text run at (83,21) width 8: ". "
                   text run at (91,21) width 607: "This is because the background color of the parent element (the paragraph) should \"shine"
                   text run at (0,42) width 402: "through\" the SPANned word \"sentence,\" which was set to "
-                RenderInline {CODE} at (0,0) size 88x14
-                  RenderText {#text} at (402,47) size 88x14
-                    text run at (402,47) width 88: "transparent"
-                RenderText {#text} at (490,42) size 706x42
-                  text run at (490,42) width 8: ". "
-                  text run at (498,42) width 208: "If the document background is"
-                  text run at (0,63) width 206: "visible, the browser is in error."
+                RenderInline {CODE} at (0,0) size 65x16
+                  RenderText {#text} at (402,45) size 65x16
+                    text run at (402,45) width 65: "transparent"
+                RenderText {#text} at (467,42) size 733x42
+                  text run at (467,42) width 8: ". "
+                  text run at (475,42) width 258: "If the document background is visible,"
+                  text run at (0,63) width 156: "the browser is in error."
               RenderBlock {P} at (4,178) size 746x42
                 RenderText {#text} at (0,0) size 672x42
                   text run at (0,0) width 499: "This element should allow the document background to \"shine through.\" "
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background_image-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background_image-expected.txt
index ff1fbef..5b59b9b 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background_image-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background_image-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 784x608
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x48
-        RenderText {#text} at (0,1) size 376x46
-          text run at (0,1) width 376: "P {background-image: url(../resources/bg.gif);}"
-          text run at (376,1) width 0: " "
-          text run at (0,17) width 240: ".one {background-image: none;}"
-          text run at (240,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 266x48
+          text run at (0,0) width 266: "P {background-image: url(../resources/bg.gif);}"
+          text run at (266,0) width 0: " "
+          text run at (0,16) width 183: ".one {background-image: none;}"
+          text run at (183,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 768x42
         RenderText {#text} at (0,0) size 760x42
@@ -30,17 +30,17 @@ layer at (0,0) size 784x608
           text run at (742,0) width 8: ". "
           text run at (750,0) width 11: "If"
           text run at (0,21) width 91: "it is not, then "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (91,26) size 32x14
-            text run at (91,26) width 32: "none"
-        RenderText {#text} at (123,21) size 184x21
-          text run at (123,21) width 179: " is interpreted incorrectly. "
-          text run at (302,21) width 5: "("
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (307,26) size 32x14
-            text run at (307,26) width 32: "none"
-        RenderText {#text} at (339,21) size 767x63
-          text run at (339,21) width 428: " means that the element has no background image, allowing the"
+        RenderInline {CODE} at (0,0) size 28x16
+          RenderText {#text} at (91,24) size 28x16
+            text run at (91,24) width 28: "none"
+        RenderText {#text} at (119,21) size 184x21
+          text run at (119,21) width 179: " is interpreted incorrectly. "
+          text run at (298,21) width 5: "("
+        RenderInline {CODE} at (0,0) size 28x16
+          RenderText {#text} at (303,24) size 28x16
+            text run at (303,24) width 28: "none"
+        RenderText {#text} at (331,21) size 759x63
+          text run at (331,21) width 428: " means that the element has no background image, allowing the"
           text run at (0,42) width 757: "parent to \"shine through\" by default; since the parent of the words \"in this sentence\" is the paragraph, then the"
           text run at (0,63) width 251: "paragraph's image should be visible.)"
       RenderBlock {P} at (0,274) size 768x42
@@ -75,17 +75,17 @@ layer at (0,0) size 784x608
                 RenderText {#text} at (742,0) size 746x42
                   text run at (742,0) width 4: "."
                   text run at (0,21) width 106: "If it is not, then "
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (106,26) size 32x14
-                    text run at (106,26) width 32: "none"
-                RenderText {#text} at (138,21) size 184x21
-                  text run at (138,21) width 179: " is interpreted incorrectly. "
-                  text run at (317,21) width 5: "("
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (322,26) size 32x14
-                    text run at (322,26) width 32: "none"
-                RenderText {#text} at (354,21) size 703x63
-                  text run at (354,21) width 342: " means that the element has no background image,"
+                RenderInline {CODE} at (0,0) size 28x16
+                  RenderText {#text} at (106,24) size 28x16
+                    text run at (106,24) width 28: "none"
+                RenderText {#text} at (134,21) size 184x21
+                  text run at (134,21) width 179: " is interpreted incorrectly. "
+                  text run at (313,21) width 5: "("
+                RenderInline {CODE} at (0,0) size 28x16
+                  RenderText {#text} at (318,24) size 28x16
+                    text run at (318,24) width 28: "none"
+                RenderText {#text} at (346,21) size 703x63
+                  text run at (346,21) width 342: " means that the element has no background image,"
                   text run at (0,42) width 703: "allowing the parent to \"shine through\" by default; since the parent of the words \"in this sentence\" is the"
                   text run at (0,63) width 391: "paragraph, then the paragraph's image should be visible.)"
               RenderBlock {P} at (4,183) size 746x42
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background_position-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background_position-expected.txt
index 539eb76..98f8b1b 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background_position-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background_position-expected.txt
@@ -7,40 +7,40 @@ layer at (0,0) size 784x1643
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x272
-        RenderText {#text} at (0,1) size 688x270
-          text run at (0,1) width 648: "BODY {background-image: url(../resources/bg.gif); background-position: right top;"
-          text run at (648,1) width 0: " "
-          text run at (0,17) width 288: "      background-repeat: no-repeat;}"
-          text run at (288,17) width 0: " "
-          text run at (0,33) width 624: ".one {background-image: url(../resources/bg.gif); background-position: center;"
-          text run at (624,33) width 0: " "
-          text run at (0,49) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
-          text run at (480,49) width 0: " "
-          text run at (0,65) width 632: ".two {background-image: url(../resources/bg.gif); background-position: 50% 50%;"
-          text run at (632,65) width 0: " "
-          text run at (0,81) width 480: "      background-repeat: no-repeat; background-color: aqua;}"
-          text run at (480,81) width 0: " "
-          text run at (0,97) width 688: ".three {background-image: url(../resources/bg.gif); background-position: bottom right;"
-          text run at (688,97) width 0: " "
-          text run at (0,113) width 496: "        background-repeat: no-repeat; background-color: aqua;}"
-          text run at (496,113) width 0: " "
-          text run at (0,129) width 656: ".four {background-image: url(../resources/bg.gif); background-position: 100% 100%;"
-          text run at (656,129) width 0: " "
-          text run at (0,145) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
-          text run at (488,145) width 0: " "
-          text run at (0,161) width 632: ".five {background-image: url(../resources/bg.gif); background-position: 0% 50%;"
-          text run at (632,161) width 0: " "
-          text run at (0,177) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
-          text run at (488,177) width 0: " "
-          text run at (0,193) width 632: ".six {background-image: url(../resources/bg.gif); background-position: 75% 25%;"
-          text run at (632,193) width 0: " "
-          text run at (0,209) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
-          text run at (488,209) width 0: " "
-          text run at (0,225) width 664: ".seven {background-image: url(../resources/bg.gif); background-position: 20px 20px;"
-          text run at (664,225) width 0: " "
-          text run at (0,241) width 488: "       background-repeat: no-repeat; background-color: aqua;}"
-          text run at (488,241) width 0: " "
-          text run at (0,257) width 0: " "
+        RenderText {#text} at (0,0) size 487x272
+          text run at (0,0) width 469: "BODY {background-image: url(../resources/bg.gif); background-position: right top;"
+          text run at (469,0) width 0: " "
+          text run at (0,16) width 201: "      background-repeat: no-repeat;}"
+          text run at (201,16) width 0: " "
+          text run at (0,32) width 446: ".one {background-image: url(../resources/bg.gif); background-position: center;"
+          text run at (446,32) width 0: " "
+          text run at (0,48) width 344: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (344,48) width 0: " "
+          text run at (0,64) width 465: ".two {background-image: url(../resources/bg.gif); background-position: 50% 50%;"
+          text run at (465,64) width 0: " "
+          text run at (0,80) width 344: "      background-repeat: no-repeat; background-color: aqua;}"
+          text run at (344,80) width 0: " "
+          text run at (0,96) width 487: ".three {background-image: url(../resources/bg.gif); background-position: bottom right;"
+          text run at (487,96) width 0: " "
+          text run at (0,112) width 352: "        background-repeat: no-repeat; background-color: aqua;}"
+          text run at (352,112) width 0: " "
+          text run at (0,128) width 481: ".four {background-image: url(../resources/bg.gif); background-position: 100% 100%;"
+          text run at (481,128) width 0: " "
+          text run at (0,144) width 348: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (348,144) width 0: " "
+          text run at (0,160) width 459: ".five {background-image: url(../resources/bg.gif); background-position: 0% 50%;"
+          text run at (459,160) width 0: " "
+          text run at (0,176) width 348: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (348,176) width 0: " "
+          text run at (0,192) width 462: ".six {background-image: url(../resources/bg.gif); background-position: 75% 25%;"
+          text run at (462,192) width 0: " "
+          text run at (0,208) width 348: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (348,208) width 0: " "
+          text run at (0,224) width 484: ".seven {background-image: url(../resources/bg.gif); background-position: 20px 20px;"
+          text run at (484,224) width 0: " "
+          text run at (0,240) width 348: "       background-repeat: no-repeat; background-color: aqua;}"
+          text run at (348,240) width 0: " "
+          text run at (0,256) width 0: " "
       RenderBlock {HR} at (0,322) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,340) size 768x21
         RenderText {#text} at (0,0) size 540x21
diff --git a/LayoutTests/platform/qt/css1/color_and_background/background_repeat-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/background_repeat-expected.txt
index 9f470be..74129f3 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/background_repeat-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/background_repeat-expected.txt
@@ -1,76 +1,76 @@
-layer at (0,0) size 888x2126
-  RenderView at (0,0) size 784x584
-layer at (0,0) size 888x2126
+layer at (0,0) size 784x2126
+  RenderView at (0,0) size 784x600
+layer at (0,0) size 784x2126
   RenderBlock {HTML} at (0,0) size 784x2126
     RenderBody {BODY} at (8,8) size 768x2110 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x240
-        RenderText {#text} at (0,1) size 880x238
-          text run at (0,1) width 672: ".one {background-image: url(../resources/oransqr.gif); background-repeat: repeat-y;}"
-          text run at (672,1) width 0: " "
-          text run at (0,17) width 672: ".two {background-image: url(../resources/oransqr.gif); background-repeat: repeat-x;}"
-          text run at (672,17) width 0: " "
-          text run at (0,33) width 696: ".three {background-image: url(../resources/oransqr.gif); background-repeat: no-repeat;}"
-          text run at (696,33) width 0: " "
-          text run at (0,49) width 880: ".four {background-image: url(../resources/bg.gif); background-position: 50% 50%; background-repeat: repeat-y;}"
-          text run at (880,49) width 0: " "
-          text run at (0,65) width 704: ".five {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
-          text run at (704,65) width 0: " "
-          text run at (0,81) width 240: "       background-color: red;}"
-          text run at (240,81) width 0: " "
-          text run at (0,97) width 720: ".six {background-image: url(../resources/crosshair2.gif); background-position: center top;"
-          text run at (720,97) width 0: " "
-          text run at (0,113) width 232: "      background-color: red;}"
-          text run at (232,113) width 0: " "
-          text run at (0,129) width 720: ".seven {background-image: url(../resources/crosshair2.gif); background-position: top left;"
-          text run at (720,129) width 0: " "
-          text run at (0,145) width 248: "        background-color: red;}"
-          text run at (248,145) width 0: " "
-          text run at (0,161) width 752: ".eight {background-image: url(../resources/crosshair2.gif); background-position: bottom right;"
-          text run at (752,161) width 0: " "
-          text run at (0,177) width 248: "        background-color: red;}"
-          text run at (248,177) width 0: " "
-          text run at (0,193) width 704: ".nine {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
-          text run at (704,193) width 0: " "
-          text run at (0,209) width 240: "       background-color: red;}"
-          text run at (240,209) width 0: " "
-          text run at (0,225) width 0: " "
+        RenderText {#text} at (0,0) size 641x240
+          text run at (0,0) width 481: ".one {background-image: url(../resources/oransqr.gif); background-repeat: repeat-y;}"
+          text run at (481,0) width 0: " "
+          text run at (0,16) width 480: ".two {background-image: url(../resources/oransqr.gif); background-repeat: repeat-x;}"
+          text run at (480,16) width 0: " "
+          text run at (0,32) width 496: ".three {background-image: url(../resources/oransqr.gif); background-repeat: no-repeat;}"
+          text run at (496,32) width 0: " "
+          text run at (0,48) width 641: ".four {background-image: url(../resources/bg.gif); background-position: 50% 50%; background-repeat: repeat-y;}"
+          text run at (641,48) width 0: " "
+          text run at (0,64) width 512: ".five {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (512,64) width 0: " "
+          text run at (0,80) width 161: "       background-color: red;}"
+          text run at (161,80) width 0: " "
+          text run at (0,96) width 510: ".six {background-image: url(../resources/crosshair2.gif); background-position: center top;"
+          text run at (510,96) width 0: " "
+          text run at (0,112) width 157: "      background-color: red;}"
+          text run at (157,112) width 0: " "
+          text run at (0,128) width 510: ".seven {background-image: url(../resources/crosshair2.gif); background-position: top left;"
+          text run at (510,128) width 0: " "
+          text run at (0,144) width 165: "        background-color: red;}"
+          text run at (165,144) width 0: " "
+          text run at (0,160) width 532: ".eight {background-image: url(../resources/crosshair2.gif); background-position: bottom right;"
+          text run at (532,160) width 0: " "
+          text run at (0,176) width 165: "        background-color: red;}"
+          text run at (165,176) width 0: " "
+          text run at (0,192) width 515: ".nine {background-image: url(../resources/crosshair2.gif); background-position: 50% 50%;"
+          text run at (515,192) width 0: " "
+          text run at (0,208) width 161: "       background-color: red;}"
+          text run at (161,208) width 0: " "
+          text run at (0,224) width 0: " "
       RenderBlock {HR} at (0,290) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,308) size 768x63
         RenderText {#text} at (0,0) size 752x42
           text run at (0,0) width 752: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner (since"
           text run at (0,21) width 100: "the default for "
-        RenderInline {CODE} at (0,0) size 152x14
-          RenderText {#text} at (100,26) size 152x14
-            text run at (100,26) width 152: "background-position"
-        RenderText {#text} at (252,21) size 716x42
-          text run at (252,21) width 352: " is '0% 0%' and that property is not declared here). "
-          text run at (604,21) width 112: "This is extra text"
-          text run at (0,42) width 424: "included for the sole purpose of making the paragraph longer. "
-          text run at (424,42) width 242: "Thank you for your understanding."
+        RenderInline {CODE} at (0,0) size 116x16
+          RenderText {#text} at (100,24) size 116x16
+            text run at (100,24) width 116: "background-position"
+        RenderText {#text} at (216,21) size 766x42
+          text run at (216,21) width 352: " is '0% 0%' and that property is not declared here). "
+          text run at (568,21) width 198: "This is extra text included for"
+          text run at (0,42) width 338: "the sole purpose of making the paragraph longer. "
+          text run at (338,42) width 242: "Thank you for your understanding."
       RenderBlock {P} at (0,387) size 768x63
         RenderText {#text} at (0,0) size 752x42
           text run at (0,0) width 752: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner (since"
           text run at (0,21) width 100: "the default for "
-        RenderInline {CODE} at (0,0) size 152x14
-          RenderText {#text} at (100,26) size 152x14
-            text run at (100,26) width 152: "background-position"
-        RenderText {#text} at (252,21) size 716x42
-          text run at (252,21) width 352: " is '0% 0%' and that property is not declared here). "
-          text run at (604,21) width 112: "This is extra text"
-          text run at (0,42) width 424: "included for the sole purpose of making the paragraph longer. "
-          text run at (424,42) width 242: "Thank you for your understanding."
+        RenderInline {CODE} at (0,0) size 116x16
+          RenderText {#text} at (100,24) size 116x16
+            text run at (100,24) width 116: "background-position"
+        RenderText {#text} at (216,21) size 766x42
+          text run at (216,21) width 352: " is '0% 0%' and that property is not declared here). "
+          text run at (568,21) width 198: "This is extra text included for"
+          text run at (0,42) width 338: "the sole purpose of making the paragraph longer. "
+          text run at (338,42) width 242: "Thank you for your understanding."
       RenderBlock {P} at (0,466) size 768x63
         RenderText {#text} at (0,0) size 750x21
           text run at (0,0) width 750: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default for"
-        RenderInline {CODE} at (0,0) size 152x14
-          RenderText {#text} at (0,26) size 152x14
-            text run at (0,26) width 152: "background-position"
-        RenderText {#text} at (152,21) size 756x42
-          text run at (152,21) width 352: " is '0% 0%' and that property is not declared here). "
-          text run at (504,21) width 252: "This is extra text included for the sole"
+        RenderInline {CODE} at (0,0) size 116x16
+          RenderText {#text} at (0,24) size 116x16
+            text run at (0,24) width 116: "background-position"
+        RenderText {#text} at (116,21) size 720x42
+          text run at (116,21) width 352: " is '0% 0%' and that property is not declared here). "
+          text run at (468,21) width 252: "This is extra text included for the sole"
           text run at (0,42) width 284: "purpose of making the paragraph longer. "
           text run at (284,42) width 242: "Thank you for your understanding."
       RenderBlock {P} at (0,545) size 768x84
@@ -78,61 +78,61 @@ layer at (0,0) size 888x2126
           text run at (0,0) width 735: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the"
           text run at (0,21) width 324: "origin image exactly centered in the paragraph. "
           text run at (324,21) width 105: "This is because "
-        RenderInline {CODE} at (0,0) size 64x14
-          RenderText {#text} at (429,26) size 64x14
-            text run at (429,26) width 64: "repeat-y"
-        RenderText {#text} at (493,21) size 118x21
-          text run at (493,21) width 118: " specifies tiling in "
+        RenderInline {CODE} at (0,0) size 47x16
+          RenderText {#text} at (429,24) size 47x16
+            text run at (429,24) width 47: "repeat-y"
+        RenderText {#text} at (476,21) size 118x21
+          text run at (476,21) width 118: " specifies tiling in "
         RenderInline {EM} at (0,0) size 29x21
-          RenderText {#text} at (611,21) size 29x21
-            text run at (611,21) width 29: "both"
-        RenderText {#text} at (640,21) size 756x42
-          text run at (640,21) width 116: " directions on the"
-          text run at (0,42) width 47: "y-axis. "
-          text run at (47,42) width 381: "Note that this test is only valid if the user agent supports "
-        RenderInline {CODE} at (0,0) size 152x14
-          RenderText {#text} at (428,47) size 152x14
-            text run at (428,47) width 152: "background-position"
-        RenderText {#text} at (580,42) size 33x21
-          text run at (580,42) width 33: " (see "
+          RenderText {#text} at (594,21) size 29x21
+            text run at (594,21) width 29: "both"
+        RenderText {#text} at (623,21) size 756x42
+          text run at (623,21) width 133: " directions on the y-"
+          text run at (0,42) width 34: "axis. "
+          text run at (34,42) width 381: "Note that this test is only valid if the user agent supports "
+        RenderInline {CODE} at (0,0) size 116x16
+          RenderText {#text} at (415,45) size 116x16
+            text run at (415,45) width 116: "background-position"
+        RenderText {#text} at (531,42) size 33x21
+          text run at (531,42) width 33: " (see "
         RenderInline {A} at (0,0) size 59x21 [color=#0000FF]
-          RenderText {#text} at (613,42) size 59x21
-            text run at (613,42) width 59: "test 5.3.6"
-        RenderText {#text} at (672,42) size 749x42
-          text run at (672,42) width 13: "). "
-          text run at (685,42) width 64: "I'll fill the"
+          RenderText {#text} at (564,42) size 59x21
+            text run at (564,42) width 59: "test 5.3.6"
+        RenderText {#text} at (623,42) size 700x42
+          text run at (623,42) width 13: "). "
+          text run at (636,42) width 64: "I'll fill the"
           text run at (0,63) width 562: "paragraph with extra text to make the conformance (or lack thereof) more obvious."
       RenderBlock {P} at (0,645) size 768x105 [bgcolor=#FF0000]
         RenderText {#text} at (0,0) size 759x42
           text run at (0,0) width 715: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
           text run at (715,0) width 44: "This is"
           text run at (0,21) width 57: "because "
-        RenderInline {CODE} at (0,0) size 136x14
-          RenderText {#text} at (57,26) size 136x14
-            text run at (57,26) width 136: "background-repeat"
-        RenderText {#text} at (193,21) size 118x21
-          text run at (193,21) width 118: " specifies tiling in "
+        RenderInline {CODE} at (0,0) size 107x16
+          RenderText {#text} at (57,24) size 107x16
+            text run at (57,24) width 107: "background-repeat"
+        RenderText {#text} at (164,21) size 118x21
+          text run at (164,21) width 118: " specifies tiling in "
         RenderInline {EM} at (0,0) size 16x21
-          RenderText {#text} at (311,21) size 16x21
-            text run at (311,21) width 16: "all"
-        RenderText {#text} at (327,21) size 743x42
-          text run at (327,21) width 384: " directions, regardless of the position of the origin image. "
-          text run at (711,21) width 32: "Note"
-          text run at (0,42) width 345: "that this test is only valid if the user agent supports "
-        RenderInline {CODE} at (0,0) size 152x14
-          RenderText {#text} at (345,47) size 152x14
-            text run at (345,47) width 152: "background-position"
-        RenderText {#text} at (497,42) size 33x21
-          text run at (497,42) width 33: " (see "
+          RenderText {#text} at (282,21) size 16x21
+            text run at (282,21) width 16: "all"
+        RenderText {#text} at (298,21) size 745x42
+          text run at (298,21) width 384: " directions, regardless of the position of the origin image. "
+          text run at (682,21) width 63: "Note that"
+          text run at (0,42) width 314: "this test is only valid if the user agent supports "
+        RenderInline {CODE} at (0,0) size 116x16
+          RenderText {#text} at (314,45) size 116x16
+            text run at (314,45) width 116: "background-position"
+        RenderText {#text} at (430,42) size 33x21
+          text run at (430,42) width 33: " (see "
         RenderInline {A} at (0,0) size 59x21 [color=#0000FF]
-          RenderText {#text} at (530,42) size 59x21
-            text run at (530,42) width 59: "test 5.3.6"
-        RenderText {#text} at (589,42) size 762x63
-          text run at (589,42) width 13: "). "
-          text run at (602,42) width 141: "I'll fill the paragraph"
-          text run at (0,63) width 489: "with extra text to make the conformance (or lack thereof) more obvious. "
-          text run at (489,63) width 273: "A background color is present, although"
-          text run at (0,84) width 366: "if it is visible then the image has not bee correctly tiled."
+          RenderText {#text} at (463,42) size 59x21
+            text run at (463,42) width 59: "test 5.3.6"
+        RenderText {#text} at (522,42) size 749x63
+          text run at (522,42) width 13: "). "
+          text run at (535,42) width 214: "I'll fill the paragraph with extra"
+          text run at (0,63) width 416: "text to make the conformance (or lack thereof) more obvious. "
+          text run at (416,63) width 313: "A background color is present, although if it is"
+          text run at (0,84) width 326: "visible then the image has not bee correctly tiled."
       RenderBlock {P} at (0,766) size 768x84 [bgcolor=#FF0000]
         RenderText {#text} at (0,0) size 756x84
           text run at (0,0) width 756: "This sentence should have a fully tiled background which starts at its center top; that is, the background's origin"
@@ -185,97 +185,98 @@ layer at (0,0) size 888x2126
                 RenderText {#text} at (0,0) size 710x42
                   text run at (0,0) width 710: "This sentence should have an orange stripe repeated in the \"y\" direction, starting at the upper left corner"
                   text run at (0,21) width 142: "(since the default for "
-                RenderInline {CODE} at (0,0) size 152x14
-                  RenderText {#text} at (142,26) size 152x14
-                    text run at (142,26) width 152: "background-position"
-                RenderText {#text} at (294,21) size 729x42
-                  text run at (294,21) width 352: " is '0% 0%' and that property is not declared here). "
-                  text run at (646,21) width 83: "This is extra"
-                  text run at (0,42) width 453: "text included for the sole purpose of making the paragraph longer. "
-                  text run at (453,42) width 242: "Thank you for your understanding."
+                RenderInline {CODE} at (0,0) size 116x16
+                  RenderText {#text} at (142,24) size 116x16
+                    text run at (142,24) width 116: "background-position"
+                RenderText {#text} at (258,21) size 722x42
+                  text run at (258,21) width 352: " is '0% 0%' and that property is not declared here). "
+                  text run at (610,21) width 112: "This is extra text"
+                  text run at (0,42) width 424: "included for the sole purpose of making the paragraph longer. "
+                  text run at (424,42) width 242: "Thank you for your understanding."
               RenderBlock {P} at (4,83) size 746x63
                 RenderText {#text} at (0,0) size 710x42
                   text run at (0,0) width 710: "This sentence should have an orange stripe repeated in the \"x\" direction, starting at the upper left corner"
                   text run at (0,21) width 142: "(since the default for "
-                RenderInline {CODE} at (0,0) size 152x14
-                  RenderText {#text} at (142,26) size 152x14
-                    text run at (142,26) width 152: "background-position"
-                RenderText {#text} at (294,21) size 729x42
-                  text run at (294,21) width 352: " is '0% 0%' and that property is not declared here). "
-                  text run at (646,21) width 83: "This is extra"
-                  text run at (0,42) width 453: "text included for the sole purpose of making the paragraph longer. "
-                  text run at (453,42) width 242: "Thank you for your understanding."
+                RenderInline {CODE} at (0,0) size 116x16
+                  RenderText {#text} at (142,24) size 116x16
+                    text run at (142,24) width 116: "background-position"
+                RenderText {#text} at (258,21) size 722x42
+                  text run at (258,21) width 352: " is '0% 0%' and that property is not declared here). "
+                  text run at (610,21) width 112: "This is extra text"
+                  text run at (0,42) width 424: "included for the sole purpose of making the paragraph longer. "
+                  text run at (424,42) width 242: "Thank you for your understanding."
               RenderBlock {P} at (4,162) size 746x63
                 RenderText {#text} at (0,0) size 726x42
                   text run at (0,0) width 726: "This sentence should have a single orange square behind it, placed at the upper left corner (since the default"
                   text run at (0,21) width 24: "for "
-                RenderInline {CODE} at (0,0) size 152x14
-                  RenderText {#text} at (24,26) size 152x14
-                    text run at (24,26) width 152: "background-position"
-                RenderText {#text} at (176,21) size 726x42
-                  text run at (176,21) width 352: " is '0% 0%' and that property is not declared here). "
-                  text run at (528,21) width 198: "This is extra text included for"
-                  text run at (0,42) width 338: "the sole purpose of making the paragraph longer. "
-                  text run at (338,42) width 242: "Thank you for your understanding."
+                RenderInline {CODE} at (0,0) size 116x16
+                  RenderText {#text} at (24,24) size 116x16
+                    text run at (24,24) width 116: "background-position"
+                RenderText {#text} at (140,21) size 744x42
+                  text run at (140,21) width 352: " is '0% 0%' and that property is not declared here). "
+                  text run at (492,21) width 252: "This is extra text included for the sole"
+                  text run at (0,42) width 284: "purpose of making the paragraph longer. "
+                  text run at (284,42) width 242: "Thank you for your understanding."
               RenderBlock {P} at (4,241) size 746x84
                 RenderText {#text} at (0,0) size 735x42
                   text run at (0,0) width 735: "This sentence should have a green-hatch stripe running vertically down the center of the paragraph, with the"
                   text run at (0,21) width 324: "origin image exactly centered in the paragraph. "
                   text run at (324,21) width 105: "This is because "
-                RenderInline {CODE} at (0,0) size 64x14
-                  RenderText {#text} at (429,26) size 64x14
-                    text run at (429,26) width 64: "repeat-y"
-                RenderText {#text} at (493,21) size 118x21
-                  text run at (493,21) width 118: " specifies tiling in "
+                RenderInline {CODE} at (0,0) size 47x16
+                  RenderText {#text} at (429,24) size 47x16
+                    text run at (429,24) width 47: "repeat-y"
+                RenderText {#text} at (476,21) size 118x21
+                  text run at (476,21) width 118: " specifies tiling in "
                 RenderInline {EM} at (0,0) size 29x21
-                  RenderText {#text} at (611,21) size 29x21
-                    text run at (611,21) width 29: "both"
-                RenderText {#text} at (640,21) size 731x42
-                  text run at (640,21) width 91: " directions on"
-                  text run at (0,42) width 72: "the y-axis. "
-                  text run at (72,42) width 381: "Note that this test is only valid if the user agent supports "
-                RenderInline {CODE} at (0,0) size 152x14
-                  RenderText {#text} at (453,47) size 152x14
-                    text run at (453,47) width 152: "background-position"
-                RenderText {#text} at (605,42) size 33x21
-                  text run at (605,42) width 33: " (see "
+                  RenderText {#text} at (594,21) size 29x21
+                    text run at (594,21) width 29: "both"
+                RenderText {#text} at (623,21) size 739x42
+                  text run at (623,21) width 116: " directions on the"
+                  text run at (0,42) width 47: "y-axis. "
+                  text run at (47,42) width 381: "Note that this test is only valid if the user agent supports "
+                RenderInline {CODE} at (0,0) size 116x16
+                  RenderText {#text} at (428,45) size 116x16
+                    text run at (428,45) width 116: "background-position"
+                RenderText {#text} at (544,42) size 33x21
+                  text run at (544,42) width 33: " (see "
                 RenderInline {A} at (0,0) size 59x21 [color=#0000FF]
-                  RenderText {#text} at (638,42) size 59x21
-                    text run at (638,42) width 59: "test 5.3.6"
-                RenderText {#text} at (697,42) size 728x42
-                  text run at (697,42) width 13: "). "
-                  text run at (710,42) width 18: "I'll"
-                  text run at (0,63) width 608: "fill the paragraph with extra text to make the conformance (or lack thereof) more obvious."
+                  RenderText {#text} at (577,42) size 59x21
+                    text run at (577,42) width 59: "test 5.3.6"
+                RenderText {#text} at (636,42) size 713x42
+                  text run at (636,42) width 13: "). "
+                  text run at (649,42) width 64: "I'll fill the"
+                  text run at (0,63) width 562: "paragraph with extra text to make the conformance (or lack thereof) more obvious."
               RenderBlock {P} at (4,341) size 746x105 [bgcolor=#FF0000]
                 RenderText {#text} at (0,0) size 745x42
                   text run at (0,0) width 715: "This paragraph should have a tiled background, with the origin image exactly centered in the paragraph. "
                   text run at (715,0) width 30: "This"
                   text run at (0,21) width 71: "is because "
-                RenderInline {CODE} at (0,0) size 136x14
-                  RenderText {#text} at (71,26) size 136x14
-                    text run at (71,26) width 136: "background-repeat"
-                RenderText {#text} at (207,21) size 118x21
-                  text run at (207,21) width 118: " specifies tiling in "
+                RenderInline {CODE} at (0,0) size 107x16
+                  RenderText {#text} at (71,24) size 107x16
+                    text run at (71,24) width 107: "background-repeat"
+                RenderText {#text} at (178,21) size 118x21
+                  text run at (178,21) width 118: " specifies tiling in "
                 RenderInline {EM} at (0,0) size 16x21
-                  RenderText {#text} at (325,21) size 16x21
-                    text run at (325,21) width 16: "all"
-                RenderText {#text} at (341,21) size 721x42
-                  text run at (341,21) width 380: " directions, regardless of the position of the origin image."
-                  text run at (0,42) width 381: "Note that this test is only valid if the user agent supports "
-                RenderInline {CODE} at (0,0) size 152x14
-                  RenderText {#text} at (381,47) size 152x14
-                    text run at (381,47) width 152: "background-position"
-                RenderText {#text} at (533,42) size 33x21
-                  text run at (533,42) width 33: " (see "
+                  RenderText {#text} at (296,21) size 16x21
+                    text run at (296,21) width 16: "all"
+                RenderText {#text} at (312,21) size 728x42
+                  text run at (312,21) width 384: " directions, regardless of the position of the origin image. "
+                  text run at (696,21) width 32: "Note"
+                  text run at (0,42) width 345: "that this test is only valid if the user agent supports "
+                RenderInline {CODE} at (0,0) size 116x16
+                  RenderText {#text} at (345,45) size 116x16
+                    text run at (345,45) width 116: "background-position"
+                RenderText {#text} at (461,42) size 33x21
+                  text run at (461,42) width 33: " (see "
                 RenderInline {A} at (0,0) size 59x21 [color=#0000FF]
-                  RenderText {#text} at (566,42) size 59x21
-                    text run at (566,42) width 59: "test 5.3.6"
-                RenderText {#text} at (625,42) size 717x63
-                  text run at (625,42) width 13: "). "
-                  text run at (638,42) width 64: "I'll fill the"
-                  text run at (0,63) width 566: "paragraph with extra text to make the conformance (or lack thereof) more obvious. "
-                  text run at (566,63) width 151: "A background color is"
-                  text run at (0,84) width 488: "present, although if it is visible then the image has not bee correctly tiled."
+                  RenderText {#text} at (494,42) size 59x21
+                    text run at (494,42) width 59: "test 5.3.6"
+                RenderText {#text} at (553,42) size 741x63
+                  text run at (553,42) width 13: "). "
+                  text run at (566,42) width 175: "I'll fill the paragraph with"
+                  text run at (0,63) width 455: "extra text to make the conformance (or lack thereof) more obvious. "
+                  text run at (455,63) width 286: "A background color is present, although if"
+                  text run at (0,84) width 353: "it is visible then the image has not bee correctly tiled."
               RenderBlock {P} at (4,462) size 746x84 [bgcolor=#FF0000]
                 RenderText {#text} at (0,0) size 743x84
                   text run at (0,0) width 712: "This sentence should have a fully tiled background which starts at its center top; that is, the background's"
diff --git a/LayoutTests/platform/qt/css1/color_and_background/color-expected.txt b/LayoutTests/platform/qt/css1/color_and_background/color-expected.txt
index 87f9d03..3249e40 100644
--- a/LayoutTests/platform/qt/css1/color_and_background/color-expected.txt
+++ b/LayoutTests/platform/qt/css1/color_and_background/color-expected.txt
@@ -7,10 +7,10 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x32
-        RenderText {#text} at (0,1) size 160x30
-          text run at (0,1) width 160: ".one {color: green;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 0: " "
+        RenderText {#text} at (0,0) size 109x32
+          text run at (0,0) width 109: ".one {color: green;}"
+          text run at (109,0) width 0: " "
+          text run at (0,16) width 0: " "
       RenderBlock {HR} at (0,82) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 784x21 [color=#008000]
         RenderText {#text} at (0,0) size 206x21
diff --git a/LayoutTests/platform/qt/css1/conformance/forward_compatible_parsing-expected.txt b/LayoutTests/platform/qt/css1/conformance/forward_compatible_parsing-expected.txt
index 0fdb7f3..957c215 100644
--- a/LayoutTests/platform/qt/css1/conformance/forward_compatible_parsing-expected.txt
+++ b/LayoutTests/platform/qt/css1/conformance/forward_compatible_parsing-expected.txt
@@ -1,118 +1,118 @@
-layer at (0,0) size 784x4521
+layer at (0,0) size 784x4479
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x4521
-  RenderBlock {HTML} at (0,0) size 784x4521
-    RenderBody {BODY} at (8,8) size 768x4505 [bgcolor=#CCCCCC]
+layer at (0,0) size 784x4479
+  RenderBlock {HTML} at (0,0) size 784x4479
+    RenderBody {BODY} at (8,8) size 768x4463 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x864
-        RenderText {#text} at (0,1) size 568x862
-          text run at (0,1) width 304: "P.one {color: green; rotation: 70deg;}"
-          text run at (304,1) width 0: " "
-          text run at (0,17) width 176: "P.oneb {color: green;}"
-          text run at (176,17) width 0: " "
-          text run at (0,33) width 232: "P.oneb {color: invalidValue;}"
-          text run at (232,33) width 0: " "
-          text run at (0,49) width 272: "P.two {background-color: inherit;}"
-          text run at (272,49) width 0: " "
-          text run at (0,65) width 216: "H1 + P.three {color: blue;}"
-          text run at (216,65) width 0: " "
-          text run at (0,81) width 200: "P.four + H1 {color: red;}"
-          text run at (200,81) width 0: " "
-          text run at (0,97) width 264: "P.five {background-color: \"red\";}"
-          text run at (264,97) width 0: " "
-          text run at (0,113) width 408: "P.sixa {border-width: medium; border-style: solid;}"
-          text run at (408,113) width 0: " "
-          text run at (0,129) width 400: "P.sixb {border-width: funny; border-style: solid;}"
-          text run at (400,129) width 0: " "
-          text run at (0,145) width 392: "P.sixc {border-width: 50zu; border-style: solid;}"
-          text run at (392,145) width 0: " "
-          text run at (0,161) width 376: "P.sixd {border-width: px; border-style: solid;}"
-          text run at (376,161) width 0: " "
-          text run at (0,177) width 96: "@three-dee {"
-          text run at (96,177) width 0: " "
-          text run at (0,193) width 184: " @background-lighting {"
-          text run at (184,193) width 0: " "
-          text run at (0,209) width 136: "  azimuth: 30deg;"
-          text run at (136,209) width 0: " "
-          text run at (0,225) width 160: "  elevation: 190deg;"
-          text run at (160,225) width 0: " "
-          text run at (0,241) width 24: "  }"
-          text run at (24,241) width 0: " "
-          text run at (0,257) width 184: " P.seven { color: red }"
-          text run at (184,257) width 0: " "
-          text run at (0,273) width 16: " }"
-          text run at (16,273) width 0: " "
-          text run at (0,289) width 184: "P.eight {COLOR: GREEN;}"
-          text run at (184,289) width 0: " "
-          text run at (0,305) width 192: "OL:wait {color: maroon;}"
-          text run at (192,305) width 0: " "
-          text run at (0,321) width 272: "P.ten:first-child {color: maroon;}"
-          text run at (272,321) width 0: " "
-          text run at (0,337) width 208: "UL:lang(fr) {color: gray;}"
-          text run at (208,337) width 0: " "
-          text run at (0,353) width 248: "BLOCKQUOTE[href] {color: navy;}"
-          text run at (248,353) width 0: " "
-          text run at (0,369) width 288: "ACRONYM[href=\"foo\"] {color: purple;}"
-          text run at (288,369) width 0: " "
-          text run at (0,385) width 296: "ADDRESS[href~=\"foo\"] {color: purple;}"
-          text run at (296,385) width 0: " "
-          text run at (0,401) width 248: "SPAN[lang|=\"fr\"] {color: #c37;}"
-          text run at (248,401) width 0: " "
-          text run at (0,417) width 96: "@media tty {"
-          text run at (96,417) width 0: " "
-          text run at (0,433) width 136: " H1 {color: red;}"
-          text run at (136,433) width 0: " "
-          text run at (0,449) width 192: " P.sixteen {color: red;}"
-          text run at (192,449) width 0: " "
-          text run at (0,465) width 16: " }"
-          text run at (16,465) width 0: " "
-          text run at (0,481) width 96: "@three-dee {"
-          text run at (96,481) width 0: " "
-          text run at (0,497) width 208: " P.seventeen {color: red }"
-          text run at (208,497) width 0: " "
-          text run at (0,513) width 16: " }"
-          text run at (16,513) width 0: " "
-          text run at (0,529) width 568: "P.eighteena {text-decoration: underline overline line-through diagonal;"
-          text run at (568,529) width 0: " "
-          text run at (0,545) width 416: "            font: bold highlighted 100% sans-serif;}"
-          text run at (416,545) width 0: " "
-          text run at (0,561) width 568: "P.eighteenb {text-decoration: underline overline line-through diagonal;"
-          text run at (568,561) width 0: " "
-          text run at (0,577) width 376: "            font: bold highlighted 100% serif;}"
-          text run at (376,577) width 0: " "
-          text run at (0,593) width 384: "EM, P.nineteena ! EM, STRONG {font-size: 200%; }"
-          text run at (384,593) width 0: " "
-          text run at (0,609) width 0: " "
-          text run at (0,625) width 128: "// UL.nineteenb,"
-          text run at (128,625) width 0: " "
-          text run at (0,641) width 200: "P.nineteenb {color: red;}"
-          text run at (200,641) width 0: " "
-          text run at (0,657) width 0: " "
-          text run at (0,673) width 360: "P.twentya {rotation-code: \"}\"; color: blue;} "
-          text run at (360,673) width 0: " "
-          text run at (0,689) width 392: "P.twentyb {rotation-code: \"\\\"}\\\"\"; color: green;}"
-          text run at (392,689) width 0: " "
-          text run at (0,705) width 400: "P.twentyonea {rotation-code: '}'; color: purple;} "
-          text run at (400,705) width 0: " "
-          text run at (0,721) width 416: "P.twentyoneb {rotation-code: '\\'}\\''; color: green;}"
-          text run at (416,721) width 0: " "
-          text run at (0,737) width 104: "P.twentytwo {"
-          text run at (104,737) width 0: " "
-          text run at (0,753) width 376: " type-display: @threedee {rotation-code: '}';};"
-          text run at (376,753) width 0: " "
-          text run at (0,769) width 112: " color: green;"
-          text run at (112,769) width 0: " "
-          text run at (0,785) width 16: " }"
-          text run at (16,785) width 0: " "
-          text run at (0,801) width 280: "P.twentythree {text-indent: 0.5in;}"
-          text run at (280,801) width 0: " "
-          text run at (0,817) width 112: " color: maroon"
-          text run at (112,817) width 0: " "
-          text run at (0,833) width 208: "P.twentyfour {color: red;}"
-          text run at (208,833) width 0: " "
-          text run at (0,849) width 0: " "
+        RenderText {#text} at (0,0) size 399x864
+          text run at (0,0) width 212: "P.one {color: green; rotation: 70deg;}"
+          text run at (212,0) width 0: " "
+          text run at (0,16) width 125: "P.oneb {color: green;}"
+          text run at (125,16) width 0: " "
+          text run at (0,32) width 163: "P.oneb {color: invalidValue;}"
+          text run at (163,32) width 0: " "
+          text run at (0,48) width 191: "P.two {background-color: inherit;}"
+          text run at (191,48) width 0: " "
+          text run at (0,64) width 150: "H1 + P.three {color: blue;}"
+          text run at (150,64) width 0: " "
+          text run at (0,80) width 137: "P.four + H1 {color: red;}"
+          text run at (137,80) width 0: " "
+          text run at (0,96) width 185: "P.five {background-color: \"red\";}"
+          text run at (185,96) width 0: " "
+          text run at (0,112) width 288: "P.sixa {border-width: medium; border-style: solid;}"
+          text run at (288,112) width 0: " "
+          text run at (0,128) width 274: "P.sixb {border-width: funny; border-style: solid;}"
+          text run at (274,128) width 0: " "
+          text run at (0,144) width 270: "P.sixc {border-width: 50zu; border-style: solid;}"
+          text run at (270,144) width 0: " "
+          text run at (0,160) width 256: "P.sixd {border-width: px; border-style: solid;}"
+          text run at (256,160) width 0: " "
+          text run at (0,176) width 75: "@three-dee {"
+          text run at (75,176) width 0: " "
+          text run at (0,192) width 137: " @background-lighting {"
+          text run at (137,192) width 0: " "
+          text run at (0,208) width 101: "  azimuth: 30deg;"
+          text run at (101,208) width 0: " "
+          text run at (0,224) width 114: "  elevation: 190deg;"
+          text run at (114,224) width 0: " "
+          text run at (0,240) width 12: "  }"
+          text run at (12,240) width 0: " "
+          text run at (0,256) width 126: " P.seven { color: red }"
+          text run at (126,256) width 0: " "
+          text run at (0,272) width 8: " }"
+          text run at (8,272) width 0: " "
+          text run at (0,288) width 156: "P.eight {COLOR: GREEN;}"
+          text run at (156,288) width 0: " "
+          text run at (0,304) width 139: "OL:wait {color: maroon;}"
+          text run at (139,304) width 0: " "
+          text run at (0,320) width 183: "P.ten:first-child {color: maroon;}"
+          text run at (183,320) width 0: " "
+          text run at (0,336) width 137: "UL:lang(fr) {color: gray;}"
+          text run at (137,336) width 0: " "
+          text run at (0,352) width 200: "BLOCKQUOTE[href] {color: navy;}"
+          text run at (200,352) width 0: " "
+          text run at (0,368) width 219: "ACRONYM[href=\"foo\"] {color: purple;}"
+          text run at (219,368) width 0: " "
+          text run at (0,384) width 224: "ADDRESS[href~=\"foo\"] {color: purple;}"
+          text run at (224,384) width 0: " "
+          text run at (0,400) width 177: "SPAN[lang|=\"fr\"] {color: #c37;}"
+          text run at (177,400) width 0: " "
+          text run at (0,416) width 75: "@media tty {"
+          text run at (75,416) width 0: " "
+          text run at (0,432) width 90: " H1 {color: red;}"
+          text run at (90,432) width 0: " "
+          text run at (0,448) width 129: " P.sixteen {color: red;}"
+          text run at (129,448) width 0: " "
+          text run at (0,464) width 8: " }"
+          text run at (8,464) width 0: " "
+          text run at (0,480) width 75: "@three-dee {"
+          text run at (75,480) width 0: " "
+          text run at (0,496) width 147: " P.seventeen {color: red }"
+          text run at (147,496) width 0: " "
+          text run at (0,512) width 8: " }"
+          text run at (8,512) width 0: " "
+          text run at (0,528) width 399: "P.eighteena {text-decoration: underline overline line-through diagonal;"
+          text run at (399,528) width 0: " "
+          text run at (0,544) width 274: "            font: bold highlighted 100% sans-serif;}"
+          text run at (274,544) width 0: " "
+          text run at (0,560) width 399: "P.eighteenb {text-decoration: underline overline line-through diagonal;"
+          text run at (399,560) width 0: " "
+          text run at (0,576) width 242: "            font: bold highlighted 100% serif;}"
+          text run at (242,576) width 0: " "
+          text run at (0,592) width 303: "EM, P.nineteena ! EM, STRONG {font-size: 200%; }"
+          text run at (303,592) width 0: " "
+          text run at (0,608) width 0: " "
+          text run at (0,624) width 92: "// UL.nineteenb,"
+          text run at (92,624) width 0: " "
+          text run at (0,640) width 139: "P.nineteenb {color: red;}"
+          text run at (139,640) width 0: " "
+          text run at (0,656) width 0: " "
+          text run at (0,672) width 243: "P.twentya {rotation-code: \"}\"; color: blue;} "
+          text run at (243,672) width 0: " "
+          text run at (0,688) width 265: "P.twentyb {rotation-code: \"\\\"}\\\"\"; color: green;}"
+          text run at (265,688) width 0: " "
+          text run at (0,704) width 269: "P.twentyonea {rotation-code: '}'; color: purple;} "
+          text run at (269,704) width 0: " "
+          text run at (0,720) width 274: "P.twentyoneb {rotation-code: '\\'}\\''; color: green;}"
+          text run at (274,720) width 0: " "
+          text run at (0,736) width 79: "P.twentytwo {"
+          text run at (79,736) width 0: " "
+          text run at (0,752) width 256: " type-display: @threedee {rotation-code: '}';};"
+          text run at (256,752) width 0: " "
+          text run at (0,768) width 76: " color: green;"
+          text run at (76,768) width 0: " "
+          text run at (0,784) width 8: " }"
+          text run at (8,784) width 0: " "
+          text run at (0,800) width 193: "P.twentythree {text-indent: 0.5in;}"
+          text run at (193,800) width 0: " "
+          text run at (0,816) width 83: " color: maroon"
+          text run at (83,816) width 0: " "
+          text run at (0,832) width 143: "P.twentyfour {color: red;}"
+          text run at (143,832) width 0: " "
+          text run at (0,848) width 0: " "
       RenderBlock {HR} at (0,914) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,932) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 524x21
@@ -123,11 +123,11 @@ layer at (0,0) size 784x4521
       RenderBlock {P} at (0,1006) size 768x42
         RenderText {#text} at (0,0) size 603x21
           text run at (0,0) width 603: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
-        RenderInline {CODE} at (0,0) size 56x14
-          RenderText {#text} at (603,5) size 56x14
-            text run at (603,5) width 56: "inherit"
-        RenderText {#text} at (659,0) size 744x42
-          text run at (659,0) width 85: " is an invalid"
+        RenderInline {CODE} at (0,0) size 35x16
+          RenderText {#text} at (603,3) size 35x16
+            text run at (603,3) width 35: "inherit"
+        RenderText {#text} at (638,0) size 723x42
+          text run at (638,0) width 85: " is an invalid"
           text run at (0,21) width 626: "keyword, and in CSS2, it will cause the gray background (not the white grid) to be inherited."
       RenderBlock {P} at (0,1064) size 768x21
         RenderText {#text} at (0,0) size 681x21
@@ -213,70 +213,70 @@ layer at (0,0) size 784x4521
         RenderText {#text} at (0,0) size 739x42
           text run at (0,0) width 739: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
           text run at (0,21) width 57: "because "
-        RenderInline {CODE} at (0,0) size 64x14
-          RenderText {#text} at (57,26) size 64x14
-            text run at (57,26) width 64: "diagonal"
-        RenderText {#text} at (121,21) size 241x21
-          text run at (121,21) width 241: " is not a valid keyword, making the "
-        RenderInline {CODE} at (0,0) size 120x14
-          RenderText {#text} at (362,26) size 120x14
-            text run at (362,26) width 120: "text-decoration"
-        RenderText {#text} at (482,21) size 141x21
-          text run at (482,21) width 58: " invalid. "
-          text run at (540,21) width 83: "In addition, "
-        RenderInline {CODE} at (0,0) size 88x14
-          RenderText {#text} at (623,26) size 88x14
-            text run at (623,26) width 88: "highlighted"
-        RenderText {#text} at (711,21) size 763x42
-          text run at (711,21) width 52: " is not a"
-          text run at (0,42) width 112: "valid part of the "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (112,47) size 32x14
-            text run at (112,47) width 32: "font"
-        RenderText {#text} at (144,42) size 763x42
-          text run at (144,42) width 194: " property, making it invalid. "
-          text run at (338,42) width 425: "Therefore, this paragraph's font should be the UA default, and"
-          text run at (0,63) width 185: "match the next paragraph. "
-          text run at (185,63) width 203: "If this is not the case, then the "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (388,68) size 32x14
-            text run at (388,68) width 32: "font"
-        RenderText {#text} at (420,63) size 269x21
-          text run at (420,63) width 269: " declaration is being improperly parsed."
+        RenderInline {CODE} at (0,0) size 48x16
+          RenderText {#text} at (57,24) size 48x16
+            text run at (57,24) width 48: "diagonal"
+        RenderText {#text} at (105,21) size 241x21
+          text run at (105,21) width 241: " is not a valid keyword, making the "
+        RenderInline {CODE} at (0,0) size 86x16
+          RenderText {#text} at (346,24) size 86x16
+            text run at (346,24) width 86: "text-decoration"
+        RenderText {#text} at (432,21) size 141x21
+          text run at (432,21) width 58: " invalid. "
+          text run at (490,21) width 83: "In addition, "
+        RenderInline {CODE} at (0,0) size 62x16
+          RenderText {#text} at (573,24) size 62x16
+            text run at (573,24) width 62: "highlighted"
+        RenderText {#text} at (635,21) size 757x42
+          text run at (635,21) width 122: " is not a valid part"
+          text run at (0,42) width 42: "of the "
+        RenderInline {CODE} at (0,0) size 22x16
+          RenderText {#text} at (42,45) size 22x16
+            text run at (42,45) width 22: "font"
+        RenderText {#text} at (64,42) size 754x42
+          text run at (64,42) width 194: " property, making it invalid. "
+          text run at (258,42) width 496: "Therefore, this paragraph's font should be the UA default, and match the"
+          text run at (0,63) width 114: "next paragraph. "
+          text run at (114,63) width 203: "If this is not the case, then the "
+        RenderInline {CODE} at (0,0) size 22x16
+          RenderText {#text} at (317,66) size 22x16
+            text run at (317,66) width 22: "font"
+        RenderText {#text} at (339,63) size 269x21
+          text run at (339,63) width 269: " declaration is being improperly parsed."
       RenderBlock {P} at (0,2169) size 768x84
         RenderText {#text} at (0,0) size 739x42
           text run at (0,0) width 739: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
           text run at (0,21) width 57: "because "
-        RenderInline {CODE} at (0,0) size 64x14
-          RenderText {#text} at (57,26) size 64x14
-            text run at (57,26) width 64: "diagonal"
-        RenderText {#text} at (121,21) size 241x21
-          text run at (121,21) width 241: " is not a valid keyword, making the "
-        RenderInline {CODE} at (0,0) size 120x14
-          RenderText {#text} at (362,26) size 120x14
-            text run at (362,26) width 120: "text-decoration"
-        RenderText {#text} at (482,21) size 141x21
-          text run at (482,21) width 58: " invalid. "
-          text run at (540,21) width 83: "In addition, "
-        RenderInline {CODE} at (0,0) size 88x14
-          RenderText {#text} at (623,26) size 88x14
-            text run at (623,26) width 88: "highlighted"
-        RenderText {#text} at (711,21) size 763x42
-          text run at (711,21) width 52: " is not a"
-          text run at (0,42) width 112: "valid part of the "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (112,47) size 32x14
-            text run at (112,47) width 32: "font"
-        RenderText {#text} at (144,42) size 763x42
-          text run at (144,42) width 194: " property, making it invalid. "
-          text run at (338,42) width 425: "Therefore, this paragraph's font should be the UA default, and"
-          text run at (0,63) width 214: "match the previous paragraph. "
-          text run at (214,63) width 203: "If this is not the case, then the "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (417,68) size 32x14
-            text run at (417,68) width 32: "font"
-        RenderText {#text} at (449,63) size 269x21
-          text run at (449,63) width 269: " declaration is being improperly parsed."
+        RenderInline {CODE} at (0,0) size 48x16
+          RenderText {#text} at (57,24) size 48x16
+            text run at (57,24) width 48: "diagonal"
+        RenderText {#text} at (105,21) size 241x21
+          text run at (105,21) width 241: " is not a valid keyword, making the "
+        RenderInline {CODE} at (0,0) size 86x16
+          RenderText {#text} at (346,24) size 86x16
+            text run at (346,24) width 86: "text-decoration"
+        RenderText {#text} at (432,21) size 141x21
+          text run at (432,21) width 58: " invalid. "
+          text run at (490,21) width 83: "In addition, "
+        RenderInline {CODE} at (0,0) size 62x16
+          RenderText {#text} at (573,24) size 62x16
+            text run at (573,24) width 62: "highlighted"
+        RenderText {#text} at (635,21) size 757x42
+          text run at (635,21) width 122: " is not a valid part"
+          text run at (0,42) width 42: "of the "
+        RenderInline {CODE} at (0,0) size 22x16
+          RenderText {#text} at (42,45) size 22x16
+            text run at (42,45) width 22: "font"
+        RenderText {#text} at (64,42) size 754x42
+          text run at (64,42) width 194: " property, making it invalid. "
+          text run at (258,42) width 496: "Therefore, this paragraph's font should be the UA default, and match the"
+          text run at (0,63) width 143: "previous paragraph. "
+          text run at (143,63) width 203: "If this is not the case, then the "
+        RenderInline {CODE} at (0,0) size 22x16
+          RenderText {#text} at (346,66) size 22x16
+            text run at (346,66) width 22: "font"
+        RenderText {#text} at (368,63) size 269x21
+          text run at (368,63) width 269: " declaration is being improperly parsed."
       RenderBlock {P} at (0,2269) size 768x63
         RenderText {#text} at (0,0) size 568x21
           text run at (0,0) width 537: "The text of this paragraph should be normal size because the selector is invalid. "
@@ -324,18 +324,18 @@ layer at (0,0) size 784x4521
         RenderText {#text} at (0,0) size 740x42
           text run at (0,0) width 739: "This paragraph should be black, because the color declaration after the previous ruleset should be considered"
           text run at (0,21) width 740: "part of the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
-      RenderTable {TABLE} at (0,2686) size 768x1819 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 766x1817
+      RenderTable {TABLE} at (0,2686) size 768x1777 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 766x1775
           RenderTableRow {TR} at (0,0) size 766x29
             RenderTableCell {TD} at (0,0) size 766x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 766x1788
-            RenderTableCell {TD} at (0,908) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+          RenderTableRow {TR} at (0,29) size 766x1746
+            RenderTableCell {TD} at (0,887) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 754x1788 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (12,29) size 754x1746 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
               RenderBlock {P} at (4,4) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 524x21
                   text run at (0,0) width 524: "This paragraph should be green, because only the rotation should be ignored."
@@ -345,11 +345,11 @@ layer at (0,0) size 784x4521
               RenderBlock {P} at (4,78) size 746x42
                 RenderText {#text} at (0,0) size 603x21
                   text run at (0,0) width 603: "This paragraph should have a solid gray background (or a white grid), because in CSS1, "
-                RenderInline {CODE} at (0,0) size 56x14
-                  RenderText {#text} at (603,5) size 56x14
-                    text run at (603,5) width 56: "inherit"
-                RenderText {#text} at (659,0) size 744x42
-                  text run at (659,0) width 85: " is an invalid"
+                RenderInline {CODE} at (0,0) size 35x16
+                  RenderText {#text} at (603,3) size 35x16
+                    text run at (603,3) width 35: "inherit"
+                RenderText {#text} at (638,0) size 723x42
+                  text run at (638,0) width 85: " is an invalid"
                   text run at (0,21) width 626: "keyword, and in CSS2, it will cause the gray background (not the white grid) to be inherited."
               RenderBlock {P} at (4,136) size 746x21
                 RenderText {#text} at (0,0) size 681x21
@@ -430,77 +430,75 @@ layer at (0,0) size 784x4521
               RenderBlock {P} at (4,1104) size 746x21
                 RenderText {#text} at (0,0) size 714x21
                   text run at (0,0) width 714: "This paragraph should be black, because the style declaration that applies to it is within an invalid at-rule."
-              RenderBlock {P} at (4,1141) size 746x105
+              RenderBlock {P} at (4,1141) size 746x84
                 RenderText {#text} at (0,0) size 739x42
                   text run at (0,0) width 739: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
                   text run at (0,21) width 57: "because "
-                RenderInline {CODE} at (0,0) size 64x14
-                  RenderText {#text} at (57,26) size 64x14
-                    text run at (57,26) width 64: "diagonal"
-                RenderText {#text} at (121,21) size 241x21
-                  text run at (121,21) width 241: " is not a valid keyword, making the "
-                RenderInline {CODE} at (0,0) size 120x14
-                  RenderText {#text} at (362,26) size 120x14
-                    text run at (362,26) width 120: "text-decoration"
-                RenderText {#text} at (482,21) size 141x21
-                  text run at (482,21) width 58: " invalid. "
-                  text run at (540,21) width 83: "In addition, "
-                RenderInline {CODE} at (0,0) size 88x14
-                  RenderText {#text} at (623,26) size 88x14
-                    text run at (623,26) width 88: "highlighted"
-                RenderText {#text} at (711,21) size 725x42
-                  text run at (711,21) width 14: " is"
-                  text run at (0,42) width 150: "not a valid part of the "
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (150,47) size 32x14
-                    text run at (150,47) width 32: "font"
-                RenderText {#text} at (182,42) size 716x42
-                  text run at (182,42) width 194: " property, making it invalid. "
-                  text run at (376,42) width 340: "Therefore, this paragraph's font should be the UA"
-                  text run at (0,63) width 270: "default, and match the next paragraph. "
-                  text run at (270,63) width 203: "If this is not the case, then the "
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (473,68) size 32x14
-                    text run at (473,68) width 32: "font"
-                RenderText {#text} at (505,63) size 720x42
-                  text run at (505,63) width 215: " declaration is being improperly"
-                  text run at (0,84) width 50: "parsed."
-              RenderBlock {P} at (4,1262) size 746x105
+                RenderInline {CODE} at (0,0) size 48x16
+                  RenderText {#text} at (57,24) size 48x16
+                    text run at (57,24) width 48: "diagonal"
+                RenderText {#text} at (105,21) size 241x21
+                  text run at (105,21) width 241: " is not a valid keyword, making the "
+                RenderInline {CODE} at (0,0) size 86x16
+                  RenderText {#text} at (346,24) size 86x16
+                    text run at (346,24) width 86: "text-decoration"
+                RenderText {#text} at (432,21) size 141x21
+                  text run at (432,21) width 58: " invalid. "
+                  text run at (490,21) width 83: "In addition, "
+                RenderInline {CODE} at (0,0) size 62x16
+                  RenderText {#text} at (573,24) size 62x16
+                    text run at (573,24) width 62: "highlighted"
+                RenderText {#text} at (635,21) size 724x42
+                  text run at (635,21) width 89: " is not a valid"
+                  text run at (0,42) width 75: "part of the "
+                RenderInline {CODE} at (0,0) size 22x16
+                  RenderText {#text} at (75,45) size 22x16
+                    text run at (75,45) width 22: "font"
+                RenderText {#text} at (97,42) size 716x42
+                  text run at (97,42) width 194: " property, making it invalid. "
+                  text run at (291,42) width 425: "Therefore, this paragraph's font should be the UA default, and"
+                  text run at (0,63) width 185: "match the next paragraph. "
+                  text run at (185,63) width 203: "If this is not the case, then the "
+                RenderInline {CODE} at (0,0) size 22x16
+                  RenderText {#text} at (388,66) size 22x16
+                    text run at (388,66) width 22: "font"
+                RenderText {#text} at (410,63) size 269x21
+                  text run at (410,63) width 269: " declaration is being improperly parsed."
+              RenderBlock {P} at (4,1241) size 746x84
                 RenderText {#text} at (0,0) size 739x42
                   text run at (0,0) width 739: "The text of this paragraph should be normal (that is, it should not be underlined, overlined, stricken, or bold),"
                   text run at (0,21) width 57: "because "
-                RenderInline {CODE} at (0,0) size 64x14
-                  RenderText {#text} at (57,26) size 64x14
-                    text run at (57,26) width 64: "diagonal"
-                RenderText {#text} at (121,21) size 241x21
-                  text run at (121,21) width 241: " is not a valid keyword, making the "
-                RenderInline {CODE} at (0,0) size 120x14
-                  RenderText {#text} at (362,26) size 120x14
-                    text run at (362,26) width 120: "text-decoration"
-                RenderText {#text} at (482,21) size 141x21
-                  text run at (482,21) width 58: " invalid. "
-                  text run at (540,21) width 83: "In addition, "
-                RenderInline {CODE} at (0,0) size 88x14
-                  RenderText {#text} at (623,26) size 88x14
-                    text run at (623,26) width 88: "highlighted"
-                RenderText {#text} at (711,21) size 725x42
-                  text run at (711,21) width 14: " is"
-                  text run at (0,42) width 150: "not a valid part of the "
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (150,47) size 32x14
-                    text run at (150,47) width 32: "font"
-                RenderText {#text} at (182,42) size 716x42
-                  text run at (182,42) width 194: " property, making it invalid. "
-                  text run at (376,42) width 340: "Therefore, this paragraph's font should be the UA"
-                  text run at (0,63) width 299: "default, and match the previous paragraph. "
-                  text run at (299,63) width 203: "If this is not the case, then the "
-                RenderInline {CODE} at (0,0) size 32x14
-                  RenderText {#text} at (502,68) size 32x14
-                    text run at (502,68) width 32: "font"
-                RenderText {#text} at (534,63) size 669x42
-                  text run at (534,63) width 135: " declaration is being"
-                  text run at (0,84) width 130: "improperly parsed."
-              RenderBlock {P} at (4,1383) size 746x63
+                RenderInline {CODE} at (0,0) size 48x16
+                  RenderText {#text} at (57,24) size 48x16
+                    text run at (57,24) width 48: "diagonal"
+                RenderText {#text} at (105,21) size 241x21
+                  text run at (105,21) width 241: " is not a valid keyword, making the "
+                RenderInline {CODE} at (0,0) size 86x16
+                  RenderText {#text} at (346,24) size 86x16
+                    text run at (346,24) width 86: "text-decoration"
+                RenderText {#text} at (432,21) size 141x21
+                  text run at (432,21) width 58: " invalid. "
+                  text run at (490,21) width 83: "In addition, "
+                RenderInline {CODE} at (0,0) size 62x16
+                  RenderText {#text} at (573,24) size 62x16
+                    text run at (573,24) width 62: "highlighted"
+                RenderText {#text} at (635,21) size 724x42
+                  text run at (635,21) width 89: " is not a valid"
+                  text run at (0,42) width 75: "part of the "
+                RenderInline {CODE} at (0,0) size 22x16
+                  RenderText {#text} at (75,45) size 22x16
+                    text run at (75,45) width 22: "font"
+                RenderText {#text} at (97,42) size 716x42
+                  text run at (97,42) width 194: " property, making it invalid. "
+                  text run at (291,42) width 425: "Therefore, this paragraph's font should be the UA default, and"
+                  text run at (0,63) width 214: "match the previous paragraph. "
+                  text run at (214,63) width 203: "If this is not the case, then the "
+                RenderInline {CODE} at (0,0) size 22x16
+                  RenderText {#text} at (417,66) size 22x16
+                    text run at (417,66) width 22: "font"
+                RenderText {#text} at (439,63) size 269x21
+                  text run at (439,63) width 269: " declaration is being improperly parsed."
+              RenderBlock {P} at (4,1341) size 746x63
                 RenderText {#text} at (0,0) size 568x21
                   text run at (0,0) width 537: "The text of this paragraph should be normal size because the selector is invalid. "
                   text run at (537,0) width 31: "The "
@@ -515,7 +513,7 @@ layer at (0,0) size 784x4521
                 RenderText {#text} at (72,21) size 739x42
                   text run at (72,21) width 667: " within it should also be normal size, since the entire ruleset should be skipped (since in some future"
                   text run at (0,42) width 710: "version of CSS, there could be an operator within the selector that has higher precedence than a comma)."
-              RenderBlock {P} at (4,1462) size 746x42
+              RenderBlock {P} at (4,1420) size 746x42
                 RenderText {#text} at (0,0) size 501x21
                   text run at (0,0) width 501: "This paragraph should be black, because the line before the declaration is "
                 RenderInline {STRONG} at (0,0) size 22x21
@@ -524,26 +522,26 @@ layer at (0,0) size 784x4521
                 RenderText {#text} at (523,0) size 722x42
                   text run at (523,0) width 199: " a comment and therefore the"
                   text run at (0,21) width 227: "selector for P.nineteenb is invalid."
-              RenderBlock {P} at (4,1520) size 746x21 [color=#0000FF]
+              RenderBlock {P} at (4,1478) size 746x21 [color=#0000FF]
                 RenderText {#text} at (0,0) size 507x21
                   text run at (0,0) width 507: "This paragraph should be blue, because only the first declaration is invalid."
-              RenderBlock {P} at (4,1557) size 746x21 [color=#008000]
+              RenderBlock {P} at (4,1515) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 516x21
                   text run at (0,0) width 516: "This paragraph should be green, because only the first declaration is invalid."
-              RenderBlock {P} at (4,1594) size 746x21 [color=#800080]
+              RenderBlock {P} at (4,1552) size 746x21 [color=#800080]
                 RenderText {#text} at (0,0) size 523x21
                   text run at (0,0) width 523: "This paragraph should be purple, because only the first declaration is invalid."
-              RenderBlock {P} at (4,1631) size 746x21 [color=#008000]
+              RenderBlock {P} at (4,1589) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 516x21
                   text run at (0,0) width 516: "This paragraph should be green, because only the first declaration is invalid."
-              RenderBlock {P} at (4,1668) size 746x21 [color=#008000]
+              RenderBlock {P} at (4,1626) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 516x21
                   text run at (0,0) width 516: "This paragraph should be green, because only the first declaration is invalid."
-              RenderBlock {P} at (4,1705) size 746x21
+              RenderBlock {P} at (4,1663) size 746x21
                 RenderText {#text} at (48,0) size 652x21
                   text run at (48,0) width 527: "This paragraph should be indented half an inch, but it should not be maroon. "
                   text run at (575,0) width 125: "It should be black."
-              RenderBlock {P} at (4,1742) size 746x42
+              RenderBlock {P} at (4,1700) size 746x42
                 RenderText {#text} at (0,0) size 740x42
                   text run at (0,0) width 739: "This paragraph should be black, because the color declaration after the previous ruleset should be considered"
                   text run at (0,21) width 740: "part of the selector for this ruleset, and this ruleset therefore has an invalid selector and should not be applied."
diff --git a/LayoutTests/platform/qt/css1/font_properties/font-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font-expected.txt
index da5363e..384eaa0 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font-expected.txt
@@ -1,73 +1,72 @@
-layer at (0,0) size 784x4391
+layer at (0,0) size 784x4403
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x4391
-  RenderBlock {HTML} at (0,0) size 784x4391
-    RenderBody {BODY} at (8,8) size 768x4375 [bgcolor=#CCCCCC]
+layer at (0,0) size 784x4403
+  RenderBlock {HTML} at (0,0) size 784x4403
+    RenderBody {BODY} at (8,8) size 768x4387 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x16
         RenderText {#text} at (0,0) size 287x16
           text run at (0,0) width 287: "The style declarations which apply to the text below are:"
-      RenderBlock {PRE} at (0,28) size 768x168
-        RenderText {#text} at (0,0) size 399x167
-          text run at (0,0) width 161: "BODY {font-size: 12px;}"
-          text run at (161,0) width 0: " "
-          text run at (0,14) width 322: ".one {font: italic small-caps 13pt Helvetica;}"
-          text run at (322,14) width 0: " "
-          text run at (0,28) width 203: ".two {font: 150%/150% serif;}"
-          text run at (203,28) width 0: " "
-          text run at (0,42) width 252: ".three {font: 150%/150% sans-serif;}"
-          text run at (252,42) width 0: " "
-          text run at (0,56) width 231: ".four {font: small/200% cursive;}"
-          text run at (231,56) width 0: " "
-          text run at (0,70) width 399: ".five {font: italic small-caps 900 150%/150% sans-serif;}"
-          text run at (399,70) width 0: " "
-          text run at (0,84) width 392: ".six {font: italic small-caps 100 150%/300% sans-serif;}"
-          text run at (392,84) width 0: " "
-          text run at (0,98) width 392: ".seven {font: italic small-caps 900 150%/2em monospace;}"
-          text run at (392,98) width 0: " "
-          text run at (0,112) width 399: ".eight {font: italic small-caps 500 150%/1in sans-serif;}"
-          text run at (399,112) width 0: " "
-          text run at (0,126) width 378: ".nine {font: oblique normal 700 18px/200% sans-serif;}"
-          text run at (378,126) width 0: " "
-          text run at (0,140) width 301: ".ten {font: normal 400 80%/2.5 sans-serif;}"
-          text run at (301,140) width 0: " "
-          text run at (0,154) width 266: "SPAN.color {background-color: silver;}"
-          text run at (266,154) width 0: " "
-      RenderBlock {HR} at (0,208) size 768x2 [border: (1px inset #000000)]
-      RenderBlock {P} at (0,222) size 768x16
+      RenderBlock {PRE} at (0,28) size 768x180
+        RenderText {#text} at (0,0) size 316x180
+          text run at (0,0) width 127: "BODY {font-size: 12px;}"
+          text run at (127,0) width 0: " "
+          text run at (0,15) width 232: ".one {font: italic small-caps 13pt Helvetica;}"
+          text run at (232,15) width 0: " "
+          text run at (0,30) width 155: ".two {font: 150%/150% serif;}"
+          text run at (155,30) width 0: " "
+          text run at (0,45) width 194: ".three {font: 150%/150% sans-serif;}"
+          text run at (194,45) width 0: " "
+          text run at (0,60) width 170: ".four {font: small/200% cursive;}"
+          text run at (170,60) width 0: " "
+          text run at (0,75) width 299: ".five {font: italic small-caps 900 150%/150% sans-serif;}"
+          text run at (299,75) width 0: " "
+          text run at (0,90) width 295: ".six {font: italic small-caps 100 150%/300% sans-serif;}"
+          text run at (295,90) width 0: " "
+          text run at (0,105) width 316: ".seven {font: italic small-caps 900 150%/2em monospace;}"
+          text run at (316,105) width 0: " "
+          text run at (0,120) width 292: ".eight {font: italic small-caps 500 150%/1in sans-serif;}"
+          text run at (292,120) width 0: " "
+          text run at (0,135) width 294: ".nine {font: oblique normal 700 18px/200% sans-serif;}"
+          text run at (294,135) width 0: " "
+          text run at (0,150) width 226: ".ten {font: normal 400 80%/2.5 sans-serif;}"
+          text run at (226,150) width 0: " "
+          text run at (0,165) width 208: "SPAN.color {background-color: silver;}"
+          text run at (208,165) width 0: " "
+      RenderBlock {HR} at (0,220) size 768x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,234) size 768x16
         RenderText {#text} at (0,0) size 759x16
           text run at (0,0) width 453: "This element is unstyled, and should inherit a font-size of 12px from the BODY element. "
           text run at (453,0) width 306: "This is the \"base font size\" referred to in the following tests."
-      RenderBlock {P} at (0,255) size 768x21
+      RenderBlock {P} at (0,267) size 768x21
         RenderText {#text} at (0,0) size 497x21
           text run at (0,0) width 497: "This element should be 13pt. Helvetica which is in small-cap italics."
-      RenderBlock {P} at (0,294) size 768x81
+      RenderBlock {P} at (0,306) size 768x81
         RenderText {#text} at (0,1) size 754x78
           text run at (0,1) width 297: "This element should be in a serif font. "
           text run at (297,1) width 457: "Its font-size should be 150% the base font size, and its line-"
           text run at (0,28) width 497: "height should 150% of that value (18px and 27px, respectively). "
           text run at (497,28) width 223: "Extra text is included for the"
           text run at (0,55) width 311: "purposes of testing this more effectively."
-      RenderBlock {P} at (0,393) size 768x81
+      RenderBlock {P} at (0,405) size 768x81
         RenderText {#text} at (0,2) size 760x77
           text run at (0,2) width 348: "This element should be in a sans-serif font. "
           text run at (348,2) width 412: "Its font-size should be 150% the base font size, and"
           text run at (0,29) width 568: "its line-height should 150% of that value (18px and 27px, respectively). "
           text run at (568,29) width 192: "Extra text is included for"
           text run at (0,56) width 351: "the purposes of testing this more effectively."
-      RenderBlock {P} at (0,492) size 768x79
-        RenderText {#text} at (0,4) size 743x43
-          text run at (0,4) width 637: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
-          text run at (637,4) width 106: "For example, if the"
-          text run at (0,30) width 84: "font-size value "
-        RenderInline {CODE} at (0,0) size 30x11
-          RenderText {#text} at (84,34) size 30x11
-            text run at (84,34) width 30: "small"
-        RenderText {#text} at (114,30) size 749x44
-          text run at (114,30) width 324: " is calculated at 10px, then the line-height should be 20px. "
-          text run at (438,30) width 278: "The actual value of the font-size is UA-dependent. "
-          text run at (716,30) width 33: "Extra"
-          text run at (0,57) width 351: "text is included for the purposes of testing this more effectively."
-      RenderBlock {P} at (0,589) size 768x108
+      RenderBlock {P} at (0,504) size 768x79
+        RenderText {#text} at (0,5) size 754x42
+          text run at (0,5) width 667: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+          text run at (667,5) width 87: "For example, if"
+          text run at (0,31) width 111: "the font-size value "
+        RenderInline {CODE} at (0,0) size 23x12
+          RenderText {#text} at (111,34) size 23x12
+            text run at (111,34) width 23: "small"
+        RenderText {#text} at (134,31) size 767x43
+          text run at (134,31) width 342: " is calculated at 10px, then the line-height should be 20px. "
+          text run at (476,31) width 291: "The actual value of the font-size is UA-dependent."
+          text run at (0,58) width 405: "Extra text is included for the purposes of testing this more effectively."
+      RenderBlock {P} at (0,601) size 768x108
         RenderText {#text} at (0,2) size 750x104
           text run at (0,2) width 728: "This element should be in a sans-serif font, italicized and small caps, with a weight of 900. "
           text run at (728,2) width 22: "Its"
@@ -75,7 +74,7 @@ layer at (0,0) size 784x4391
           text run at (0,56) width 246: "(18px and 27px, respectively). "
           text run at (246,56) width 480: "Extra text is included for the purposes of testing this more"
           text run at (0,83) width 95: "effectively."
-      RenderBlock {P} at (0,715) size 768x216
+      RenderBlock {P} at (0,727) size 768x216
         RenderText {#text} at (0,15) size 745x185
           text run at (0,15) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
           text run at (723,15) width 22: "Its"
@@ -83,22 +82,22 @@ layer at (0,0) size 784x4391
           text run at (0,123) width 245: "(18px and 54px, respectively). "
           text run at (245,123) width 479: "Extra text is included for the purposes of testing this more"
           text run at (0,177) width 94: "effectively."
-      RenderBlock {P} at (0,949) size 768x144
-        RenderText {#text} at (0,6) size 750x131
-          text run at (0,6) width 750: "This element should be in a monospace font, italicized and small caps, with a weight of"
-          text run at (0,42) width 55: "900. "
-          text run at (55,42) width 687: "Its font-size should be 150% the base font size, and its line-height should be"
-          text run at (0,78) width 618: "2em, or twice the element's font size (18px and 36px, respectively). "
-          text run at (618,78) width 113: "Extra text is"
-          text run at (0,114) width 499: "included for the purposes of testing this more effectively."
-      RenderBlock {P} at (0,1111) size 768x288
+      RenderBlock {P} at (0,961) size 768x144
+        RenderText {#text} at (0,6) size 754x131
+          text run at (0,6) width 732: "This element should be in a monospace font, italicized and small caps, with a weight of 900. "
+          text run at (732,6) width 22: "Its"
+          text run at (0,42) width 728: "font-size should be 150% the base font size, and its line-height should be 2em, or twice the"
+          text run at (0,78) width 402: "element's font size (18px and 36px, respectively). "
+          text run at (402,78) width 339: "Extra text is included for the purposes of"
+          text run at (0,114) width 236: "testing this more effectively."
+      RenderBlock {P} at (0,1123) size 768x288
         RenderText {#text} at (0,36) size 745x215
           text run at (0,36) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 500. "
           text run at (723,36) width 22: "Its"
           text run at (0,132) width 693: "font-size should be 150% the base font size, or 18px, and its line-height should be 1in. "
           text run at (693,132) width 47: "Extra"
           text run at (0,228) width 526: "text is included for the purposes of testing this more effectively."
-      RenderBlock {P} at (0,1417) size 768x144
+      RenderBlock {P} at (0,1429) size 768x144
         RenderText {#text} at (0,6) size 752x131
           text run at (0,6) width 752: "This element should be in a sans-serif font, oblique and not small-caps, with a weight of"
           text run at (0,42) width 40: "700. "
@@ -106,12 +105,12 @@ layer at (0,0) size 784x4391
           text run at (0,78) width 176: "element's font size). "
           text run at (176,78) width 500: "Extra text is included for the purposes of testing this more"
           text run at (0,114) width 93: "effectively."
-      RenderBlock {P} at (0,1579) size 768x50
+      RenderBlock {P} at (0,1591) size 768x50
         RenderText {#text} at (0,6) size 754x37
           text run at (0,6) width 301: "This element should be in a sans-serif font, with a weight of 400. "
           text run at (301,6) width 453: "Its font-size should be 80% of 12px, or 9.6px, and its line-height shoud be 2.5 times that, or 24px."
           text run at (0,31) width 318: "Extra text is included for the purposes of testing this more effectively."
-      RenderBlock {P} at (0,1647) size 768x270
+      RenderBlock {P} at (0,1659) size 768x270
         RenderInline {SPAN} at (0,0) size 761x239 [bgcolor=#C0C0C0]
           RenderText {#text} at (0,15) size 761x239
             text run at (0,15) width 723: "This element should be in a sans-serif font, italicized and small caps, with a weight of 100. "
@@ -121,7 +120,7 @@ layer at (0,0) size 784x4391
             text run at (0,177) width 737: "has been set on an inline element and should therefore only cover the text, not the interline"
             text run at (0,231) width 64: "spacing."
         RenderText {#text} at (0,0) size 0x0
-      RenderTable {TABLE} at (0,1935) size 768x2440 [border: (1px outset #808080)]
+      RenderTable {TABLE} at (0,1947) size 768x2440 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x2438
           RenderTableRow {TR} at (0,0) size 766x29
             RenderTableCell {TD} at (0,0) size 766x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
@@ -158,17 +157,18 @@ layer at (0,0) size 784x4391
                   text run at (324,75) width 399: "Extra text is included for the purposes"
                   text run at (0,111) width 322: "of testing this more effectively."
               RenderBlock {P} at (4,444) size 746x79
-                RenderText {#text} at (0,4) size 743x43
-                  text run at (0,4) width 637: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
-                  text run at (637,4) width 106: "For example, if the"
-                  text run at (0,30) width 84: "font-size value "
-                RenderInline {CODE} at (0,0) size 30x11
-                  RenderText {#text} at (84,34) size 30x11
-                    text run at (84,34) width 30: "small"
-                RenderText {#text} at (114,30) size 713x44
-                  text run at (114,30) width 324: " is calculated at 10px, then the line-height should be 20px. "
-                  text run at (438,30) width 275: "The actual value of the font-size is UA-dependent."
-                  text run at (0,57) width 387: "Extra text is included for the purposes of testing this more effectively."
+                RenderText {#text} at (0,5) size 743x42
+                  text run at (0,5) width 667: "This element should be in a cursive font, 'small' in size, with a line-height 200% the height of the text's actual size. "
+                  text run at (667,5) width 76: "For example,"
+                  text run at (0,31) width 122: "if the font-size value "
+                RenderInline {CODE} at (0,0) size 23x12
+                  RenderText {#text} at (122,34) size 23x12
+                    text run at (122,34) width 23: "small"
+                RenderText {#text} at (145,31) size 714x43
+                  text run at (145,31) width 342: " is calculated at 10px, then the line-height should be 20px. "
+                  text run at (487,31) width 227: "The actual value of the font-size is UA-"
+                  text run at (0,58) width 68: "dependent. "
+                  text run at (68,58) width 405: "Extra text is included for the purposes of testing this more effectively."
               RenderBlock {P} at (4,547) size 746x180
                 RenderText {#text} at (0,2) size 721x175
                   text run at (0,2) width 714: "This element should be in a sans-serif font, italicized and small caps,"
@@ -188,12 +188,13 @@ layer at (0,0) size 784x4391
                   text run at (147,237) width 559: "Extra text is included for the purposes of testing this"
                   text run at (0,309) width 175: "more effectively."
               RenderBlock {P} at (4,1135) size 746x156
-                RenderText {#text} at (0,6) size 740x143
-                  text run at (0,6) width 740: "This element should be in a monospace font, italicized and small caps, with a weight"
-                  text run at (0,45) width 88: "of 900. "
-                  text run at (88,45) width 620: "Its font-size should be 150% the base font size, and its line-height"
-                  text run at (0,84) width 716: "should be 2em, or twice the element's font size (18px and 36px, respectively)."
-                  text run at (0,123) width 636: "Extra text is included for the purposes of testing this more effectively."
+                RenderText {#text} at (0,6) size 743x143
+                  text run at (0,6) width 727: "This element should be in a monospace font, italicized and small caps, with a weight"
+                  text run at (0,45) width 71: "of 900. "
+                  text run at (71,45) width 672: "Its font-size should be 150% the base font size, and its line-height should be"
+                  text run at (0,84) width 590: "2em, or twice the element's font size (18px and 36px, respectively). "
+                  text run at (590,84) width 112: "Extra text is"
+                  text run at (0,123) width 510: "included for the purposes of testing this more effectively."
               RenderBlock {P} at (4,1315) size 746x384
                 RenderText {#text} at (0,33) size 739x318
                   text run at (0,33) width 702: "This element should be in a sans-serif font, italicized and small caps,"
diff --git a/LayoutTests/platform/qt/css1/font_properties/font_family-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font_family-expected.txt
index a31c119..57cc8a3 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font_family-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font_family-expected.txt
@@ -1,33 +1,33 @@
-layer at (0,0) size 784x1336
+layer at (0,0) size 784x1298
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x1336
-  RenderBlock {HTML} at (0,0) size 784x1336
-    RenderBody {BODY} at (8,8) size 768x1320 [bgcolor=#CCCCCC]
+layer at (0,0) size 784x1298
+  RenderBlock {HTML} at (0,0) size 784x1298
+    RenderBody {BODY} at (8,8) size 768x1282 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x144
-        RenderText {#text} at (0,1) size 312x142
-          text run at (0,1) width 216: "DIV.a {font-family: serif;}"
-          text run at (216,1) width 0: " "
-          text run at (0,17) width 248: "DIV.b {font-family: monospace;}"
-          text run at (248,17) width 0: " "
-          text run at (0,33) width 208: ".one {font-family: serif;}"
-          text run at (208,33) width 0: " "
-          text run at (0,49) width 248: ".two {font-family: sans-serif;}"
-          text run at (248,49) width 0: " "
-          text run at (0,65) width 240: ".three {font-family: cursive;}"
-          text run at (240,65) width 0: " "
-          text run at (0,81) width 232: ".four {font-family: fantasy;}"
-          text run at (232,81) width 0: " "
-          text run at (0,97) width 248: ".five {font-family: monospace;}"
-          text run at (248,97) width 0: " "
-          text run at (0,113) width 312: ".six {font-family: sans-serif,cursive;}"
-          text run at (312,113) width 0: " "
-          text run at (0,129) width 304: ".seven {font-family: monospace,serif;}"
-          text run at (304,129) width 0: " "
+        RenderText {#text} at (0,0) size 220x144
+          text run at (0,0) width 143: "DIV.a {font-family: serif;}"
+          text run at (143,0) width 0: " "
+          text run at (0,16) width 185: "DIV.b {font-family: monospace;}"
+          text run at (185,16) width 0: " "
+          text run at (0,32) width 135: ".one {font-family: serif;}"
+          text run at (135,32) width 0: " "
+          text run at (0,48) width 166: ".two {font-family: sans-serif;}"
+          text run at (166,48) width 0: " "
+          text run at (0,64) width 160: ".three {font-family: cursive;}"
+          text run at (160,64) width 0: " "
+          text run at (0,80) width 154: ".four {font-family: fantasy;}"
+          text run at (154,80) width 0: " "
+          text run at (0,96) width 177: ".five {font-family: monospace;}"
+          text run at (177,96) width 0: " "
+          text run at (0,112) width 209: ".six {font-family: sans-serif,cursive;}"
+          text run at (209,112) width 0: " "
+          text run at (0,128) width 220: ".seven {font-family: monospace,serif;}"
+          text run at (220,128) width 0: " "
       RenderBlock {HR} at (0,194) size 768x2 [border: (1px inset #000000)]
-      RenderBlock {DIV} at (0,212) size 768x200
+      RenderBlock {DIV} at (0,212) size 768x198
         RenderBlock {P} at (0,0) size 768x21
           RenderText {#text} at (0,0) size 677x21
             text run at (0,0) width 677: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
@@ -37,99 +37,97 @@ layer at (0,0) size 784x1336
         RenderBlock {P} at (0,74) size 768x20
           RenderText {#text} at (0,0) size 311x20
             text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-        RenderBlock {P} at (0,110) size 768x21
-          RenderText {#text} at (0,0) size 276x21
-            text run at (0,0) width 276: "This sentence should be in a cursive font."
-        RenderBlock {P} at (0,147) size 768x21
-          RenderText {#text} at (0,0) size 277x21
-            text run at (0,0) width 277: "This sentence should be in a fantasy font."
-        RenderBlock {P} at (0,184) size 768x16
-          RenderText {#text} at (0,1) size 352x14
-            text run at (0,1) width 352: "This sentence should be in a monospace font."
-      RenderBlock {HR} at (0,425) size 768x2 [border: (1px inset #000000)]
-      RenderBlock {P} at (0,443) size 768x20
+        RenderBlock {P} at (0,110) size 768x20
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a cursive font."
+        RenderBlock {P} at (0,146) size 768x20
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a fantasy font."
+        RenderBlock {P} at (0,182) size 768x16
+          RenderText {#text} at (0,0) size 268x16
+            text run at (0,0) width 268: "This sentence should be in a monospace font."
+      RenderBlock {HR} at (0,423) size 768x2 [border: (1px inset #000000)]
+      RenderBlock {P} at (0,441) size 768x20
         RenderText {#text} at (0,0) size 396x20
           text run at (0,0) width 396: "This sentence should be in a sans-serif font, not cursive."
-      RenderBlock {P} at (0,479) size 768x19
-        RenderText {#text} at (0,0) size 550x18
-          text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
-      RenderBlock {HR} at (0,514) size 768x2 [border: (1px inset #000000)]
-      RenderBlock {DIV} at (0,529) size 768x211
-        RenderBlock {P} at (0,0) size 768x32
-          RenderText {#text} at (0,1) size 768x30
-            text run at (0,1) width 768: "This sentence is normal for the first division, which is the next five sentences; it should be a"
-            text run at (0,17) width 120: "monospace font."
-        RenderBlock {P} at (0,48) size 768x21
+      RenderBlock {P} at (0,477) size 768x20
+        RenderText {#text} at (0,0) size 389x20
+          text run at (0,0) width 389: "This sentence should be in a monospace font, not serif."
+      RenderBlock {HR} at (0,513) size 768x2 [border: (1px inset #000000)]
+      RenderBlock {DIV} at (0,528) size 768x193
+        RenderBlock {P} at (0,0) size 768x16
+          RenderText {#text} at (0,0) size 636x16
+            text run at (0,0) width 636: "This sentence is normal for the first division, which is the next five sentences; it should be a monospace font."
+        RenderBlock {P} at (0,32) size 768x21
           RenderText {#text} at (0,0) size 257x21
             text run at (0,0) width 257: "This sentence should be in a serif font."
-        RenderBlock {P} at (0,85) size 768x20
+        RenderBlock {P} at (0,69) size 768x20
           RenderText {#text} at (0,0) size 311x20
             text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-        RenderBlock {P} at (0,121) size 768x21
-          RenderText {#text} at (0,0) size 276x21
-            text run at (0,0) width 276: "This sentence should be in a cursive font."
-        RenderBlock {P} at (0,158) size 768x21
-          RenderText {#text} at (0,0) size 277x21
-            text run at (0,0) width 277: "This sentence should be in a fantasy font."
-        RenderBlock {P} at (0,195) size 768x16
-          RenderText {#text} at (0,1) size 352x14
-            text run at (0,1) width 352: "This sentence should be in a monospace font."
-      RenderTable {TABLE} at (0,753) size 768x567 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 766x565
-          RenderTableRow {TR} at (0,0) size 766x29
-            RenderTableCell {TD} at (0,0) size 766x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
+        RenderBlock {P} at (0,105) size 768x20
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a cursive font."
+        RenderBlock {P} at (0,141) size 768x20
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a fantasy font."
+        RenderBlock {P} at (0,177) size 768x16
+          RenderText {#text} at (0,0) size 268x16
+            text run at (0,0) width 268: "This sentence should be in a monospace font."
+      RenderTable {TABLE} at (0,734) size 699x548 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 697x546
+          RenderTableRow {TR} at (0,0) size 697x29
+            RenderTableCell {TD} at (0,0) size 697x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 766x536
-            RenderTableCell {TD} at (0,282) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+          RenderTableRow {TR} at (0,29) size 697x517
+            RenderTableCell {TD} at (0,273) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 754x536 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
-              RenderBlock {DIV} at (4,4) size 746x200
-                RenderBlock {P} at (0,0) size 746x21
+            RenderTableCell {TD} at (12,29) size 685x517 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+              RenderBlock {DIV} at (4,4) size 677x198
+                RenderBlock {P} at (0,0) size 677x21
                   RenderText {#text} at (0,0) size 677x21
                     text run at (0,0) width 677: "This sentence is normal for the first division, which is the next five sentences; it should be a serif font."
-                RenderBlock {P} at (0,37) size 746x21
+                RenderBlock {P} at (0,37) size 677x21
                   RenderText {#text} at (0,0) size 257x21
                     text run at (0,0) width 257: "This sentence should be in a serif font."
-                RenderBlock {P} at (0,74) size 746x20
+                RenderBlock {P} at (0,74) size 677x20
                   RenderText {#text} at (0,0) size 311x20
                     text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-                RenderBlock {P} at (0,110) size 746x21
-                  RenderText {#text} at (0,0) size 276x21
-                    text run at (0,0) width 276: "This sentence should be in a cursive font."
-                RenderBlock {P} at (0,147) size 746x21
-                  RenderText {#text} at (0,0) size 277x21
-                    text run at (0,0) width 277: "This sentence should be in a fantasy font."
-                RenderBlock {P} at (0,184) size 746x16
-                  RenderText {#text} at (0,1) size 352x14
-                    text run at (0,1) width 352: "This sentence should be in a monospace font."
-              RenderBlock {HR} at (4,217) size 746x2 [border: (1px inset #000000)]
-              RenderBlock {P} at (4,235) size 746x20
+                RenderBlock {P} at (0,110) size 677x20
+                  RenderText {#text} at (0,0) size 293x20
+                    text run at (0,0) width 293: "This sentence should be in a cursive font."
+                RenderBlock {P} at (0,146) size 677x20
+                  RenderText {#text} at (0,0) size 293x20
+                    text run at (0,0) width 293: "This sentence should be in a fantasy font."
+                RenderBlock {P} at (0,182) size 677x16
+                  RenderText {#text} at (0,0) size 268x16
+                    text run at (0,0) width 268: "This sentence should be in a monospace font."
+              RenderBlock {HR} at (4,215) size 677x2 [border: (1px inset #000000)]
+              RenderBlock {P} at (4,233) size 677x20
                 RenderText {#text} at (0,0) size 396x20
                   text run at (0,0) width 396: "This sentence should be in a sans-serif font, not cursive."
-              RenderBlock {P} at (4,271) size 746x19
-                RenderText {#text} at (0,0) size 550x18
-                  text run at (0,0) width 550: "This sentence should be in a monospace font, not serif."
-              RenderBlock {HR} at (4,306) size 746x2 [border: (1px inset #000000)]
-              RenderBlock {DIV} at (4,321) size 746x211
-                RenderBlock {P} at (0,0) size 746x32
-                  RenderText {#text} at (0,1) size 728x30
-                    text run at (0,1) width 728: "This sentence is normal for the first division, which is the next five sentences; it should"
-                    text run at (0,17) width 160: "be a monospace font."
-                RenderBlock {P} at (0,48) size 746x21
+              RenderBlock {P} at (4,269) size 677x20
+                RenderText {#text} at (0,0) size 389x20
+                  text run at (0,0) width 389: "This sentence should be in a monospace font, not serif."
+              RenderBlock {HR} at (4,305) size 677x2 [border: (1px inset #000000)]
+              RenderBlock {DIV} at (4,320) size 677x193
+                RenderBlock {P} at (0,0) size 677x16
+                  RenderText {#text} at (0,0) size 636x16
+                    text run at (0,0) width 636: "This sentence is normal for the first division, which is the next five sentences; it should be a monospace font."
+                RenderBlock {P} at (0,32) size 677x21
                   RenderText {#text} at (0,0) size 257x21
                     text run at (0,0) width 257: "This sentence should be in a serif font."
-                RenderBlock {P} at (0,85) size 746x20
+                RenderBlock {P} at (0,69) size 677x20
                   RenderText {#text} at (0,0) size 311x20
                     text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-                RenderBlock {P} at (0,121) size 746x21
-                  RenderText {#text} at (0,0) size 276x21
-                    text run at (0,0) width 276: "This sentence should be in a cursive font."
-                RenderBlock {P} at (0,158) size 746x21
-                  RenderText {#text} at (0,0) size 277x21
-                    text run at (0,0) width 277: "This sentence should be in a fantasy font."
-                RenderBlock {P} at (0,195) size 746x16
-                  RenderText {#text} at (0,1) size 352x14
-                    text run at (0,1) width 352: "This sentence should be in a monospace font."
+                RenderBlock {P} at (0,105) size 677x20
+                  RenderText {#text} at (0,0) size 293x20
+                    text run at (0,0) width 293: "This sentence should be in a cursive font."
+                RenderBlock {P} at (0,141) size 677x20
+                  RenderText {#text} at (0,0) size 293x20
+                    text run at (0,0) width 293: "This sentence should be in a fantasy font."
+                RenderBlock {P} at (0,177) size 677x16
+                  RenderText {#text} at (0,0) size 268x16
+                    text run at (0,0) width 268: "This sentence should be in a monospace font."
diff --git a/LayoutTests/platform/qt/css1/font_properties/font_size-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font_size-expected.txt
index 66eaa0b..07c69b7 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font_size-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font_size-expected.txt
@@ -7,46 +7,46 @@ layer at (0,0) size 784x3011
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x320
-        RenderText {#text} at (0,1) size 224x318
-          text run at (0,1) width 200: ".one {font-size: medium;}"
-          text run at (200,1) width 0: " "
-          text run at (0,17) width 200: ".two {font-size: larger;}"
-          text run at (200,17) width 0: " "
-          text run at (0,33) width 224: ".three {font-size: smaller;}"
-          text run at (224,33) width 0: " "
-          text run at (0,49) width 224: ".four {font-size: xx-small;}"
-          text run at (224,49) width 0: " "
-          text run at (0,65) width 216: ".five {font-size: x-small;}"
-          text run at (216,65) width 0: " "
-          text run at (0,81) width 192: ".six {font-size: small;}"
-          text run at (192,81) width 0: " "
-          text run at (0,97) width 208: ".seven {font-size: large;}"
-          text run at (208,97) width 0: " "
-          text run at (0,113) width 224: ".eight {font-size: x-large;}"
-          text run at (224,113) width 0: " "
-          text run at (0,129) width 224: ".nine {font-size: xx-large;}"
-          text run at (224,129) width 0: " "
-          text run at (0,145) width 176: ".a {font-size: 0.5in;}"
-          text run at (176,145) width 0: " "
-          text run at (0,161) width 160: ".b {font-size: 1cm;}"
-          text run at (160,161) width 0: " "
-          text run at (0,177) width 168: ".c {font-size: 10mm;}"
-          text run at (168,177) width 0: " "
-          text run at (0,193) width 168: ".d {font-size: 18pt;}"
-          text run at (168,193) width 0: " "
-          text run at (0,209) width 176: ".e {font-size: 1.5pc;}"
-          text run at (176,209) width 0: " "
-          text run at (0,225) width 160: ".f {font-size: 2em;}"
-          text run at (160,225) width 0: " "
-          text run at (0,241) width 160: ".g {font-size: 3ex;}"
-          text run at (160,241) width 0: " "
-          text run at (0,257) width 168: ".h {font-size: 25px;}"
-          text run at (168,257) width 0: " "
-          text run at (0,273) width 168: ".i {font-size: 200%;}"
-          text run at (168,273) width 0: " "
-          text run at (0,289) width 184: ".j {font-size: -0.5in;}"
-          text run at (184,289) width 0: " "
-          text run at (0,305) width 0: " "
+        RenderText {#text} at (0,0) size 149x320
+          text run at (0,0) width 145: ".one {font-size: medium;}"
+          text run at (145,0) width 0: " "
+          text run at (0,16) width 130: ".two {font-size: larger;}"
+          text run at (130,16) width 0: " "
+          text run at (0,32) width 149: ".three {font-size: smaller;}"
+          text run at (149,32) width 0: " "
+          text run at (0,48) width 149: ".four {font-size: xx-small;}"
+          text run at (149,48) width 0: " "
+          text run at (0,64) width 141: ".five {font-size: x-small;}"
+          text run at (141,64) width 0: " "
+          text run at (0,80) width 126: ".six {font-size: small;}"
+          text run at (126,80) width 0: " "
+          text run at (0,96) width 141: ".seven {font-size: large;}"
+          text run at (141,96) width 0: " "
+          text run at (0,112) width 145: ".eight {font-size: x-large;}"
+          text run at (145,112) width 0: " "
+          text run at (0,128) width 148: ".nine {font-size: xx-large;}"
+          text run at (148,128) width 0: " "
+          text run at (0,144) width 113: ".a {font-size: 0.5in;}"
+          text run at (113,144) width 0: " "
+          text run at (0,160) width 110: ".b {font-size: 1cm;}"
+          text run at (110,160) width 0: " "
+          text run at (0,176) width 121: ".c {font-size: 10mm;}"
+          text run at (121,176) width 0: " "
+          text run at (0,192) width 110: ".d {font-size: 18pt;}"
+          text run at (110,192) width 0: " "
+          text run at (0,208) width 117: ".e {font-size: 1.5pc;}"
+          text run at (117,208) width 0: " "
+          text run at (0,224) width 107: ".f {font-size: 2em;}"
+          text run at (107,224) width 0: " "
+          text run at (0,240) width 106: ".g {font-size: 3ex;}"
+          text run at (106,240) width 0: " "
+          text run at (0,256) width 113: ".h {font-size: 25px;}"
+          text run at (113,256) width 0: " "
+          text run at (0,272) width 114: ".i {font-size: 200%;}"
+          text run at (114,272) width 0: " "
+          text run at (0,288) width 113: ".j {font-size: -0.5in;}"
+          text run at (113,288) width 0: " "
+          text run at (0,304) width 0: " "
       RenderBlock {HR} at (0,370) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,388) size 768x21
         RenderText {#text} at (0,0) size 735x21
@@ -54,11 +54,11 @@ layer at (0,0) size 784x3011
       RenderBlock {P} at (0,425) size 768x21
         RenderText {#text} at (0,0) size 197x21
           text run at (0,0) width 197: "This sentence has been set to "
-        RenderInline {CODE} at (0,0) size 48x14
-          RenderText {#text} at (197,5) size 48x14
-            text run at (197,5) width 48: "medium"
-        RenderText {#text} at (245,0) size 383x21
-          text run at (245,0) width 383: ", which may or may not be the same size as unstyled text."
+        RenderInline {CODE} at (0,0) size 46x16
+          RenderText {#text} at (197,3) size 46x16
+            text run at (197,3) width 46: "medium"
+        RenderText {#text} at (243,0) size 383x21
+          text run at (243,0) width 383: ", which may or may not be the same size as unstyled text."
       RenderBlock {P} at (0,465) size 768x25
         RenderText {#text} at (0,0) size 403x25
           text run at (0,0) width 403: "This sentence should be larger than unstyled text."
@@ -164,11 +164,11 @@ layer at (0,0) size 784x3011
               RenderBlock {P} at (4,41) size 746x21
                 RenderText {#text} at (0,0) size 197x21
                   text run at (0,0) width 197: "This sentence has been set to "
-                RenderInline {CODE} at (0,0) size 48x14
-                  RenderText {#text} at (197,5) size 48x14
-                    text run at (197,5) width 48: "medium"
-                RenderText {#text} at (245,0) size 383x21
-                  text run at (245,0) width 383: ", which may or may not be the same size as unstyled text."
+                RenderInline {CODE} at (0,0) size 46x16
+                  RenderText {#text} at (197,3) size 46x16
+                    text run at (197,3) width 46: "medium"
+                RenderText {#text} at (243,0) size 383x21
+                  text run at (243,0) width 383: ", which may or may not be the same size as unstyled text."
               RenderBlock {P} at (4,81) size 746x25
                 RenderText {#text} at (0,0) size 403x25
                   text run at (0,0) width 403: "This sentence should be larger than unstyled text."
diff --git a/LayoutTests/platform/qt/css1/font_properties/font_style-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font_style-expected.txt
index f68b6f7..16acbb2 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font_style-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font_style-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 248x62
-          text run at (0,1) width 208: ".one {font-style: italic;}"
-          text run at (208,1) width 0: " "
-          text run at (0,17) width 216: ".two {font-style: oblique;}"
-          text run at (216,17) width 0: " "
-          text run at (0,33) width 248: ".three, I {font-style: normal;}"
-          text run at (248,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 162x64
+          text run at (0,0) width 130: ".one {font-style: italic;}"
+          text run at (130,0) width 0: " "
+          text run at (0,16) width 143: ".two {font-style: oblique;}"
+          text run at (143,16) width 0: " "
+          text run at (0,32) width 162: ".three, I {font-style: normal;}"
+          text run at (162,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 784x21
         RenderText {#text} at (0,0) size 515x21
diff --git a/LayoutTests/platform/qt/css1/font_properties/font_variant-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font_variant-expected.txt
index 2fa74e4..dff4153 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font_variant-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font_variant-expected.txt
@@ -7,12 +7,12 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x48
-        RenderText {#text} at (0,1) size 256x46
-          text run at (0,1) width 256: ".one {font-variant: small-caps;}"
-          text run at (256,1) width 0: " "
-          text run at (0,17) width 224: ".two {font-variant: normal;}"
-          text run at (224,17) width 0: " "
-          text run at (0,33) width 0: " "
+        RenderText {#text} at (0,0) size 177x48
+          text run at (0,0) width 177: ".one {font-variant: small-caps;}"
+          text run at (177,0) width 0: " "
+          text run at (0,16) width 152: ".two {font-variant: normal;}"
+          text run at (152,16) width 0: " "
+          text run at (0,32) width 0: " "
       RenderBlock {HR} at (0,98) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,116) size 784x21
         RenderText {#text} at (0,0) size 279x21
diff --git a/LayoutTests/platform/qt/css1/font_properties/font_weight-expected.txt b/LayoutTests/platform/qt/css1/font_properties/font_weight-expected.txt
index 38bd655..23fb205 100644
--- a/LayoutTests/platform/qt/css1/font_properties/font_weight-expected.txt
+++ b/LayoutTests/platform/qt/css1/font_properties/font_weight-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x1123
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x176
-        RenderText {#text} at (0,1) size 240x174
-          text run at (0,1) width 200: ".one {font-weight: bold;}"
-          text run at (200,1) width 0: " "
-          text run at (0,17) width 216: ".two {font-weight: bolder;}"
-          text run at (216,17) width 0: " "
-          text run at (0,33) width 240: ".three {font-weight: lighter;}"
-          text run at (240,33) width 0: " "
-          text run at (0,49) width 200: ".four {font-weight: 100;}"
-          text run at (200,49) width 0: " "
-          text run at (0,65) width 200: ".five {font-weight: 300;}"
-          text run at (200,65) width 0: " "
-          text run at (0,81) width 192: ".six {font-weight: 500;}"
-          text run at (192,81) width 0: " "
-          text run at (0,97) width 208: ".seven {font-weight: 700;}"
-          text run at (208,97) width 0: " "
-          text run at (0,113) width 208: ".eight {font-weight: 900;}"
-          text run at (208,113) width 0: " "
-          text run at (0,129) width 224: ".nine {font-weight: normal;}"
-          text run at (224,129) width 0: " "
-          text run at (0,145) width 200: "B {font-weight: lighter;}"
-          text run at (200,145) width 0: " "
-          text run at (0,161) width 0: " "
+        RenderText {#text} at (0,0) size 155x176
+          text run at (0,0) width 136: ".one {font-weight: bold;}"
+          text run at (136,0) width 0: " "
+          text run at (0,16) width 146: ".two {font-weight: bolder;}"
+          text run at (146,16) width 0: " "
+          text run at (0,32) width 155: ".three {font-weight: lighter;}"
+          text run at (155,32) width 0: " "
+          text run at (0,48) width 134: ".four {font-weight: 100;}"
+          text run at (134,48) width 0: " "
+          text run at (0,64) width 133: ".five {font-weight: 300;}"
+          text run at (133,64) width 0: " "
+          text run at (0,80) width 129: ".six {font-weight: 500;}"
+          text run at (129,80) width 0: " "
+          text run at (0,96) width 147: ".seven {font-weight: 700;}"
+          text run at (147,96) width 0: " "
+          text run at (0,112) width 140: ".eight {font-weight: 900;}"
+          text run at (140,112) width 0: " "
+          text run at (0,128) width 154: ".nine {font-weight: normal;}"
+          text run at (154,128) width 0: " "
+          text run at (0,144) width 131: "B {font-weight: lighter;}"
+          text run at (131,144) width 0: " "
+          text run at (0,160) width 0: " "
       RenderBlock {HR} at (0,226) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,244) size 768x21
         RenderText {#text} at (0,0) size 198x21
diff --git a/LayoutTests/platform/qt/css1/formatting_model/canvas-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/canvas-expected.txt
index 4b2c0b4..4272a7c 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/canvas-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/canvas-expected.txt
@@ -7,11 +7,11 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 750x32
-        RenderText {#text} at (0,1) size 552x30
-          text run at (0,1) width 240: "HTML {background-color: aqua;}"
-          text run at (240,1) width 0: " "
-          text run at (0,17) width 552: "BODY {background-color: green; background-image: none; margin: 25px;}"
-          text run at (552,17) width 0: " "
+        RenderText {#text} at (0,0) size 425x32
+          text run at (0,0) width 186: "HTML {background-color: aqua;}"
+          text run at (186,0) width 0: " "
+          text run at (0,16) width 425: "BODY {background-color: green; background-image: none; margin: 25px;}"
+          text run at (425,16) width 0: " "
       RenderBlock {HR} at (0,82) size 750x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,100) size 750x63
         RenderText {#text} at (0,0) size 741x63
diff --git a/LayoutTests/platform/qt/css1/formatting_model/floating_elements-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/floating_elements-expected.txt
index 0abb11b..640978a 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/floating_elements-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/floating_elements-expected.txt
@@ -7,24 +7,24 @@ layer at (0,0) size 784x7269
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x144
-        RenderText {#text} at (0,1) size 480x142
-          text run at (0,1) width 272: "HR.minor {clear: both; width: 5%;}"
-          text run at (272,1) width 0: " "
-          text run at (0,17) width 400: "HR.major {clear: both; width: 75%; margin: 1.5em;}"
-          text run at (400,17) width 0: " "
-          text run at (0,33) width 480: "DIV {border: 5px solid purple; padding: 0; margin: 0.125em;}"
-          text run at (480,33) width 0: " "
-          text run at (0,49) width 432: "P.left, P.right {width: 10em; padding: 1em; margin: 0;"
-          text run at (432,49) width 0: " "
-          text run at (0,65) width 424: "   border: 1px solid lime; background-color: silver;}"
-          text run at (424,65) width 0: " "
-          text run at (0,81) width 456: "IMG.left, IMG.right {margin: 0; border: 3px solid black;}"
-          text run at (456,81) width 0: " "
-          text run at (0,97) width 160: ".left {float: left;}"
-          text run at (160,97) width 0: " "
-          text run at (0,113) width 176: ".right {float: right;}"
-          text run at (176,113) width 0: " "
-          text run at (0,129) width 0: " "
+        RenderText {#text} at (0,0) size 346x144
+          text run at (0,0) width 196: "HR.minor {clear: both; width: 5%;}"
+          text run at (196,0) width 0: " "
+          text run at (0,16) width 294: "HR.major {clear: both; width: 75%; margin: 1.5em;}"
+          text run at (294,16) width 0: " "
+          text run at (0,32) width 346: "DIV {border: 5px solid purple; padding: 0; margin: 0.125em;}"
+          text run at (346,32) width 0: " "
+          text run at (0,48) width 307: "P.left, P.right {width: 10em; padding: 1em; margin: 0;"
+          text run at (307,48) width 0: " "
+          text run at (0,64) width 290: "   border: 1px solid lime; background-color: silver;}"
+          text run at (290,64) width 0: " "
+          text run at (0,80) width 318: "IMG.left, IMG.right {margin: 0; border: 3px solid black;}"
+          text run at (318,80) width 0: " "
+          text run at (0,96) width 89: ".left {float: left;}"
+          text run at (89,96) width 0: " "
+          text run at (0,112) width 103: ".right {float: right;}"
+          text run at (103,112) width 0: " "
+          text run at (0,128) width 0: " "
       RenderBlock {HR} at (0,194) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,212) size 768x63
         RenderText {#text} at (0,0) size 737x63
diff --git a/LayoutTests/platform/qt/css1/formatting_model/height_of_lines-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/height_of_lines-expected.txt
index 2d8faa4..0b47b23 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/height_of_lines-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/height_of_lines-expected.txt
@@ -7,40 +7,40 @@ layer at (0,0) size 784x2379
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x288
-        RenderText {#text} at (0,1) size 536x286
-          text run at (0,1) width 344: "P.one {font-size: 14px; line-height: 20px;}"
-          text run at (344,1) width 0: " "
-          text run at (0,17) width 304: "IMG.onea {vertical-align: text-bottom;"
-          text run at (304,17) width 0: " "
-          text run at (0,33) width 272: "     width: 200px; height: 200px;}"
-          text run at (272,33) width 0: " "
-          text run at (0,49) width 520: "IMG.oneb {vertical-align: text-top; width: 200px; height: 200px;}"
-          text run at (520,49) width 0: " "
-          text run at (0,65) width 0: " "
-          text run at (0,81) width 344: "P.two {font-size: 14px; line-height: 20px;}"
-          text run at (344,81) width 0: " "
-          text run at (0,97) width 536: "IMG.twoa {vertical-align: text-bottom; width: 100px; height: 100px;"
-          text run at (536,97) width 0: " "
-          text run at (0,113) width 312: "     padding: 5px; border-style: solid;"
-          text run at (312,113) width 0: " "
-          text run at (0,129) width 312: "     border-width: 10px; margin: 15px;}"
-          text run at (312,129) width 0: " "
-          text run at (0,145) width 280: "IMG.twob {vertical-align: text-top;"
-          text run at (280,145) width 0: " "
-          text run at (0,161) width 304: "          width: 100px; height: 100px;"
-          text run at (304,161) width 0: " "
-          text run at (0,177) width 312: "     padding: 5px; border-style: solid;"
-          text run at (312,177) width 0: " "
-          text run at (0,193) width 312: "     border-width: 10px; margin: 15px;}"
-          text run at (312,193) width 0: " "
-          text run at (0,209) width 0: " "
-          text run at (0,225) width 480: "IMG.twoc {vertical-align: middle; width: 50px; height: 50px;"
-          text run at (480,225) width 0: " "
-          text run at (0,241) width 312: "     padding: 5px; border-style: solid;"
-          text run at (312,241) width 0: " "
-          text run at (0,257) width 320: "     border-width: 10px; margin: -10px;}"
-          text run at (320,257) width 0: " "
-          text run at (0,273) width 0: " "
+        RenderText {#text} at (0,0) size 382x288
+          text run at (0,0) width 239: "P.one {font-size: 14px; line-height: 20px;}"
+          text run at (239,0) width 0: " "
+          text run at (0,16) width 216: "IMG.onea {vertical-align: text-bottom;"
+          text run at (216,16) width 0: " "
+          text run at (0,32) width 187: "     width: 200px; height: 200px;}"
+          text run at (187,32) width 0: " "
+          text run at (0,48) width 365: "IMG.oneb {vertical-align: text-top; width: 200px; height: 200px;}"
+          text run at (365,48) width 0: " "
+          text run at (0,64) width 0: " "
+          text run at (0,80) width 238: "P.two {font-size: 14px; line-height: 20px;}"
+          text run at (238,80) width 0: " "
+          text run at (0,96) width 382: "IMG.twoa {vertical-align: text-bottom; width: 100px; height: 100px;"
+          text run at (382,96) width 0: " "
+          text run at (0,112) width 209: "     padding: 5px; border-style: solid;"
+          text run at (209,112) width 0: " "
+          text run at (0,128) width 217: "     border-width: 10px; margin: 15px;}"
+          text run at (217,128) width 0: " "
+          text run at (0,144) width 193: "IMG.twob {vertical-align: text-top;"
+          text run at (193,144) width 0: " "
+          text run at (0,160) width 203: "          width: 100px; height: 100px;"
+          text run at (203,160) width 0: " "
+          text run at (0,176) width 209: "     padding: 5px; border-style: solid;"
+          text run at (209,176) width 0: " "
+          text run at (0,192) width 217: "     border-width: 10px; margin: 15px;}"
+          text run at (217,192) width 0: " "
+          text run at (0,208) width 0: " "
+          text run at (0,224) width 340: "IMG.twoc {vertical-align: middle; width: 50px; height: 50px;"
+          text run at (340,224) width 0: " "
+          text run at (0,240) width 209: "     padding: 5px; border-style: solid;"
+          text run at (209,240) width 0: " "
+          text run at (0,256) width 221: "     border-width: 10px; margin: -10px;}"
+          text run at (221,256) width 0: " "
+          text run at (0,272) width 0: " "
       RenderBlock {HR} at (0,338) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,354) size 768x462
         RenderText {#text} at (0,1) size 759x239
diff --git a/LayoutTests/platform/qt/css1/formatting_model/horizontal_formatting-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/horizontal_formatting-expected.txt
index 88dec29..712a33f 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/horizontal_formatting-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/horizontal_formatting-expected.txt
@@ -53,11 +53,11 @@ layer at (0,0) size 784x819
         RenderText {#text} at (0,0) size 350x42
           text run at (0,0) width 350: "Since auto is an invalid value for padding, the right-"
           text run at (0,21) width 297: "margin of this paragraph should be reset to "
-        RenderInline {CODE} at (0,0) size 32x14
-          RenderText {#text} at (297,26) size 32x14
-            text run at (297,26) width 32: "auto"
-        RenderText {#text} at (329,21) size 374x63
-          text run at (329,21) width 30: " and"
+        RenderInline {CODE} at (0,0) size 25x16
+          RenderText {#text} at (297,24) size 25x16
+            text run at (297,24) width 25: "auto"
+        RenderText {#text} at (322,21) size 374x63
+          text run at (322,21) width 30: " and"
           text run at (0,42) width 374: "thus be expanded to 50% and it should only occupy the"
           text run at (0,63) width 161: "left half of the viewport."
       RenderBlock {P} at (0,774) size 768x21 [bgcolor=#808080]
diff --git a/LayoutTests/platform/qt/css1/formatting_model/inline_elements-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/inline_elements-expected.txt
index ed0560a..d972bef 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/inline_elements-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/inline_elements-expected.txt
@@ -7,20 +7,20 @@ layer at (0,0) size 784x794
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 560x110
-          text run at (0,1) width 208: "P.one {line-height: 200%;}"
-          text run at (208,1) width 0: " "
-          text run at (0,17) width 552: "SPAN.two {border-style: solid; border-width: 10px; border-color: red;"
-          text run at (552,17) width 0: " "
-          text run at (0,33) width 304: "          padding: 2pt; margin: 30pt;}"
-          text run at (304,33) width 0: " "
-          text run at (0,49) width 360: "P.three {font-size: 10pt; line-height: 12pt;}"
-          text run at (360,49) width 0: " "
-          text run at (0,65) width 560: "SPAN.four {border-style: solid; border-width: 12px; border-color: red;"
-          text run at (560,65) width 0: " "
-          text run at (0,81) width 192: "          padding: 2pt;}"
-          text run at (192,81) width 0: " "
-          text run at (0,97) width 0: " "
+        RenderText {#text} at (0,0) size 393x112
+          text run at (0,0) width 150: "P.one {line-height: 200%;}"
+          text run at (150,0) width 0: " "
+          text run at (0,16) width 391: "SPAN.two {border-style: solid; border-width: 10px; border-color: red;"
+          text run at (391,16) width 0: " "
+          text run at (0,32) width 199: "          padding: 2pt; margin: 30pt;}"
+          text run at (199,32) width 0: " "
+          text run at (0,48) width 241: "P.three {font-size: 10pt; line-height: 12pt;}"
+          text run at (241,48) width 0: " "
+          text run at (0,64) width 393: "SPAN.four {border-style: solid; border-width: 12px; border-color: red;"
+          text run at (393,64) width 0: " "
+          text run at (0,80) width 119: "          padding: 2pt;}"
+          text run at (119,80) width 0: " "
+          text run at (0,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,180) size 768x192
         RenderText {#text} at (0,5) size 207x21
diff --git a/LayoutTests/platform/qt/css1/formatting_model/replaced_elements-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/replaced_elements-expected.txt
index ea069d6..fdffd29 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/replaced_elements-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/replaced_elements-expected.txt
@@ -7,23 +7,23 @@ layer at (0,0) size 784x2391
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x128
-        RenderText {#text} at (0,1) size 504x126
-          text run at (0,1) width 208: "IMG.one {display: inline;}"
-          text run at (208,1) width 0: " "
-          text run at (0,17) width 200: "IMG.two {display: block;}"
-          text run at (200,17) width 0: " "
-          text run at (0,33) width 208: "IMG.three {display: block;"
-          text run at (208,33) width 0: " "
-          text run at (0,49) width 504: "           margin-right: auto; margin-left: auto; width: auto;}"
-          text run at (504,49) width 0: " "
-          text run at (0,65) width 200: "IMG.four {display: block;"
-          text run at (200,65) width 0: " "
-          text run at (0,81) width 488: "          margin-right: auto; margin-left: auto; width: 50%;}"
-          text run at (488,81) width 0: " "
-          text run at (0,97) width 200: "IMG.five {display: block;"
-          text run at (200,97) width 0: " "
-          text run at (0,113) width 464: "          margin-right: 0; margin-left: auto; width: 50%;}"
-          text run at (464,113) width 0: " "
+        RenderText {#text} at (0,0) size 326x128
+          text run at (0,0) width 145: "IMG.one {display: inline;}"
+          text run at (145,0) width 0: " "
+          text run at (0,16) width 145: "IMG.two {display: block;}"
+          text run at (145,16) width 0: " "
+          text run at (0,32) width 150: "IMG.three {display: block;"
+          text run at (150,32) width 0: " "
+          text run at (0,48) width 326: "           margin-right: auto; margin-left: auto; width: auto;}"
+          text run at (326,48) width 0: " "
+          text run at (0,64) width 143: "IMG.four {display: block;"
+          text run at (143,64) width 0: " "
+          text run at (0,80) width 323: "          margin-right: auto; margin-left: auto; width: 50%;}"
+          text run at (323,80) width 0: " "
+          text run at (0,96) width 142: "IMG.five {display: block;"
+          text run at (142,96) width 0: " "
+          text run at (0,112) width 305: "          margin-right: 0; margin-left: auto; width: 50%;}"
+          text run at (305,112) width 0: " "
       RenderBlock {HR} at (0,178) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,196) size 768x21
         RenderImage {IMG} at (0,1) size 15x15
diff --git a/LayoutTests/platform/qt/css1/formatting_model/vertical_formatting-expected.txt b/LayoutTests/platform/qt/css1/formatting_model/vertical_formatting-expected.txt
index dde3c80..1f9aea4 100644
--- a/LayoutTests/platform/qt/css1/formatting_model/vertical_formatting-expected.txt
+++ b/LayoutTests/platform/qt/css1/formatting_model/vertical_formatting-expected.txt
@@ -7,46 +7,46 @@ layer at (0,0) size 784x2629
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x320
-        RenderText {#text} at (0,1) size 496x318
-          text run at (0,1) width 368: "P.one {margin-bottom: 2cm; padding-bottom: 0;}"
-          text run at (368,1) width 0: " "
-          text run at (0,17) width 320: "P.two {margin-top: 2cm; padding-top: 0;}"
-          text run at (320,17) width 0: " "
-          text run at (0,33) width 320: "P.three {margin-top: 0; padding-top: 0;}"
-          text run at (320,33) width 0: " "
-          text run at (0,49) width 344: "P.four {margin-top: -1cm; margin-bottom: 0;"
-          text run at (344,49) width 0: " "
-          text run at (0,65) width 344: "        padding-top: 0; padding-bottom: 0;}"
-          text run at (344,65) width 0: " "
-          text run at (0,81) width 368: "DIV.five {margin-top: 1cm; margin-bottom: 1cm;"
-          text run at (368,81) width 0: " "
-          text run at (0,97) width 376: "          padding-top: 1cm; padding-bottom: 0;}"
-          text run at (376,97) width 0: " "
-          text run at (0,113) width 344: "P.six {margin-top: 1cm; margin-bottom: 1cm;"
-          text run at (344,113) width 0: " "
-          text run at (0,129) width 336: "       padding-top: 0; padding-bottom: 0;}"
-          text run at (336,129) width 0: " "
-          text run at (0,145) width 336: "P.seven {margin-top: 1cm; padding-top: 0;}"
-          text run at (336,145) width 0: " "
-          text run at (0,161) width 408: "P.eight {margin-bottom: -1cm; padding-bottom: 2cm;}"
-          text run at (408,161) width 0: " "
-          text run at (0,177) width 344: "P.nine {margin-top: -1cm; padding-top: 1cm;"
-          text run at (344,177) width 0: " "
-          text run at (0,193) width 376: "        padding-bottom: 0; margin-bottom: 1cm;}"
-          text run at (376,193) width 0: " "
-          text run at (0,209) width 304: "P.ten {margin-top: 1cm;padding-top: 0;"
-          text run at (304,209) width 0: " "
-          text run at (0,225) width 248: "       float: left;width: 50%;}"
-          text run at (248,225) width 0: " "
-          text run at (0,241) width 448: "P.eleven {margin-top: 1cm; padding-top: 0; clear: none;}"
-          text run at (448,241) width 0: " "
-          text run at (0,257) width 496: "P.twelve {margin-bottom: 0; padding-bottom: 1cm; clear: both;}"
-          text run at (496,257) width 0: " "
-          text run at (0,273) width 360: "P.thirteen {margin-top: 0; padding-top: 1cm;}"
-          text run at (360,273) width 0: " "
-          text run at (0,289) width 160: "TABLE {clear: both;}"
-          text run at (160,289) width 0: " "
-          text run at (0,305) width 0: " "
+        RenderText {#text} at (0,0) size 363x320
+          text run at (0,0) width 278: "P.one {margin-bottom: 2cm; padding-bottom: 0;}"
+          text run at (278,0) width 0: " "
+          text run at (0,16) width 233: "P.two {margin-top: 2cm; padding-top: 0;}"
+          text run at (233,16) width 0: " "
+          text run at (0,32) width 224: "P.three {margin-top: 0; padding-top: 0;}"
+          text run at (224,32) width 0: " "
+          text run at (0,48) width 251: "P.four {margin-top: -1cm; margin-bottom: 0;"
+          text run at (251,48) width 0: " "
+          text run at (0,64) width 234: "        padding-top: 0; padding-bottom: 0;}"
+          text run at (234,64) width 0: " "
+          text run at (0,80) width 277: "DIV.five {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (277,80) width 0: " "
+          text run at (0,96) width 260: "          padding-top: 1cm; padding-bottom: 0;}"
+          text run at (260,96) width 0: " "
+          text run at (0,112) width 260: "P.six {margin-top: 1cm; margin-bottom: 1cm;"
+          text run at (260,112) width 0: " "
+          text run at (0,128) width 230: "       padding-top: 0; padding-bottom: 0;}"
+          text run at (230,128) width 0: " "
+          text run at (0,144) width 248: "P.seven {margin-top: 1cm; padding-top: 0;}"
+          text run at (248,144) width 0: " "
+          text run at (0,160) width 307: "P.eight {margin-bottom: -1cm; padding-bottom: 2cm;}"
+          text run at (307,160) width 0: " "
+          text run at (0,176) width 255: "P.nine {margin-top: -1cm; padding-top: 1cm;"
+          text run at (255,176) width 0: " "
+          text run at (0,192) width 268: "        padding-bottom: 0; margin-bottom: 1cm;}"
+          text run at (268,192) width 0: " "
+          text run at (0,208) width 223: "P.ten {margin-top: 1cm;padding-top: 0;"
+          text run at (223,208) width 0: " "
+          text run at (0,224) width 155: "       float: left;width: 50%;}"
+          text run at (155,224) width 0: " "
+          text run at (0,240) width 323: "P.eleven {margin-top: 1cm; padding-top: 0; clear: none;}"
+          text run at (323,240) width 0: " "
+          text run at (0,256) width 363: "P.twelve {margin-bottom: 0; padding-bottom: 1cm; clear: both;}"
+          text run at (363,256) width 0: " "
+          text run at (0,272) width 256: "P.thirteen {margin-top: 0; padding-top: 1cm;}"
+          text run at (256,272) width 0: " "
+          text run at (0,288) width 119: "TABLE {clear: both;}"
+          text run at (119,288) width 0: " "
+          text run at (0,304) width 0: " "
       RenderBlock {HR} at (0,370) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,388) size 768x42
         RenderText {#text} at (0,0) size 710x42
diff --git a/LayoutTests/platform/qt/css1/pseudo/anchor-expected.txt b/LayoutTests/platform/qt/css1/pseudo/anchor-expected.txt
index 0cf4cda..a9dbc38 100644
--- a/LayoutTests/platform/qt/css1/pseudo/anchor-expected.txt
+++ b/LayoutTests/platform/qt/css1/pseudo/anchor-expected.txt
@@ -7,18 +7,18 @@ layer at (0,0) size 784x782
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x96
-        RenderText {#text} at (0,1) size 200x94
-          text run at (0,1) width 136: "A {color: green;}"
-          text run at (136,1) width 0: " "
-          text run at (0,17) width 184: "A:link {color: purple;}"
-          text run at (184,17) width 0: " "
-          text run at (0,33) width 192: "A:visited {color: lime;}"
-          text run at (192,33) width 0: " "
-          text run at (0,49) width 200: "A:active {color: maroon;}"
-          text run at (200,49) width 0: " "
-          text run at (0,65) width 176: "#one {color: #006600;}"
-          text run at (176,65) width 0: " "
-          text run at (0,81) width 0: " "
+        RenderText {#text} at (0,0) size 143x96
+          text run at (0,0) width 93: "A {color: green;}"
+          text run at (93,0) width 0: " "
+          text run at (0,16) width 120: "A:link {color: purple;}"
+          text run at (120,16) width 0: " "
+          text run at (0,32) width 127: "A:visited {color: lime;}"
+          text run at (127,32) width 0: " "
+          text run at (0,48) width 143: "A:active {color: maroon;}"
+          text run at (143,48) width 0: " "
+          text run at (0,64) width 129: "#one {color: #006600;}"
+          text run at (129,64) width 0: " "
+          text run at (0,80) width 0: " "
       RenderBlock {HR} at (0,146) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,164) size 768x21
         RenderText {#text} at (0,0) size 536x21
diff --git a/LayoutTests/platform/qt/css1/pseudo/firstletter-expected.txt b/LayoutTests/platform/qt/css1/pseudo/firstletter-expected.txt
index 5cc0e5c..06e9bc0 100644
--- a/LayoutTests/platform/qt/css1/pseudo/firstletter-expected.txt
+++ b/LayoutTests/platform/qt/css1/pseudo/firstletter-expected.txt
@@ -10,14 +10,14 @@ layer at (0,0) size 784x791
         RenderText {#text} at (11,0) size 369x21
           text run at (11,0) width 369: "he style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 312x62
-          text run at (0,1) width 248: "P:first-letter {color: maroon;}"
-          text run at (248,1) width 0: " "
-          text run at (0,17) width 288: ".two:first-letter {font-size: 200%;}"
-          text run at (288,17) width 0: " "
-          text run at (0,33) width 312: "P.three:first-letter {font-size: 350%;}"
-          text run at (312,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 208x64
+          text run at (0,0) width 163: "P:first-letter {color: maroon;}"
+          text run at (163,0) width 0: " "
+          text run at (0,16) width 190: ".two:first-letter {font-size: 200%;}"
+          text run at (190,16) width 0: " "
+          text run at (0,32) width 208: "P.three:first-letter {font-size: 350%;}"
+          text run at (208,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x63
         RenderInline (generated) at (0,0) size 11x21 [color=#800000]
diff --git a/LayoutTests/platform/qt/css1/pseudo/firstline-expected.txt b/LayoutTests/platform/qt/css1/pseudo/firstline-expected.txt
index 6f96b16..caf9800 100644
--- a/LayoutTests/platform/qt/css1/pseudo/firstline-expected.txt
+++ b/LayoutTests/platform/qt/css1/pseudo/firstline-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 784x771
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 360x62
-          text run at (0,1) width 224: "P:first-line {color: green;}"
-          text run at (224,1) width 0: " "
-          text run at (0,17) width 272: ".two:first-line {font-size: 200%;}"
-          text run at (272,17) width 0: " "
-          text run at (0,33) width 360: ".three:first-line {font-variant: small-caps;}"
-          text run at (360,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 235x64
+          text run at (0,0) width 143: "P:first-line {color: green;}"
+          text run at (143,0) width 0: " "
+          text run at (0,16) width 181: ".two:first-line {font-size: 200%;}"
+          text run at (181,16) width 0: " "
+          text run at (0,32) width 235: ".three:first-line {font-variant: small-caps;}"
+          text run at (235,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x63
         RenderText {#text} at (0,0) size 757x63
@@ -37,13 +37,13 @@ layer at (0,0) size 784x771
           text run at (608,0) width 150: "Thus, if the first line is"
           text run at (0,21) width 754: "not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this test"
           text run at (0,42) width 249: "(although the problem might be that "
-        RenderInline {CODE} at (0,0) size 80x14
-          RenderText {#text} at (249,47) size 80x14
-            text run at (249,47) width 80: "small-caps"
-        RenderText {#text} at (329,42) size 746x42
-          text run at (329,42) width 243: " is not supported by your browser). "
-          text run at (572,42) width 174: "This is extra text included"
-          text run at (0,63) width 558: "for the purposes of making the paragraph long enough to have more than one line."
+        RenderInline {CODE} at (0,0) size 63x16
+          RenderText {#text} at (249,45) size 63x16
+            text run at (249,45) width 63: "small-caps"
+        RenderText {#text} at (312,42) size 753x42
+          text run at (312,42) width 243: " is not supported by your browser). "
+          text run at (555,42) width 198: "This is extra text included for"
+          text run at (0,63) width 534: "the purposes of making the paragraph long enough to have more than one line."
       RenderTable {TABLE} at (0,432) size 768x323 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x321
           RenderTableRow {TR} at (0,0) size 766x29
@@ -77,10 +77,10 @@ layer at (0,0) size 784x771
                   text run at (608,0) width 136: "Thus, if the first line"
                   text run at (0,21) width 741: "is not in small-caps style, OR if the entire paragraph turns out in small-caps, then the user agent has failed this"
                   text run at (0,42) width 276: "test (although the problem might be that "
-                RenderInline {CODE} at (0,0) size 80x14
-                  RenderText {#text} at (276,47) size 80x14
-                    text run at (276,47) width 80: "small-caps"
-                RenderText {#text} at (356,42) size 711x42
-                  text run at (356,42) width 243: " is not supported by your browser). "
-                  text run at (599,42) width 112: "This is extra text"
+                RenderInline {CODE} at (0,0) size 63x16
+                  RenderText {#text} at (276,45) size 63x16
+                    text run at (276,45) width 63: "small-caps"
+                RenderText {#text} at (339,42) size 694x42
+                  text run at (339,42) width 243: " is not supported by your browser). "
+                  text run at (582,42) width 112: "This is extra text"
                   text run at (0,63) width 620: "included for the purposes of making the paragraph long enough to have more than one line."
diff --git a/LayoutTests/platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt b/LayoutTests/platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt
index 04e1972..b09496c 100644
--- a/LayoutTests/platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt
+++ b/LayoutTests/platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt
@@ -10,20 +10,20 @@ layer at (0,0) size 784x1194
         RenderText {#text} at (11,0) size 369x21
           text run at (11,0) width 369: "he style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x112
-        RenderText {#text} at (0,1) size 368x110
-          text run at (0,1) width 224: "P:first-line {color: green;}"
-          text run at (224,1) width 0: " "
-          text run at (0,17) width 248: "P:first-letter {color: maroon;}"
-          text run at (248,17) width 0: " "
-          text run at (0,33) width 272: ".two:first-line {font-size: 200%;}"
-          text run at (272,33) width 0: " "
-          text run at (0,49) width 288: ".two:first-letter {font-size: 350%;}"
-          text run at (288,49) width 0: " "
-          text run at (0,65) width 312: "P.three:first-letter {font-size: 350%;}"
-          text run at (312,65) width 0: " "
-          text run at (0,81) width 368: "P.three:first-line {font-variant: small-caps;}"
-          text run at (368,81) width 0: " "
-          text run at (0,97) width 0: " "
+        RenderText {#text} at (0,0) size 244x112
+          text run at (0,0) width 143: "P:first-line {color: green;}"
+          text run at (143,0) width 0: " "
+          text run at (0,16) width 163: "P:first-letter {color: maroon;}"
+          text run at (163,16) width 0: " "
+          text run at (0,32) width 181: ".two:first-line {font-size: 200%;}"
+          text run at (181,32) width 0: " "
+          text run at (0,48) width 190: ".two:first-letter {font-size: 350%;}"
+          text run at (190,48) width 0: " "
+          text run at (0,64) width 208: "P.three:first-letter {font-size: 350%;}"
+          text run at (208,64) width 0: " "
+          text run at (0,80) width 244: "P.three:first-line {font-variant: small-caps;}"
+          text run at (244,80) width 0: " "
+          text run at (0,96) width 0: " "
       RenderBlock {HR} at (0,162) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,180) size 768x63
         RenderInline (generated) at (0,0) size 11x21 [color=#800000]
diff --git a/LayoutTests/platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt b/LayoutTests/platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt
index ab574c1..648bf5b 100644
--- a/LayoutTests/platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt
+++ b/LayoutTests/platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 784x645
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x64
-        RenderText {#text} at (0,1) size 264x62
-          text run at (0,1) width 264: "P:first-line {font-weight: bold;}"
-          text run at (264,1) width 0: " "
-          text run at (0,17) width 256: "P.two:first-line {color: green;}"
-          text run at (256,17) width 0: " "
-          text run at (0,33) width 256: "P:first-line.three {color: red;}"
-          text run at (256,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 170x64
+          text run at (0,0) width 170: "P:first-line {font-weight: bold;}"
+          text run at (170,0) width 0: " "
+          text run at (0,16) width 167: "P.two:first-line {color: green;}"
+          text run at (167,16) width 0: " "
+          text run at (0,32) width 162: "P:first-line.three {color: red;}"
+          text run at (162,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 768x42
         RenderText {#text} at (0,0) size 718x42
@@ -26,11 +26,11 @@ layer at (0,0) size 784x645
           text run at (0,0) width 556: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
           text run at (556,0) width 199: "If this is not the case, then the"
           text run at (0,21) width 610: "user agent may have failed to properly parse the selector, or it may simply not support the "
-        RenderInline {TT} at (0,0) size 88x14
-          RenderText {#text} at (610,26) size 88x14
-            text run at (610,26) width 88: ":first-line"
-        RenderText {#text} at (698,21) size 755x42
-          text run at (698,21) width 57: " pseudo-"
+        RenderInline {TT} at (0,0) size 50x16
+          RenderText {#text} at (610,24) size 50x16
+            text run at (610,24) width 50: ":first-line"
+        RenderText {#text} at (660,21) size 717x42
+          text run at (660,21) width 57: " pseudo-"
           text run at (0,42) width 56: "element."
       RenderBlock {P} at (0,269) size 768x84
         RenderText {#text} at (0,0) size 759x84
@@ -62,11 +62,12 @@ layer at (0,0) size 784x645
                   text run at (0,0) width 556: "The first line of this sentence should be boldfaced and green, thanks to its selector. "
                   text run at (556,0) width 174: "If this is not the case, then"
                   text run at (0,21) width 635: "the user agent may have failed to properly parse the selector, or it may simply not support the "
-                RenderInline {TT} at (0,0) size 88x14
-                  RenderText {#text} at (635,26) size 88x14
-                    text run at (635,26) width 88: ":first-line"
-                RenderText {#text} at (0,42) size 109x21
-                  text run at (0,42) width 109: "pseudo-element."
+                RenderInline {TT} at (0,0) size 50x16
+                  RenderText {#text} at (635,24) size 50x16
+                    text run at (635,24) width 50: ":first-line"
+                RenderText {#text} at (685,21) size 742x42
+                  text run at (685,21) width 57: " pseudo-"
+                  text run at (0,42) width 56: "element."
               RenderBlock {P} at (4,141) size 746x84
                 RenderText {#text} at (0,0) size 737x84
                   text run at (0,0) width 339: "The first line of this sentence should be boldfaced. "
diff --git a/LayoutTests/platform/qt/css1/text_properties/letter_spacing-expected.txt b/LayoutTests/platform/qt/css1/text_properties/letter_spacing-expected.txt
index a828f0c..9113c57 100644
--- a/LayoutTests/platform/qt/css1/text_properties/letter_spacing-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/letter_spacing-expected.txt
@@ -7,29 +7,29 @@ layer at (0,0) size 784x1149
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x176
-        RenderText {#text} at (0,1) size 264x174
-          text run at (0,1) width 232: ".one {letter-spacing: 0.3in;}"
-          text run at (232,1) width 0: " "
-          text run at (0,17) width 232: ".two {letter-spacing: 0.5cm;}"
-          text run at (232,17) width 0: " "
-          text run at (0,33) width 232: ".three {letter-spacing: 5mm;}"
-          text run at (232,33) width 0: " "
-          text run at (0,49) width 224: ".four {letter-spacing: 3pt;}"
-          text run at (224,49) width 0: " "
-          text run at (0,65) width 248: ".five {letter-spacing: 0.25pc;}"
-          text run at (248,65) width 0: " "
-          text run at (0,81) width 216: ".six {letter-spacing: 1em;}"
-          text run at (216,81) width 0: " "
-          text run at (0,97) width 232: ".seven {letter-spacing: 1ex;}"
-          text run at (232,97) width 0: " "
-          text run at (0,113) width 232: ".eight {letter-spacing: 5px;}"
-          text run at (232,113) width 0: " "
-          text run at (0,129) width 248: ".nine {letter-spacing: normal;}"
-          text run at (248,129) width 0: " "
-          text run at (0,145) width 224: ".ten {letter-spacing: 300%;}"
-          text run at (224,145) width 0: " "
-          text run at (0,161) width 264: ".eleven {letter-spacing: -0.1em;}"
-          text run at (264,161) width 0: " "
+        RenderText {#text} at (0,0) size 184x176
+          text run at (0,0) width 155: ".one {letter-spacing: 0.3in;}"
+          text run at (155,0) width 0: " "
+          text run at (0,16) width 162: ".two {letter-spacing: 0.5cm;}"
+          text run at (162,16) width 0: " "
+          text run at (0,32) width 164: ".three {letter-spacing: 5mm;}"
+          text run at (164,32) width 0: " "
+          text run at (0,48) width 146: ".four {letter-spacing: 3pt;}"
+          text run at (146,48) width 0: " "
+          text run at (0,64) width 166: ".five {letter-spacing: 0.25pc;}"
+          text run at (166,64) width 0: " "
+          text run at (0,80) width 148: ".six {letter-spacing: 1em;}"
+          text run at (148,80) width 0: " "
+          text run at (0,96) width 162: ".seven {letter-spacing: 1ex;}"
+          text run at (162,96) width 0: " "
+          text run at (0,112) width 155: ".eight {letter-spacing: 5px;}"
+          text run at (155,112) width 0: " "
+          text run at (0,128) width 169: ".nine {letter-spacing: normal;}"
+          text run at (169,128) width 0: " "
+          text run at (0,144) width 157: ".ten {letter-spacing: 300%;}"
+          text run at (157,144) width 0: " "
+          text run at (0,160) width 184: ".eleven {letter-spacing: -0.1em;}"
+          text run at (184,160) width 0: " "
       RenderBlock {HR} at (0,226) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,244) size 768x21
         RenderText {#text} at (0,0) size 448x21
diff --git a/LayoutTests/platform/qt/css1/text_properties/line_height-expected.txt b/LayoutTests/platform/qt/css1/text_properties/line_height-expected.txt
index 8cdf263..a46adc0 100644
--- a/LayoutTests/platform/qt/css1/text_properties/line_height-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/line_height-expected.txt
@@ -7,35 +7,35 @@ layer at (0,0) size 784x2897
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x224
-        RenderText {#text} at (0,1) size 400x222
-          text run at (0,1) width 344: ".one {line-height: 0.5in; font-size: 12px;}"
-          text run at (344,1) width 0: " "
-          text run at (0,17) width 328: ".two {line-height: 2cm; font-size: 12px;}"
-          text run at (328,17) width 0: " "
-          text run at (0,33) width 352: ".three {line-height: 20mm; font-size: 12px;}"
-          text run at (352,33) width 0: " "
-          text run at (0,49) width 344: ".four {line-height: 24pt; font-size: 12px;}"
-          text run at (344,49) width 0: " "
-          text run at (0,65) width 336: ".five {line-height: 2pc; font-size: 12px;}"
-          text run at (336,65) width 0: " "
-          text run at (0,81) width 328: ".six {line-height: 2em; font-size: 12px;}"
-          text run at (328,81) width 0: " "
-          text run at (0,97) width 344: ".seven {line-height: 3ex; font-size: 12px;}"
-          text run at (344,97) width 0: " "
-          text run at (0,113) width 352: ".eight {line-height: 200%; font-size: 12px;}"
-          text run at (352,113) width 0: " "
-          text run at (0,129) width 320: ".nine {line-height: 2; font-size: 12px;}"
-          text run at (320,129) width 0: " "
-          text run at (0,145) width 336: ".ten {line-height: 50px; font-size: 12px;}"
-          text run at (336,145) width 0: " "
-          text run at (0,161) width 360: ".eleven {line-height: -1em; font-size: 12px;}"
-          text run at (360,161) width 0: " "
-          text run at (0,177) width 400: "TABLE .ten {line-height: normal; font-size: 12px;}"
-          text run at (400,177) width 0: " "
-          text run at (0,193) width 248: "DIV {background-color: silver;}"
-          text run at (248,193) width 0: " "
-          text run at (0,209) width 304: "SPAN.color {background-color: silver;}"
-          text run at (304,209) width 0: " "
+        RenderText {#text} at (0,0) size 284x224
+          text run at (0,0) width 230: ".one {line-height: 0.5in; font-size: 12px;}"
+          text run at (230,0) width 0: " "
+          text run at (0,16) width 226: ".two {line-height: 2cm; font-size: 12px;}"
+          text run at (226,16) width 0: " "
+          text run at (0,32) width 246: ".three {line-height: 20mm; font-size: 12px;}"
+          text run at (246,32) width 0: " "
+          text run at (0,48) width 228: ".four {line-height: 24pt; font-size: 12px;}"
+          text run at (228,48) width 0: " "
+          text run at (0,64) width 223: ".five {line-height: 2pc; font-size: 12px;}"
+          text run at (223,64) width 0: " "
+          text run at (0,80) width 223: ".six {line-height: 2em; font-size: 12px;}"
+          text run at (223,80) width 0: " "
+          text run at (0,96) width 237: ".seven {line-height: 3ex; font-size: 12px;}"
+          text run at (237,96) width 0: " "
+          text run at (0,112) width 242: ".eight {line-height: 200%; font-size: 12px;}"
+          text run at (242,112) width 0: " "
+          text run at (0,128) width 212: ".nine {line-height: 2; font-size: 12px;}"
+          text run at (212,128) width 0: " "
+          text run at (0,144) width 227: ".ten {line-height: 50px; font-size: 12px;}"
+          text run at (227,144) width 0: " "
+          text run at (0,160) width 248: ".eleven {line-height: -1em; font-size: 12px;}"
+          text run at (248,160) width 0: " "
+          text run at (0,176) width 284: "TABLE .ten {line-height: normal; font-size: 12px;}"
+          text run at (284,176) width 0: " "
+          text run at (0,192) width 176: "DIV {background-color: silver;}"
+          text run at (176,192) width 0: " "
+          text run at (0,208) width 222: "SPAN.color {background-color: silver;}"
+          text run at (222,208) width 0: " "
       RenderBlock {HR} at (0,274) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,288) size 768x48
         RenderText {#text} at (0,16) size 547x16
diff --git a/LayoutTests/platform/qt/css1/text_properties/text_align-expected.txt b/LayoutTests/platform/qt/css1/text_properties/text_align-expected.txt
index fa531ce..6b2a944 100644
--- a/LayoutTests/platform/qt/css1/text_properties/text_align-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/text_align-expected.txt
@@ -7,16 +7,16 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x80
-        RenderText {#text} at (0,1) size 224x78
-          text run at (0,1) width 192: ".one {text-align: left;}"
-          text run at (192,1) width 0: " "
-          text run at (0,17) width 200: ".two {text-align: right;}"
-          text run at (200,17) width 0: " "
-          text run at (0,33) width 224: ".three {text-align: center;}"
-          text run at (224,33) width 0: " "
-          text run at (0,49) width 224: ".four {text-align: justify;}"
-          text run at (224,49) width 0: " "
-          text run at (0,65) width 0: " "
+        RenderText {#text} at (0,0) size 146x80
+          text run at (0,0) width 120: ".one {text-align: left;}"
+          text run at (120,0) width 0: " "
+          text run at (0,16) width 126: ".two {text-align: right;}"
+          text run at (126,16) width 0: " "
+          text run at (0,32) width 146: ".three {text-align: center;}"
+          text run at (146,32) width 0: " "
+          text run at (0,48) width 138: ".four {text-align: justify;}"
+          text run at (138,48) width 0: " "
+          text run at (0,64) width 0: " "
       RenderBlock {HR} at (0,130) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,148) size 784x21
         RenderText {#text} at (0,0) size 248x21
diff --git a/LayoutTests/platform/qt/css1/text_properties/text_decoration-expected.txt b/LayoutTests/platform/qt/css1/text_properties/text_decoration-expected.txt
index ca49cb5..c4413cb 100644
--- a/LayoutTests/platform/qt/css1/text_properties/text_decoration-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/text_decoration-expected.txt
@@ -7,22 +7,22 @@ layer at (0,0) size 784x1280
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x128
-        RenderText {#text} at (0,1) size 464x126
-          text run at (0,1) width 272: ".one {text-decoration: underline;}"
-          text run at (272,1) width 0: " "
-          text run at (0,17) width 264: ".two {text-decoration: overline;}"
-          text run at (264,17) width 0: " "
-          text run at (0,33) width 312: ".three {text-decoration: line-through;}"
-          text run at (312,33) width 0: " "
-          text run at (0,49) width 248: ".four {text-decoration: blink;}"
-          text run at (248,49) width 0: " "
-          text run at (0,65) width 248: "B.five {text-decoration: none;}"
-          text run at (248,65) width 0: " "
-          text run at (0,81) width 344: ".six {text-decoration: underline overline;}"
-          text run at (344,81) width 0: " "
-          text run at (0,97) width 464: ".seven {text-decoration: underline overline line-through;}"
-          text run at (464,97) width 0: " "
-          text run at (0,113) width 0: " "
+        RenderText {#text} at (0,0) size 321x128
+          text run at (0,0) width 187: ".one {text-decoration: underline;}"
+          text run at (187,0) width 0: " "
+          text run at (0,16) width 179: ".two {text-decoration: overline;}"
+          text run at (179,16) width 0: " "
+          text run at (0,32) width 210: ".three {text-decoration: line-through;}"
+          text run at (210,32) width 0: " "
+          text run at (0,48) width 163: ".four {text-decoration: blink;}"
+          text run at (163,48) width 0: " "
+          text run at (0,64) width 172: "B.five {text-decoration: none;}"
+          text run at (172,64) width 0: " "
+          text run at (0,80) width 232: ".six {text-decoration: underline overline;}"
+          text run at (232,80) width 0: " "
+          text run at (0,96) width 321: ".seven {text-decoration: underline overline line-through;}"
+          text run at (321,96) width 0: " "
+          text run at (0,112) width 0: " "
       RenderBlock {HR} at (0,178) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,196) size 768x21
         RenderText {#text} at (0,0) size 242x21
diff --git a/LayoutTests/platform/qt/css1/text_properties/text_indent-expected.txt b/LayoutTests/platform/qt/css1/text_properties/text_indent-expected.txt
index 11050bd..29e6a70 100644
--- a/LayoutTests/platform/qt/css1/text_properties/text_indent-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/text_indent-expected.txt
@@ -7,28 +7,28 @@ layer at (0,0) size 784x1365
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x176
-        RenderText {#text} at (0,1) size 384x174
-          text run at (0,1) width 352: ".one {text-indent: 0.5in; background: aqua;}"
-          text run at (352,1) width 0: " "
-          text run at (0,17) width 336: ".two {text-indent: 2cm; background: aqua;}"
-          text run at (336,17) width 0: " "
-          text run at (0,33) width 360: ".three {text-indent: 20mm; background: aqua;}"
-          text run at (360,33) width 0: " "
-          text run at (0,49) width 352: ".four {text-indent: 24pt; background: aqua;}"
-          text run at (352,49) width 0: " "
-          text run at (0,65) width 344: ".five {text-indent: 2pc; background: aqua;}"
-          text run at (344,65) width 0: " "
-          text run at (0,81) width 336: ".six {text-indent: 2em; background: aqua;}"
-          text run at (336,81) width 0: " "
-          text run at (0,97) width 352: ".seven {text-indent: 2ex; background: aqua;}"
-          text run at (352,97) width 0: " "
-          text run at (0,113) width 352: ".eight {text-indent: 50%; background: aqua;}"
-          text run at (352,113) width 0: " "
-          text run at (0,129) width 352: ".nine {text-indent: 25px; background: aqua;}"
-          text run at (352,129) width 0: " "
-          text run at (0,145) width 384: "blockquote {text-indent: 50%; background: aqua;}"
-          text run at (384,145) width 0: " "
-          text run at (0,161) width 0: " "
+        RenderText {#text} at (0,0) size 285x176
+          text run at (0,0) width 249: ".one {text-indent: 0.5in; background: aqua;}"
+          text run at (249,0) width 0: " "
+          text run at (0,16) width 245: ".two {text-indent: 2cm; background: aqua;}"
+          text run at (245,16) width 0: " "
+          text run at (0,32) width 265: ".three {text-indent: 20mm; background: aqua;}"
+          text run at (265,32) width 0: " "
+          text run at (0,48) width 247: ".four {text-indent: 24pt; background: aqua;}"
+          text run at (247,48) width 0: " "
+          text run at (0,64) width 242: ".five {text-indent: 2pc; background: aqua;}"
+          text run at (242,64) width 0: " "
+          text run at (0,80) width 242: ".six {text-indent: 2em; background: aqua;}"
+          text run at (242,80) width 0: " "
+          text run at (0,96) width 256: ".seven {text-indent: 2ex; background: aqua;}"
+          text run at (256,96) width 0: " "
+          text run at (0,112) width 254: ".eight {text-indent: 50%; background: aqua;}"
+          text run at (254,112) width 0: " "
+          text run at (0,128) width 252: ".nine {text-indent: 25px; background: aqua;}"
+          text run at (252,128) width 0: " "
+          text run at (0,144) width 285: "blockquote {text-indent: 50%; background: aqua;}"
+          text run at (285,144) width 0: " "
+          text run at (0,160) width 0: " "
       RenderBlock {HR} at (0,226) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,244) size 768x21 [bgcolor=#00FFFF]
         RenderText {#text} at (48,0) size 412x21
diff --git a/LayoutTests/platform/qt/css1/text_properties/text_transform-expected.txt b/LayoutTests/platform/qt/css1/text_properties/text_transform-expected.txt
index 48d5232..bcaef57 100644
--- a/LayoutTests/platform/qt/css1/text_properties/text_transform-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/text_transform-expected.txt
@@ -7,16 +7,16 @@ layer at (0,0) size 784x851
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x80
-        RenderText {#text} at (0,1) size 272x78
-          text run at (0,1) width 224: ".ttn {text-transform: none;}"
-          text run at (224,1) width 0: " "
-          text run at (0,17) width 272: ".cap {text-transform: capitalize;}"
-          text run at (272,17) width 0: " "
-          text run at (0,33) width 264: ".upp {text-transform: uppercase;}"
-          text run at (264,33) width 0: " "
-          text run at (0,49) width 264: ".low {text-transform: lowercase;}"
-          text run at (264,49) width 0: " "
-          text run at (0,65) width 0: " "
+        RenderText {#text} at (0,0) size 190x80
+          text run at (0,0) width 152: ".ttn {text-transform: none;}"
+          text run at (152,0) width 0: " "
+          text run at (0,16) width 185: ".cap {text-transform: capitalize;}"
+          text run at (185,16) width 0: " "
+          text run at (0,32) width 190: ".upp {text-transform: uppercase;}"
+          text run at (190,32) width 0: " "
+          text run at (0,48) width 186: ".low {text-transform: lowercase;}"
+          text run at (186,48) width 0: " "
+          text run at (0,64) width 0: " "
       RenderBlock {HR} at (0,130) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,148) size 768x42
         RenderText {#text} at (0,0) size 734x42
diff --git a/LayoutTests/platform/qt/css1/text_properties/vertical_align-expected.txt b/LayoutTests/platform/qt/css1/text_properties/vertical_align-expected.txt
index 58b67de..825579a 100644
--- a/LayoutTests/platform/qt/css1/text_properties/vertical_align-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/vertical_align-expected.txt
@@ -7,41 +7,41 @@ layer at (0,0) size 784x4748
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x288
-        RenderText {#text} at (0,1) size 512x286
-          text run at (0,1) width 160: "P {font-size: 12pt;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 216: ".one {vertical-align: sub;}"
-          text run at (216,17) width 0: " "
-          text run at (0,33) width 232: ".two {vertical-align: super;}"
-          text run at (232,33) width 0: " "
-          text run at (0,49) width 368: ".three {vertical-align: top; font-size: 12pt;}"
-          text run at (368,49) width 0: " "
-          text run at (0,65) width 400: ".four {vertical-align: text-top; font-size: 12pt;}"
-          text run at (400,65) width 0: " "
-          text run at (0,81) width 384: ".five {vertical-align: middle; font-size: 12pt;}"
-          text run at (384,81) width 0: " "
-          text run at (0,97) width 376: ".six {vertical-align: bottom; font-size: 12pt;}"
-          text run at (376,97) width 0: " "
-          text run at (0,113) width 432: ".seven {vertical-align: text-bottom; font-size: 12pt;}"
-          text run at (432,113) width 0: " "
-          text run at (0,129) width 408: ".eight {vertical-align: baseline; font-size: 12pt;}"
-          text run at (408,129) width 0: " "
-          text run at (0,145) width 512: ".nine {vertical-align: 50%; font-size: 12px; line-height: 16px;}"
-          text run at (512,145) width 0: " "
-          text run at (0,161) width 0: " "
-          text run at (0,177) width 224: "P.example {font-size: 14pt;}"
-          text run at (224,177) width 0: " "
-          text run at (0,193) width 176: "BIG {font-size: 16pt;}"
-          text run at (176,193) width 0: " "
-          text run at (0,209) width 192: "SMALL {font-size: 12pt;}"
-          text run at (192,209) width 0: " "
-          text run at (0,225) width 304: ".ttopalign {vertical-align: text-top;}"
-          text run at (304,225) width 0: " "
-          text run at (0,241) width 256: ".topalign {vertical-align: top;}"
-          text run at (256,241) width 0: " "
-          text run at (0,257) width 280: ".midalign {vertical-align: middle;}"
-          text run at (280,257) width 0: " "
-          text run at (0,273) width 0: " "
+        RenderText {#text} at (0,0) size 348x288
+          text run at (0,0) width 108: "P {font-size: 12pt;}"
+          text run at (108,0) width 0: " "
+          text run at (0,16) width 143: ".one {vertical-align: sub;}"
+          text run at (143,16) width 0: " "
+          text run at (0,32) width 153: ".two {vertical-align: super;}"
+          text run at (153,32) width 0: " "
+          text run at (0,48) width 239: ".three {vertical-align: top; font-size: 12pt;}"
+          text run at (239,48) width 0: " "
+          text run at (0,64) width 258: ".four {vertical-align: text-top; font-size: 12pt;}"
+          text run at (258,64) width 0: " "
+          text run at (0,80) width 251: ".five {vertical-align: middle; font-size: 12pt;}"
+          text run at (251,80) width 0: " "
+          text run at (0,96) width 249: ".six {vertical-align: bottom; font-size: 12pt;}"
+          text run at (249,96) width 0: " "
+          text run at (0,112) width 293: ".seven {vertical-align: text-bottom; font-size: 12pt;}"
+          text run at (293,112) width 0: " "
+          text run at (0,128) width 268: ".eight {vertical-align: baseline; font-size: 12pt;}"
+          text run at (268,128) width 0: " "
+          text run at (0,144) width 348: ".nine {vertical-align: 50%; font-size: 12px; line-height: 16px;}"
+          text run at (348,144) width 0: " "
+          text run at (0,160) width 0: " "
+          text run at (0,176) width 161: "P.example {font-size: 14pt;}"
+          text run at (161,176) width 0: " "
+          text run at (0,192) width 122: "BIG {font-size: 16pt;}"
+          text run at (122,192) width 0: " "
+          text run at (0,208) width 142: "SMALL {font-size: 12pt;}"
+          text run at (142,208) width 0: " "
+          text run at (0,224) width 194: ".ttopalign {vertical-align: text-top;}"
+          text run at (194,224) width 0: " "
+          text run at (0,240) width 164: ".topalign {vertical-align: top;}"
+          text run at (164,240) width 0: " "
+          text run at (0,256) width 187: ".midalign {vertical-align: middle;}"
+          text run at (187,256) width 0: " "
+          text run at (0,272) width 0: " "
       RenderBlock {HR} at (0,338) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,356) size 768x80
         RenderImage {IMG} at (0,0) size 15x50
diff --git a/LayoutTests/platform/qt/css1/text_properties/word_spacing-expected.txt b/LayoutTests/platform/qt/css1/text_properties/word_spacing-expected.txt
index d4ad288..1618918 100644
--- a/LayoutTests/platform/qt/css1/text_properties/word_spacing-expected.txt
+++ b/LayoutTests/platform/qt/css1/text_properties/word_spacing-expected.txt
@@ -7,30 +7,30 @@ layer at (0,0) size 784x1102
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x192
-        RenderText {#text} at (0,1) size 248x190
-          text run at (0,1) width 216: ".one {word-spacing: 0.3in;}"
-          text run at (216,1) width 0: " "
-          text run at (0,17) width 216: ".two {word-spacing: 0.5cm;}"
-          text run at (216,17) width 0: " "
-          text run at (0,33) width 216: ".three {word-spacing: 5mm;}"
-          text run at (216,33) width 0: " "
-          text run at (0,49) width 208: ".four {word-spacing: 3pt;}"
-          text run at (208,49) width 0: " "
-          text run at (0,65) width 232: ".five {word-spacing: 0.25pc;}"
-          text run at (232,65) width 0: " "
-          text run at (0,81) width 200: ".six {word-spacing: 1em;}"
-          text run at (200,81) width 0: " "
-          text run at (0,97) width 216: ".seven {word-spacing: 1ex;}"
-          text run at (216,97) width 0: " "
-          text run at (0,113) width 216: ".eight {word-spacing: 5px;}"
-          text run at (216,113) width 0: " "
-          text run at (0,129) width 232: ".nine {word-spacing: normal;}"
-          text run at (232,129) width 0: " "
-          text run at (0,145) width 208: ".ten {word-spacing: 300%;}"
-          text run at (208,145) width 0: " "
-          text run at (0,161) width 248: ".eleven {word-spacing: -0.2em;}"
-          text run at (248,161) width 0: " "
-          text run at (0,177) width 0: " "
+        RenderText {#text} at (0,0) size 182x192
+          text run at (0,0) width 153: ".one {word-spacing: 0.3in;}"
+          text run at (153,0) width 0: " "
+          text run at (0,16) width 160: ".two {word-spacing: 0.5cm;}"
+          text run at (160,16) width 0: " "
+          text run at (0,32) width 162: ".three {word-spacing: 5mm;}"
+          text run at (162,32) width 0: " "
+          text run at (0,48) width 144: ".four {word-spacing: 3pt;}"
+          text run at (144,48) width 0: " "
+          text run at (0,64) width 164: ".five {word-spacing: 0.25pc;}"
+          text run at (164,64) width 0: " "
+          text run at (0,80) width 146: ".six {word-spacing: 1em;}"
+          text run at (146,80) width 0: " "
+          text run at (0,96) width 160: ".seven {word-spacing: 1ex;}"
+          text run at (160,96) width 0: " "
+          text run at (0,112) width 153: ".eight {word-spacing: 5px;}"
+          text run at (153,112) width 0: " "
+          text run at (0,128) width 167: ".nine {word-spacing: normal;}"
+          text run at (167,128) width 0: " "
+          text run at (0,144) width 155: ".ten {word-spacing: 300%;}"
+          text run at (155,144) width 0: " "
+          text run at (0,160) width 182: ".eleven {word-spacing: -0.2em;}"
+          text run at (182,160) width 0: " "
+          text run at (0,176) width 0: " "
       RenderBlock {HR} at (0,242) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,260) size 768x21
         RenderText {#text} at (0,0) size 729x21
diff --git a/LayoutTests/platform/qt/css1/units/color_units-expected.txt b/LayoutTests/platform/qt/css1/units/color_units-expected.txt
index 4a7c260..8d91b95 100644
--- a/LayoutTests/platform/qt/css1/units/color_units-expected.txt
+++ b/LayoutTests/platform/qt/css1/units/color_units-expected.txt
@@ -7,31 +7,31 @@ layer at (0,0) size 784x1873
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x192
-        RenderText {#text} at (0,1) size 288x190
-          text run at (0,1) width 160: "BODY {color: black;}"
-          text run at (160,1) width 0: " "
-          text run at (0,17) width 152: ".one {color: #080;}"
-          text run at (152,17) width 0: " "
-          text run at (0,33) width 176: ".two {color: #008000;}"
-          text run at (176,33) width 0: " "
-          text run at (0,49) width 232: ".three {color: rgb(0,128,0);}"
-          text run at (232,49) width 0: " "
-          text run at (0,65) width 240: ".four {color: rgb(0%,50%,0%);}"
-          text run at (240,65) width 0: " "
-          text run at (0,81) width 288: ".five {color: rgb(0.0%,50.0%,0.0%);}"
-          text run at (288,81) width 0: " "
-          text run at (0,97) width 160: ".six {color: green;}"
-          text run at (160,97) width 0: " "
-          text run at (0,113) width 232: ".seven {color: invalidValue;}"
-          text run at (232,113) width 0: " "
-          text run at (0,129) width 256: ".eight {color: rgb(0,128,1280);}"
-          text run at (256,129) width 0: " "
-          text run at (0,145) width 240: ".nine {color: rgb(0,128,255);}"
-          text run at (240,145) width 0: " "
-          text run at (0,161) width 264: ".ten {color: rgb(50%,-500%,60%);}"
-          text run at (264,161) width 0: " "
-          text run at (0,177) width 264: ".eleven {color: rgb(50%,0%,60%);}"
-          text run at (264,177) width 0: " "
+        RenderText {#text} at (0,0) size 208x192
+          text run at (0,0) width 120: "BODY {color: black;}"
+          text run at (120,0) width 0: " "
+          text run at (0,16) width 105: ".one {color: #080;}"
+          text run at (105,16) width 0: " "
+          text run at (0,32) width 125: ".two {color: #008000;}"
+          text run at (125,32) width 0: " "
+          text run at (0,48) width 154: ".three {color: rgb(0,128,0);}"
+          text run at (154,48) width 0: " "
+          text run at (0,64) width 176: ".four {color: rgb(0%,50%,0%);}"
+          text run at (176,64) width 0: " "
+          text run at (0,80) width 208: ".five {color: rgb(0.0%,50.0%,0.0%);}"
+          text run at (208,80) width 0: " "
+          text run at (0,96) width 105: ".six {color: green;}"
+          text run at (105,96) width 0: " "
+          text run at (0,112) width 161: ".seven {color: invalidValue;}"
+          text run at (161,112) width 0: " "
+          text run at (0,128) width 174: ".eight {color: rgb(0,128,1280);}"
+          text run at (174,128) width 0: " "
+          text run at (0,144) width 163: ".nine {color: rgb(0,128,255);}"
+          text run at (163,144) width 0: " "
+          text run at (0,160) width 197: ".ten {color: rgb(50%,-500%,60%);}"
+          text run at (197,160) width 0: " "
+          text run at (0,176) width 199: ".eleven {color: rgb(50%,0%,60%);}"
+          text run at (199,176) width 0: " "
       RenderBlock {HR} at (0,242) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,260) size 768x21
         RenderText {#text} at (0,0) size 205x21
@@ -57,11 +57,11 @@ layer at (0,0) size 784x1873
       RenderBlock {P} at (0,519) size 768x21
         RenderText {#text} at (0,0) size 430x21
           text run at (0,0) width 430: "This sentence should be black, because the value given for class "
-        RenderInline {CODE} at (0,0) size 48x14
-          RenderText {#text} at (430,5) size 48x14
-            text run at (430,5) width 48: ".seven"
-        RenderText {#text} at (478,0) size 68x21
-          text run at (478,0) width 68: " is invalid."
+        RenderInline {CODE} at (0,0) size 39x16
+          RenderText {#text} at (430,3) size 39x16
+            text run at (430,3) width 39: ".seven"
+        RenderText {#text} at (469,0) size 68x21
+          text run at (469,0) width 68: " is invalid."
       RenderBlock {P} at (0,556) size 768x42 [color=#0080FF]
         RenderText {#text} at (0,0) size 738x42
           text run at (0,0) width 738: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the"
@@ -84,51 +84,51 @@ layer at (0,0) size 784x1873
       RenderBlock {P} at (0,825) size 768x21 [color=#008800]
         RenderText {#text} at (0,0) size 426x21
           text run at (0,0) width 426: "This sentence should be a slightly different green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (426,5) size 40x14
-            text run at (426,5) width 40: "style"
-        RenderText {#text} at (466,0) size 67x21
-          text run at (466,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (426,3) size 28x16
+            text run at (426,3) width 28: "style"
+        RenderText {#text} at (454,0) size 67x21
+          text run at (454,0) width 67: " attribute."
       RenderBlock {P} at (0,862) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 300x21
           text run at (0,0) width 300: "This sentence should be green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (300,5) size 40x14
-            text run at (300,5) width 40: "style"
-        RenderText {#text} at (340,0) size 67x21
-          text run at (340,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (300,3) size 28x16
+            text run at (300,3) width 28: "style"
+        RenderText {#text} at (328,0) size 67x21
+          text run at (328,0) width 67: " attribute."
       RenderBlock {P} at (0,899) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 300x21
           text run at (0,0) width 300: "This sentence should be green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (300,5) size 40x14
-            text run at (300,5) width 40: "style"
-        RenderText {#text} at (340,0) size 67x21
-          text run at (340,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (300,3) size 28x16
+            text run at (300,3) width 28: "style"
+        RenderText {#text} at (328,0) size 67x21
+          text run at (328,0) width 67: " attribute."
       RenderBlock {P} at (0,936) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 300x21
           text run at (0,0) width 300: "This sentence should be green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (300,5) size 40x14
-            text run at (300,5) width 40: "style"
-        RenderText {#text} at (340,0) size 67x21
-          text run at (340,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (300,3) size 28x16
+            text run at (300,3) width 28: "style"
+        RenderText {#text} at (328,0) size 67x21
+          text run at (328,0) width 67: " attribute."
       RenderBlock {P} at (0,973) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 300x21
           text run at (0,0) width 300: "This sentence should be green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (300,5) size 40x14
-            text run at (300,5) width 40: "style"
-        RenderText {#text} at (340,0) size 67x21
-          text run at (340,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (300,3) size 28x16
+            text run at (300,3) width 28: "style"
+        RenderText {#text} at (328,0) size 67x21
+          text run at (328,0) width 67: " attribute."
       RenderBlock {P} at (0,1010) size 768x21 [color=#008000]
         RenderText {#text} at (0,0) size 300x21
           text run at (0,0) width 300: "This sentence should be green, and used the "
-        RenderInline {TT} at (0,0) size 40x14
-          RenderText {#text} at (300,5) size 40x14
-            text run at (300,5) width 40: "style"
-        RenderText {#text} at (340,0) size 67x21
-          text run at (340,0) width 67: " attribute."
+        RenderInline {TT} at (0,0) size 28x16
+          RenderText {#text} at (300,3) size 28x16
+            text run at (300,3) width 28: "style"
+        RenderText {#text} at (328,0) size 67x21
+          text run at (328,0) width 67: " attribute."
       RenderTable {TABLE} at (0,1047) size 768x810 [border: (1px outset #808080)]
         RenderTableSection {TBODY} at (1,1) size 766x808
           RenderTableRow {TR} at (0,0) size 766x29
@@ -165,11 +165,11 @@ layer at (0,0) size 784x1873
               RenderBlock {P} at (4,263) size 746x21
                 RenderText {#text} at (0,0) size 430x21
                   text run at (0,0) width 430: "This sentence should be black, because the value given for class "
-                RenderInline {CODE} at (0,0) size 48x14
-                  RenderText {#text} at (430,5) size 48x14
-                    text run at (430,5) width 48: ".seven"
-                RenderText {#text} at (478,0) size 68x21
-                  text run at (478,0) width 68: " is invalid."
+                RenderInline {CODE} at (0,0) size 39x16
+                  RenderText {#text} at (430,3) size 39x16
+                    text run at (430,3) width 39: ".seven"
+                RenderText {#text} at (469,0) size 68x21
+                  text run at (469,0) width 68: " is invalid."
               RenderBlock {P} at (4,300) size 746x42 [color=#0080FF]
                 RenderText {#text} at (0,0) size 738x42
                   text run at (0,0) width 738: "This sentence should be a shade of blue-green which, on a typical RGB computer display, exactly matches the"
@@ -192,48 +192,48 @@ layer at (0,0) size 784x1873
               RenderBlock {P} at (4,569) size 746x21 [color=#008800]
                 RenderText {#text} at (0,0) size 426x21
                   text run at (0,0) width 426: "This sentence should be a slightly different green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (426,5) size 40x14
-                    text run at (426,5) width 40: "style"
-                RenderText {#text} at (466,0) size 67x21
-                  text run at (466,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (426,3) size 28x16
+                    text run at (426,3) width 28: "style"
+                RenderText {#text} at (454,0) size 67x21
+                  text run at (454,0) width 67: " attribute."
               RenderBlock {P} at (4,606) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 300x21
                   text run at (0,0) width 300: "This sentence should be green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (300,5) size 40x14
-                    text run at (300,5) width 40: "style"
-                RenderText {#text} at (340,0) size 67x21
-                  text run at (340,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (300,3) size 28x16
+                    text run at (300,3) width 28: "style"
+                RenderText {#text} at (328,0) size 67x21
+                  text run at (328,0) width 67: " attribute."
               RenderBlock {P} at (4,643) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 300x21
                   text run at (0,0) width 300: "This sentence should be green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (300,5) size 40x14
-                    text run at (300,5) width 40: "style"
-                RenderText {#text} at (340,0) size 67x21
-                  text run at (340,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (300,3) size 28x16
+                    text run at (300,3) width 28: "style"
+                RenderText {#text} at (328,0) size 67x21
+                  text run at (328,0) width 67: " attribute."
               RenderBlock {P} at (4,680) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 300x21
                   text run at (0,0) width 300: "This sentence should be green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (300,5) size 40x14
-                    text run at (300,5) width 40: "style"
-                RenderText {#text} at (340,0) size 67x21
-                  text run at (340,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (300,3) size 28x16
+                    text run at (300,3) width 28: "style"
+                RenderText {#text} at (328,0) size 67x21
+                  text run at (328,0) width 67: " attribute."
               RenderBlock {P} at (4,717) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 300x21
                   text run at (0,0) width 300: "This sentence should be green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (300,5) size 40x14
-                    text run at (300,5) width 40: "style"
-                RenderText {#text} at (340,0) size 67x21
-                  text run at (340,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (300,3) size 28x16
+                    text run at (300,3) width 28: "style"
+                RenderText {#text} at (328,0) size 67x21
+                  text run at (328,0) width 67: " attribute."
               RenderBlock {P} at (4,754) size 746x21 [color=#008000]
                 RenderText {#text} at (0,0) size 300x21
                   text run at (0,0) width 300: "This sentence should be green, and used the "
-                RenderInline {TT} at (0,0) size 40x14
-                  RenderText {#text} at (300,5) size 40x14
-                    text run at (300,5) width 40: "style"
-                RenderText {#text} at (340,0) size 67x21
-                  text run at (340,0) width 67: " attribute."
+                RenderInline {TT} at (0,0) size 28x16
+                  RenderText {#text} at (300,3) size 28x16
+                    text run at (300,3) width 28: "style"
+                RenderText {#text} at (328,0) size 67x21
+                  text run at (328,0) width 67: " attribute."
diff --git a/LayoutTests/platform/qt/css1/units/length_units-expected.txt b/LayoutTests/platform/qt/css1/units/length_units-expected.txt
index 1d615e4..8b7d8fa 100644
--- a/LayoutTests/platform/qt/css1/units/length_units-expected.txt
+++ b/LayoutTests/platform/qt/css1/units/length_units-expected.txt
@@ -1,35 +1,35 @@
-layer at (0,0) size 784x1793
+layer at (0,0) size 784x1689
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x1793
-  RenderBlock {HTML} at (0,0) size 784x1793
-    RenderBody {BODY} at (8,8) size 768x1777 [bgcolor=#CCCCCC]
+layer at (0,0) size 784x1689
+  RenderBlock {HTML} at (0,0) size 784x1689
+    RenderBody {BODY} at (8,8) size 768x1673 [bgcolor=#CCCCCC]
       RenderBlock {P} at (0,0) size 768x21
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x176
-        RenderText {#text} at (0,1) size 624x174
-          text run at (0,1) width 184: ".zero {margin-left: 0;}"
-          text run at (184,1) width 0: " "
-          text run at (0,17) width 192: ".one {margin-left: 3em;}"
-          text run at (192,17) width 0: " "
-          text run at (0,33) width 192: ".two {margin-left: 3ex;}"
-          text run at (192,33) width 0: " "
-          text run at (0,49) width 216: ".three {margin-left: 36px;}"
-          text run at (216,49) width 0: " "
-          text run at (0,65) width 216: ".four {margin-left: 0.5in;}"
-          text run at (216,65) width 0: " "
-          text run at (0,81) width 224: ".five {margin-left: 1.27cm;}"
-          text run at (224,81) width 0: " "
-          text run at (0,97) width 216: ".six {margin-left: 12.7mm;}"
-          text run at (216,97) width 0: " "
-          text run at (0,113) width 216: ".seven {margin-left: 36pt;}"
-          text run at (216,113) width 0: " "
-          text run at (0,129) width 208: ".eight {margin-left: 3pc;}"
-          text run at (208,129) width 0: " "
-          text run at (0,145) width 208: ".nine {margin-left: +3pc;}"
-          text run at (208,145) width 0: " "
-          text run at (0,161) width 624: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
-          text run at (624,161) width 0: " "
+        RenderText {#text} at (0,0) size 432x176
+          text run at (0,0) width 121: ".zero {margin-left: 0;}"
+          text run at (121,0) width 0: " "
+          text run at (0,16) width 135: ".one {margin-left: 3em;}"
+          text run at (135,16) width 0: " "
+          text run at (0,32) width 130: ".two {margin-left: 3ex;}"
+          text run at (130,32) width 0: " "
+          text run at (0,48) width 146: ".three {margin-left: 36px;}"
+          text run at (146,48) width 0: " "
+          text run at (0,64) width 139: ".four {margin-left: 0.5in;}"
+          text run at (139,64) width 0: " "
+          text run at (0,80) width 153: ".five {margin-left: 1.27cm;}"
+          text run at (153,80) width 0: " "
+          text run at (0,96) width 153: ".six {margin-left: 12.7mm;}"
+          text run at (153,96) width 0: " "
+          text run at (0,112) width 149: ".seven {margin-left: 36pt;}"
+          text run at (149,112) width 0: " "
+          text run at (0,128) width 138: ".eight {margin-left: 3pc;}"
+          text run at (138,128) width 0: " "
+          text run at (0,144) width 142: ".nine {margin-left: +3pc;}"
+          text run at (142,144) width 0: " "
+          text run at (0,160) width 432: ".ten {font-size: 40px; border-left: 1ex solid purple; background-color: aqua;}"
+          text run at (432,160) width 0: " "
       RenderBlock {HR} at (0,226) size 768x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,244) size 768x42
         RenderText {#text} at (0,0) size 730x42
@@ -67,46 +67,45 @@ layer at (0,0) size 784x1793
       RenderBlock {P} at (48,598) size 720x21
         RenderText {#text} at (0,0) size 633x21
           text run at (0,0) width 633: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
-      RenderBlock {P} at (0,659) size 768x312 [bgcolor=#00FFFF] [border: (18px solid #800080)]
+      RenderBlock {P} at (0,659) size 768x260 [bgcolor=#00FFFF] [border: (18px solid #800080)]
         RenderText {#text} at (18,0) size 327x52
           text run at (18,0) width 327: "This element has a "
-        RenderInline {CODE} at (0,0) size 216x43
-          RenderText {#text} at (345,6) size 216x43
-            text run at (345,6) width 216: "font-size"
-        RenderText {#text} at (561,0) size 53x52
-          text run at (561,0) width 53: " of "
-        RenderInline {CODE} at (0,0) size 96x43
-          RenderText {#text} at (614,6) size 96x43
-            text run at (614,6) width 96: "40px"
-        RenderText {#text} at (18,52) size 104x52
-          text run at (18,52) width 104: "and a "
-        RenderInline {CODE} at (0,0) size 264x43
-          RenderText {#text} at (122,58) size 264x43
-            text run at (122,58) width 264: "border-left"
-        RenderText {#text} at (386,52) size 53x52
-          text run at (386,52) width 53: " of "
-        RenderInline {CODE} at (0,0) size 637x95
-          RenderText {#text} at (439,58) size 637x95
-            text run at (439,58) width 216: "1ex solid"
-            text run at (18,110) width 144: "purple"
-        RenderText {#text} at (162,104) size 746x208
-          text run at (162,104) width 20: ". "
-          text run at (182,104) width 558: "This should make the left border"
-          text run at (18,156) width 746: "the same number of pixels as the lower-case"
-          text run at (18,208) width 676: "'x' in this element's font, as well as solid"
-          text run at (18,260) width 123: "purple."
-      RenderTable {TABLE} at (0,1011) size 768x766 [border: (1px outset #808080)]
-        RenderTableSection {TBODY} at (1,1) size 766x764
+        RenderInline {CODE} at (0,0) size 150x50
+          RenderText {#text} at (345,0) size 150x50
+            text run at (345,0) width 150: "font-size"
+        RenderText {#text} at (495,0) size 53x52
+          text run at (495,0) width 53: " of "
+        RenderInline {CODE} at (0,0) size 86x50
+          RenderText {#text} at (548,0) size 86x50
+            text run at (548,0) width 86: "40px"
+        RenderText {#text} at (634,0) size 104x52
+          text run at (634,0) width 104: " and a"
+        RenderInline {CODE} at (0,0) size 180x50
+          RenderText {#text} at (18,52) size 180x50
+            text run at (18,52) width 180: "border-left"
+        RenderText {#text} at (198,52) size 53x52
+          text run at (198,52) width 53: " of "
+        RenderInline {CODE} at (0,0) size 278x50
+          RenderText {#text} at (251,52) size 278x50
+            text run at (251,52) width 278: "1ex solid purple"
+        RenderText {#text} at (529,52) size 735x208
+          text run at (529,52) width 20: ". "
+          text run at (549,52) width 199: "This should"
+          text run at (18,104) width 697: "make the left border the same number of"
+          text run at (18,156) width 735: "pixels as the lower-case 'x' in this element's"
+          text run at (18,208) width 472: "font, as well as solid purple."
+      RenderTable {TABLE} at (0,959) size 768x714 [border: (1px outset #808080)]
+        RenderTableSection {TBODY} at (1,1) size 766x712
           RenderTableRow {TR} at (0,0) size 766x29
             RenderTableCell {TD} at (0,0) size 766x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
               RenderInline {STRONG} at (0,0) size 163x21
                 RenderText {#text} at (4,4) size 163x21
                   text run at (4,4) width 163: "TABLE Testing Section"
-          RenderTableRow {TR} at (0,29) size 766x735
-            RenderTableCell {TD} at (0,382) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
+          RenderTableRow {TR} at (0,29) size 766x683
+            RenderTableCell {TD} at (0,356) size 12x29 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
               RenderText {#text} at (4,4) size 4x21
                 text run at (4,4) width 4: " "
-            RenderTableCell {TD} at (12,29) size 754x735 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
+            RenderTableCell {TD} at (12,29) size 754x683 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
               RenderBlock {P} at (4,4) size 746x42
                 RenderText {#text} at (0,0) size 730x42
                   text run at (0,0) width 730: "This paragraph has no left margin. The following paragraphs have all been given a left margin and their left"
@@ -143,31 +142,30 @@ layer at (0,0) size 784x1793
               RenderBlock {P} at (52,358) size 698x21
                 RenderText {#text} at (0,0) size 633x21
                   text run at (0,0) width 633: "This paragraph should have a left margin of 3 picas (the plus sign should make no difference)."
-              RenderBlock {P} at (4,419) size 746x312 [bgcolor=#00FFFF] [border: (18px solid #800080)]
+              RenderBlock {P} at (4,419) size 746x260 [bgcolor=#00FFFF] [border: (18px solid #800080)]
                 RenderText {#text} at (18,0) size 327x52
                   text run at (18,0) width 327: "This element has a "
-                RenderInline {CODE} at (0,0) size 216x43
-                  RenderText {#text} at (345,6) size 216x43
-                    text run at (345,6) width 216: "font-size"
-                RenderText {#text} at (561,0) size 53x52
-                  text run at (561,0) width 53: " of "
-                RenderInline {CODE} at (0,0) size 96x43
-                  RenderText {#text} at (614,6) size 96x43
-                    text run at (614,6) width 96: "40px"
-                RenderText {#text} at (18,52) size 104x52
-                  text run at (18,52) width 104: "and a "
-                RenderInline {CODE} at (0,0) size 264x43
-                  RenderText {#text} at (122,58) size 264x43
-                    text run at (122,58) width 264: "border-left"
-                RenderText {#text} at (386,52) size 53x52
-                  text run at (386,52) width 53: " of "
-                RenderInline {CODE} at (0,0) size 637x95
-                  RenderText {#text} at (439,58) size 637x95
-                    text run at (439,58) width 216: "1ex solid"
-                    text run at (18,110) width 144: "purple"
-                RenderText {#text} at (162,104) size 722x208
-                  text run at (162,104) width 20: ". "
-                  text run at (182,104) width 558: "This should make the left border"
-                  text run at (18,156) width 674: "the same number of pixels as the lower-"
-                  text run at (18,208) width 668: "case 'x' in this element's font, as well as"
-                  text run at (18,260) width 213: "solid purple."
+                RenderInline {CODE} at (0,0) size 150x50
+                  RenderText {#text} at (345,0) size 150x50
+                    text run at (345,0) width 150: "font-size"
+                RenderText {#text} at (495,0) size 53x52
+                  text run at (495,0) width 53: " of "
+                RenderInline {CODE} at (0,0) size 86x50
+                  RenderText {#text} at (548,0) size 86x50
+                    text run at (548,0) width 86: "40px"
+                RenderText {#text} at (634,0) size 104x52
+                  text run at (634,0) width 104: " and a"
+                RenderInline {CODE} at (0,0) size 180x50
+                  RenderText {#text} at (18,52) size 180x50
+                    text run at (18,52) width 180: "border-left"
+                RenderText {#text} at (198,52) size 53x52
+                  text run at (198,52) width 53: " of "
+                RenderInline {CODE} at (0,0) size 278x50
+                  RenderText {#text} at (251,52) size 278x50
+                    text run at (251,52) width 278: "1ex solid purple"
+                RenderText {#text} at (529,52) size 714x208
+                  text run at (529,52) width 20: ". "
+                  text run at (549,52) width 76: "This"
+                  text run at (18,104) width 632: "should make the left border the same"
+                  text run at (18,156) width 681: "number of pixels as the lower-case 'x' in"
+                  text run at (18,208) width 714: "this element's font, as well as solid purple."
diff --git a/LayoutTests/platform/qt/css1/units/percentage_units-expected.txt b/LayoutTests/platform/qt/css1/units/percentage_units-expected.txt
index f5eb2b6..b68289f 100644
--- a/LayoutTests/platform/qt/css1/units/percentage_units-expected.txt
+++ b/LayoutTests/platform/qt/css1/units/percentage_units-expected.txt
@@ -7,16 +7,16 @@ layer at (0,0) size 784x619
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 768x80
-        RenderText {#text} at (0,1) size 504x78
-          text run at (0,1) width 224: ".zero { background: yellow }"
-          text run at (224,1) width 0: " "
-          text run at (0,17) width 504: ".one { margin-left: 25%; margin-right: 25%; background: white }"
-          text run at (504,17) width 0: " "
-          text run at (0,33) width 496: ".two { margin-left: 50%; margin-right: 0%; background: white }"
-          text run at (496,33) width 0: " "
-          text run at (0,49) width 208: ".three {margin-left: 25%;}"
-          text run at (208,49) width 0: " "
-          text run at (0,65) width 0: " "
+        RenderText {#text} at (0,0) size 363x80
+          text run at (0,0) width 160: ".zero { background: yellow }"
+          text run at (160,0) width 0: " "
+          text run at (0,16) width 363: ".one { margin-left: 25%; margin-right: 25%; background: white }"
+          text run at (363,16) width 0: " "
+          text run at (0,32) width 355: ".two { margin-left: 50%; margin-right: 0%; background: white }"
+          text run at (355,32) width 0: " "
+          text run at (0,48) width 144: ".three {margin-left: 25%;}"
+          text run at (144,48) width 0: " "
+          text run at (0,64) width 0: " "
       RenderBlock {HR} at (0,130) size 768x2 [border: (1px inset #000000)]
       RenderBlock {DIV} at (0,148) size 768x142 [bgcolor=#FFFF00]
         RenderBlock {DIV} at (192,0) size 384x63 [bgcolor=#FFFFFF]
diff --git a/LayoutTests/platform/qt/css1/units/urls-expected.txt b/LayoutTests/platform/qt/css1/units/urls-expected.txt
index 4a907f9..e46bde9 100644
--- a/LayoutTests/platform/qt/css1/units/urls-expected.txt
+++ b/LayoutTests/platform/qt/css1/units/urls-expected.txt
@@ -7,14 +7,14 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 380x21
           text run at (0,0) width 380: "The style declarations which apply to the text below are:"
       RenderBlock {PRE} at (0,37) size 784x64
-        RenderText {#text} at (0,1) size 648x62
-          text run at (0,1) width 648: "<LINK rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../resources/bg.gif\">"
-          text run at (648,1) width 0: " "
-          text run at (0,17) width 296: "@import url(../resources/sec642.css);"
-          text run at (296,17) width 0: " "
-          text run at (0,33) width 352: "BODY {background: url(../resources/bg.gif);}"
-          text run at (352,33) width 0: " "
-          text run at (0,49) width 0: " "
+        RenderText {#text} at (0,0) size 480x64
+          text run at (0,0) width 480: "<LINK rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"../resources/bg.gif\">"
+          text run at (480,0) width 0: " "
+          text run at (0,16) width 219: "@import url(../resources/sec642.css);"
+          text run at (219,16) width 0: " "
+          text run at (0,32) width 255: "BODY {background: url(../resources/bg.gif);}"
+          text run at (255,32) width 0: " "
+          text run at (0,48) width 0: " "
       RenderBlock {HR} at (0,114) size 784x2 [border: (1px inset #000000)]
       RenderBlock {P} at (0,132) size 784x21
         RenderText {#text} at (0,0) size 419x21
diff --git a/LayoutTests/platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt b/LayoutTests/platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt
index 24561ce..ceabdca 100644
--- a/LayoutTests/platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt
+++ b/LayoutTests/platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt
@@ -1,9 +1,9 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
-layer at (0,0) size 800x290
-  RenderBlock {HTML} at (0,0) size 800x290
-    RenderBody {BODY} at (8,8) size 784x274
-      RenderBlock {DIV} at (0,0) size 784x120
+layer at (0,0) size 800x287
+  RenderBlock {HTML} at (0,0) size 800x287
+    RenderBody {BODY} at (8,8) size 784x271
+      RenderBlock {DIV} at (0,0) size 784x118
         RenderBlock {P} at (0,0) size 784x21 [color=#000080]
           RenderText {#text} at (0,0) size 257x21
             text run at (0,0) width 257: "This sentence should be in a serif font."
@@ -13,37 +13,37 @@ layer at (0,0) size 800x290
         RenderBlock {P} at (0,42) size 784x20 [color=#000080]
           RenderText {#text} at (0,0) size 311x20
             text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-        RenderBlock {P} at (0,62) size 784x21 [color=#000080]
-          RenderText {#text} at (0,0) size 276x21
-            text run at (0,0) width 276: "This sentence should be in a cursive font."
-        RenderBlock {P} at (0,83) size 784x21 [color=#000080]
-          RenderText {#text} at (0,0) size 277x21
-            text run at (0,0) width 277: "This sentence should be in a fantasy font."
-        RenderBlock {P} at (0,104) size 784x16 [color=#000080]
-          RenderText {#text} at (0,1) size 352x14
-            text run at (0,1) width 352: "This sentence should be in a monospace font."
-      RenderBlock {P} at (0,120) size 784x20 [color=#000080]
+        RenderBlock {P} at (0,62) size 784x20 [color=#000080]
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a cursive font."
+        RenderBlock {P} at (0,82) size 784x20 [color=#000080]
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a fantasy font."
+        RenderBlock {P} at (0,102) size 784x16 [color=#000080]
+          RenderText {#text} at (0,0) size 268x16
+            text run at (0,0) width 268: "This sentence should be in a monospace font."
+      RenderBlock {P} at (0,118) size 784x20 [color=#000080]
         RenderText {#text} at (0,0) size 311x20
           text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-      RenderBlock {P} at (0,140) size 784x19 [color=#000080]
-        RenderText {#text} at (0,0) size 440x18
-          text run at (0,0) width 440: "This sentence should be in a monospace font."
-      RenderBlock {DIV} at (0,159) size 784x115
+      RenderBlock {P} at (0,138) size 784x20 [color=#000080]
+        RenderText {#text} at (0,0) size 325x20
+          text run at (0,0) width 325: "This sentence should be in a monospace font."
+      RenderBlock {DIV} at (0,158) size 784x113
         RenderBlock {P} at (0,0) size 784x16 [color=#000080]
-          RenderText {#text} at (0,1) size 352x14
-            text run at (0,1) width 352: "This sentence should be in a monospace font."
+          RenderText {#text} at (0,0) size 268x16
+            text run at (0,0) width 268: "This sentence should be in a monospace font."
         RenderBlock {P} at (0,16) size 784x21 [color=#000080]
           RenderText {#text} at (0,0) size 257x21
             text run at (0,0) width 257: "This sentence should be in a serif font."
         RenderBlock {P} at (0,37) size 784x20 [color=#000080]
           RenderText {#text} at (0,0) size 311x20
             text run at (0,0) width 311: "This sentence should be in a sans-serif font."
-        RenderBlock {P} at (0,57) size 784x21 [color=#000080]
-          RenderText {#text} at (0,0) size 276x21
-            text run at (0,0) width 276: "This sentence should be in a cursive font."
-        RenderBlock {P} at (0,78) size 784x21 [color=#000080]
-          RenderText {#text} at (0,0) size 277x21
-            text run at (0,0) width 277: "This sentence should be in a fantasy font."
-        RenderBlock {P} at (0,99) size 784x16 [color=#000080]
-          RenderText {#text} at (0,1) size 352x14
-            text run at (0,1) width 352: "This sentence should be in a monospace font."
+        RenderBlock {P} at (0,57) size 784x20 [color=#000080]
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a cursive font."
+        RenderBlock {P} at (0,77) size 784x20 [color=#000080]
+          RenderText {#text} at (0,0) size 293x20
+            text run at (0,0) width 293: "This sentence should be in a fantasy font."
+        RenderBlock {P} at (0,97) size 784x16 [color=#000080]
+          RenderText {#text} at (0,0) size 268x16
+            text run at (0,0) width 268: "This sentence should be in a monospace font."
diff --git a/LayoutTests/platform/qt/css2.1/t1508-c527-font-03-b-expected.txt b/LayoutTests/platform/qt/css2.1/t1508-c527-font-03-b-expected.txt
index 4d3dab9..54e7f51 100644
--- a/LayoutTests/platform/qt/css2.1/t1508-c527-font-03-b-expected.txt
+++ b/LayoutTests/platform/qt/css2.1/t1508-c527-font-03-b-expected.txt
@@ -4,20 +4,19 @@ layer at (0,0) size 800x156
   RenderBlock {HTML} at (0,0) size 800x156
     RenderBody {BODY} at (8,13) size 784x130 [color=#000080]
       RenderBlock {P} at (0,0) size 784x130
-        RenderText {#text} at (0,4) size 354x17
-          text run at (0,4) width 354: "This text should be small and cursive, with double line spacing. "
-        RenderInline {SPAN} at (0,0) size 771x121 [color=#C0C0C0]
-          RenderText {#text} at (354,4) size 771x121
-            text run at (354,4) width 396: "dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (750,4) width 21: "text"
-            text run at (0,30) width 396: "dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (396,30) width 371: "text dummy text dummy text dummy text dummy text dummy text"
-            text run at (0,56) width 46: "dummy "
-            text run at (46,56) width 420: "text dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (466,56) width 301: "text dummy text dummy text dummy text dummy text"
-            text run at (0,82) width 116: "dummy text dummy "
-            text run at (116,82) width 420: "text dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (536,82) width 231: "text dummy text dummy text dummy text"
-            text run at (0,108) width 186: "dummy text dummy text dummy "
-            text run at (186,108) width 371: "text dummy text dummy text dummy text dummy text dummy text"
+        RenderText {#text} at (0,5) size 371x16
+          text run at (0,5) width 371: "This text should be small and cursive, with double line spacing. "
+        RenderInline {SPAN} at (0,0) size 779x120 [color=#C0C0C0]
+          RenderText {#text} at (371,5) size 779x120
+            text run at (371,5) width 408: "dummy text dummy text dummy text dummy text dummy text dummy"
+            text run at (0,31) width 438: "text dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (438,31) width 314: "text dummy text dummy text dummy text dummy text"
+            text run at (0,57) width 120: "dummy text dummy "
+            text run at (120,57) width 438: "text dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (558,57) width 215: "text dummy text dummy text dummy"
+            text run at (0,83) width 219: "text dummy text dummy text dummy "
+            text run at (219,83) width 438: "text dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (657,83) width 95: "text dummy text"
+            text run at (0,109) width 339: "dummy text dummy text dummy text dummy text dummy "
+            text run at (339,109) width 387: "text dummy text dummy text dummy text dummy text dummy text"
         RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/css2.1/t1508-c527-font-06-b-expected.txt b/LayoutTests/platform/qt/css2.1/t1508-c527-font-06-b-expected.txt
index b06a81f..af310c1 100644
--- a/LayoutTests/platform/qt/css2.1/t1508-c527-font-06-b-expected.txt
+++ b/LayoutTests/platform/qt/css2.1/t1508-c527-font-06-b-expected.txt
@@ -4,22 +4,22 @@ layer at (0,0) size 800x288
   RenderBlock {HTML} at (0,0) size 800x288
     RenderBody {BODY} at (8,18) size 784x252 [color=#000080]
       RenderBlock {P} at (0,0) size 784x252
-        RenderText {#text} at (0,6) size 775x59
-          text run at (0,6) width 775: "This text should be 18px monospace, in small-caps, italicized, and very bold, with double"
-          text run at (0,42) width 121: "line spacing. "
-        RenderInline {SPAN} at (0,0) size 768x203 [color=#C0C0C0]
-          RenderText {#text} at (121,42) size 768x203
-            text run at (121,42) width 521: "dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (642,42) width 126: "text dummy text"
-            text run at (0,78) width 427: "dummy text dummy text dummy text dummy text dummy "
-            text run at (427,78) width 314: "text dummy text dummy text dummy text"
-            text run at (0,114) width 239: "dummy text dummy text dummy "
-            text run at (239,114) width 502: "text dummy text dummy text dummy text dummy text dummy text"
-            text run at (0,150) width 51: "dummy "
-            text run at (51,150) width 564: "text dummy text dummy text dummy text dummy text dummy text dummy "
-            text run at (615,150) width 126: "text dummy text"
-            text run at (0,186) width 427: "dummy text dummy text dummy text dummy text dummy "
-            text run at (427,186) width 314: "text dummy text dummy text dummy text"
-            text run at (0,222) width 239: "dummy text dummy text dummy "
-            text run at (239,222) width 502: "text dummy text dummy text dummy text dummy text dummy text"
+        RenderText {#text} at (0,6) size 740x59
+          text run at (0,6) width 740: "This text should be 18px monospace, in small-caps, italicized, and very bold, with double line"
+          text run at (0,42) width 69: "spacing. "
+        RenderInline {SPAN} at (0,0) size 778x203 [color=#C0C0C0]
+          RenderText {#text} at (69,42) size 778x203
+            text run at (69,42) width 519: "dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (588,42) width 181: "text dummy text dummy"
+            text run at (0,78) width 372: "text dummy text dummy text dummy text dummy "
+            text run at (372,78) width 406: "text dummy text dummy text dummy text dummy text"
+            text run at (0,114) width 147: "dummy text dummy "
+            text run at (147,114) width 558: "text dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (705,114) width 34: "text"
+            text run at (0,150) width 519: "dummy text dummy text dummy text dummy text dummy text dummy "
+            text run at (519,150) width 220: "text dummy text dummy text"
+            text run at (0,186) width 333: "dummy text dummy text dummy text dummy "
+            text run at (333,186) width 406: "text dummy text dummy text dummy text dummy text"
+            text run at (0,222) width 147: "dummy text dummy "
+            text run at (147,222) width 499: "text dummy text dummy text dummy text dummy text dummy text"
         RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt b/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
index b75d73e..7d61480 100644
--- a/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/merge-whitespace-pre-expected.txt
@@ -12,10 +12,10 @@ layer at (0,0) size 800x600
         RenderBlock {DIV} at (0,0) size 784x21
           RenderText {#text} at (0,0) size 21x21
             text run at (0,0) width 21: "foo"
-          RenderInline {SPAN} at (0,0) size 24x14
-            RenderText {#text} at (21,5) size 24x14
-              text run at (21,5) width 24: "bar"
+          RenderInline {SPAN} at (0,0) size 18x16
+            RenderText {#text} at (21,3) size 18x16
+              text run at (21,3) width 18: "bar"
         RenderBlock {PRE} at (0,34) size 784x16
-          RenderText {#text} at (0,1) size 24x14
-            text run at (0,1) width 24: "baz"
+          RenderText {#text} at (0,0) size 21x16
+            text run at (0,0) width 21: "baz"
 caret: position 3 of child 0 {#text} of child 1 {DIV} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt b/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
index 6b64857..1480df8 100644
--- a/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
+++ b/LayoutTests/platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt
@@ -20,7 +20,7 @@ layer at (0,0) size 800x600
           text run at (0,21) width 117: "see '\\nbar' below."
       RenderBlock {DIV} at (0,58) size 784x32
         RenderBlock {PRE} at (0,0) size 784x32
-          RenderText {#text} at (0,1) size 24x30
-            text run at (0,1) width 0: " "
-            text run at (0,17) width 24: "bar"
+          RenderText {#text} at (0,0) size 18x32
+            text run at (0,0) width 0: " "
+            text run at (0,16) width 18: "bar"
 caret: position 0 of child 0 {#text} of child 0 {PRE} of child 2 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
index 3088257..d917cc8 100644
--- a/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
+++ b/LayoutTests/platform/qt/editing/inserting/paragraph-separator-03-expected.txt
@@ -27,10 +27,10 @@ layer at (0,0) size 800x600
           text run at (152,0) width 626: " too much padding is left between the new line and the end of the paragraph containing 'foo'."
       RenderBlock {DIV} at (0,116) size 784x61
         RenderBlock {PRE} at (0,0) size 784x16
-          RenderText {#text} at (0,1) size 24x14
-            text run at (0,1) width 24: "foo"
+          RenderText {#text} at (0,0) size 18x16
+            text run at (0,0) width 18: "foo"
         RenderBlock {PRE} at (0,29) size 784x32
-          RenderText {#text} at (0,1) size 24x30
-            text run at (0,1) width 0: " "
-            text run at (0,17) width 24: "bar"
+          RenderText {#text} at (0,0) size 18x32
+            text run at (0,0) width 0: " "
+            text run at (0,16) width 18: "bar"
 caret: position 0 of child 0 {#text} of child 1 {PRE} of child 4 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
index e9dae93..162144d 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/5027857-expected.txt
@@ -14,8 +14,8 @@ layer at (0,0) size 800x600
           RenderInline {SPAN} at (0,0) size 0x0
         RenderBlock (anonymous) at (0,0) size 784x16
           RenderBlock {PRE} at (0,0) size 784x16
-            RenderText {#text} at (0,1) size 328x14
-              text run at (0,1) width 328: "<input type='button'>foo<br>bar<b>baz</b>"
+            RenderText {#text} at (0,0) size 255x16
+              text run at (0,0) width 255: "<input type='button'>foo<br>bar<b>baz</b>"
         RenderBlock (anonymous) at (0,29) size 784x0
           RenderInline {SPAN} at (0,0) size 0x0
 caret: position 41 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 2 {PRE} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt
index e084fcb..17e0973 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/innerText-inline-table-expected.txt
@@ -32,5 +32,5 @@ layer at (0,0) size 800x600
         RenderListItem {LI} at (40,0) size 744x21
           RenderBlock {PRE} at (0,0) size 744x21
             RenderListMarker at (-18,0) size 7x21: bullet
-            RenderText {#text} at (0,5) size 64x14
-              text run at (0,5) width 64: "Success!"
+            RenderText {#text} at (0,3) size 55x16
+              text run at (0,3) width 55: "Success!"
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
index 92df46e..9d4be08 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-001-expected.txt
@@ -18,7 +18,7 @@ layer at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {DIV} at (0,0) size 784x336 [border: (2px solid #0000FF)]
+      RenderBlock {DIV} at (0,0) size 784x338 [border: (2px solid #0000FF)]
         RenderBlock {DIV} at (14,14) size 756x93
           RenderText {#text} at (0,0) size 67x32
             text run at (0,0) width 67: "Tests: "
@@ -31,7 +31,7 @@ layer at (0,0) size 800x600
               text run at (121,62) width 84: "3918056"
           RenderText {#text} at (205,62) size 6x32
             text run at (205,62) width 6: "."
-        RenderBlock {DIV} at (14,123) size 756x175
+        RenderBlock {DIV} at (14,123) size 756x177
           RenderBlock (anonymous) at (0,0) size 756x93
             RenderText {#text} at (0,0) size 189x32
               text run at (0,0) width 189: "Expected Results: "
@@ -39,22 +39,22 @@ layer at (0,0) size 800x600
             RenderText {#text} at (0,31) size 727x63
               text run at (0,31) width 727: "The PRE tag and the formatting of the text inside of the PRE should be"
               text run at (0,62) width 583: "maintained. Should see this content in the red box below:"
-          RenderBlock {PRE} at (0,117) size 756x58
-            RenderText {#text} at (0,1) size 42x55
-              text run at (0,1) width 42: "foo"
-              text run at (42,1) width 0: " "
-              text run at (0,30) width 42: "bar"
-      RenderBlock {DIV} at (0,360) size 784x110
-        RenderBlock {DIV} at (0,0) size 784x110 [border: (2px solid #FF0000)]
-          RenderBlock {PRE} at (2,26) size 780x58
+          RenderBlock {PRE} at (0,117) size 756x60
+            RenderText {#text} at (0,0) size 34x59
+              text run at (0,0) width 33: "foo"
+              text run at (33,0) width 0: " "
+              text run at (0,30) width 34: "bar"
+      RenderBlock {DIV} at (0,362) size 784x112
+        RenderBlock {DIV} at (0,0) size 784x112 [border: (2px solid #FF0000)]
+          RenderBlock {PRE} at (2,26) size 780x60
             RenderBlock (anonymous) at (0,0) size 780x0
               RenderInline {SPAN} at (0,0) size 0x0
-            RenderBlock (anonymous) at (0,0) size 780x58
-              RenderBlock {PRE} at (0,0) size 780x58
-                RenderText {#text} at (0,1) size 42x55
-                  text run at (0,1) width 42: "foo"
-                  text run at (42,1) width 0: " "
-                  text run at (0,30) width 42: "bar"
-            RenderBlock (anonymous) at (0,82) size 780x0
+            RenderBlock (anonymous) at (0,0) size 780x60
+              RenderBlock {PRE} at (0,0) size 780x60
+                RenderText {#text} at (0,0) size 34x59
+                  text run at (0,0) width 33: "foo"
+                  text run at (33,0) width 0: " "
+                  text run at (0,30) width 34: "bar"
+            RenderBlock (anonymous) at (0,84) size 780x0
               RenderInline {SPAN} at (0,0) size 0x0
 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
index bfc03fd..31a63e2 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-pre-002-expected.txt
@@ -31,10 +31,10 @@ layer at (0,0) size 800x600
               RenderInline {SPAN} at (0,0) size 0x0
             RenderBlock (anonymous) at (0,0) size 784x32
               RenderBlock {PRE} at (0,0) size 784x32
-                RenderText {#text} at (0,1) size 24x30
-                  text run at (0,1) width 24: "foo"
-                  text run at (24,1) width 0: " "
-                  text run at (0,17) width 24: "bar"
+                RenderText {#text} at (0,0) size 18x32
+                  text run at (0,0) width 18: "foo"
+                  text run at (18,0) width 0: " "
+                  text run at (0,16) width 18: "bar"
             RenderBlock (anonymous) at (0,45) size 784x0
               RenderInline {SPAN} at (0,0) size 0x0
 caret: position 7 of child 0 {#text} of child 0 {PRE} of child 0 {SPAN} of child 1 {PRE} of child 1 {DIV} of child 3 {DIV} of body
diff --git a/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt b/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
index b894dd5..d5bc273 100644
--- a/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
+++ b/LayoutTests/platform/qt/editing/pasteboard/paste-text-019-expected.txt
@@ -22,7 +22,7 @@ layer at (0,0) size 800x600
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock {DIV} at (0,0) size 784x338 [border: (2px solid #0000FF)]
+      RenderBlock {DIV} at (0,0) size 784x339 [border: (2px solid #0000FF)]
         RenderBlock {DIV} at (14,14) size 756x124
           RenderText {#text} at (0,0) size 67x32
             text run at (0,0) width 67: "Tests: "
@@ -35,20 +35,20 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,62) size 694x63
             text run at (0,62) width 694: "Text transformed with text-transform does not copy with transform"
             text run at (0,93) width 76: "applied"
-        RenderBlock {DIV} at (14,154) size 756x170
+        RenderBlock {DIV} at (14,154) size 756x171
           RenderBlock (anonymous) at (0,0) size 756x62
             RenderText {#text} at (0,0) size 189x32
               text run at (0,0) width 189: "Expected Results: "
             RenderBR {BR} at (189,24) size 0x0
             RenderText {#text} at (0,31) size 212x32
               text run at (0,31) width 212: "Should see the string"
-          RenderBlock {PRE} at (0,86) size 756x29
-            RenderText {#text} at (0,1) size 210x26
-              text run at (0,1) width 210: "Foo Bar baz Bar"
-          RenderBlock (anonymous) at (0,139) size 756x31
+          RenderBlock {PRE} at (0,86) size 756x30
+            RenderText {#text} at (0,0) size 174x29
+              text run at (0,0) width 174: "Foo Bar baz Bar"
+          RenderBlock (anonymous) at (0,140) size 756x31
             RenderText {#text} at (0,0) size 158x32
               text run at (0,0) width 158: "(case sensitive)."
-      RenderBlock {DIV} at (0,362) size 784x35 [border: (2px solid #FF0000)]
+      RenderBlock {DIV} at (0,363) size 784x35 [border: (2px solid #FF0000)]
         RenderInline {SPAN} at (0,0) size 165x32
           RenderInline {SPAN} at (0,0) size 84x32
             RenderText {#text} at (2,2) size 84x32
diff --git a/LayoutTests/platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt b/LayoutTests/platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt
index 3301bc8..b3e61e8 100644
--- a/LayoutTests/platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt
+++ b/LayoutTests/platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt
@@ -1,44 +1,42 @@
-layer at (0,0) size 784x1256
+layer at (0,0) size 784x1214
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x1256
-  RenderBlock {HTML} at (0,0) size 784x1256
-    RenderBody {BODY} at (8,8) size 768x1218
-      RenderBlock {DIV} at (73,0) size 622x520 [border: (4px solid #000000)]
-        RenderBlock {P} at (4,20) size 614x42
-          RenderText {#text} at (0,0) size 580x42
-            text run at (0,0) width 580: "Affected Browsers: Safari 2.0, Windows Internet Explorer 6"
-            text run at (0,21) width 30: "SP2"
-        RenderBlock {HR} at (4,78) size 614x2 [border: (1px inset #000000)]
-        RenderBlock {P} at (4,96) size 614x63
-          RenderText {#text} at (0,0) size 610x63
-            text run at (0,0) width 610: "Bug Description: On the Affected Browsers, if a rule sets the"
-            text run at (0,21) width 540: "'background-color' of an element, this color cannot be"
-            text run at (0,42) width 480: "overridden by 'background:inherit' declarations."
-        RenderBlock {HR} at (4,175) size 614x2 [border: (1px inset #000000)]
-        RenderBlock {P} at (4,193) size 614x105
-          RenderText {#text} at (0,0) size 600x63
-            text run at (0,0) width 600: "Example: With the following code, the background color of H1"
-            text run at (0,21) width 560: "elements stays pink, no matter what background color the"
-            text run at (0,42) width 130: "parents have:"
-          RenderBR {BR} at (130,42) size 0x21
-          RenderText {#text} at (0,63) size 320x21
-            text run at (0,63) width 50: "  H1 "
-            text run at (50,63) width 270: "{ background-color: pink; }"
-          RenderBR {BR} at (320,63) size 0x21
-          RenderText {#text} at (0,84) size 290x21
-            text run at (0,84) width 50: "  H1 "
-            text run at (50,84) width 240: "{ background: inherit; }"
-        RenderBlock {HR} at (4,314) size 614x2 [border: (1px inset #000000)]
-        RenderBlock {P} at (4,332) size 614x63
-          RenderText {#text} at (0,0) size 610x63
-            text run at (0,0) width 610: "Work-around: The 'background-color' can only be overridden by"
-            text run at (0,21) width 600: "another 'background-color' declaration, or by a 'background'"
-            text run at (0,42) width 380: "declaration that does specify a color."
-        RenderBlock {HR} at (4,411) size 614x2 [border: (1px inset #000000)]
-        RenderBlock (anonymous) at (4,421) size 614x21
+layer at (0,0) size 784x1214
+  RenderBlock {HTML} at (0,0) size 784x1214
+    RenderBody {BODY} at (8,8) size 768x1176
+      RenderBlock {DIV} at (73,0) size 622x478 [border: (4px solid #000000)]
+        RenderBlock {P} at (4,20) size 614x21
+          RenderText {#text} at (0,0) size 477x20
+            text run at (0,0) width 477: "Affected Browsers: Safari 2.0, Windows Internet Explorer 6 SP2"
+        RenderBlock {HR} at (4,57) size 614x2 [border: (1px inset #000000)]
+        RenderBlock {P} at (4,75) size 614x63
+          RenderText {#text} at (0,0) size 604x62
+            text run at (0,0) width 604: "Bug Description: On the Affected Browsers, if a rule sets the 'background-color'"
+            text run at (0,21) width 529: "of an element, this color cannot be overridden by 'background:inherit'"
+            text run at (0,42) width 98: "declarations."
+        RenderBlock {HR} at (4,154) size 614x2 [border: (1px inset #000000)]
+        RenderBlock {P} at (4,172) size 614x84
+          RenderText {#text} at (0,0) size 586x41
+            text run at (0,0) width 586: "Example: With the following code, the background color of H1 elements stays"
+            text run at (0,21) width 429: "pink, no matter what background color the parents have:"
+          RenderBR {BR} at (429,21) size 0x20
+          RenderText {#text} at (0,42) size 237x20
+            text run at (0,42) width 33: "  H1 "
+            text run at (33,42) width 204: "{ background-color: pink; }"
+          RenderBR {BR} at (237,42) size 0x20
+          RenderText {#text} at (0,63) size 208x20
+            text run at (0,63) width 33: "  H1 "
+            text run at (33,63) width 175: "{ background: inherit; }"
+        RenderBlock {HR} at (4,272) size 614x2 [border: (1px inset #000000)]
+        RenderBlock {P} at (4,290) size 614x63
+          RenderText {#text} at (0,0) size 563x62
+            text run at (0,0) width 552: "Work-around: The 'background-color' can only be overridden by another"
+            text run at (0,21) width 563: "'background-color' declaration, or by a 'background' declaration that does"
+            text run at (0,42) width 115: "specify a color."
+        RenderBlock {HR} at (4,369) size 614x2 [border: (1px inset #000000)]
+        RenderBlock (anonymous) at (4,379) size 614x21
           RenderText {#text} at (0,0) size 425x21
             text run at (0,0) width 425: "This is in contradiction with the CSS2 specification which says:"
-        RenderBlock {UL} at (4,458) size 614x42
+        RenderBlock {UL} at (4,416) size 614x42
           RenderListItem {LI} at (40,0) size 574x42
             RenderListMarker at (-18,0) size 7x21: bullet
             RenderText {#text} at (0,0) size 31x21
@@ -49,7 +47,7 @@ layer at (0,0) size 784x1256
             RenderText {#text} at (122,0) size 539x42
               text run at (122,0) width 417: " property first sets all the individual background properties to"
               text run at (0,21) width 473: "their initial values, then assigns explicit values given in the declaration."
-      RenderBlock {DIV} at (73,550) size 622x668 [color=#008000] [bgcolor=#90EE90] [border: (4px solid #008000)]
+      RenderBlock {DIV} at (73,508) size 622x668 [color=#008000] [bgcolor=#90EE90] [border: (4px solid #008000)]
         RenderBlock (anonymous) at (4,4) size 614x21
           RenderText {#text} at (0,0) size 236x21
             text run at (0,0) width 236: "This DIV has a green background."
diff --git a/LayoutTests/platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt b/LayoutTests/platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt
index ef5dc6f..847cb31 100644
--- a/LayoutTests/platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt
+++ b/LayoutTests/platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt
@@ -1,27 +1,26 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
-layer at (0,0) size 800x164
-  RenderBlock {HTML} at (0,0) size 800x164
-    RenderBody {BODY} at (8,16) size 784x140
-      RenderBlock {P} at (0,0) size 784x42
+layer at (0,0) size 800x143
+  RenderBlock {HTML} at (0,0) size 800x143
+    RenderBody {BODY} at (8,16) size 784x119
+      RenderBlock {P} at (0,0) size 784x21
         RenderText {#text} at (0,0) size 324x21
           text run at (0,0) width 324: "This test checks that text input fields handle the "
-        RenderInline {CODE} at (0,0) size 168x14
-          RenderText {#text} at (324,5) size 168x14
-            text run at (324,5) width 168: "-webkit-border-radius"
-        RenderText {#text} at (492,0) size 736x42
-          text run at (492,0) width 244: " CSS property correctly, or degrade"
-          text run at (0,21) width 71: "gracefully."
-      RenderBlock {P} at (0,58) size 784x21
+        RenderInline {CODE} at (0,0) size 120x16
+          RenderText {#text} at (324,3) size 120x16
+            text run at (324,3) width 120: "-webkit-border-radius"
+        RenderText {#text} at (444,0) size 319x21
+          text run at (444,0) width 319: " CSS property correctly, or degrade gracefully."
+      RenderBlock {P} at (0,37) size 784x21
         RenderText {#text} at (0,0) size 656x21
           text run at (0,0) width 656: "If the test passes, you will see a text entry field containing \"default text\" inside the grey div below."
-      RenderBlock {DIV} at (0,95) size 163x45 [bgcolor=#888888]
+      RenderBlock {DIV} at (0,74) size 163x45 [bgcolor=#888888]
         RenderTextControl {INPUT} at (11,9) size 133x27 [bgcolor=#00FF00] [border: (2px inset #000000)]
           RenderBlock {DIV} at (3,3) size 127x21
             RenderBlock {DIV} at (0,16) size 0x0
             RenderBlock {DIV} at (127,16) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (22,123) size 127x21
+layer at (22,102) size 127x21
   RenderBlock {DIV} at (0,0) size 127x21
     RenderText {#text} at (1,0) size 76x21
       text run at (1,0) width 76: "default text"
diff --git a/LayoutTests/platform/qt/fast/dom/gc-10-expected.txt b/LayoutTests/platform/qt/fast/dom/gc-10-expected.txt
index 4becbab..d03d8f3 100644
--- a/LayoutTests/platform/qt/fast/dom/gc-10-expected.txt
+++ b/LayoutTests/platform/qt/fast/dom/gc-10-expected.txt
@@ -13,8 +13,8 @@ layer at (0,0) size 800x600
       RenderBlock {HR} at (0,95) size 784x2 [border: (1px inset #000000)]
       RenderBlock {DIV} at (0,105) size 784x16
         RenderBlock {DIV} at (0,0) size 784x16 [color=#008000]
-          RenderText {#text} at (0,1) size 304x14
-            text run at (0,1) width 304: "PASS: Refresh did not leak JS objects."
+          RenderText {#text} at (0,0) size 230x16
+            text run at (0,0) width 230: "PASS: Refresh did not leak JS objects."
       RenderBlock (anonymous) at (0,121) size 784x154
         RenderPartObject {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
           layer at (0,0) size 300x150
diff --git a/LayoutTests/platform/qt/fast/forms/isindex-placeholder-expected.txt b/LayoutTests/platform/qt/fast/forms/isindex-placeholder-expected.txt
index 73f0992..496c7a0 100644
--- a/LayoutTests/platform/qt/fast/forms/isindex-placeholder-expected.txt
+++ b/LayoutTests/platform/qt/fast/forms/isindex-placeholder-expected.txt
@@ -6,11 +6,11 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,0) size 784x21
         RenderText {#text} at (0,0) size 33x21
           text run at (0,0) width 33: "Test "
-        RenderInline {TT} at (0,0) size 72x14
-          RenderText {#text} at (33,5) size 72x14
-            text run at (33,5) width 72: "<isindex>"
-        RenderText {#text} at (105,0) size 135x21
-          text run at (105,0) width 135: " placeholder styling."
+        RenderInline {TT} at (0,0) size 57x16
+          RenderText {#text} at (33,3) size 57x16
+            text run at (33,3) width 57: "<isindex>"
+        RenderText {#text} at (90,0) size 135x21
+          text run at (90,0) width 135: " placeholder styling."
       RenderBlock (anonymous) at (0,37) size 784x21
         RenderText {#text} at (0,0) size 248x21
           text run at (0,0) width 248: "The placeholder text should be gray:"
diff --git a/LayoutTests/platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt b/LayoutTests/platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt
index 7085da7..b8edb84 100644
--- a/LayoutTests/platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt
+++ b/LayoutTests/platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt
@@ -6,17 +6,17 @@ layer at (0,0) size 784x701
       RenderBlock {P} at (0,0) size 768x42
         RenderText {#text} at (0,0) size 234x21
           text run at (0,0) width 234: "This page tests the behavior of the "
-        RenderInline {TT} at (0,0) size 72x14
-          RenderText {#text} at (234,5) size 72x14
-            text run at (234,5) width 72: "scrolling"
-        RenderText {#text} at (306,0) size 88x21
-          text run at (306,0) width 88: " attribute on "
-        RenderInline {TT} at (0,0) size 64x14
-          RenderText {#text} at (394,5) size 64x14
-            text run at (394,5) width 64: "<iframe>"
-        RenderText {#text} at (458,0) size 759x42
-          text run at (458,0) width 301: " elements which contain a page large enough"
-          text run at (0,21) width 146: "to need to be scrolled."
+        RenderInline {TT} at (0,0) size 48x16
+          RenderText {#text} at (234,3) size 48x16
+            text run at (234,3) width 48: "scrolling"
+        RenderText {#text} at (282,0) size 88x21
+          text run at (282,0) width 88: " attribute on "
+        RenderInline {TT} at (0,0) size 52x16
+          RenderText {#text} at (370,3) size 52x16
+            text run at (370,3) width 52: "<iframe>"
+        RenderText {#text} at (422,0) size 740x42
+          text run at (422,0) width 318: " elements which contain a page large enough to"
+          text run at (0,21) width 129: "need to be scrolled."
       RenderBlock (anonymous) at (0,58) size 768x627
         RenderPartObject {IFRAME} at (0,0) size 204x204 [border: (2px inset #000000)]
           layer at (0,0) size 408x516
diff --git a/LayoutTests/platform/qt/fast/frames/viewsource-on-image-file-expected.txt b/LayoutTests/platform/qt/fast/frames/viewsource-on-image-file-expected.txt
index 9bdf45a..555e6cf 100644
--- a/LayoutTests/platform/qt/fast/frames/viewsource-on-image-file-expected.txt
+++ b/LayoutTests/platform/qt/fast/frames/viewsource-on-image-file-expected.txt
@@ -20,11 +20,11 @@ layer at (0,0) size 800x600
                 RenderTable {TABLE} at (0,0) size 300x16
                   RenderTableSection {TBODY} at (0,0) size 300x16
                     RenderTableRow {TR} at (0,0) size 300x16
-                      RenderTableCell {TD} at (0,3) size 31x11 [color=#808080] [bgcolor=#F0F0F0] [border: none (1px solid #BBBBBB) none] [r=0 c=0 rs=1 cs=1]
+                      RenderTableCell {TD} at (0,4) size 31x11 [color=#808080] [bgcolor=#F0F0F0] [border: none (1px solid #BBBBBB) none] [r=0 c=0 rs=1 cs=1]
                         RenderInline (generated) at (0,0) size 5x11
                           RenderCounter at (21,0) size 5x11
                             text run at (21,0) width 5: "1"
                       RenderTableCell {TD} at (31,0) size 269x16 [r=0 c=1 rs=1 cs=1]
-                        RenderText {#text} at (5,1) size 88x14
-                          text run at (5,1) width 88: "hello world"
+                        RenderText {#text} at (5,0) size 61x16
+                          text run at (5,0) width 61: "hello world"
         RenderText {#text} at (0,0) size 0x0
diff --git a/LayoutTests/platform/qt/fast/lists/003-vertical-expected.txt b/LayoutTests/platform/qt/fast/lists/003-vertical-expected.txt
index 93e32fb..2732fe4 100644
--- a/LayoutTests/platform/qt/fast/lists/003-vertical-expected.txt
+++ b/LayoutTests/platform/qt/fast/lists/003-vertical-expected.txt
@@ -8,28 +8,27 @@ layer at (0,0) size 489x600
           RenderText {#text} at (0,0) size 42x318
             text run at (0,0) width 318: "This test case illustrates incorrect positioning of"
             text run at (21,0) width 121: "list items within a "
-          RenderInline {CODE} at (0,0) size 14x136
-            RenderText {#text} at (23,121) size 14x136
-              text run at (23,121) width 136: "text-align: right"
-          RenderText {#text} at (21,257) size 42x318
-            text run at (21,257) width 61: " div after"
-            text run at (42,0) width 12: "a "
-          RenderInline {CODE} at (0,0) size 14x88
-            RenderText {#text} at (44,12) size 14x88
-              text run at (44,12) width 88: "float: left"
-          RenderText {#text} at (42,100) size 21x33
-            text run at (42,100) width 33: " div. "
-          RenderInline {A} at (0,0) size 42x276 [color=#0000EE]
-            RenderText {#text} at (42,133) size 42x276
-              text run at (42,133) width 143: "Screenshot of correct"
-              text run at (63,0) width 60: "behavior"
-          RenderText {#text} at (63,60) size 21x9
-            text run at (63,60) width 9: "; "
+          RenderInline {CODE} at (0,0) size 16x86
+            RenderText {#text} at (23,121) size 16x86
+              text run at (23,121) width 86: "text-align: right"
+          RenderText {#text} at (21,207) size 21x77
+            text run at (21,207) width 77: " div after a "
+          RenderInline {CODE} at (0,0) size 37x313
+            RenderText {#text} at (23,284) size 37x313
+              text run at (23,284) width 29: "float:"
+              text run at (44,0) width 18: "left"
+          RenderText {#text} at (42,18) size 21x33
+            text run at (42,18) width 33: " div. "
+          RenderInline {A} at (0,0) size 21x207 [color=#0000EE]
+            RenderText {#text} at (42,51) size 21x207
+              text run at (42,51) width 207: "Screenshot of correct behavior"
+          RenderText {#text} at (42,258) size 21x5
+            text run at (42,258) width 5: ";"
           RenderInline {A} at (0,0) size 21x133 [color=#0000EE]
-            RenderText {#text} at (63,69) size 21x133
-              text run at (63,69) width 133: "screenshot of Safari"
-          RenderText {#text} at (63,202) size 21x4
-            text run at (63,202) width 4: "."
+            RenderText {#text} at (63,0) size 21x133
+              text run at (63,0) width 133: "screenshot of Safari"
+          RenderText {#text} at (63,133) size 21x4
+            text run at (63,133) width 4: "."
         RenderBlock {P} at (84,16) size 63x318
           RenderText {#text} at (0,0) size 42x250
             text run at (0,0) width 250: "This bug only occurs on pages with a"
diff --git a/LayoutTests/platform/qt/fast/table/border-collapsing/004-vertical-expected.txt b/LayoutTests/platform/qt/fast/table/border-collapsing/004-vertical-expected.txt
index 23d2707..8665197 100644
--- a/LayoutTests/platform/qt/fast/table/border-collapsing/004-vertical-expected.txt
+++ b/LayoutTests/platform/qt/fast/table/border-collapsing/004-vertical-expected.txt
@@ -16,31 +16,31 @@ layer at (0,0) size 1699x934
           text run at (348,0) width 8: ". "
           text run at (356,0) width 186: "The styles applied here are:"
       RenderBlock {PRE} at (0,100) size 768x192
-        RenderText {#text} at (0,1) size 688x190
-          text run at (0,1) width 408: "TABLE   { margin: 1em; border: medium solid blue; }"
-          text run at (408,1) width 0: " "
-          text run at (0,17) width 376: "TD  { border: thin solid green; padding: 5px; }"
-          text run at (376,17) width 0: " "
-          text run at (0,33) width 392: "TH { border: medium solid purple; padding: 5px; }"
-          text run at (392,33) width 0: " "
-          text run at (0,49) width 360: "TABLE.one, TABLE.two { border-spacing: 1em; }"
-          text run at (360,49) width 0: " "
-          text run at (0,65) width 320: "TABLE.one { border-collapse: collapse; }"
-          text run at (320,65) width 0: " "
-          text run at (0,81) width 320: "TABLE.two { border-collapse: separate; }"
-          text run at (320,81) width 0: " "
-          text run at (0,97) width 536: "TABLE.three { border-collapse: separate; border-spacing: 0 0.5em; }"
-          text run at (536,97) width 0: " "
-          text run at (0,113) width 528: "TABLE.four { border-collapse: separate; border-spacing: 0.5em 0; }"
-          text run at (528,113) width 0: " "
-          text run at (0,129) width 328: "TABLE.five { border-collapse: separate; }"
-          text run at (328,129) width 0: " "
-          text run at (0,145) width 464: "TABLE.five, TABLE.five TD, TABLE.five TH { border: none; }"
-          text run at (464,145) width 0: " "
-          text run at (0,161) width 688: "TABLE.five TR, TABLE.five COL, TABLE.five COLGROUP, TABLE.five TBODY, TABLE.five THEAD"
-          text run at (688,161) width 0: " "
-          text run at (0,177) width 264: "    { border: medium solid red; }"
-          text run at (264,177) width 0: " "
+        RenderText {#text} at (0,0) size 592x192
+          text run at (0,0) width 303: "TABLE   { margin: 1em; border: medium solid blue; }"
+          text run at (303,0) width 0: " "
+          text run at (0,16) width 259: "TD  { border: thin solid green; padding: 5px; }"
+          text run at (259,16) width 0: " "
+          text run at (0,32) width 283: "TH { border: medium solid purple; padding: 5px; }"
+          text run at (283,32) width 0: " "
+          text run at (0,48) width 283: "TABLE.one, TABLE.two { border-spacing: 1em; }"
+          text run at (283,48) width 0: " "
+          text run at (0,64) width 235: "TABLE.one { border-collapse: collapse; }"
+          text run at (235,64) width 0: " "
+          text run at (0,80) width 236: "TABLE.two { border-collapse: separate; }"
+          text run at (236,80) width 0: " "
+          text run at (0,96) width 393: "TABLE.three { border-collapse: separate; border-spacing: 0 0.5em; }"
+          text run at (393,96) width 0: " "
+          text run at (0,112) width 386: "TABLE.four { border-collapse: separate; border-spacing: 0.5em 0; }"
+          text run at (386,112) width 0: " "
+          text run at (0,128) width 237: "TABLE.five { border-collapse: separate; }"
+          text run at (237,128) width 0: " "
+          text run at (0,144) width 355: "TABLE.five, TABLE.five TD, TABLE.five TH { border: none; }"
+          text run at (355,144) width 0: " "
+          text run at (0,160) width 592: "TABLE.five TR, TABLE.five COL, TABLE.five COLGROUP, TABLE.five TBODY, TABLE.five THEAD"
+          text run at (592,160) width 0: " "
+          text run at (0,176) width 179: "    { border: medium solid red; }"
+          text run at (179,176) width 0: " "
       RenderBlock {DIV} at (0,305) size 1691x600
         RenderTable {TABLE} at (16,16) size 271x568 [border: (1px solid #0000FF)]
           RenderTableSection {TBODY} at (1,1) size 268x565
diff --git a/LayoutTests/platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt b/LayoutTests/platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt
index b240a7a..fd6c328 100644
--- a/LayoutTests/platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt
@@ -209,44 +209,44 @@ layer at (0,0) size 784x814
           RenderText {#text} at (384,0) size 9x20
             text run at (384,0) width 9: "\x{A5}"
       RenderBlock {DIV} at (0,336) size 768x21
-        RenderInline {SPAN} at (0,0) size 353x21
-          RenderText {#text} at (0,0) size 337x21
-            text run at (0,0) width 337: "Using font \"cursive\". expected: yen sign, actual: \x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x21
-            RenderText {#text} at (337,0) size 8x21
-              text run at (337,0) width 8: "\x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x21
-            RenderText {#text} at (345,0) size 8x21
-              text run at (345,0) width 8: "\x{A5}"
-        RenderInline {SPAN} at (0,0) size 8x21
-          RenderText {#text} at (353,0) size 8x21
-            text run at (353,0) width 8: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 366x20
+          RenderText {#text} at (0,0) size 348x20
+            text run at (0,0) width 348: "Using font \"cursive\". expected: yen sign, actual: \x{A5}"
+          RenderInline {SPAN} at (0,0) size 9x20
+            RenderText {#text} at (348,0) size 9x20
+              text run at (348,0) width 9: "\x{A5}"
+          RenderInline {SPAN} at (0,0) size 9x20
+            RenderText {#text} at (357,0) size 9x20
+              text run at (357,0) width 9: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 9x20
+          RenderText {#text} at (366,0) size 9x20
+            text run at (366,0) width 9: "\x{A5}"
       RenderBlock {DIV} at (0,357) size 768x21
-        RenderInline {SPAN} at (0,0) size 354x21
-          RenderText {#text} at (0,0) size 338x21
-            text run at (0,0) width 338: "Using font \"fantasy\". expected: yen sign, actual: \x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x21
-            RenderText {#text} at (338,0) size 8x21
-              text run at (338,0) width 8: "\x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x21
-            RenderText {#text} at (346,0) size 8x21
-              text run at (346,0) width 8: "\x{A5}"
-        RenderInline {SPAN} at (0,0) size 8x21
-          RenderText {#text} at (354,0) size 8x21
-            text run at (354,0) width 8: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 366x20
+          RenderText {#text} at (0,0) size 348x20
+            text run at (0,0) width 348: "Using font \"fantasy\". expected: yen sign, actual: \x{A5}"
+          RenderInline {SPAN} at (0,0) size 9x20
+            RenderText {#text} at (348,0) size 9x20
+              text run at (348,0) width 9: "\x{A5}"
+          RenderInline {SPAN} at (0,0) size 9x20
+            RenderText {#text} at (357,0) size 9x20
+              text run at (357,0) width 9: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 9x20
+          RenderText {#text} at (366,0) size 9x20
+            text run at (366,0) width 9: "\x{A5}"
       RenderBlock {DIV} at (0,378) size 768x21
-        RenderInline {SPAN} at (0,0) size 440x14
-          RenderText {#text} at (0,5) size 424x14
-            text run at (0,5) width 424: "Using font \"monospace\". expected: yen sign, actual: \x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x14
-            RenderText {#text} at (424,5) size 8x14
-              text run at (424,5) width 8: "\x{A5}"
-          RenderInline {SPAN} at (0,0) size 8x14
-            RenderText {#text} at (432,5) size 8x14
-              text run at (432,5) width 8: "\x{A5}"
-        RenderInline {SPAN} at (0,0) size 8x14
-          RenderText {#text} at (440,5) size 8x14
-            text run at (440,5) width 8: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 330x16
+          RenderText {#text} at (0,3) size 316x16
+            text run at (0,3) width 316: "Using font \"monospace\". expected: yen sign, actual: \x{A5}"
+          RenderInline {SPAN} at (0,0) size 7x16
+            RenderText {#text} at (316,3) size 7x16
+              text run at (316,3) width 7: "\x{A5}"
+          RenderInline {SPAN} at (0,0) size 7x16
+            RenderText {#text} at (323,3) size 7x16
+              text run at (323,3) width 7: "\x{A5}"
+        RenderInline {SPAN} at (0,0) size 7x16
+          RenderText {#text} at (330,3) size 7x16
+            text run at (330,3) width 7: "\x{A5}"
       RenderBlock {DIV} at (0,399) size 768x21
         RenderInline {SPAN} at (0,0) size 394x21
           RenderText {#text} at (0,0) size 386x21
diff --git a/LayoutTests/platform/qt/fast/text/international/hindi-whitespace-expected.txt b/LayoutTests/platform/qt/fast/text/international/hindi-whitespace-expected.txt
index ce36798..a7de774 100644
--- a/LayoutTests/platform/qt/fast/text/international/hindi-whitespace-expected.txt
+++ b/LayoutTests/platform/qt/fast/text/international/hindi-whitespace-expected.txt
@@ -12,11 +12,11 @@ layer at (0,0) size 800x600
           text run at (0,0) width 768: "If this test succeeds, you can see this Hindi word \"\x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}\" repeated three times separated by a space in the"
           text run at (0,21) width 599: "first two paragraphs. In the third paragraphs, it'll be shown three times in separate lines."
       RenderBlock {P} at (0,116) size 784x21
-        RenderText {#text} at (0,0) size 324x21
-          text run at (0,0) width 324: "1. \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902} \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}\x{D}\x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}"
+        RenderText {#text} at (0,0) size 308x21
+          text run at (0,0) width 308: "1. \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902} \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}\x{D}\x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}"
       RenderBlock {P} at (0,153) size 784x21
-        RenderText {#text} at (0,0) size 324x21
-          text run at (0,0) width 324: "2. \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902} \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}\x{D}\x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}"
+        RenderText {#text} at (0,0) size 308x21
+          text run at (0,0) width 308: "2. \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902} \x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}\x{D}\x{935}\x{93F}\x{937}\x{92F}\x{94B}\x{902}"
       RenderBlock {P} at (0,190) size 784x63
         RenderText {#text} at (0,0) size 192x63
           text run at (0,0) width 12: "3."
diff --git a/LayoutTests/platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt b/LayoutTests/platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt
index f276b12..a9e5a6b 100644
--- a/LayoutTests/platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt
+++ b/LayoutTests/platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt
@@ -12,20 +12,20 @@ layer at (0,0) size 1550x1394
           text run at (0,0) width 622: "Note that Safari doesn't allow to customize the outermost scdrollbars and just show Cocoa's."
       RenderBlock {PRE} at (0,231) size 771x1142 [bgcolor=#008000]
       RenderBlock {PRE} at (0,1386) size 1542x0 [bgcolor=#008000]
-layer at (8,126) size 100x100 clip at (8,126) size 87x87 scrollWidth 1432 scrollHeight 111
+layer at (8,126) size 100x100 clip at (8,126) size 87x87 scrollWidth 1068 scrollHeight 112
   RenderBlock {PRE} at (0,118) size 100x100 [bgcolor=#008000]
-    RenderText {#text} at (0,1) size 1432x110
-      text run at (0,1) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,1) width 0: " "
-      text run at (0,17) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,17) width 0: " "
-      text run at (0,33) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,33) width 0: " "
-      text run at (0,49) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,49) width 0: " "
-      text run at (0,65) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,65) width 0: " "
-      text run at (0,81) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,81) width 0: " "
-      text run at (0,97) width 1432: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
-      text run at (1432,97) width 0: " "
+    RenderText {#text} at (0,0) size 1068x112
+      text run at (0,0) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,0) width 0: " "
+      text run at (0,16) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,16) width 0: " "
+      text run at (0,32) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,32) width 0: " "
+      text run at (0,48) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,48) width 0: " "
+      text run at (0,64) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,64) width 0: " "
+      text run at (0,80) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,80) width 0: " "
+      text run at (0,96) width 1068: "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
+      text run at (1068,96) width 0: " "
diff --git a/LayoutTests/platform/qt/svg/custom/bug45331-expected.txt b/LayoutTests/platform/qt/svg/custom/bug45331-expected.txt
index bc7c8ba..2b3dd22 100644
--- a/LayoutTests/platform/qt/svg/custom/bug45331-expected.txt
+++ b/LayoutTests/platform/qt/svg/custom/bug45331-expected.txt
@@ -1,15 +1,15 @@
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
-layer at (0,0) size 800x172
-  RenderBlock {html} at (0,0) size 800x172
-    RenderBody {body} at (8,16) size 784x140
-      RenderBlock {parsererror} at (16,0) size 752x140 [bgcolor=#FFDDDD] [border: (2px solid #CC7777)]
+layer at (0,0) size 800x173
+  RenderBlock {html} at (0,0) size 800x173
+    RenderBody {body} at (8,16) size 784x141
+      RenderBlock {parsererror} at (16,0) size 752x141 [bgcolor=#FFDDDD] [border: (2px solid #CC7777)]
         RenderBlock {h3} at (18,20) size 716x25
           RenderText {#text} at (0,0) size 324x25
             text run at (0,0) width 324: "This page contains the following errors:"
-        RenderBlock {div} at (18,63) size 716x14
-          RenderText {#text} at (0,0) size 385x13
-            text run at (0,0) width 385: "error on line 3 at column 0: Premature end of document."
-        RenderBlock {h3} at (18,95) size 716x25
+        RenderBlock {div} at (18,63) size 716x15
+          RenderText {#text} at (0,0) size 302x15
+            text run at (0,0) width 302: "error on line 3 at column 0: Premature end of document."
+        RenderBlock {h3} at (18,96) size 716x25
           RenderText {#text} at (0,0) size 429x25
             text run at (0,0) width 429: "Below is a rendering of the page up to the first error."
diff --git a/LayoutTests/platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt b/LayoutTests/platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt
index dd0dab4..c625afa 100644
--- a/LayoutTests/platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt
+++ b/LayoutTests/platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt
@@ -1,33 +1,33 @@
-layer at (0,0) size 784x785
+layer at (0,0) size 784x786
   RenderView at (0,0) size 784x600
-layer at (0,0) size 784x785
-  RenderBlock {html} at (0,0) size 784x785
-    RenderBody {body} at (8,16) size 768x761
-      RenderBlock {parsererror} at (16,0) size 736x140 [bgcolor=#FFDDDD] [border: (2px solid #CC7777)]
+layer at (0,0) size 784x786
+  RenderBlock {html} at (0,0) size 784x786
+    RenderBody {body} at (8,16) size 768x762
+      RenderBlock {parsererror} at (16,0) size 736x141 [bgcolor=#FFDDDD] [border: (2px solid #CC7777)]
         RenderBlock {h3} at (18,20) size 700x25
           RenderText {#text} at (0,0) size 324x25
             text run at (0,0) width 324: "This page contains the following errors:"
-        RenderBlock {div} at (18,63) size 700x14
-          RenderText {#text} at (0,0) size 497x13
-            text run at (0,0) width 497: "error on line 56 at column 56: Expected '>' or '/', but got '[a-zA-Z]'."
-        RenderBlock {h3} at (18,95) size 700x25
+        RenderBlock {div} at (18,63) size 700x15
+          RenderText {#text} at (0,0) size 346x15
+            text run at (0,0) width 346: "error on line 56 at column 56: Expected '>' or '/', but got '[a-zA-Z]'."
+        RenderBlock {h3} at (18,96) size 700x25
           RenderText {#text} at (0,0) size 429x25
             text run at (0,0) width 429: "Below is a rendering of the page up to the first error."
-      RenderBlock (anonymous) at (0,156) size 768x605
-        RenderSVGRoot {svg} at (24,265) size 72x148
-          RenderSVGContainer {g} at (24,265) size 72x148 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,30.00)}]
-            RenderSVGContainer {g} at (24,265) size 72x148
+      RenderBlock (anonymous) at (0,157) size 768x605
+        RenderSVGRoot {svg} at (24,266) size 72x148
+          RenderSVGContainer {g} at (24,266) size 72x148 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,30.00)}]
+            RenderSVGContainer {g} at (24,266) size 72x148
               RenderSVGText {text} at (10,21) size 40x12 contains 1 chunk(s)
                 RenderSVGInlineText {#text} at (0,0) size 40x12
                   chunk 1 text run 1 at (10.00,30.00) startOffset 0 endOffset 10 width 40.00: "SVG to fit"
-              RenderSVGContainer {g} at (40,296) size 48x64 [transform={m=((1.00,0.00)(0.00,1.00)) t=(20.00,40.00)}]
-                RenderSVGPath {rect} at (40,296) size 48x64 [stroke={[type=SOLID] [color=#FF0000]}] [fill={[type=SOLID] [color=#000000]}] [x=0.50] [y=0.50] [width=29.00] [height=39.00]
-                RenderSVGContainer {g} at (48,312) size 32x32 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,5.00)}]
-                  RenderSVGPath {circle} at (48,312) size 32x32 [fill={[type=SOLID] [color=#FFFF00]}] [cx=15.00] [cy=15.00] [r=10.00]
-                  RenderSVGPath {circle} at (56,320) size 7x7 [fill={[type=SOLID] [color=#000000]}] [cx=12.00] [cy=12.00] [r=1.50]
-                  RenderSVGPath {circle} at (64,320) size 7x7 [fill={[type=SOLID] [color=#000000]}] [cx=17.00] [cy=12.00] [r=1.50]
-                  RenderSVGPath {path} at (54,332) size 20x12 [stroke={[type=SOLID] [color=#000000] [stroke width=2.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 10 19 L 15 23 L 20 19"]
+              RenderSVGContainer {g} at (40,297) size 48x64 [transform={m=((1.00,0.00)(0.00,1.00)) t=(20.00,40.00)}]
+                RenderSVGPath {rect} at (40,297) size 48x64 [stroke={[type=SOLID] [color=#FF0000]}] [fill={[type=SOLID] [color=#000000]}] [x=0.50] [y=0.50] [width=29.00] [height=39.00]
+                RenderSVGContainer {g} at (48,313) size 32x32 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,5.00)}]
+                  RenderSVGPath {circle} at (48,313) size 32x32 [fill={[type=SOLID] [color=#FFFF00]}] [cx=15.00] [cy=15.00] [r=10.00]
+                  RenderSVGPath {circle} at (56,321) size 7x7 [fill={[type=SOLID] [color=#000000]}] [cx=12.00] [cy=12.00] [r=1.50]
+                  RenderSVGPath {circle} at (64,321) size 7x7 [fill={[type=SOLID] [color=#000000]}] [cx=17.00] [cy=12.00] [r=1.50]
+                  RenderSVGPath {path} at (54,333) size 20x12 [stroke={[type=SOLID] [color=#000000] [stroke width=2.00]}] [fill={[type=SOLID] [color=#000000]}] [data="M 10 19 L 15 23 L 20 19"]
               RenderSVGText {text} at (10,101) size 45x12 contains 1 chunk(s)
                 RenderSVGInlineText {#text} at (0,0) size 45x12
                   chunk 1 text run 1 at (10.00,110.00) startOffset 0 endOffset 10 width 45.00: "Viewport 1"
-              RenderSVGContainer {g} at (8,172) size 0x0 [transform={m=((1.00,0.00)(0.00,1.00)) t=(10.00,120.00)}]
+              RenderSVGContainer {g} at (8,173) size 0x0 [transform={m=((1.00,0.00)(0.00,1.00)) t=(10.00,120.00)}]

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list