Reviewed by Dan Bernstein.
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2009 20:31:53 +0000 (20:31 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Apr 2009 20:31:53 +0000 (20:31 +0000)
        Make textarea and text input metrics more closely match IEs.

        This involves:
        -set text input width to size*avgCharWidth + maxCharWidth - avgCharWidth
        -set textarea width to cols*avgCharWidth
        -Make default CSS match IEs
        -Correctly initializing m_avgCharWidth and m_maxCharWidth for each platform and SVG.

        Those values for textarea and inputs were derived by doing a ton of manual
        testing of IE's width values for various textareas and fonts. On Windows we match
        IE exactly except for a couple fonts of the ~12 tested.

        To get the average and max character width of a font, we do the following
        for each platform:
        -Win: TextMetrics expose avgCharWidth and maxCharWidth
        -SVG: avgCharWidth = width of an '0', fallback on width of a space glyph, then m_xHeight
            maxCharWidth = width of a 'W' for roman fonts, fallback on m_ascent
        -Linux: avgCharWidth = width of an '0', fallback on m_xHeight
            maxCharWidth = max of avgCharWidth and m_ascent
        -Mac: Calculate the avgCharWidth and grab the maxCharWidth off the font.
            If either one is non-positive, then calculate the value using the Linux approach.

        Tests: fast/forms/text-control-intrinsic-widths.html
               fast/forms/textarea-metrics.html
               svg/custom/svg-fonts-in-text-controls.html

        * css/html4.css:
        * css/themeWin.css:
        * platform/graphics/SimpleFontData.cpp:
        (WebCore::SimpleFontData::SimpleFontData):
        (WebCore::SimpleFontData::initCharWidths):
        * platform/graphics/SimpleFontData.h:
        (WebCore::SimpleFontData::maxCharWidth):
        (WebCore::SimpleFontData::avgCharWidth):
        * platform/graphics/chromium/SimpleFontDataChromiumWin.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/chromium/SimpleFontDataLinux.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/gtk/SimpleFontDataGtk.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/gtk/SimpleFontDataPango.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/mac/SimpleFontDataMac.mm:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/qt/SimpleFontDataQt.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/win/SimpleFontDataCGWin.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/win/SimpleFontDataCairoWin.cpp:
        (WebCore::SimpleFontData::platformInit):
        (WebCore::SimpleFontData::platformCharWidthInit):
        * platform/graphics/win/SimpleFontDataWin.cpp:
        (WebCore::SimpleFontData::initGDIFont):
        * platform/graphics/wx/SimpleFontDataWx.cpp:
        (WebCore::SimpleFontData::platformCharWidthInit):
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::calcPrefWidths):
        * rendering/RenderTextControlMultiLine.cpp:
        (WebCore::RenderTextControlMultiLine::createInnerTextStyle):
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::preferredContentWidth):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@43007 268f45cc-cd09-0410-ab3c-d52691b4dbfc

729 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/tabindex-clamp-expected.txt
LayoutTests/fast/forms/drag-out-of-textarea.html
LayoutTests/fast/forms/resources/TEMPLATE.html [new file with mode: 0644]
LayoutTests/fast/forms/resources/text-control-intrinsic-widths.js [new file with mode: 0644]
LayoutTests/fast/forms/resources/textarea-metrics.js [new file with mode: 0644]
LayoutTests/fast/forms/search-abs-pos-cancel-button.html
LayoutTests/fast/forms/search-transformed.html
LayoutTests/fast/forms/search-zoomed.html
LayoutTests/fast/forms/text-control-intrinsic-widths-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/text-control-intrinsic-widths.html [new file with mode: 0644]
LayoutTests/fast/forms/textarea-appearance-wrap.html
LayoutTests/fast/forms/textarea-hard-linewrap.html
LayoutTests/fast/forms/textarea-metrics-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/textarea-metrics.html [new file with mode: 0644]
LayoutTests/fast/forms/textarea-width.html
LayoutTests/fast/replaced/table-percent-height-expected.txt
LayoutTests/fast/replaced/table-percent-height.html
LayoutTests/platform/mac-leopard/fast/forms/input-text-maxlength-expected.checksum
LayoutTests/platform/mac-leopard/fast/forms/input-text-maxlength-expected.png
LayoutTests/platform/mac-leopard/fast/forms/input-text-maxlength-expected.txt
LayoutTests/platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.checksum
LayoutTests/platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.png
LayoutTests/platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.txt
LayoutTests/platform/mac/editing/deleting/5168598-expected.checksum
LayoutTests/platform/mac/editing/deleting/5168598-expected.png
LayoutTests/platform/mac/editing/deleting/5168598-expected.txt
LayoutTests/platform/mac/editing/inserting/4960120-1-expected.checksum
LayoutTests/platform/mac/editing/inserting/4960120-1-expected.png
LayoutTests/platform/mac/editing/inserting/4960120-1-expected.txt
LayoutTests/platform/mac/editing/inserting/5607069-2-expected.checksum
LayoutTests/platform/mac/editing/inserting/5607069-2-expected.png
LayoutTests/platform/mac/editing/inserting/5607069-2-expected.txt
LayoutTests/platform/mac/editing/inserting/5607069-3-expected.checksum
LayoutTests/platform/mac/editing/inserting/5607069-3-expected.png
LayoutTests/platform/mac/editing/inserting/5607069-3-expected.txt
LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.checksum
LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.png
LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.txt
LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.checksum
LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.png
LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt
LayoutTests/platform/mac/editing/pasteboard/4806874-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/4806874-expected.png
LayoutTests/platform/mac/editing/pasteboard/4806874-expected.txt
LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.png
LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt
LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.png
LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.txt
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.png
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.png
LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt
LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.checksum
LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.png
LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.txt
LayoutTests/platform/mac/editing/selection/3690703-2-expected.checksum
LayoutTests/platform/mac/editing/selection/3690703-2-expected.png
LayoutTests/platform/mac/editing/selection/3690703-2-expected.txt
LayoutTests/platform/mac/editing/selection/3690703-expected.checksum
LayoutTests/platform/mac/editing/selection/3690703-expected.png
LayoutTests/platform/mac/editing/selection/3690703-expected.txt
LayoutTests/platform/mac/editing/selection/3690719-expected.checksum
LayoutTests/platform/mac/editing/selection/3690719-expected.png
LayoutTests/platform/mac/editing/selection/3690719-expected.txt
LayoutTests/platform/mac/editing/selection/4895428-3-expected.checksum
LayoutTests/platform/mac/editing/selection/4895428-3-expected.png
LayoutTests/platform/mac/editing/selection/4895428-3-expected.txt
LayoutTests/platform/mac/editing/selection/4975120-expected.checksum
LayoutTests/platform/mac/editing/selection/4975120-expected.png
LayoutTests/platform/mac/editing/selection/4975120-expected.txt
LayoutTests/platform/mac/editing/selection/5136696-expected.checksum
LayoutTests/platform/mac/editing/selection/5136696-expected.png
LayoutTests/platform/mac/editing/selection/5136696-expected.txt
LayoutTests/platform/mac/editing/selection/5213963-expected.checksum
LayoutTests/platform/mac/editing/selection/5213963-expected.png
LayoutTests/platform/mac/editing/selection/5213963-expected.txt
LayoutTests/platform/mac/editing/selection/drag-select-1-expected.checksum
LayoutTests/platform/mac/editing/selection/drag-select-1-expected.png
LayoutTests/platform/mac/editing/selection/drag-select-1-expected.txt
LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.checksum
LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.png
LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.txt
LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.checksum
LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.png
LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.txt
LayoutTests/platform/mac/fast/block/margin-collapse/103-expected.txt
LayoutTests/platform/mac/fast/css/line-height-expected.checksum
LayoutTests/platform/mac/fast/css/line-height-expected.png
LayoutTests/platform/mac/fast/css/line-height-expected.txt
LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.checksum
LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.png
LayoutTests/platform/mac/fast/css/resize-corner-tracking-expected.txt
LayoutTests/platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.checksum
LayoutTests/platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.png
LayoutTests/platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt
LayoutTests/platform/mac/fast/dom/isindex-002-expected.checksum
LayoutTests/platform/mac/fast/dom/isindex-002-expected.png
LayoutTests/platform/mac/fast/dom/isindex-002-expected.txt
LayoutTests/platform/mac/fast/dynamic/008-expected.checksum
LayoutTests/platform/mac/fast/dynamic/008-expected.png
LayoutTests/platform/mac/fast/dynamic/008-expected.txt
LayoutTests/platform/mac/fast/events/autoscroll-expected.checksum
LayoutTests/platform/mac/fast/events/autoscroll-expected.png
LayoutTests/platform/mac/fast/events/autoscroll-expected.txt
LayoutTests/platform/mac/fast/events/context-no-deselect-expected.checksum
LayoutTests/platform/mac/fast/events/context-no-deselect-expected.png
LayoutTests/platform/mac/fast/events/context-no-deselect-expected.txt
LayoutTests/platform/mac/fast/events/label-focus-expected.checksum
LayoutTests/platform/mac/fast/events/label-focus-expected.png
LayoutTests/platform/mac/fast/events/label-focus-expected.txt
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.checksum
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.png
LayoutTests/platform/mac/fast/forms/basic-textareas-expected.txt
LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.checksum
LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.png
LayoutTests/platform/mac/fast/forms/box-shadow-override-expected.txt
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.checksum
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.png
LayoutTests/platform/mac/fast/forms/control-restrict-line-height-expected.txt
LayoutTests/platform/mac/fast/forms/encoding-test-expected.checksum
LayoutTests/platform/mac/fast/forms/encoding-test-expected.png
LayoutTests/platform/mac/fast/forms/encoding-test-expected.txt
LayoutTests/platform/mac/fast/forms/fieldset-align-expected.checksum
LayoutTests/platform/mac/fast/forms/fieldset-align-expected.png
LayoutTests/platform/mac/fast/forms/fieldset-align-expected.txt
LayoutTests/platform/mac/fast/forms/form-element-geometry-expected.checksum
LayoutTests/platform/mac/fast/forms/form-element-geometry-expected.png
LayoutTests/platform/mac/fast/forms/form-element-geometry-expected.txt
LayoutTests/platform/mac/fast/forms/input-align-expected.checksum
LayoutTests/platform/mac/fast/forms/input-align-expected.png
LayoutTests/platform/mac/fast/forms/input-align-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-bkcolor-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-bkcolor-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-bkcolor-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-default-bkcolor-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-default-bkcolor-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-default-bkcolor-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-disabled-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-disabled-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-disabled-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-focus-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-height-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-preventDefault-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-preventDefault-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-preventDefault-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-readonly-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-selection-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-visibility-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-visibility-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-visibility-expected.txt
LayoutTests/platform/mac/fast/forms/input-appearance-width-expected.checksum
LayoutTests/platform/mac/fast/forms/input-appearance-width-expected.png
LayoutTests/platform/mac/fast/forms/input-appearance-width-expected.txt
LayoutTests/platform/mac/fast/forms/input-baseline-expected.checksum
LayoutTests/platform/mac/fast/forms/input-baseline-expected.png
LayoutTests/platform/mac/fast/forms/input-baseline-expected.txt
LayoutTests/platform/mac/fast/forms/input-disabled-color-expected.checksum
LayoutTests/platform/mac/fast/forms/input-disabled-color-expected.png
LayoutTests/platform/mac/fast/forms/input-disabled-color-expected.txt
LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.checksum
LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.png
LayoutTests/platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt
LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.checksum
LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.png
LayoutTests/platform/mac/fast/forms/input-paste-undo-expected.txt
LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.checksum
LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.png
LayoutTests/platform/mac/fast/forms/input-readonly-autoscroll-expected.txt
LayoutTests/platform/mac/fast/forms/input-readonly-dimmed-expected.checksum
LayoutTests/platform/mac/fast/forms/input-readonly-dimmed-expected.png
LayoutTests/platform/mac/fast/forms/input-readonly-dimmed-expected.txt
LayoutTests/platform/mac/fast/forms/input-readonly-empty-expected.checksum
LayoutTests/platform/mac/fast/forms/input-readonly-empty-expected.png
LayoutTests/platform/mac/fast/forms/input-readonly-empty-expected.txt
LayoutTests/platform/mac/fast/forms/input-spaces-expected.checksum
LayoutTests/platform/mac/fast/forms/input-spaces-expected.png
LayoutTests/platform/mac/fast/forms/input-spaces-expected.txt
LayoutTests/platform/mac/fast/forms/input-table-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.png
LayoutTests/platform/mac/fast/forms/input-text-click-inside-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.png
LayoutTests/platform/mac/fast/forms/input-text-click-outside-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.png
LayoutTests/platform/mac/fast/forms/input-text-double-click-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.png
LayoutTests/platform/mac/fast/forms/input-text-drag-down-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.png
LayoutTests/platform/mac/fast/forms/input-text-option-delete-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.png
LayoutTests/platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.png
LayoutTests/platform/mac/fast/forms/input-text-self-emptying-click-expected.txt
LayoutTests/platform/mac/fast/forms/input-text-word-wrap-expected.checksum
LayoutTests/platform/mac/fast/forms/input-text-word-wrap-expected.png
LayoutTests/platform/mac/fast/forms/input-text-word-wrap-expected.txt
LayoutTests/platform/mac/fast/forms/input-type-change2-expected.checksum
LayoutTests/platform/mac/fast/forms/input-type-change2-expected.png
LayoutTests/platform/mac/fast/forms/input-type-change2-expected.txt
LayoutTests/platform/mac/fast/forms/input-type-text-min-width-expected.checksum
LayoutTests/platform/mac/fast/forms/input-type-text-min-width-expected.png
LayoutTests/platform/mac/fast/forms/input-type-text-min-width-expected.txt
LayoutTests/platform/mac/fast/forms/input-value-expected.checksum
LayoutTests/platform/mac/fast/forms/input-value-expected.png
LayoutTests/platform/mac/fast/forms/input-value-expected.txt
LayoutTests/platform/mac/fast/forms/input-width-expected.checksum
LayoutTests/platform/mac/fast/forms/input-width-expected.png
LayoutTests/platform/mac/fast/forms/input-width-expected.txt
LayoutTests/platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.checksum
LayoutTests/platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.png
LayoutTests/platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.txt
LayoutTests/platform/mac/fast/forms/negativeLineHeight-expected.checksum
LayoutTests/platform/mac/fast/forms/negativeLineHeight-expected.png
LayoutTests/platform/mac/fast/forms/negativeLineHeight-expected.txt
LayoutTests/platform/mac/fast/forms/password-placeholder-expected.checksum
LayoutTests/platform/mac/fast/forms/password-placeholder-expected.png
LayoutTests/platform/mac/fast/forms/password-placeholder-expected.txt
LayoutTests/platform/mac/fast/forms/password-placeholder-text-security-expected.checksum
LayoutTests/platform/mac/fast/forms/password-placeholder-text-security-expected.png
LayoutTests/platform/mac/fast/forms/password-placeholder-text-security-expected.txt
LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.checksum
LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.png
LayoutTests/platform/mac/fast/forms/placeholder-pseudo-style-expected.txt
LayoutTests/platform/mac/fast/forms/placeholder-set-attribute-expected.checksum
LayoutTests/platform/mac/fast/forms/placeholder-set-attribute-expected.png
LayoutTests/platform/mac/fast/forms/placeholder-set-attribute-expected.txt
LayoutTests/platform/mac/fast/forms/placeholder-set-value-expected.checksum
LayoutTests/platform/mac/fast/forms/placeholder-set-value-expected.png
LayoutTests/platform/mac/fast/forms/placeholder-set-value-expected.txt
LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.checksum
LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.png
LayoutTests/platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt
LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.checksum
LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.png
LayoutTests/platform/mac/fast/forms/search-display-none-cancel-button-expected.txt
LayoutTests/platform/mac/fast/forms/search-placeholder-value-changed-expected.checksum
LayoutTests/platform/mac/fast/forms/search-placeholder-value-changed-expected.png
LayoutTests/platform/mac/fast/forms/search-placeholder-value-changed-expected.txt
LayoutTests/platform/mac/fast/forms/search-rtl-expected.checksum
LayoutTests/platform/mac/fast/forms/search-rtl-expected.png
LayoutTests/platform/mac/fast/forms/search-rtl-expected.txt
LayoutTests/platform/mac/fast/forms/search-transformed-expected.checksum
LayoutTests/platform/mac/fast/forms/search-transformed-expected.png
LayoutTests/platform/mac/fast/forms/search-transformed-expected.txt
LayoutTests/platform/mac/fast/forms/search-zoomed-expected.checksum
LayoutTests/platform/mac/fast/forms/search-zoomed-expected.png
LayoutTests/platform/mac/fast/forms/search-zoomed-expected.txt
LayoutTests/platform/mac/fast/forms/searchfield-heights-expected.checksum
LayoutTests/platform/mac/fast/forms/searchfield-heights-expected.png
LayoutTests/platform/mac/fast/forms/searchfield-heights-expected.txt
LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.checksum
LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.png
LayoutTests/platform/mac/fast/forms/tabbing-input-iframe-expected.txt
LayoutTests/platform/mac/fast/forms/textAreaLineHeight-expected.checksum
LayoutTests/platform/mac/fast/forms/textAreaLineHeight-expected.png
LayoutTests/platform/mac/fast/forms/textAreaLineHeight-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-align-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-align-expected.png
LayoutTests/platform/mac/fast/forms/textarea-align-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-rows-cols-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-rows-cols-expected.png
LayoutTests/platform/mac/fast/forms/textarea-rows-cols-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-scroll-height-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-scroll-height-expected.png
LayoutTests/platform/mac/fast/forms/textarea-scroll-height-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.png
LayoutTests/platform/mac/fast/forms/textarea-scrollbar-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.png
LayoutTests/platform/mac/fast/forms/textarea-scrolled-type-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-setinnerhtml-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-setinnerhtml-expected.png
LayoutTests/platform/mac/fast/forms/textarea-setinnerhtml-expected.txt
LayoutTests/platform/mac/fast/forms/textarea-width-expected.checksum
LayoutTests/platform/mac/fast/forms/textarea-width-expected.png
LayoutTests/platform/mac/fast/forms/textarea-width-expected.txt
LayoutTests/platform/mac/fast/forms/textfield-drag-into-disabled-expected.checksum
LayoutTests/platform/mac/fast/forms/textfield-drag-into-disabled-expected.png
LayoutTests/platform/mac/fast/forms/textfield-drag-into-disabled-expected.txt
LayoutTests/platform/mac/fast/forms/textfield-outline-expected.checksum
LayoutTests/platform/mac/fast/forms/textfield-outline-expected.png
LayoutTests/platform/mac/fast/forms/textfield-outline-expected.txt
LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.checksum
LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.png
LayoutTests/platform/mac/fast/forms/textfield-overflow-expected.txt
LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.checksum
LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.png
LayoutTests/platform/mac/fast/forms/visual-hebrew-text-field-expected.txt
LayoutTests/platform/mac/fast/invalid/residual-style-expected.txt
LayoutTests/platform/mac/fast/lists/dynamic-marker-crash-expected.checksum
LayoutTests/platform/mac/fast/lists/dynamic-marker-crash-expected.png
LayoutTests/platform/mac/fast/lists/dynamic-marker-crash-expected.txt
LayoutTests/platform/mac/fast/overflow/overflow-x-y-expected.checksum
LayoutTests/platform/mac/fast/overflow/overflow-x-y-expected.png
LayoutTests/platform/mac/fast/overflow/overflow-x-y-expected.txt
LayoutTests/platform/mac/fast/parser/comment-in-textarea-expected.checksum
LayoutTests/platform/mac/fast/parser/comment-in-textarea-expected.png
LayoutTests/platform/mac/fast/parser/comment-in-textarea-expected.txt
LayoutTests/platform/mac/fast/parser/entity-comment-in-textarea-expected.checksum
LayoutTests/platform/mac/fast/parser/entity-comment-in-textarea-expected.png
LayoutTests/platform/mac/fast/parser/entity-comment-in-textarea-expected.txt
LayoutTests/platform/mac/fast/parser/open-comment-in-textarea-expected.checksum
LayoutTests/platform/mac/fast/parser/open-comment-in-textarea-expected.png
LayoutTests/platform/mac/fast/parser/open-comment-in-textarea-expected.txt
LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum
LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png
LayoutTests/platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt
LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.checksum
LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.png
LayoutTests/platform/mac/fast/repaint/search-field-cancel-expected.txt
LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.checksum
LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.png
LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.txt
LayoutTests/platform/mac/fast/replaced/replaced-breaking-expected.checksum
LayoutTests/platform/mac/fast/replaced/replaced-breaking-expected.png
LayoutTests/platform/mac/fast/replaced/replaced-breaking-expected.txt
LayoutTests/platform/mac/fast/replaced/replaced-breaking-mixture-expected.checksum
LayoutTests/platform/mac/fast/replaced/replaced-breaking-mixture-expected.png
LayoutTests/platform/mac/fast/replaced/replaced-breaking-mixture-expected.txt
LayoutTests/platform/mac/fast/replaced/width100percent-searchfield-expected.checksum
LayoutTests/platform/mac/fast/replaced/width100percent-searchfield-expected.png
LayoutTests/platform/mac/fast/replaced/width100percent-searchfield-expected.txt
LayoutTests/platform/mac/fast/replaced/width100percent-textarea-expected.checksum
LayoutTests/platform/mac/fast/replaced/width100percent-textarea-expected.png
LayoutTests/platform/mac/fast/replaced/width100percent-textarea-expected.txt
LayoutTests/platform/mac/fast/replaced/width100percent-textfield-expected.checksum
LayoutTests/platform/mac/fast/replaced/width100percent-textfield-expected.png
LayoutTests/platform/mac/fast/replaced/width100percent-textfield-expected.txt
LayoutTests/platform/mac/fast/table/003-expected.checksum
LayoutTests/platform/mac/fast/table/003-expected.png
LayoutTests/platform/mac/fast/table/003-expected.txt
LayoutTests/platform/mac/fast/table/colspanMinWidth-expected.checksum
LayoutTests/platform/mac/fast/table/colspanMinWidth-expected.png
LayoutTests/platform/mac/fast/table/colspanMinWidth-expected.txt
LayoutTests/platform/mac/fast/table/spanOverlapRepaint-expected.checksum
LayoutTests/platform/mac/fast/table/spanOverlapRepaint-expected.png
LayoutTests/platform/mac/fast/table/spanOverlapRepaint-expected.txt
LayoutTests/platform/mac/fast/table/text-field-baseline-expected.checksum
LayoutTests/platform/mac/fast/table/text-field-baseline-expected.png
LayoutTests/platform/mac/fast/table/text-field-baseline-expected.txt
LayoutTests/platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.checksum
LayoutTests/platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.png
LayoutTests/platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.txt
LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.checksum
LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.png
LayoutTests/platform/mac/fast/text/textIteratorNilRenderer-expected.txt
LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.checksum
LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.png
LayoutTests/platform/mac/fast/transforms/transformed-focused-text-input-expected.txt
LayoutTests/platform/mac/http/tests/navigation/anchor-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/anchor-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/anchor-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/anchor-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/anchor-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/anchor-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/anchor-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/anchor-subframeload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-frames-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-frames-expected.png
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.png
LayoutTests/platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/metaredirect-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/metaredirect-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/metaredirect-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/metaredirect-frames-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/metaredirect-frames-expected.png
LayoutTests/platform/mac/http/tests/navigation/metaredirect-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/metaredirect-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/metaredirect-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/metaredirect-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/metaredirect-subframeload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/metaredirect-subframeload-expected.png
LayoutTests/platform/mac/http/tests/navigation/metaredirect-subframeload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/post-goback2-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/post-goback2-expected.png
LayoutTests/platform/mac/http/tests/navigation/post-goback2-expected.txt
LayoutTests/platform/mac/http/tests/navigation/postredirect-goback2-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/postredirect-goback2-expected.png
LayoutTests/platform/mac/http/tests/navigation/postredirect-goback2-expected.txt
LayoutTests/platform/mac/http/tests/navigation/redirect302-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/redirect302-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/redirect302-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/redirect302-frames-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/redirect302-frames-expected.png
LayoutTests/platform/mac/http/tests/navigation/redirect302-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/redirect302-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/redirect302-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/redirect302-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/redirect302-subframeload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/redirect302-subframeload-expected.png
LayoutTests/platform/mac/http/tests/navigation/redirect302-subframeload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/relativeanchor-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-frames-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-frames-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-frames-loadsame-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-frames-loadsame-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-frames-loadsame-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-loadsame-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-loadsame-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-loadsame-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-reload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-reload-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-reload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/success200-subframeload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/success200-subframeload-expected.png
LayoutTests/platform/mac/http/tests/navigation/success200-subframeload-expected.txt
LayoutTests/platform/mac/http/tests/navigation/timerredirect-basic-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/timerredirect-basic-expected.png
LayoutTests/platform/mac/http/tests/navigation/timerredirect-basic-expected.txt
LayoutTests/platform/mac/http/tests/navigation/timerredirect-frames-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/timerredirect-frames-expected.png
LayoutTests/platform/mac/http/tests/navigation/timerredirect-frames-expected.txt
LayoutTests/platform/mac/http/tests/navigation/timerredirect-goback-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/timerredirect-goback-expected.png
LayoutTests/platform/mac/http/tests/navigation/timerredirect-goback-expected.txt
LayoutTests/platform/mac/http/tests/navigation/timerredirect-subframeload-expected.checksum
LayoutTests/platform/mac/http/tests/navigation/timerredirect-subframeload-expected.png
LayoutTests/platform/mac/http/tests/navigation/timerredirect-subframeload-expected.txt
LayoutTests/platform/mac/svg/custom/inline-svg-in-xhtml-expected.checksum
LayoutTests/platform/mac/svg/custom/inline-svg-in-xhtml-expected.png
LayoutTests/platform/mac/svg/custom/inline-svg-in-xhtml-expected.txt
LayoutTests/platform/mac/svg/hixie/mixed/003-expected.checksum
LayoutTests/platform/mac/svg/hixie/mixed/003-expected.png
LayoutTests/platform/mac/svg/hixie/mixed/003-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug1188-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug12384-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug12384-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug12384-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug18359-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug18359-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug18359-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug194024-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug194024-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug194024-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug24200-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug24200-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug24200-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-2-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-2-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-2-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-3-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-3-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-3-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug2479-4-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug28928-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug28928-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug28928-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug30559-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug30559-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug30559-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug30692-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug30692-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug30692-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug4382-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug4382-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug4382-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug4527-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug4527-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug4527-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-1-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-1-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-1-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-2-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-2-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug46368-2-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug51037-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug51037-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug51037-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug55545-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug55545-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug55545-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug59354-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug59354-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug59354-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug7342-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug7342-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug7342-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug96334-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug96334-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug96334-expected.txt
LayoutTests/platform/mac/tables/mozilla/bugs/bug99948-expected.checksum
LayoutTests/platform/mac/tables/mozilla/bugs/bug99948-expected.png
LayoutTests/platform/mac/tables/mozilla/bugs/bug99948-expected.txt
LayoutTests/platform/mac/tables/mozilla/dom/tableDom-expected.checksum
LayoutTests/platform/mac/tables/mozilla/dom/tableDom-expected.png
LayoutTests/platform/mac/tables/mozilla/dom/tableDom-expected.txt
LayoutTests/platform/mac/tables/mozilla/other/move_row-expected.checksum
LayoutTests/platform/mac/tables/mozilla/other/move_row-expected.png
LayoutTests/platform/mac/tables/mozilla/other/move_row-expected.txt
LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt
LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.checksum
LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png
LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.txt
LayoutTests/platform/win/Skipped
LayoutTests/platform/win/editing/deleting/5168598-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/inserting/4960120-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/inserting/5607069-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/inserting/5607069-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/inserting/before-after-input-element-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/inserting/typing-tab-designmode-forms-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/pasteboard/4806874-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/pasteboard/drop-text-without-selection-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/pasteboard/nested-blocks-with-text-area-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/pasteboard/nested-blocks-with-text-field-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/pasteboard/pasting-tabs-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/3690703-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/3690703-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/3690719-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/4895428-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/5136696-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/5213963-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/drag-select-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/editing/selection/drag-text-delay-expected.txt
LayoutTests/platform/win/editing/selection/select-from-textfield-outwards-expected.txt
LayoutTests/platform/win/fast/css/line-height-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/css/resize-corner-tracking-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/dom/isindex-002-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/dom/tabindex-clamp-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/dynamic/008-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/events/autoscroll-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/events/context-no-deselect-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/events/label-focus-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/basic-textareas-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/box-shadow-override-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/control-restrict-line-height-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/encoding-test-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/fieldset-align-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-align-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-bkcolor-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-default-bkcolor-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-disabled-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-focus-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-height-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-preventDefault-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-readonly-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-selection-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-visibility-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-appearance-width-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-baseline-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-disabled-color-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-double-click-selection-gap-bug-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-paste-undo-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-readonly-dimmed-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-readonly-empty-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-spaces-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-table-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-click-inside-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-click-outside-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-double-click-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-drag-down-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-maxlength-expected.txt
LayoutTests/platform/win/fast/forms/input-text-option-delete-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-paste-maxlength-expected.txt
LayoutTests/platform/win/fast/forms/input-text-scroll-left-on-blur-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-self-emptying-click-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-text-word-wrap-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-type-change2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-type-text-min-width-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-value-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/input-width-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/password-placeholder-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/password-placeholder-text-security-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/placeholder-pseudo-style-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/placeholder-set-attribute-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/placeholder-set-value-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/search-cancel-button-style-sharing-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/search-display-none-cancel-button-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/search-placeholder-value-changed-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/search-rtl-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/search-transformed-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/tabbing-input-iframe-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/text-control-intrinsic-widths-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textAreaLineHeight-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-align-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-metrics-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-rows-cols-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-scrollbar-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-scrolled-type-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-setinnerhtml-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textarea-width-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textfield-drag-into-disabled-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textfield-outline-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/textfield-overflow-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/forms/visual-hebrew-text-field-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/lists/dynamic-marker-crash-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/overflow/overflow-x-y-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/parser/comment-in-textarea-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/parser/entity-comment-in-textarea-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/parser/open-comment-in-textarea-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/repaint/search-field-cancel-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/repaint/subtree-root-skipped-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/replaced/replaced-breaking-mixture-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/replaced/width100percent-searchfield-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/replaced/width100percent-textarea-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/replaced/width100percent-textfield-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/table/003-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/table/colspanMinWidth-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/table/spanOverlapRepaint-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/table/text-field-baseline-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/text/textIteratorNilRenderer-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/fast/transforms/transformed-focused-text-input-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/anchor-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/anchor-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/anchor-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/javascriptlink-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/javascriptlink-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/javascriptlink-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/metaredirect-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/metaredirect-frames-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/metaredirect-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/metaredirect-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/post-goback2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/postredirect-goback2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/redirect302-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/redirect302-frames-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/redirect302-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/redirect302-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/relativeanchor-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/relativeanchor-frames-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/relativeanchor-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/slowmetaredirect-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/slowtimerredirect-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-frames-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-frames-loadsame-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-loadsame-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-reload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/success200-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/timerredirect-basic-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/timerredirect-frames-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/timerredirect-goback-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/http/tests/navigation/timerredirect-subframeload-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/svg/custom/inline-svg-in-xhtml-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/svg/hixie/mixed/003-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug1188-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug12384-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug18359-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug24200-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug2479-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug2479-3-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug2479-4-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug28928-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug30559-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug4382-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug4527-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug46368-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug46368-2-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug51037-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug55545-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug59354-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug7342-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug96334-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/bugs/bug99948-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla/other/move_row-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/tables/mozilla_expected_failures/bugs/bug92647-1-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/resources/svg-fonts-in-text-controls.js [new file with mode: 0644]
LayoutTests/svg/custom/svg-fonts-in-text-controls-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/svg-fonts-in-text-controls.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/css/html4.css
WebCore/css/themeWin.css
WebCore/platform/graphics/SimpleFontData.cpp
WebCore/platform/graphics/SimpleFontData.h
WebCore/platform/graphics/chromium/SimpleFontDataChromiumWin.cpp
WebCore/platform/graphics/chromium/SimpleFontDataLinux.cpp
WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp
WebCore/platform/graphics/gtk/SimpleFontDataPango.cpp
WebCore/platform/graphics/mac/SimpleFontDataMac.mm
WebCore/platform/graphics/qt/SimpleFontDataQt.cpp
WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp
WebCore/platform/graphics/win/SimpleFontDataCairoWin.cpp
WebCore/platform/graphics/win/SimpleFontDataWin.cpp
WebCore/platform/graphics/wx/SimpleFontDataWx.cpp
WebCore/rendering/RenderTextControl.cpp
WebCore/rendering/RenderTextControlMultiLine.cpp
WebCore/rendering/RenderTextControlSingleLine.cpp

index 0d49e10ffe46f45ee69cd641bfb908dee1bd96d6..8415c0f9274777f90517246d8538fde83df20084 100644 (file)
@@ -1,3 +1,30 @@
+2009-04-28  Ojan Vafai  <ojan@chromium.org>
+
+        Reviewed by Dan Bernstein.
+
+        Make textarea and text input metrics more closely match IEs.
+
+        textarea-metrics.js tests the client/scroll/offset width and height
+        of textareas with various CSS applied to them in both quirks
+        and strict mode.
+
+        svg-fonts-in-text-controls tests that the average and max character
+        width of an svg font are correctly retrieved.
+
+        text-control-intrinsic-widths tests the widths of inputs and textareas with
+        different size/cols and different fonts set.
+        
+        Also, there are 3 tests that have Mac-specific metrics in their asserts. 
+        The results are actually correct for Windows, so I've added them 
+        to the Skipped list and promise I'll fix them in the next couple days.
+        It's just hard to manage a change that requires updating such a large
+        number of test expectations. The three tests are:
+          fast/forms/textarea-appearance-wrap.html
+          fast/forms/textarea-hard-linewrap.html
+          fast/replaced/table-percent-height.html
+        
+        Excluding list of updated results as the list is so long.
+
 2009-04-29  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Steve Falkenburg.
index 90fabc604b6e734ce1d4a11f75aed49e953eaa08..63daa3851698e05503cd1e5fa33a9b1cedfb9a48 100644 (file)
@@ -1,6 +1,6 @@
 This page tests that the tabindex attribute is clamped to values between -32768 and 32767. Values outside of this range should be clamped to the range limits.
 
-                
+                 
 Testing input elements in the page
 getAttribute("tabindex") = 40000; tabIndex = 32767
 getAttribute("tabindex") = 32768; tabIndex = 32767
index a289887bf3c8fdcbbf4f6381f3ff375f950e4204..d3d2c3a60d20b74803194b463b3307d7d302bf2d 100644 (file)
@@ -3,7 +3,7 @@
 function runTest() {
     var textarea = document.getElementById("textarea");
     var tx = textarea.offsetLeft + textarea.offsetWidth / 2;
-    var ty = textarea.offsetTop + 2;
+    var ty = textarea.offsetTop + 4;
 
     var input = document.getElementById("input");
     var ix = input.offsetLeft + input.offsetWidth / 2;
diff --git a/LayoutTests/fast/forms/resources/TEMPLATE.html b/LayoutTests/fast/forms/resources/TEMPLATE.html
new file mode 100644 (file)
index 0000000..70ce56c
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="YOUR_JS_FILE_HERE"></script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/fast/forms/resources/text-control-intrinsic-widths.js b/LayoutTests/fast/forms/resources/text-control-intrinsic-widths.js
new file mode 100644 (file)
index 0000000..34d2ba7
--- /dev/null
@@ -0,0 +1,34 @@
+description("This test measures the width of textareas and text inputs for different fonts.");
+
+var sizes = [1, 2, 3, 4, 5, 10, 20, 50, 100, 500, 1000];
+// This list was grabbed from Wikipedia
+// http://en.wikipedia.org/wiki/Core_fonts_for_the_Web
+// Impact was removed from the list as not all versions seem to have the same metrics
+var ms_web_fonts = ['Andale Mono', 'Arial', 'Comic Sans MS', 'Courier New', 'Georgia',
+                    'Times New Roman', 'Trebuchet MS', 'Verdana', 'Webdings'];
+
+// These are fonts we expect to see installed on all systems.
+var fonts = ['Lucida Grande', 'Courier', 'Helvetica', 'Monaco', 'Times'].concat(ms_web_fonts);
+
+function printElementWidth(tagname, font) {
+    debug('<b>' + tagname + '</b>');
+    var node = document.createElement(tagname);
+    node.style.fontFamily = font;
+    document.body.appendChild(node);
+    var sizeProperty = tagname == 'input' ? 'size' : 'cols';
+    for (var i = 0; i < sizes.length; i++) {
+        node[sizeProperty] = sizes[i];
+        debug(sizeProperty + '=' + sizes[i] + ' clientWidth=' + node.clientWidth);
+    }
+    document.body.removeChild(node);
+}
+
+for (var j = 0; j < fonts.length; j++) {
+    debug('<b>' + fonts[j] + '</b>');
+    printElementWidth('input', fonts[j]);
+    debug('')
+    printElementWidth('textarea', fonts[j]);
+    debug('');
+}
+
+var successfullyParsed = true;
diff --git a/LayoutTests/fast/forms/resources/textarea-metrics.js b/LayoutTests/fast/forms/resources/textarea-metrics.js
new file mode 100644 (file)
index 0000000..b601e8c
--- /dev/null
@@ -0,0 +1,171 @@
+description("This test checks that textareas have the right metrics. These numbers match IE7 except for scrollHeight. For two reasons:<br>" +
+"1. scrollHeight is different for elements without enough content to cause scroll because IE7 then reports the height of the text inside the " +
+"element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Gecko/WebKit have scrollHeight == clientHeight.<br>" +
+"2. For the elements with scroll in standards-mode, IE wraps the text differently. It seems to leave 2px less space for the text. We don't " +
+"currently mimic this quirk. It's not clear whether we should given that we agree with IE7's clientWidth numbers in all these cases.");
+
+if (window.layoutTestController)
+  window.layoutTestController.waitUntilDone();
+
+// IE needs some time to get all it's metrics calculated correctly.
+// But we don't want to slow down tests when running as run-webkit-tests.
+var timeout = window.layoutTestController ? 0 : 100;
+
+var numTextareasLeft = 1;
+function assertTextareaMetrics(doc, properties, expectedMetrics) {
+    var textarea = doc.createElement('textarea');
+    // Give some consistent CSS for consistent rendering across platforms
+    // and to help in reasoning when trying to match IE metrics.
+    var style = 'overflow-y:auto; font-family:Ahem; line-height:20px; height:50px; width:50px;';
+    var title = '';
+    for (property in properties) {
+        var value = properties[property];
+        title += ' ' + property + ': "' + value + '",';
+        if (property == 'style')
+            style += value;
+        else
+            textarea[property] = value;
+    }
+    textarea.style.cssText = style;
+    doc.body.appendChild(textarea);
+
+    // Create a more human-readable ID.
+    var id = title.replace(/[\'\",;\:]/g, ' ').replace(/ +/g, '-');
+    id = id == '' ? 'no-styles' : id;
+    textarea.id = id;
+
+    window[doc.compatMode + 'doc'] = doc;
+
+    numTextareasLeft++;
+    // Give a timeout so IE has time to figure out it's metrics.
+    setTimeout(function() {
+        if (!title)
+            title = ' none';
+
+        debug('Properties =' + title);
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').clientWidth", String(expectedMetrics.clientWidth));
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').clientHeight", String(expectedMetrics.clientHeight));
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').offsetWidth", String(expectedMetrics.offsetWidth));
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').offsetHeight", String(expectedMetrics.offsetHeight));
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').scrollWidth", String(expectedMetrics.scrollWidth));
+        shouldBe(doc.compatMode + "doc.getElementById('" + id + "').scrollHeight", String(expectedMetrics.scrollHeight));
+        debug('');
+
+        numTextareasLeft--;
+        if (!numTextareasLeft && window.layoutTestController)
+            window.layoutTestController.notifyDone();
+    }, timeout);
+}
+
+var smallHTML = 'A';
+var htmlThatCausesScroll = 'AAAAAAAAA';
+
+function testTextareasForDocument(doc, compatMode,
+        textareaSizes, textareaWithScrollSizes,
+        textareaWith8pxPaddingSizes, textareaWith8pxPaddingAndScrollbarSizes) {
+    if (doc.compatMode != compatMode)
+        testFailed('This doc should be in ' + compatMode + ' mode.');
+
+    try {
+        var scrollbarStyle = doc.createElement('style');
+        scrollbarStyle.innerText = 'textarea::-webkit-scrollbar{ width:17px }';
+        doc.getElementsByTagName('head')[0].appendChild(scrollbarStyle);
+    } catch (e) {
+        // IE throws an exception here, but doesn't need the above clause anyways.
+    }
+
+    debug('Testing ' + compatMode + ' document.')
+    assertTextareaMetrics(doc, {}, textareaSizes);
+    assertTextareaMetrics(doc, {disabled: true}, textareaSizes);
+    assertTextareaMetrics(doc, {innerHTML: smallHTML}, textareaSizes);
+    assertTextareaMetrics(doc, {innerHTML: htmlThatCausesScroll}, textareaWithScrollSizes);
+    assertTextareaMetrics(doc, {innerHTML: smallHTML, disabled: true}, textareaSizes);
+    assertTextareaMetrics(doc, {innerHTML: htmlThatCausesScroll, disabled: true}, textareaWithScrollSizes);
+    assertTextareaMetrics(doc, {innerHTML: smallHTML, style: 'padding:8px'}, textareaWith8pxPaddingSizes);
+    assertTextareaMetrics(doc, {innerHTML: htmlThatCausesScroll, style: 'padding:8px'}, textareaWith8pxPaddingAndScrollbarSizes);
+    assertTextareaMetrics(doc, {innerHTML: smallHTML, rows: 10}, textareaSizes);
+    assertTextareaMetrics(doc, {innerHTML: htmlThatCausesScroll, rows: 10}, textareaWithScrollSizes);
+}
+
+// For textareas with scrollbars have the expected clientWidth be the
+// expected offsetWidth - scrollbarPlusBorderWidth.
+// default border on textareas is 1px solid. So, the border width is 2.
+// And the scrollbarWidth we set to be 17 to match windows so that
+// these numbers will be platform independent and match IE.
+var scrollbarPlusBorderWidth = 19;
+
+var textareaSizesQuirks = {clientWidth: 48,
+                           clientHeight: 48,
+                           offsetWidth: 50,
+                           offsetHeight: 50,
+                           scrollWidth: 48,
+                           scrollHeight: 48};
+
+var textareaWithScrollSizesQuirks = {clientWidth: 50 - scrollbarPlusBorderWidth,
+                                     clientHeight: 48,
+                                     offsetWidth: 50,
+                                     offsetHeight: 50,
+                                     scrollWidth: 50 - scrollbarPlusBorderWidth,
+                                     scrollHeight: 104};
+
+var textareaWith8pxPaddingSizesQuirks = {clientWidth: 48,
+                                         clientHeight: 48,
+                                         offsetWidth: 50,
+                                         offsetHeight: 50,
+                                         scrollWidth: 48,
+                                         scrollHeight: 48};
+
+var textareaWith8pxPaddingAndScrollbarSizesQuirks = {clientWidth: 50 - scrollbarPlusBorderWidth,
+                                                     clientHeight: 48,
+                                                     offsetWidth: 50,
+                                                     offsetHeight: 50,
+                                                     scrollWidth: 50 - scrollbarPlusBorderWidth,
+                                                     scrollHeight: 196};
+
+testTextareasForDocument(document, 'BackCompat',
+                         textareaSizesQuirks, textareaWithScrollSizesQuirks,
+                         textareaWith8pxPaddingSizesQuirks, textareaWith8pxPaddingAndScrollbarSizesQuirks);
+
+var standardsIframe = document.createElement('iframe');
+standardsIframe.style.width = '100%';
+document.body.appendChild(standardsIframe);
+standardsIframe.contentWindow.document.write('<!DocType html><html><head></head><body></body></html>');
+standardsIframe.contentWindow.document.close();
+
+// Give a timeout so IE has time to figure out it's metrics.
+setTimeout(function() {
+    numTextareasLeft--;
+    var textareaSizesStandards = {clientWidth: 54,
+                                  clientHeight: 54,
+                                  offsetWidth: 56,
+                                  offsetHeight: 56,
+                                  scrollWidth: 54,
+                                  scrollHeight: 54};
+
+    var textareaWithScrollSizesStandards = {clientWidth: 56 - scrollbarPlusBorderWidth,
+                                            clientHeight: 54,
+                                            offsetWidth: 56,
+                                            offsetHeight: 56,
+                                            scrollWidth: 56 - scrollbarPlusBorderWidth,
+                                            scrollHeight: 64};
+
+    var textareaWith8pxPaddingSizesStandards = {clientWidth: 66,
+                                                clientHeight: 66,
+                                                offsetWidth: 68,
+                                                offsetHeight: 68,
+                                                scrollWidth: 66,
+                                                scrollHeight: 66};
+
+    var textareaWith8pxPaddingAndScrollbarSizesStandards = {clientWidth: 68 - scrollbarPlusBorderWidth,
+                                                            clientHeight: 66,
+                                                            offsetWidth: 68,
+                                                            offsetHeight: 68,
+                                                            scrollWidth: 68 - scrollbarPlusBorderWidth,
+                                                            scrollHeight: 76};
+
+    testTextareasForDocument(standardsIframe.contentWindow.document, 'CSS1Compat',
+                             textareaSizesStandards, textareaWithScrollSizesStandards,
+                             textareaWith8pxPaddingSizesStandards, textareaWith8pxPaddingAndScrollbarSizesStandards);
+}, timeout);
+
+var successfullyParsed = true;
index 77c5ee41d3c6bb294b7662a75227f5ff58b293f7..fa0dcff291b1e3953a4144d589ce11f6c2293a13 100644 (file)
@@ -18,7 +18,9 @@
     <script>
         if (window.eventSender) {
             var target = document.getElementById("target");
-            eventSender.mouseMoveTo(190, 62);
+            var x = target.offsetLeft + target.offsetWidth - 4;
+            var y = target.offsetTop + target.offsetHeight / 2;
+            eventSender.mouseMoveTo(x, y);
             eventSender.mouseDown();
             eventSender.mouseUp();
             var result = document.getElementById("result");
index 539c7f6c52db3229b916f7ab6e46ebbed21db086..da802ecc53b139a252649c9edad39f99a64ea1da 100644 (file)
     <script>
         if (window.eventSender) {
             var target = document.getElementById("target");
-            eventSender.mouseMoveTo(200, 122);
+            var translationAmount = 50;
+            var x = target.offsetLeft + target.offsetWidth + translationAmount - 5;
+            var y = target.offsetTop + target.offsetHeight + translationAmount - 5;
+            eventSender.mouseMoveTo(x, y);
             eventSender.mouseDown();
             eventSender.mouseUp();
             var result = document.getElementById("result");
index c318d829083e8956b2c8c4342faf8cdbfb02225c..8d98a0b2afde9f78ed157227eff1d59958f44e48 100644 (file)
     <script>
         if (window.eventSender) {
             var target = document.getElementById("target");
-            eventSender.mouseMoveTo(174, 84);
+            var x = target.offsetLeft + target.offsetWidth - 5;
+            var y = target.offsetTop + target.offsetHeight - 5;
+            x = x * 1.2;
+            y = y * 1.2;
+            eventSender.mouseMoveTo(x, y);
             eventSender.mouseDown();
             eventSender.mouseUp();
             var result = document.getElementById("result");
diff --git a/LayoutTests/fast/forms/text-control-intrinsic-widths-expected.txt b/LayoutTests/fast/forms/text-control-intrinsic-widths-expected.txt
new file mode 100644 (file)
index 0000000..bf7d717
--- /dev/null
@@ -0,0 +1,387 @@
+This test measures the width of textareas and text inputs for different fonts.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Lucida Grande
+input
+size=1 clientWidth=22
+size=2 clientWidth=27
+size=3 clientWidth=33
+size=4 clientWidth=38
+size=5 clientWidth=43
+size=10 clientWidth=70
+size=20 clientWidth=124
+size=50 clientWidth=286
+size=100 clientWidth=556
+size=500 clientWidth=2712
+size=1000 clientWidth=5407
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=30
+cols=3 clientWidth=36
+cols=4 clientWidth=41
+cols=5 clientWidth=46
+cols=10 clientWidth=73
+cols=20 clientWidth=127
+cols=50 clientWidth=289
+cols=100 clientWidth=559
+cols=500 clientWidth=2715
+cols=1000 clientWidth=5410
+
+Courier
+input
+size=1 clientWidth=13
+size=2 clientWidth=20
+size=3 clientWidth=27
+size=4 clientWidth=34
+size=5 clientWidth=41
+size=10 clientWidth=76
+size=20 clientWidth=146
+size=50 clientWidth=356
+size=100 clientWidth=706
+size=500 clientWidth=3506
+size=1000 clientWidth=7006
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=40
+cols=4 clientWidth=47
+cols=5 clientWidth=54
+cols=10 clientWidth=89
+cols=20 clientWidth=159
+cols=50 clientWidth=369
+cols=100 clientWidth=719
+cols=500 clientWidth=3519
+cols=1000 clientWidth=7019
+
+Helvetica
+input
+size=1 clientWidth=20
+size=2 clientWidth=25
+size=3 clientWidth=30
+size=4 clientWidth=35
+size=5 clientWidth=40
+size=10 clientWidth=64
+size=20 clientWidth=112
+size=50 clientWidth=257
+size=100 clientWidth=498
+size=500 clientWidth=2427
+size=1000 clientWidth=4838
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=34
+cols=4 clientWidth=39
+cols=5 clientWidth=44
+cols=10 clientWidth=68
+cols=20 clientWidth=116
+cols=50 clientWidth=261
+cols=100 clientWidth=502
+cols=500 clientWidth=2431
+cols=1000 clientWidth=4842
+
+Monaco
+input
+size=1 clientWidth=10
+size=2 clientWidth=17
+size=3 clientWidth=24
+size=4 clientWidth=31
+size=5 clientWidth=38
+size=10 clientWidth=73
+size=20 clientWidth=143
+size=50 clientWidth=353
+size=100 clientWidth=703
+size=500 clientWidth=3503
+size=1000 clientWidth=7003
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=40
+cols=4 clientWidth=47
+cols=5 clientWidth=54
+cols=10 clientWidth=89
+cols=20 clientWidth=159
+cols=50 clientWidth=369
+cols=100 clientWidth=719
+cols=500 clientWidth=3519
+cols=1000 clientWidth=7019
+
+Times
+input
+size=1 clientWidth=23
+size=2 clientWidth=28
+size=3 clientWidth=32
+size=4 clientWidth=37
+size=5 clientWidth=42
+size=10 clientWidth=65
+size=20 clientWidth=111
+size=50 clientWidth=250
+size=100 clientWidth=482
+size=500 clientWidth=2338
+size=1000 clientWidth=4657
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=33
+cols=4 clientWidth=38
+cols=5 clientWidth=43
+cols=10 clientWidth=66
+cols=20 clientWidth=112
+cols=50 clientWidth=251
+cols=100 clientWidth=483
+cols=500 clientWidth=2339
+cols=1000 clientWidth=4658
+
+Andale Mono
+input
+size=1 clientWidth=10
+size=2 clientWidth=17
+size=3 clientWidth=24
+size=4 clientWidth=31
+size=5 clientWidth=38
+size=10 clientWidth=73
+size=20 clientWidth=143
+size=50 clientWidth=353
+size=100 clientWidth=703
+size=500 clientWidth=3503
+size=1000 clientWidth=7003
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=40
+cols=4 clientWidth=47
+cols=5 clientWidth=54
+cols=10 clientWidth=89
+cols=20 clientWidth=159
+cols=50 clientWidth=369
+cols=100 clientWidth=719
+cols=500 clientWidth=3519
+cols=1000 clientWidth=7019
+
+Arial
+input
+size=1 clientWidth=26
+size=2 clientWidth=31
+size=3 clientWidth=36
+size=4 clientWidth=41
+size=5 clientWidth=46
+size=10 clientWidth=70
+size=20 clientWidth=118
+size=50 clientWidth=263
+size=100 clientWidth=504
+size=500 clientWidth=2433
+size=1000 clientWidth=4844
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=34
+cols=4 clientWidth=39
+cols=5 clientWidth=44
+cols=10 clientWidth=68
+cols=20 clientWidth=116
+cols=50 clientWidth=261
+cols=100 clientWidth=502
+cols=500 clientWidth=2431
+cols=1000 clientWidth=4842
+
+Comic Sans MS
+input
+size=1 clientWidth=18
+size=2 clientWidth=23
+size=3 clientWidth=28
+size=4 clientWidth=33
+size=5 clientWidth=38
+size=10 clientWidth=64
+size=20 clientWidth=115
+size=50 clientWidth=269
+size=100 clientWidth=525
+size=500 clientWidth=2575
+size=1000 clientWidth=5138
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=30
+cols=3 clientWidth=35
+cols=4 clientWidth=40
+cols=5 clientWidth=45
+cols=10 clientWidth=71
+cols=20 clientWidth=122
+cols=50 clientWidth=276
+cols=100 clientWidth=532
+cols=500 clientWidth=2582
+cols=1000 clientWidth=5145
+
+Courier New
+input
+size=1 clientWidth=10
+size=2 clientWidth=17
+size=3 clientWidth=24
+size=4 clientWidth=31
+size=5 clientWidth=38
+size=10 clientWidth=73
+size=20 clientWidth=143
+size=50 clientWidth=353
+size=100 clientWidth=703
+size=500 clientWidth=3503
+size=1000 clientWidth=7003
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=40
+cols=4 clientWidth=47
+cols=5 clientWidth=54
+cols=10 clientWidth=89
+cols=20 clientWidth=159
+cols=50 clientWidth=369
+cols=100 clientWidth=719
+cols=500 clientWidth=3519
+cols=1000 clientWidth=7019
+
+Georgia
+input
+size=1 clientWidth=17
+size=2 clientWidth=22
+size=3 clientWidth=27
+size=4 clientWidth=32
+size=5 clientWidth=37
+size=10 clientWidth=61
+size=20 clientWidth=110
+size=50 clientWidth=256
+size=100 clientWidth=500
+size=500 clientWidth=2448
+size=1000 clientWidth=4883
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=34
+cols=4 clientWidth=39
+cols=5 clientWidth=44
+cols=10 clientWidth=68
+cols=20 clientWidth=117
+cols=50 clientWidth=263
+cols=100 clientWidth=507
+cols=500 clientWidth=2455
+cols=1000 clientWidth=4890
+
+Times New Roman
+input
+size=1 clientWidth=26
+size=2 clientWidth=31
+size=3 clientWidth=35
+size=4 clientWidth=40
+size=5 clientWidth=45
+size=10 clientWidth=68
+size=20 clientWidth=114
+size=50 clientWidth=253
+size=100 clientWidth=485
+size=500 clientWidth=2341
+size=1000 clientWidth=4660
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=33
+cols=4 clientWidth=38
+cols=5 clientWidth=43
+cols=10 clientWidth=66
+cols=20 clientWidth=112
+cols=50 clientWidth=251
+cols=100 clientWidth=483
+cols=500 clientWidth=2339
+cols=1000 clientWidth=4658
+
+Trebuchet MS
+input
+size=1 clientWidth=16
+size=2 clientWidth=21
+size=3 clientWidth=26
+size=4 clientWidth=31
+size=5 clientWidth=36
+size=10 clientWidth=60
+size=20 clientWidth=108
+size=50 clientWidth=254
+size=100 clientWidth=496
+size=500 clientWidth=2436
+size=1000 clientWidth=4860
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=34
+cols=4 clientWidth=39
+cols=5 clientWidth=44
+cols=10 clientWidth=68
+cols=20 clientWidth=116
+cols=50 clientWidth=262
+cols=100 clientWidth=504
+cols=500 clientWidth=2444
+cols=1000 clientWidth=4868
+
+Verdana
+input
+size=1 clientWidth=20
+size=2 clientWidth=26
+size=3 clientWidth=32
+size=4 clientWidth=38
+size=5 clientWidth=43
+size=10 clientWidth=72
+size=20 clientWidth=130
+size=50 clientWidth=303
+size=100 clientWidth=591
+size=500 clientWidth=2895
+size=1000 clientWidth=5775
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=31
+cols=3 clientWidth=37
+cols=4 clientWidth=43
+cols=5 clientWidth=48
+cols=10 clientWidth=77
+cols=20 clientWidth=135
+cols=50 clientWidth=308
+cols=100 clientWidth=596
+cols=500 clientWidth=2900
+cols=1000 clientWidth=5780
+
+Webdings
+input
+size=1 clientWidth=19
+size=2 clientWidth=29
+size=3 clientWidth=39
+size=4 clientWidth=49
+size=5 clientWidth=59
+size=10 clientWidth=109
+size=20 clientWidth=210
+size=50 clientWidth=512
+size=100 clientWidth=1015
+size=500 clientWidth=5043
+size=1000 clientWidth=10078
+
+textarea
+cols=1 clientWidth=30
+cols=2 clientWidth=40
+cols=3 clientWidth=50
+cols=4 clientWidth=60
+cols=5 clientWidth=70
+cols=10 clientWidth=120
+cols=20 clientWidth=221
+cols=50 clientWidth=523
+cols=100 clientWidth=1026
+cols=500 clientWidth=5054
+cols=1000 clientWidth=10089
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/forms/text-control-intrinsic-widths.html b/LayoutTests/fast/forms/text-control-intrinsic-widths.html
new file mode 100644 (file)
index 0000000..00a36d9
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="resources/text-control-intrinsic-widths.js"></script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
index 9d4256bd37b176b7aa9286197a7a587df3364dc3..ad6595b28cf22ea9d879448ec0ebfd1df2a0a095 100644 (file)
@@ -40,7 +40,7 @@ if (document.URL.substring(0, 4) == "file") {
         
         // wrap = hard
         result = unescape(urlString.substring(index1, index2 - 1));
-        expectedResult = unescape("ta_WrapHard=1234567%0D%0A89");
+        expectedResult = unescape("ta_WrapHard=123456%0D%0A789");
         if (result == expectedResult)
             log("<p>wrap=hard : Success</p>");
         else
@@ -64,7 +64,7 @@ if (document.URL.substring(0, 4) == "file") {
     
         // wrap = hard - RTL text
         result = unescape(urlString.substring(index4, index5 - 1));
-        expectedResult = unescape("ta_WrapHardRTL=&#1488;&#1489;&#1490;&#1488;&#1489;&#1490;&#1488;&#1489;%0D%0A&#1490;&#1488;&#1489;&#1490;");
+        expectedResult = unescape("ta_WrapHardRTL=&#1488;&#1489;&#1490;&#1488;&#1489;&#1490;%0D%0A&#1488;&#1489;&#1490;&#1488;&#1489;&#1490;");
         if (result == expectedResult)
             log("<p>wrap=hard rtl text: Success</p>");
         else
@@ -72,7 +72,7 @@ if (document.URL.substring(0, 4) == "file") {
 
         // wrap = hard, mixed rtl and ltr text
         result = unescape(urlString.substring(index5, index6 - 1));
-        expectedResult = unescape("ta_WrapHardBidi=abc&#1488;&#1489;&#1490;&#1488;&#1489;%0D%0A&#1490;abc");
+        expectedResult = unescape("ta_WrapHardBidi=abc&#1488;&#1489;&#1490;%0D%0A&#1488;&#1489;&#1490;abc");
         if (result == expectedResult)
             log("<p>wrap=hard mixed rtl and ltr text: Success</p>");
         else
@@ -80,7 +80,7 @@ if (document.URL.substring(0, 4) == "file") {
 
         // wrap = hard, visibility:hidden
         result = unescape(urlString.substring(index6, index7 - 1));
-        expectedResult = unescape("ta_WrapHardHidden=1234567%0D%0A89");
+        expectedResult = unescape("ta_WrapHardHidden=123456%0D%0A789");
         if (result == expectedResult)
             log("<p>wrap=hard visibility:hidden: Success</p>");
         else
index 775e48722676de1ea4ddb80517604b703b6553de..612ceec09a5f1c67a0d285cecf1b5e2297a936a7 100644 (file)
@@ -16,10 +16,12 @@ if (document.URL.indexOf('?') == -1) {
     document.f.submit();
 } else {
     var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length);
-    if (formData == "textarea=1234567%0D%0A89")
+    var expectedTextareaContents = "textarea=123456%0D%0A789";
+    if (formData == expectedTextareaContents)
         document.write("Success");
     else
-        document.write("Failure.  The form data that should have been submitted: textarea=1234567%0D%0A89<br>This is what was actually submitted: " + formData);    
+        document.write("Failure.  The form data that should have been submitted: " +
+            expectedTextareaContents + "<br>This is what was actually submitted: " + formData);    
     if (window.layoutTestController)
         window.layoutTestController.notifyDone();
 }
diff --git a/LayoutTests/fast/forms/textarea-metrics-expected.txt b/LayoutTests/fast/forms/textarea-metrics-expected.txt
new file mode 100644 (file)
index 0000000..e86e46c
--- /dev/null
@@ -0,0 +1,173 @@
+This test checks that textareas have the right metrics. These numbers match IE7 except for scrollHeight. For two reasons:
+1. scrollHeight is different for elements without enough content to cause scroll because IE7 then reports the height of the text inside the element as the scrollHeight. IE8 reports has scrollHeight == offsetHeight. Gecko/WebKit have scrollHeight == clientHeight.
+2. For the elements with scroll in standards-mode, IE wraps the text differently. It seems to leave 2px less space for the text. We don't currently mimic this quirk. It's not clear whether we should given that we agree with IE7's clientWidth numbers in all these cases.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Testing BackCompat document.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Properties = none
+PASS BackCompatdoc.getElementById('no-styles').clientWidth is 48
+PASS BackCompatdoc.getElementById('no-styles').clientHeight is 48
+PASS BackCompatdoc.getElementById('no-styles').offsetWidth is 50
+PASS BackCompatdoc.getElementById('no-styles').offsetHeight is 50
+PASS BackCompatdoc.getElementById('no-styles').scrollWidth is 48
+PASS BackCompatdoc.getElementById('no-styles').scrollHeight is 48
+
+Properties = disabled: "true",
+PASS BackCompatdoc.getElementById('-disabled-true-').clientWidth is 48
+PASS BackCompatdoc.getElementById('-disabled-true-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-disabled-true-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-disabled-true-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-disabled-true-').scrollWidth is 48
+PASS BackCompatdoc.getElementById('-disabled-true-').scrollHeight is 48
+
+Properties = innerHTML: "A",
+PASS BackCompatdoc.getElementById('-innerHTML-A-').clientWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-').scrollWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-').scrollHeight is 48
+
+Properties = innerHTML: "AAAAAAAAA",
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').clientWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').scrollWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-').scrollHeight is 104
+
+Properties = innerHTML: "A", disabled: "true",
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').clientWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').scrollWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-disabled-true-').scrollHeight is 48
+
+Properties = innerHTML: "AAAAAAAAA", disabled: "true",
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').clientWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').scrollWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').scrollHeight is 104
+
+Properties = innerHTML: "A", style: "padding:8px",
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').clientWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').scrollWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-style-padding-8px-').scrollHeight is 48
+
+Properties = innerHTML: "AAAAAAAAA", style: "padding:8px",
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').clientWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').scrollWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').scrollHeight is 196
+
+Properties = innerHTML: "A", rows: "10",
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').clientWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').scrollWidth is 48
+PASS BackCompatdoc.getElementById('-innerHTML-A-rows-10-').scrollHeight is 48
+
+Properties = innerHTML: "AAAAAAAAA", rows: "10",
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').clientWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').clientHeight is 48
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').offsetWidth is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').offsetHeight is 50
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').scrollWidth is 31
+PASS BackCompatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').scrollHeight is 104
+
+Testing CSS1Compat document.
+Properties = none
+PASS CSS1Compatdoc.getElementById('no-styles').clientWidth is 54
+PASS CSS1Compatdoc.getElementById('no-styles').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('no-styles').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('no-styles').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('no-styles').scrollWidth is 54
+PASS CSS1Compatdoc.getElementById('no-styles').scrollHeight is 54
+
+Properties = disabled: "true",
+PASS CSS1Compatdoc.getElementById('-disabled-true-').clientWidth is 54
+PASS CSS1Compatdoc.getElementById('-disabled-true-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-disabled-true-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-disabled-true-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-disabled-true-').scrollWidth is 54
+PASS CSS1Compatdoc.getElementById('-disabled-true-').scrollHeight is 54
+
+Properties = innerHTML: "A",
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').clientWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').scrollWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-').scrollHeight is 54
+
+Properties = innerHTML: "AAAAAAAAA",
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').clientWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').scrollWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-').scrollHeight is 64
+
+Properties = innerHTML: "A", disabled: "true",
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').clientWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').scrollWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-disabled-true-').scrollHeight is 54
+
+Properties = innerHTML: "AAAAAAAAA", disabled: "true",
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').clientWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').scrollWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-disabled-true-').scrollHeight is 64
+
+Properties = innerHTML: "A", style: "padding:8px",
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').clientWidth is 66
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').clientHeight is 66
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').offsetWidth is 68
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').offsetHeight is 68
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').scrollWidth is 66
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-style-padding-8px-').scrollHeight is 66
+
+Properties = innerHTML: "AAAAAAAAA", style: "padding:8px",
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').clientWidth is 49
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').clientHeight is 66
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').offsetWidth is 68
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').offsetHeight is 68
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').scrollWidth is 49
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-style-padding-8px-').scrollHeight is 76
+
+Properties = innerHTML: "A", rows: "10",
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').clientWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').scrollWidth is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-A-rows-10-').scrollHeight is 54
+
+Properties = innerHTML: "AAAAAAAAA", rows: "10",
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').clientWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').clientHeight is 54
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').offsetWidth is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').offsetHeight is 56
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').scrollWidth is 37
+PASS CSS1Compatdoc.getElementById('-innerHTML-AAAAAAAAA-rows-10-').scrollHeight is 64
+
+
diff --git a/LayoutTests/fast/forms/textarea-metrics.html b/LayoutTests/fast/forms/textarea-metrics.html
new file mode 100644 (file)
index 0000000..8009a93
--- /dev/null
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="resources/textarea-metrics.js"></script>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
index 64ebf32781d5d6e5df1f02430110ae175acbcb70..dcab5366db93b7400edda4d7b0620931eb8fd3cc 100644 (file)
@@ -5,10 +5,7 @@
 </style>
 </head>
 <body>
-<div>This text area should be drawn with a reasonable width. To meet the specified 'cols="88"',
-it should wrap after the X in the third set of capital letters.  Alternatively, to match IE,
-it should wrap at 66 characters (after the X in the third set of digits).
-See https://bugs.webkit.org/show_bug.cgi?id=15312 .</div><br />
+<div>This text area should be drawn with a reasonable width. To match IE, using GDI fonts it should wrap at 66 characters (after the X in the third set of digits). See https://bugs.webkit.org/show_bug.cgi?id=15312.</div><br />
 <textarea rows="20" cols="88" wrap="soft" class="input">
 1234567890abcdefghijABCDEFGHIJ1234567890abcdefghijABCDEFGHIJ12345X7890abcdefghijABCDEFGXIJ1234567890abcdefghijABCDEFGHIJ
 </textarea>
index 9f35852f93aa33167aa66071fbd3133afe0c91d1..81da53e6910df1c5a16438c617619d9653549d71 100644 (file)
@@ -71,9 +71,9 @@ PASS getComputedStyleForElement(document.getElementById('input-image-75'), 'widt
 PASS getComputedStyleForElement(document.getElementById('input-image-75'), 'height') is '75px'
 PASS getComputedStyleForElement(document.getElementById('input-image-100'), 'width') is '100px'
 PASS getComputedStyleForElement(document.getElementById('input-image-100'), 'height') is '100px'
-PASS getComputedStyleForElement(document.getElementById('input-password-75'), 'width') is '148px'
+PASS getComputedStyleForElement(document.getElementById('input-password-75'), 'width') is '128px'
 PASS getComputedStyleForElement(document.getElementById('input-password-75'), 'height') is '8px'
-PASS getComputedStyleForElement(document.getElementById('input-password-100'), 'width') is '148px'
+PASS getComputedStyleForElement(document.getElementById('input-password-100'), 'width') is '128px'
 PASS getComputedStyleForElement(document.getElementById('input-password-100'), 'height') is '13px'
 PASS getComputedStyleForElement(document.getElementById('input-radio-75'), 'width') is '12px'
 PASS getComputedStyleForElement(document.getElementById('input-radio-75'), 'height') is '4px'
@@ -87,22 +87,22 @@ PASS getComputedStyleForElement(document.getElementById('input-submit-75'), 'wid
 PASS getComputedStyleForElement(document.getElementById('input-submit-75'), 'height') is '18px'
 PASS getComputedStyleForElement(document.getElementById('input-submit-100'), 'width') is '54px'
 PASS getComputedStyleForElement(document.getElementById('input-submit-100'), 'height') is '18px'
-PASS getComputedStyleForElement(document.getElementById('input-text-75'), 'width') is '148px'
+PASS getComputedStyleForElement(document.getElementById('input-text-75'), 'width') is '128px'
 PASS getComputedStyleForElement(document.getElementById('input-text-75'), 'height') is '8px'
-PASS getComputedStyleForElement(document.getElementById('input-text-100'), 'width') is '148px'
+PASS getComputedStyleForElement(document.getElementById('input-text-100'), 'width') is '128px'
 PASS getComputedStyleForElement(document.getElementById('input-text-100'), 'height') is '13px'
-PASS getComputedStyleForElement(document.getElementById('isindex-75'), 'width') is '142px'
+PASS getComputedStyleForElement(document.getElementById('isindex-75'), 'width') is '122px'
 PASS getComputedStyleForElement(document.getElementById('isindex-75'), 'height') is '35px'
-PASS getComputedStyleForElement(document.getElementById('isindex-100'), 'width') is '142px'
+PASS getComputedStyleForElement(document.getElementById('isindex-100'), 'width') is '122px'
 PASS getComputedStyleForElement(document.getElementById('isindex-100'), 'height') is '49px'
 PASS getComputedStyleForElement(document.getElementById('select-75'), 'width') is '68px'
 PASS getComputedStyleForElement(document.getElementById('select-75'), 'height') is '18px'
 PASS getComputedStyleForElement(document.getElementById('select-100'), 'width') is '68px'
 PASS getComputedStyleForElement(document.getElementById('select-100'), 'height') is '18px'
-PASS getComputedStyleForElement(document.getElementById('textarea-75'), 'width') is '163px'
+PASS getComputedStyleForElement(document.getElementById('textarea-75'), 'width') is '129px'
 PASS getComputedStyleForElement(document.getElementById('textarea-75'), 'height') is '19px'
-PASS getComputedStyleForElement(document.getElementById('textarea-100'), 'width') is '163px'
-PASS getComputedStyleForElement(document.getElementById('textarea-100'), 'height') is '26px'
+PASS getComputedStyleForElement(document.getElementById('textarea-100'), 'width') is '129px'
+PASS getComputedStyleForElement(document.getElementById('textarea-100'), 'height') is '28px'
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 282b035c3345ec417ae5b23326e617c2c996b1bf..4f8edc8fb92521af3105e558a0933c36f2bf8768 100644 (file)
@@ -73,9 +73,9 @@ function test()
     shouldBe("getComputedStyleForElement(document.getElementById('input-image-100'), 'width')", "'100px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-image-100'), 'height')", "'100px'");
 
-    shouldBe("getComputedStyleForElement(document.getElementById('input-password-75'), 'width')", "'148px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('input-password-75'), 'width')", "'128px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-password-75'), 'height')", "'8px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('input-password-100'), 'width')", "'148px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('input-password-100'), 'width')", "'128px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-password-100'), 'height')", "'13px'");
 
     shouldBe("getComputedStyleForElement(document.getElementById('input-radio-75'), 'width')", "'12px'");
@@ -93,14 +93,14 @@ function test()
     shouldBe("getComputedStyleForElement(document.getElementById('input-submit-100'), 'width')", "'54px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-submit-100'), 'height')", "'18px'");
 
-    shouldBe("getComputedStyleForElement(document.getElementById('input-text-75'), 'width')", "'148px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('input-text-75'), 'width')", "'128px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-text-75'), 'height')", "'8px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('input-text-100'), 'width')", "'148px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('input-text-100'), 'width')", "'128px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-text-100'), 'height')", "'13px'");
 
-    shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'width')", "'142px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'width')", "'122px'");
     shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'height')", "'35px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('isindex-100'), 'width')", "'142px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('isindex-100'), 'width')", "'122px'");
     shouldBe("getComputedStyleForElement(document.getElementById('isindex-100'), 'height')", "'49px'");
 
     shouldBe("getComputedStyleForElement(document.getElementById('select-75'), 'width')", "'68px'");
@@ -108,10 +108,10 @@ function test()
     shouldBe("getComputedStyleForElement(document.getElementById('select-100'), 'width')", "'68px'");
     shouldBe("getComputedStyleForElement(document.getElementById('select-100'), 'height')", "'18px'");
 
-    shouldBe("getComputedStyleForElement(document.getElementById('textarea-75'), 'width')", "'163px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('textarea-75'), 'width')", "'129px'");
     shouldBe("getComputedStyleForElement(document.getElementById('textarea-75'), 'height')", "'19px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('textarea-100'), 'width')", "'163px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('textarea-100'), 'height')", "'26px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('textarea-100'), 'width')", "'129px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('textarea-100'), 'height')", "'28px'");
 
     isSuccessfullyParsed();
 
index e3a9318b042d8d39f0575b372ddb2b4c1e79cbbd..ce4dd31b800e1ad4307d2440e85095ff10a14590 100644 (file)
@@ -1 +1 @@
-9e6f257f5a1422ea260c9c4784615d01
\ No newline at end of file
+5c1bc46f6d013835846271faa26f989d
\ No newline at end of file
index af96bf09593d28c3da8691ffd7c611be8d47d81d..d4e79c98f8a43959470bb471867b3bfca100a8f0 100644 (file)
Binary files a/LayoutTests/platform/mac-leopard/fast/forms/input-text-maxlength-expected.png and b/LayoutTests/platform/mac-leopard/fast/forms/input-text-maxlength-expected.png differ
index d17ffa175a7a9d880d633b7387b4de16daf3496c..145d4a1218a52b6d48f0da2b2920a7aa2544dfad 100644 (file)
@@ -3,197 +3,197 @@ 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
-      RenderTable {TABLE} at (0,0) size 453x326
-        RenderTableSection {TBODY} at (0,0) size 453x326
-          RenderTableRow {TR} at (0,2) size 453x25
-            RenderTableCell {TD} at (2,2) size 49x25 [r=0 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,7) size 96x15 [color=#808080] [r=0 c=1 rs=1 cs=1]
+      RenderTable {TABLE} at (0,0) size 457x326
+        RenderTableSection {TBODY} at (0,0) size 457x326
+          RenderTableRow {TR} at (0,2) size 457x25
+            RenderTableCell {TD} at (2,2) size 53x25 [r=0 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,7) size 96x15 [color=#808080] [r=0 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,7) size 300x15 [r=0 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,7) size 300x15 [r=0 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 281x13
                 text run at (1,1) width 281: "maxlength and value that violates it, maxlength first"
-          RenderTableRow {TR} at (0,29) size 453x25
-            RenderTableCell {TD} at (2,29) size 49x25 [r=1 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,34) size 96x15 [color=#808080] [r=1 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,29) size 457x25
+            RenderTableCell {TD} at (2,29) size 53x25 [r=1 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,34) size 96x15 [color=#808080] [r=1 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,34) size 300x15 [r=1 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,34) size 300x15 [r=1 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 251x13
                 text run at (1,1) width 251: "maxlength and value that violates it, value first"
-          RenderTableRow {TR} at (0,56) size 453x25
-            RenderTableCell {TD} at (2,56) size 49x25 [r=2 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,61) size 96x15 [color=#808080] [r=2 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,56) size 457x25
+            RenderTableCell {TD} at (2,56) size 53x25 [r=2 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,61) size 96x15 [color=#808080] [r=2 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,61) size 300x15 [r=2 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,61) size 300x15 [r=2 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 226x13
                 text run at (1,1) width 226: "set value attribute that violates maxlength"
-          RenderTableRow {TR} at (0,83) size 453x25
-            RenderTableCell {TD} at (2,83) size 49x25 [r=3 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,88) size 96x15 [color=#808080] [r=3 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,83) size 457x25
+            RenderTableCell {TD} at (2,83) size 53x25 [r=3 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,88) size 96x15 [color=#808080] [r=3 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,88) size 300x15 [r=3 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,88) size 300x15 [r=3 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 226x13
                 text run at (1,1) width 226: "set value property that violates maxlength"
-          RenderTableRow {TR} at (0,110) size 453x25
-            RenderTableCell {TD} at (2,110) size 49x25 [r=4 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,115) size 96x15 [color=#808080] [r=4 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,110) size 457x25
+            RenderTableCell {TD} at (2,110) size 53x25 [r=4 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,115) size 96x15 [color=#808080] [r=4 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,115) size 300x15 [r=4 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,115) size 300x15 [r=4 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 296x13
                 text run at (1,1) width 296: "set maxlength attribute that is smaller than initial value"
-          RenderTableRow {TR} at (0,137) size 453x25
-            RenderTableCell {TD} at (2,137) size 49x25 [r=5 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,142) size 96x15 [color=#808080] [r=5 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,137) size 457x25
+            RenderTableCell {TD} at (2,137) size 53x25 [r=5 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,142) size 96x15 [color=#808080] [r=5 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,142) size 300x15 [r=5 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,142) size 300x15 [r=5 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 298x13
                 text run at (1,1) width 298: "set maxLength property that is smaller than initial value"
-          RenderTableRow {TR} at (0,164) size 453x25
-            RenderTableCell {TD} at (2,164) size 49x25 [r=6 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,169) size 96x15 [color=#808080] [r=6 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,164) size 457x25
+            RenderTableCell {TD} at (2,164) size 53x25 [r=6 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,169) size 96x15 [color=#808080] [r=6 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,169) size 300x15 [r=6 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,169) size 300x15 [r=6 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 281x13
                 text run at (1,1) width 281: "maxlength and value that violates it, maxlength first"
-          RenderTableRow {TR} at (0,191) size 453x25
-            RenderTableCell {TD} at (2,191) size 49x25 [r=7 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,196) size 96x15 [color=#808080] [r=7 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,191) size 457x25
+            RenderTableCell {TD} at (2,191) size 53x25 [r=7 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,196) size 96x15 [color=#808080] [r=7 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,196) size 300x15 [r=7 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,196) size 300x15 [r=7 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 251x13
                 text run at (1,1) width 251: "maxlength and value that violates it, value first"
-          RenderTableRow {TR} at (0,218) size 453x25
-            RenderTableCell {TD} at (2,218) size 49x25 [r=8 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,223) size 96x15 [color=#808080] [r=8 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,218) size 457x25
+            RenderTableCell {TD} at (2,218) size 53x25 [r=8 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,223) size 96x15 [color=#808080] [r=8 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,223) size 300x15 [r=8 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,223) size 300x15 [r=8 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 226x13
                 text run at (1,1) width 226: "set value attribute that violates maxlength"
-          RenderTableRow {TR} at (0,245) size 453x25
-            RenderTableCell {TD} at (2,245) size 49x25 [r=9 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,250) size 96x15 [color=#808080] [r=9 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,245) size 457x25
+            RenderTableCell {TD} at (2,245) size 53x25 [r=9 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,250) size 96x15 [color=#808080] [r=9 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,250) size 300x15 [r=9 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,250) size 300x15 [r=9 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 226x13
                 text run at (1,1) width 226: "set value property that violates maxlength"
-          RenderTableRow {TR} at (0,272) size 453x25
-            RenderTableCell {TD} at (2,272) size 49x25 [r=10 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,277) size 96x15 [color=#808080] [r=10 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,272) size 457x25
+            RenderTableCell {TD} at (2,272) size 53x25 [r=10 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,277) size 96x15 [color=#808080] [r=10 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,277) size 300x15 [r=10 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,277) size 300x15 [r=10 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 296x13
                 text run at (1,1) width 296: "set maxlength attribute that is smaller than initial value"
-          RenderTableRow {TR} at (0,299) size 453x25
-            RenderTableCell {TD} at (2,299) size 49x25 [r=11 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,304) size 96x15 [color=#808080] [r=11 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,299) size 457x25
+            RenderTableCell {TD} at (2,299) size 53x25 [r=11 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,304) size 96x15 [color=#808080] [r=11 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,304) size 300x15 [r=11 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,304) size 300x15 [r=11 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 298x13
                 text run at (1,1) width 298: "set maxLength property that is smaller than initial value"
-layer at (16,16) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,16) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,43) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,43) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,70) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,70) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,97) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,97) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,124) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,124) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 35x13
       text run at (1,0) width 35: "12345"
-layer at (16,151) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,151) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 35x13
       text run at (1,0) width 35: "12345"
-layer at (16,178) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,178) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,205) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,205) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,232) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,232) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,259) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,259) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,286) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,286) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 35x13
       text run at (1,0) width 35: "12x\x{305}\x{332}45"
-layer at (16,313) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,313) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 35x13
       text run at (1,0) width 35: "12x\x{305}\x{332}45"
index 16c07361390066285a9e541973ddce8096d1bfcd..c0b8b399dcb7f15d8c03b2c1f8a7e3a0f232c229 100644 (file)
@@ -1 +1 @@
-387ba312d39454ad165c9872a4dbb2fb
\ No newline at end of file
+cf93b19201f246ba7f3245f1343e0cff
\ No newline at end of file
index 077da98eca5c7412d19def220122285629ef6b3b..0f1f6b0fa7a1db6773c72f177c1531349d15b8b8 100644 (file)
Binary files a/LayoutTests/platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.png and b/LayoutTests/platform/mac-leopard/fast/forms/input-text-paste-maxlength-expected.png differ
index fe73d9858d5f27540ee40038a945d5224b626508..097b1c39829419fb0ce051cbfc000b76d81f3681 100644 (file)
@@ -3,149 +3,149 @@ 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
-      RenderTable {TABLE} at (0,0) size 485x245
-        RenderTableSection {TBODY} at (0,0) size 485x245
-          RenderTableRow {TR} at (0,2) size 485x25
-            RenderTableCell {TD} at (2,2) size 49x25 [r=0 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,7) size 96x15 [color=#808080] [r=0 c=1 rs=1 cs=1]
+      RenderTable {TABLE} at (0,0) size 489x245
+        RenderTableSection {TBODY} at (0,0) size 489x245
+          RenderTableRow {TR} at (0,2) size 489x25
+            RenderTableCell {TD} at (2,2) size 53x25 [r=0 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,7) size 96x15 [color=#808080] [r=0 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 21x13
                 text run at (60,1) width 21: "123"
-            RenderTableCell {TD} at (151,7) size 332x15 [r=0 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,7) size 332x15 [r=0 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 330x13
                 text run at (1,1) width 330: "set value attribute that violates maxlength (with pasted value)"
-          RenderTableRow {TR} at (0,29) size 485x25
-            RenderTableCell {TD} at (2,29) size 49x25 [r=1 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,34) size 96x15 [color=#808080] [r=1 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,29) size 489x25
+            RenderTableCell {TD} at (2,29) size 53x25 [r=1 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,34) size 96x15 [color=#808080] [r=1 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,34) size 332x15 [r=1 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,34) size 332x15 [r=1 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 330x13
                 text run at (1,1) width 330: "set value property that violates maxlength (with pasted value)"
-          RenderTableRow {TR} at (0,56) size 485x25
-            RenderTableCell {TD} at (2,56) size 49x25 [r=2 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,61) size 96x15 [color=#808080] [r=2 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,56) size 489x25
+            RenderTableCell {TD} at (2,56) size 53x25 [r=2 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,61) size 96x15 [color=#808080] [r=2 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,61) size 332x15 [r=2 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,61) size 332x15 [r=2 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 302x13
                 text run at (1,1) width 302: "set maxlength attribute that is smaller than pasted value"
-          RenderTableRow {TR} at (0,83) size 485x25
-            RenderTableCell {TD} at (2,83) size 49x25 [r=3 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,88) size 96x15 [color=#808080] [r=3 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,83) size 489x25
+            RenderTableCell {TD} at (2,83) size 53x25 [r=3 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,88) size 96x15 [color=#808080] [r=3 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "1234"
-            RenderTableCell {TD} at (151,88) size 332x15 [r=3 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,88) size 332x15 [r=3 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 304x13
                 text run at (1,1) width 304: "set maxLength property that is smaller than pasted value"
-          RenderTableRow {TR} at (0,110) size 485x25
-            RenderTableCell {TD} at (2,110) size 49x25 [r=4 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,115) size 96x15 [color=#808080] [r=4 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,110) size 489x25
+            RenderTableCell {TD} at (2,110) size 53x25 [r=4 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,115) size 96x15 [color=#808080] [r=4 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 21x13
                 text run at (60,1) width 21: "123"
-            RenderTableCell {TD} at (151,115) size 332x15 [r=4 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,115) size 332x15 [r=4 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 330x13
                 text run at (1,1) width 330: "set value attribute that violates maxlength (with pasted value)"
-          RenderTableRow {TR} at (0,137) size 485x25
-            RenderTableCell {TD} at (2,137) size 49x25 [r=5 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,142) size 96x15 [color=#808080] [r=5 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,137) size 489x25
+            RenderTableCell {TD} at (2,137) size 53x25 [r=5 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,142) size 96x15 [color=#808080] [r=5 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,142) size 332x15 [r=5 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,142) size 332x15 [r=5 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 330x13
                 text run at (1,1) width 330: "set value property that violates maxlength (with pasted value)"
-          RenderTableRow {TR} at (0,164) size 485x25
-            RenderTableCell {TD} at (2,164) size 49x25 [r=6 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,169) size 96x15 [color=#808080] [r=6 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,164) size 489x25
+            RenderTableCell {TD} at (2,164) size 53x25 [r=6 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,169) size 96x15 [color=#808080] [r=6 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,169) size 332x15 [r=6 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,169) size 332x15 [r=6 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 302x13
                 text run at (1,1) width 302: "set maxlength attribute that is smaller than pasted value"
-          RenderTableRow {TR} at (0,191) size 485x25
-            RenderTableCell {TD} at (2,191) size 49x25 [r=7 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,196) size 96x15 [color=#808080] [r=7 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,191) size 489x25
+            RenderTableCell {TD} at (2,191) size 53x25 [r=7 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,196) size 96x15 [color=#808080] [r=7 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,196) size 332x15 [r=7 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,196) size 332x15 [r=7 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 304x13
                 text run at (1,1) width 304: "set maxLength property that is smaller than pasted value"
-          RenderTableRow {TR} at (0,218) size 485x25
-            RenderTableCell {TD} at (2,218) size 49x25 [r=8 c=0 rs=1 cs=1]
-              RenderTextControl {INPUT} at (3,3) size 43x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-            RenderTableCell {TD} at (53,223) size 96x15 [color=#808080] [r=8 c=1 rs=1 cs=1]
+          RenderTableRow {TR} at (0,218) size 489x25
+            RenderTableCell {TD} at (2,218) size 53x25 [r=8 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 47x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (57,223) size 96x15 [color=#808080] [r=8 c=1 rs=1 cs=1]
               RenderInline (generated) at (0,0) size 56x13
                 RenderText at (4,1) size 56x13
                   text run at (4,1) width 56: "expected: "
               RenderText {#text} at (60,1) size 28x13
                 text run at (60,1) width 28: "12x\x{305}\x{332}4"
-            RenderTableCell {TD} at (151,223) size 332x15 [r=8 c=2 rs=1 cs=1]
+            RenderTableCell {TD} at (155,223) size 332x15 [r=8 c=2 rs=1 cs=1]
               RenderText {#text} at (1,1) size 119x13
                 text run at (1,1) width 119: "pasting too much text"
-layer at (16,16) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,16) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 21x13
       text run at (1,0) width 21: "123"
-layer at (16,43) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,43) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,70) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,70) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,97) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,97) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "1234"
-layer at (16,124) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,124) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 21x13
       text run at (1,0) width 21: "123"
-layer at (16,151) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,151) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,178) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,178) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,205) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,205) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
-layer at (16,232) size 37x13
-  RenderBlock {DIV} at (3,3) size 37x13
+layer at (16,232) size 41x13
+  RenderBlock {DIV} at (3,3) size 41x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
index e4468c7c256f19374dc4fbecc75dec9079af27e5..3ee8d3c35192e3bff6a6d3ff8b42ab81c42b214f 100644 (file)
@@ -1 +1 @@
-5699fb65d3f1d2be214196bad1badbd7
\ No newline at end of file
+368dda0ec2ff9aa6075806c45c642af0
\ No newline at end of file
index b26c9734e55f8f6fed726517ac534ec4174c3ffb..bad32ca95e64f8e924c5a677aa23f2cab8ce7488 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/deleting/5168598-expected.png and b/LayoutTests/platform/mac/editing/deleting/5168598-expected.png differ
index a6e7a729f1caa2a61a4a9b1a00c680977536aac5..af4c3340fd040612a571f971ce60f20e9caa6bb9 100644 (file)
@@ -12,11 +12,11 @@ layer at (0,0) size 800x600
             text run at (185,18) width 582: "We probably shouldn't let users add rich content to text fields even if they are in richly"
             text run at (0,36) width 114: "editable regions.'"
       RenderBlock (anonymous) at (0,70) size 784x23
-        RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (13,83) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,83) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
     RenderBR {BR} at (1,0) size 0x13
 caret: position 0 of child 0 {BR} of child 0 {DIV} of child 3 {INPUT} of child 0 {BODY} of child 0 {HTML} of document
index 821d109938553216edef793533df022caba5000d..f9d5defa420cd89ee9f49aa2252371938460659d 100644 (file)
@@ -1 +1 @@
-87df256bbb5481db444fb0d96be92bfc
\ No newline at end of file
+be7885d68da5e549490f36c002ef08b6
\ No newline at end of file
index 348b081f3a3456082a6b8709d4178499174ee36d..10ad2eb2883f171733df8b5d701f8aaf10f9c464 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/inserting/4960120-1-expected.png and b/LayoutTests/platform/mac/editing/inserting/4960120-1-expected.png differ
index f9cc774f6de1a167ea0dffff0f2a2c6873efad91..8fbceae4eebb47a95884312f7e91043d3302a690 100644 (file)
@@ -6,14 +6,14 @@ layer at (0,0) size 800x600
       RenderBlock {P} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 507x18
           text run at (0,0) width 507: "This tests for a bug where the first newline entered into a text area would be lost."
-      RenderBlock (anonymous) at (0,34) size 784x32
+      RenderBlock (anonymous) at (0,34) size 784x34
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (10,44) size 163x28 clip at (11,45) size 161x26
-  RenderTextControl {TEXTAREA} at (2,2) size 163x28 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
-    RenderBlock {DIV} at (1,1) size 161x26
-      RenderText {#text} at (3,0) size 0x13
-        text run at (3,0) width 0: " "
-      RenderText {#text} at (3,13) size 0x13
-        text run at (3,13) width 0: " "
+layer at (8,43) size 129x32 clip at (9,44) size 127x30
+  RenderTextControl {TEXTAREA} at (0,1) size 129x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 123x26
+      RenderText {#text} at (0,0) size 0x13
+        text run at (0,0) width 0: " "
+      RenderText {#text} at (0,13) size 0x13
+        text run at (0,13) width 0: " "
 caret: position 0 of child 1 {#text} of child 0 {DIV} of child 2 {TEXTAREA} of child 0 {BODY} of child 0 {HTML} of document
index c8da0a29236249c0fc27bedf0fea602ee25ee07f..f0b79d6bdf588431f27a10f21c7107e2afae78c5 100644 (file)
@@ -1 +1 @@
-06e3638e84395dcf335376da63524247
\ No newline at end of file
+df06c49c22eddf5f5a57c98028d319a2
\ No newline at end of file
index a3c8680e34a17623ac5c4a8a5bb76a03b5c29a23..a7329404b11859ca583ca4dc9c56c00ac191e6e4 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/inserting/5607069-2-expected.png and b/LayoutTests/platform/mac/editing/inserting/5607069-2-expected.png differ
index 60cdf7d6da93e7f5ca0cc7260d1fd83c6ffcf721..110d93e97d67d13207b8ba0b4d2a4ada3b420121 100644 (file)
@@ -8,11 +8,11 @@ layer at (0,0) size 800x600
           text run at (0,0) width 776: "This tests for a bug where InsertLineBreak would insert a '\\n' instead of a <br> if the caret was set just before an input field."
           text run at (0,18) width 413: "You should see two input fields each in its own paragraph below."
       RenderBlock {DIV} at (0,52) size 784x46
-        RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderBR {BR} at (152,16) size 0x0
-        RenderTextControl {INPUT} at (2,25) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-layer at (13,65) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
-layer at (13,88) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+        RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (132,16) size 0x0
+        RenderTextControl {INPUT} at (2,25) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+layer at (13,65) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
+layer at (13,88) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 0 of child 2 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index 51878e1d36d2729d93ddfc6b79f824ba2cb1f5bf..61f7daca12c30249398c896644aa1194ca466c2d 100644 (file)
@@ -1 +1 @@
-de8bd89b4ee2e9128f2858fb4fa5f30d
\ No newline at end of file
+449c2c67611d346a220f449561d803d6
\ No newline at end of file
index f9a09d0dcd8e77ea2ec69225288f5a5cfef77472..4055ca40a96b09676ba8e216d20e9a93799b0b78 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.png and b/LayoutTests/platform/mac/editing/inserting/5607069-3-expected.png differ
index 300b594382de03c4c786e891cac1267356c9fbd9..0314f5ae08d3c8b6637b251210220b8dc6a700a9 100644 (file)
@@ -10,15 +10,15 @@ layer at (0,0) size 800x600
           text run at (46,18) width 530: "You should see two paragraphs below both inside the form (blue bordered) element."
       RenderBlock {DIV} at (0,52) size 784x48
         RenderBlock {FORM} at (0,0) size 784x48 [border: (1px solid #0000FF)]
-          RenderTextControl {INPUT} at (3,3) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderText {#text} at (153,3) size 8x18
-            text run at (153,3) width 8: "x"
-          RenderBR {BR} at (161,17) size 0x0
+          RenderTextControl {INPUT} at (3,3) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderText {#text} at (133,3) size 8x18
+            text run at (133,3) width 8: "x"
+          RenderBR {BR} at (141,17) size 0x0
           RenderText {#text} at (1,26) size 8x18
             text run at (1,26) width 8: "x"
-          RenderTextControl {INPUT} at (11,26) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-layer at (14,66) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
-layer at (22,89) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+          RenderTextControl {INPUT} at (11,26) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+layer at (14,66) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
+layer at (22,89) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 0 of child 3 {#text} of child 0 {FORM} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index ec81190dac9c886750801557b14f69d62ae7e910..7bca53249c02888806506f54e4892594058aec8f 100644 (file)
@@ -1 +1 @@
-07f9fe6209db9d636b001435e9016a9a
\ No newline at end of file
+c6cb9450d16d49e5291a6a05362dcd9f
\ No newline at end of file
index e8998a4903be277c6d0034e46cbe514c24b81efe..cfa6d934fb1b10c403e069e1a3ba95269eb037f7 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.png and b/LayoutTests/platform/mac/editing/inserting/before-after-input-element-expected.png differ
index aa785317c8dcdcbded65ddd0918c2d10b7f97601..9721dc5977815c52d1d46ee1e3749f86e0896821 100644 (file)
@@ -19,9 +19,9 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x23
         RenderText {#text} at (0,2) size 35x18
           text run at (0,2) width 35: "Hello"
-        RenderTextControl {INPUT} at (37,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderText {#text} at (187,2) size 40x18
-          text run at (187,2) width 40: "World"
-layer at (48,47) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+        RenderTextControl {INPUT} at (37,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (167,2) size 40x18
+          text run at (167,2) width 40: "World"
+layer at (48,47) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 5 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 4ee11ed1c18ed03c676bd2f5a05e4806e5846d2e..48d955363aafe2118fdd98ba366e7ef25ce270ee 100644 (file)
@@ -1 +1 @@
-3de7ff0dc31581f8f15ba190949787ac
\ No newline at end of file
+d4cf0b128e7a1bd9c05b81a4ff0cc7a8
\ No newline at end of file
index 4e6335521d8f6cb271f1c5878d953fb7f34056e5..270a2d73412cedfdc3b0c522621ed259ec03ed59 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.png and b/LayoutTests/platform/mac/editing/inserting/typing-tab-designmode-forms-expected.png differ
index 2a1f96dafc70b5d5d477c531335a0d7bcc17dfd8..014c7efec32163702165cd2af3fceb990891909a 100644 (file)
@@ -3,19 +3,19 @@ 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
-      RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-      RenderBR {BR} at (152,16) size 0x0
-      RenderTextControl {INPUT} at (2,25) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-      RenderText {#text} at (152,25) size 4x18
-        text run at (152,25) width 4: " "
-      RenderText {#text} at (156,25) size 455x18
-        text run at (156,25) width 455: "tabbing between forms in design mode (nothing happens at the moment)"
-      RenderBR {BR} at (611,39) size 0x0
-layer at (13,13) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+      RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+      RenderBR {BR} at (132,16) size 0x0
+      RenderTextControl {INPUT} at (2,25) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+      RenderText {#text} at (132,25) size 4x18
+        text run at (132,25) width 4: " "
+      RenderText {#text} at (136,25) size 455x18
+        text run at (136,25) width 455: "tabbing between forms in design mode (nothing happens at the moment)"
+      RenderBR {BR} at (591,39) size 0x0
+layer at (13,13) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
     RenderInline {SPAN} at (0,0) size 24x13
       RenderText {#text} at (1,0) size 24x13
         text run at (1,0) width 24: "\x{9}"
-layer at (13,36) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,36) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 1 of child 0 {#text} of child 0 {SPAN} of child 0 {DIV} of child 1 {INPUT} of child 0 {BODY} of child 0 {HTML} of document
index 820d32e8f33ed980acc80e1a1e48da85725981ec..15eec2623b2e0ea5cd27f0db8017404e8f0190e2 100644 (file)
@@ -1 +1 @@
-0db172b948efe1517fb7ae4480896a47
\ No newline at end of file
+dabd1f3d2993df574533154c7e380868
\ No newline at end of file
index b44540a623a6af78b0013214602d8804c6654468..6b56c627eca61b79af2c54e95ef3173eee9d3701 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/4806874-expected.png differ
index bbe2e163909ee22f3b5816dec5cffd8393ebea89..a0b30c92f6444d1d3229962c05dac6e4ef637f11 100644 (file)
@@ -10,9 +10,9 @@ layer at (0,0) size 800x600
       RenderBlock {DIV} at (0,34) size 784x23
         RenderText {#text} at (0,2) size 35x18
           text run at (0,2) width 35: "Hello"
-        RenderTextControl {INPUT} at (37,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderText {#text} at (187,2) size 4x18
-          text run at (187,2) width 4: ":"
-layer at (48,47) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+        RenderTextControl {INPUT} at (37,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (167,2) size 4x18
+          text run at (167,2) width 4: ":"
+layer at (48,47) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index 4a1a163c6c3d25cdec37f508693644c6cb91d965..906c6410a13c96221f084a6967f99c924330e32b 100644 (file)
@@ -1 +1 @@
-d598259bf3577d8822ad26e86451d905
\ No newline at end of file
+0a53a0cdc583d63abf82d6831d1f893b
\ No newline at end of file
index 79b2fe089c401ffdebc86dda04df28cf1139efc9..b31929912ee047c5564a6d05516c8a3b87baba96 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/drop-text-without-selection-expected.png differ
index 2c235665a9bf35c8cdb5db6a39983cc1d512eab0..fb22d82dc55db66b0f49a5f82e8ae4951551e0c4 100644 (file)
@@ -27,17 +27,17 @@ layer at (0,0) size 800x600
           text run at (478,0) width 175: "no text is currently selected."
       RenderBlock {HR} at (0,86) size 784x2 [border: (1px inset #000000)]
       RenderBlock (anonymous) at (0,96) size 784x23
-        RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderText {#text} at (152,2) size 4x18
-          text run at (152,2) width 4: " "
+        RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (132,2) size 4x18
+          text run at (132,2) width 4: " "
         RenderInline {A} at (0,0) size 162x18 [color=#0000EE]
-          RenderText {#text} at (156,2) size 162x18
-            text run at (156,2) width 162: "drop me into the text field"
+          RenderText {#text} at (136,2) size 162x18
+            text run at (136,2) width 162: "drop me into the text field"
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (13,109) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,109) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
     RenderText {#text} at (1,0) size 119x13
       text run at (1,0) width 119: "http://www.ibm.com/"
 selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
index dd77ec9bc171117884219cdc4746cf09aa3a81a8..f22db371d3c84f92e468fab8c12d15da42472193 100644 (file)
@@ -1 +1 @@
-219dd997fcc5f9954a27853111072e7d
\ No newline at end of file
+cc7c6c8226de69ead72c02c62f3cd449
\ No newline at end of file
index 96e12c11ade2e215d3635ed96037de90744fdf3f..0e46896b688f83f4f2773d30a8f0ab71c6fb97e1 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.png differ
index 2b79d8d5ed6f82cc176844cc9819a086af8aa4cd..50e87aaaab77f01538a5b27e38f9cdc51b3bffb9 100644 (file)
@@ -17,15 +17,15 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 235x18
           text run at (0,0) width 235: "This tests Copy/Paste of a input field."
       RenderBlock {DIV} at (0,34) size 784x23
-        RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderTextControl {INPUT} at (154,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (134,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
       RenderBlock {UL} at (0,73) size 784x18
         RenderListItem {LI} at (40,0) size 744x18
           RenderListMarker at (-17,0) size 7x18: bullet
           RenderText {#text} at (0,0) size 43x18
             text run at (0,0) width 43: "Passed"
-layer at (13,47) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
-layer at (165,47) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,47) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
+layer at (145,47) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 2 {BODY} of child 0 {HTML} of document
index 31c6bb905ab23b1fbd4fdc3babe1b3e4babba06e..d50e93bc3870eae72bebddad6e21aac860fabd65 100644 (file)
@@ -1 +1 @@
-805f162c924e2798e126fecc134d81ae
\ No newline at end of file
+d7c808d7d3e9468e9a157354c456a9b4
\ No newline at end of file
index 8fd45a9e08772ebfb16870a41827ea3011a940c6..909cd67208f951fba3a07dd61bd0a6e9696ee297 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.png differ
index 53e1c0d2b5ae09dab9a52f914977fc37bc44b7e7..2f788b9d5f63c59dc59681c256304add216e5ba3 100644 (file)
@@ -22,18 +22,18 @@ layer at (0,0) size 800x600
           text run at (31,0) width 721: "This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail"
           text run at (752,0) width 4: " "
           text run at (359,18) width 65: "assertions."
-      RenderBlock {DIV} at (0,54) size 784x36
-        RenderBlock {DIV} at (0,0) size 784x36
-          RenderText {#text} at (469,18) size 4x18
-            text run at (469,18) width 4: " "
+      RenderBlock {DIV} at (0,54) size 784x38
+        RenderBlock {DIV} at (0,0) size 784x38
+          RenderText {#text} at (450,20) size 4x18
+            text run at (450,20) width 4: " "
           RenderInline {SPAN} at (0,0) size 8x18
-            RenderText {#text} at (473,18) size 8x18
-              text run at (473,18) width 8: "x"
+            RenderText {#text} at (454,20) size 8x18
+              text run at (454,20) width 8: "x"
           RenderText {#text} at (0,0) size 0x0
-      RenderBlock (anonymous) at (0,90) size 784x0
-layer at (312,64) size 163x28 clip at (313,65) size 161x26
-  RenderTextControl {TEXTAREA} at (304,2) size 163x28 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
-    RenderBlock {DIV} at (1,1) size 161x13
-      RenderText {#text} at (3,0) size 3x13
-        text run at (3,0) width 3: " "
+      RenderBlock (anonymous) at (0,92) size 784x0
+layer at (329,63) size 129x32 clip at (330,64) size 127x30
+  RenderTextControl {TEXTAREA} at (321,1) size 129x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 123x13
+      RenderText {#text} at (0,0) size 3x13
+        text run at (0,0) width 3: " "
 caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 7b2e7030253aa47c6b7f93cee0c342eb129b3857..ce16aff993f2faafdccbe532d36ae7f2addffd3a 100644 (file)
@@ -1 +1 @@
-7755dee27ed46ea34163d417006912d8
\ No newline at end of file
+76de260472594ab34052cc6d35934c7a
\ No newline at end of file
index 459928e0ca0ab94b6381690d6d98d9bf40ed0233..6fc993746a07920fcad77360993d37771fc02bc9 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.png differ
index e2cbd4b2a4492eda0c6b4426dd1bec0349253df4..86bd28ee9720e8618a1e39b1c90986599b258019 100644 (file)
@@ -24,14 +24,14 @@ layer at (0,0) size 800x600
           text run at (359,18) width 65: "assertions."
       RenderBlock {DIV} at (0,54) size 784x23
         RenderBlock {DIV} at (0,0) size 784x23
-          RenderTextControl {INPUT} at (312,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-          RenderText {#text} at (462,2) size 4x18
-            text run at (462,2) width 4: " "
+          RenderTextControl {INPUT} at (322,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderText {#text} at (452,2) size 4x18
+            text run at (452,2) width 4: " "
           RenderInline {SPAN} at (0,0) size 8x18
-            RenderText {#text} at (466,2) size 8x18
-              text run at (466,2) width 8: "x"
+            RenderText {#text} at (456,2) size 8x18
+              text run at (456,2) width 8: "x"
           RenderText {#text} at (0,0) size 0x0
       RenderBlock (anonymous) at (0,77) size 784x0
-layer at (323,67) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (333,67) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 1 of child 0 {#text} of child 3 {SPAN} of child 1 {DIV} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 8134fe8931560e0ddd4c07972b038e214d05a78b..996777e442333f2af0aa86f1dc01fd919ae3b24b 100644 (file)
@@ -1 +1 @@
-5e2fbc93ee4e8207e83d1099c78ff283
\ No newline at end of file
+10be1d9faa95718f234e7564536e33df
\ No newline at end of file
index d6cf24cdb6732fccc62d163613eb87eb88bbc040..5f52c0a94d8bb58abb2cfbaaac835496c0afa8fd 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.png and b/LayoutTests/platform/mac/editing/pasteboard/pasting-tabs-expected.png differ
index 8a7e669d856095b619ffca322bb3fd447f2d0f38..17c1401b520901e078f13c43d296e97376e59616 100644 (file)
@@ -18,9 +18,9 @@ layer at (0,0) size 800x600
           text run at (0,0) width 647: "This tests copying plain text with tabs and pasting it into an editable region using paste and match tyle. "
           text run at (647,0) width 119: "The tabs should be"
           text run at (0,18) width 65: "preserved."
-      RenderBlock (anonymous) at (0,52) size 784x32
+      RenderBlock (anonymous) at (0,52) size 784x34
         RenderText {#text} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,84) size 784x18
+      RenderBlock {DIV} at (0,86) size 784x18
         RenderText {#text} at (0,0) size 39x18
           text run at (0,0) width 39: "Tab->"
         RenderInline {SPAN} at (0,0) size 25x18
@@ -28,9 +28,9 @@ layer at (0,0) size 800x600
             text run at (39,0) width 25: "\x{9}"
         RenderText {#text} at (64,0) size 39x18
           text run at (64,0) width 39: "<-Tab"
-layer at (10,62) size 163x28 clip at (11,63) size 161x26
-  RenderTextControl {TEXTAREA} at (2,2) size 163x28 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
-    RenderBlock {DIV} at (1,1) size 161x13
-      RenderText {#text} at (3,0) size 84x13
-        text run at (3,0) width 84: "Tab->\x{9}<-Tab"
+layer at (8,61) size 129x32 clip at (9,62) size 127x30
+  RenderTextControl {TEXTAREA} at (0,1) size 129x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 123x13
+      RenderText {#text} at (0,0) size 84x13
+        text run at (0,0) width 84: "Tab->\x{9}<-Tab"
 caret: position 5 of child 2 {#text} of child 4 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 8928ff0f7064556f582dc9d072e9dadf969bec8e..4c8c73fa01f8d5cabe4119790d4082c7b0d94ef0 100644 (file)
@@ -1 +1 @@
-693d5bef4f31470e9788dbe6492e866a
\ No newline at end of file
+834f88d0f8c749cf018285cdfe194ec2
\ No newline at end of file
index 682c15eaf4d886410457077dba22c10c4debae72..1330a7668e96d7d8f6e020cf353710d2ee8e820b 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/3690703-2-expected.png and b/LayoutTests/platform/mac/editing/selection/3690703-2-expected.png differ
index fe346ccd5a465ad4c49a9efaebcc5ab9132fc112..9020cb64413b85ed753f26ee5d873d82372bb181 100644 (file)
@@ -74,24 +74,24 @@ layer at (0,0) size 800x600
                       RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
                         RenderText {#text} at (309,4) size 40x15
                           text run at (309,4) width 40: "more \x{BB}"
-          RenderTable {TABLE} at (2,25) size 780x45
-            RenderTableSection {TBODY} at (0,0) size 780x45
-              RenderTableRow {TR} at (0,0) size 780x45
-                RenderTableCell {TD} at (0,13) size 191x18 [r=0 c=0 rs=1 cs=1]
+          RenderTable {TABLE} at (71,25) size 642x45
+            RenderTableSection {TBODY} at (0,0) size 642x45
+              RenderTableRow {TR} at (0,0) size 642x45
+                RenderTableCell {TD} at (0,13) size 160x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 4x18
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (191,0) size 395x45 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 391x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-                  RenderBR {BR} at (395,16) size 0x0
-                  RenderButton {INPUT} at (95,25) size 93x18 [bgcolor=#C0C0C0]
+                RenderTableCell {TD} at (160,0) size 322x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 317x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (321,16) size 0x0
+                  RenderButton {INPUT} at (58,25) size 93x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 77x13
                       RenderText at (0,0) size 77x13
                         text run at (0,0) width 77: "Google Search"
-                  RenderButton {INPUT} at (192,25) size 108x18 [bgcolor=#C0C0C0]
+                  RenderButton {INPUT} at (155,25) size 108x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 92x13
                       RenderText at (0,0) size 92x13
                         text run at (0,0) width 92: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (586,0) size 194x39 [r=0 c=2 rs=1 cs=1]
+                RenderTableCell {TD} at (482,0) size 160x39 [r=0 c=2 rs=1 cs=1]
                   RenderInline {FONT} at (0,0) size 74x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
@@ -146,7 +146,7 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {#text} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-layer at (206,88) size 385x13
-  RenderBlock {DIV} at (3,3) size 385x13
+layer at (244,88) size 311x13
+  RenderBlock {DIV} at (3,3) size 311x13
 selection start: position 0 of child 3 {INPUT} of child 1 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
 selection end:   position 1 of child 2 {BR} of child 0 {FONT} of child 2 {TD} of child 0 {TR} of child 0 {TBODY} of child 2 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index dd575c0df638843ce7fdc00c9b7cddeff51b8135..cdd3d9651a0d61ee2bdfd46e6e771a65f8f637eb 100644 (file)
@@ -1 +1 @@
-71c099408357f2b9b4be30550540eb5c
\ No newline at end of file
+d1b1291058d56ee5369d69cf376e34e3
\ No newline at end of file
index 9ab6cad7d66117cd656f0ccc2bd88da7fd1aa8a6..6fccbe845c132459cd4b635dd52e4869a10bdead 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/3690703-expected.png and b/LayoutTests/platform/mac/editing/selection/3690703-expected.png differ
index a474ef1d6fc05ff3e6afd2125a227dda6502df4a..20dd51f962b5cd5508c5c38cd8cf9e5c95c07723 100644 (file)
@@ -76,24 +76,24 @@ layer at (0,0) size 800x600
                       RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
                         RenderText {#text} at (309,4) size 40x15
                           text run at (309,4) width 40: "more \x{BB}"
-          RenderTable {TABLE} at (2,25) size 780x45
-            RenderTableSection {TBODY} at (0,0) size 780x45
-              RenderTableRow {TR} at (0,0) size 780x45
-                RenderTableCell {TD} at (0,13) size 191x18 [r=0 c=0 rs=1 cs=1]
+          RenderTable {TABLE} at (71,25) size 642x45
+            RenderTableSection {TBODY} at (0,0) size 642x45
+              RenderTableRow {TR} at (0,0) size 642x45
+                RenderTableCell {TD} at (0,13) size 160x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 4x18
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (191,0) size 395x45 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 391x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-                  RenderBR {BR} at (395,16) size 0x0
-                  RenderButton {INPUT} at (95,25) size 93x18 [bgcolor=#C0C0C0]
+                RenderTableCell {TD} at (160,0) size 322x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 317x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (321,16) size 0x0
+                  RenderButton {INPUT} at (58,25) size 93x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 77x13
                       RenderText at (0,0) size 77x13
                         text run at (0,0) width 77: "Google Search"
-                  RenderButton {INPUT} at (192,25) size 108x18 [bgcolor=#C0C0C0]
+                  RenderButton {INPUT} at (155,25) size 108x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 92x13
                       RenderText at (0,0) size 92x13
                         text run at (0,0) width 92: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (586,0) size 194x39 [r=0 c=2 rs=1 cs=1]
+                RenderTableCell {TD} at (482,0) size 160x39 [r=0 c=2 rs=1 cs=1]
                   RenderInline {FONT} at (0,0) size 74x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
@@ -148,7 +148,7 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {#text} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-layer at (206,88) size 385x13
-  RenderBlock {DIV} at (3,3) size 385x13
+layer at (244,88) size 311x13
+  RenderBlock {DIV} at (3,3) size 311x13
 selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
 selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index dd575c0df638843ce7fdc00c9b7cddeff51b8135..cdd3d9651a0d61ee2bdfd46e6e771a65f8f637eb 100644 (file)
@@ -1 +1 @@
-71c099408357f2b9b4be30550540eb5c
\ No newline at end of file
+d1b1291058d56ee5369d69cf376e34e3
\ No newline at end of file
index 9ab6cad7d66117cd656f0ccc2bd88da7fd1aa8a6..6fccbe845c132459cd4b635dd52e4869a10bdead 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/3690719-expected.png and b/LayoutTests/platform/mac/editing/selection/3690719-expected.png differ
index 8739e3a00abf253e58a3af54a496ccd5cf0945f1..60870e265b4f4f1f072e0accf1de31c283e73184 100644 (file)
@@ -68,24 +68,24 @@ layer at (0,0) size 800x600
                       RenderInline {A} at (0,0) size 40x15 [color=#0000CC]
                         RenderText {#text} at (309,4) size 40x15
                           text run at (309,4) width 40: "more \x{BB}"
-          RenderTable {TABLE} at (2,25) size 780x45
-            RenderTableSection {TBODY} at (0,0) size 780x45
-              RenderTableRow {TR} at (0,0) size 780x45
-                RenderTableCell {TD} at (0,13) size 191x18 [r=0 c=0 rs=1 cs=1]
+          RenderTable {TABLE} at (71,25) size 642x45
+            RenderTableSection {TBODY} at (0,0) size 642x45
+              RenderTableRow {TR} at (0,0) size 642x45
+                RenderTableCell {TD} at (0,13) size 160x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 4x18
                     text run at (0,0) width 4: " "
-                RenderTableCell {TD} at (191,0) size 395x45 [r=0 c=1 rs=1 cs=1]
-                  RenderTextControl {INPUT} at (2,2) size 391x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-                  RenderBR {BR} at (395,16) size 0x0
-                  RenderButton {INPUT} at (95,25) size 93x18 [bgcolor=#C0C0C0]
+                RenderTableCell {TD} at (160,0) size 322x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 317x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (321,16) size 0x0
+                  RenderButton {INPUT} at (58,25) size 93x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 77x13
                       RenderText at (0,0) size 77x13
                         text run at (0,0) width 77: "Google Search"
-                  RenderButton {INPUT} at (192,25) size 108x18 [bgcolor=#C0C0C0]
+                  RenderButton {INPUT} at (155,25) size 108x18 [bgcolor=#C0C0C0]
                     RenderBlock (anonymous) at (8,2) size 92x13
                       RenderText at (0,0) size 92x13
                         text run at (0,0) width 92: "I'm Feeling Lucky"
-                RenderTableCell {TD} at (586,0) size 194x39 [r=0 c=2 rs=1 cs=1]
+                RenderTableCell {TD} at (482,0) size 160x39 [r=0 c=2 rs=1 cs=1]
                   RenderInline {FONT} at (0,0) size 74x39
                     RenderText {#text} at (0,0) size 6x13
                       text run at (0,0) width 6: "  "
@@ -140,7 +140,7 @@ layer at (0,0) size 800x600
           RenderInline {FONT} at (0,0) size 60x13
             RenderText {#text} at (362,0) size 60x13
               text run at (362,0) width 60: "\x{A9}2005 Google"
-layer at (206,88) size 385x13
-  RenderBlock {DIV} at (3,3) size 385x13
+layer at (244,88) size 311x13
+  RenderBlock {DIV} at (3,3) size 311x13
 selection start: position 0 of child 1 {TABLE} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
 selection end:   position 1 of child 3 {#text} of child 4 {FONT} of child 4 {DIV} of child 0 {CENTER} of child 1 {BODY} of child 0 {HTML} of document
index 359957a502444b4bbece445dc85c0255e246be50..8b24f7c4d20fc54147c3ab3801cab8059ad801db 100644 (file)
@@ -1 +1 @@
-02d99fdf9be012bf0efa8242f8f5413d
\ No newline at end of file
+e14de35a8e4fd3624a2044cc3372b351
\ No newline at end of file
index 00a81f7d5c26306d8d236d8409ac3615b7fff87b..3a003d37b2820c1fccda577a0c138802e927b808 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/4895428-3-expected.png and b/LayoutTests/platform/mac/editing/selection/4895428-3-expected.png differ
index ea972c947d462eb6a843b5b30edcfda33201c920..14bc7e6ca717ff3d578032c80112565fd9afeedb 100644 (file)
@@ -16,10 +16,10 @@ layer at (0,0) size 800x600
           RenderText {#text} at (0,0) size 21x18
             text run at (0,0) width 21: "foo"
         RenderBlock (anonymous) at (0,18) size 784x23
-          RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
         RenderBlock {DIV} at (0,41) size 784x18
           RenderText {#text} at (0,0) size 22x18
             text run at (0,0) width 22: "baz"
-layer at (13,101) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,101) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
 caret: position 0 of child 0 {DIV} of child 1 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index b0cb34fa747e5297864d3edae1f9407bbb11eb01..c8b1c364f8affe8a42a6ff4f8516778b25bfc48a 100644 (file)
@@ -1 +1 @@
-f3c2e88d0572c9981db42b1461f88b5b
\ No newline at end of file
+71e0cd6f4eadc932673efbfd059bf9ae
\ No newline at end of file
index fdcbb7451f92a2fdae367e7c564393b863b96155..18dc56d1a1738bbd0320c75ffb84da1cd207b8b7 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/4975120-expected.png and b/LayoutTests/platform/mac/editing/selection/4975120-expected.png differ
index 9924c55cf6d499b6c44f2cca12db98514badd4be..f376938cef137e9f8c52565a5ddd7d9c319ada4b 100644 (file)
@@ -8,8 +8,8 @@ layer at (0,0) size 800x600
           text run at (0,0) width 784: "This tests for a bug that caused the parent of an active frame to paint as though it were active when its window becomes key."
           text run at (0,18) width 776: "To run manually, make another window active and then make this window active. Only the subframe should appear active."
       RenderBlock (anonymous) at (0,52) size 784x177
-        RenderTextControl {INPUT} at (2,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderBR {BR} at (152,16) size 0x0
+        RenderTextControl {INPUT} at (2,2) size 128x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (132,16) size 0x0
         RenderPartObject {IFRAME} at (0,23) size 304x154 [border: (2px inset #000000)]
           layer at (0,0) size 300x150
             RenderView at (0,0) size 300x150
@@ -18,8 +18,8 @@ layer at (0,0) size 800x600
               RenderBody {BODY} at (8,8) size 284x134 [bgcolor=#FFFFE0]
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (13,65) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,65) size 122x13
+  RenderBlock {DIV} at (3,3) size 122x13
     RenderText {#text} at (1,0) size 18x13
       text run at (1,0) width 18: "foo"
 selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 3 {INPUT} of child 0 {BODY} of child 0 {HTML} of document
index b027e09ed3a3131f2b731d423527feae32d9b991..22adc31f5bb8abf160059159eda17ba0400db454 100644 (file)
@@ -1 +1 @@
-918531dcf529b570e2f2e89a3dc7ff76
\ No newline at end of file
+b65a6e6adccce4ea7ac863886e91b306
\ No newline at end of file
index d978f96d719f67a75735fee89db40cf9496d2d77..27deed4aac425dfcf7e9b4809d231ddd5340aef8 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/5136696-expected.png and b/LayoutTests/platform/mac/editing/selection/5136696-expected.png differ
index 1fedd79fda050bca5a5b3be4e049a8f31684a6eb..d5143184646aadcf1b15ceb1d0fbea085b27dedf 100644 (file)
@@ -19,11 +19,11 @@ layer at (0,0) size 800x600
                   text run at (0,18) width 133: "shouldn't be focused."
                 RenderText {#text} at (0,0) size 0x0
         RenderBR {BR} at (304,154) size 0x0
-        RenderTextControl {INPUT} at (2,156) size 217x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (2,156) size 182x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
         RenderText {#text} at (0,0) size 0x0
         RenderText {#text} at (0,0) size 0x0
-layer at (13,201) size 211x13
-  RenderBlock {DIV} at (3,3) size 211x13
+layer at (13,201) size 176x13 scrollWidth 183
+  RenderBlock {DIV} at (3,3) size 176x13
     RenderText {#text} at (1,0) size 181x13
       text run at (1,0) width 181: "This text field should be focused."
 selection start: position 0 of child 0 {#text} of child 0 {DIV} of child 5 {INPUT} of child 0 {BODY} of child 0 {HTML} of document
index e0b631309eade40edf27134c585de8d1e8549a44..f6df5098b075787494fead4deedc5ec75e283faf 100644 (file)
@@ -1 +1 @@
-7e67468667de66764177504d622e8223
\ No newline at end of file
+889478b6d51053f1088cc0045977fb3c
\ No newline at end of file
index ebb6676a787d3d7e45ecc879e627a215ded59230..0423edd655e07cfc889826c5e94e16bb6282e4de 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/5213963-expected.png and b/LayoutTests/platform/mac/editing/selection/5213963-expected.png differ
index 37ee1d55b286fffa6a2999a7feca1824d549d3c9..dae4acaa303125e00db07ce66edd8d7a84e7dce6 100644 (file)
@@ -7,15 +7,15 @@ layer at (0,0) size 800x600
         RenderText {#text} at (0,0) size 759x18
           text run at (0,0) width 759: "This tests to see that a selection inside an input field is removed when clicking (and focusing) a button in the same frame."
       RenderBlock (anonymous) at (0,34) size 784x45
-        RenderTextControl {INPUT} at (2,2) size 426x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
-        RenderBR {BR} at (430,16) size 0x0
+        RenderTextControl {INPUT} at (2,2) size 344x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (348,16) size 0x0
         RenderButton {INPUT} at (2,25) size 62x18 [bgcolor=#C0C0C0]
           RenderBlock (anonymous) at (8,2) size 46x13
             RenderText at (0,0) size 46x13
               text run at (0,0) width 46: "Click Me"
         RenderBR {BR} at (66,38) size 0x0
       RenderBlock {UL} at (0,95) size 784x0
-layer at (13,47) size 420x13
-  RenderBlock {DIV} at (3,3) size 420x13
+layer at (13,47) size 338x13 scrollWidth 374
+  RenderBlock {DIV} at (3,3) size 338x13
     RenderText {#text} at (1,0) size 372x13
       text run at (1,0) width 372: "After you click the button below, this content should not be selected."