Reviewed by Dan Bernstein.
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2009 19:49:56 +0000 (19:49 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2009 19:49:56 +0000 (19:49 +0000)
        Make textarea and text input metrics more closely match IEs.
        https://bugs.webkit.org/show_bug.cgi?id=15312

        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.

        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: look in the OS/2 table for avgCharWidth and grab the maxCharWidth off the font.
            If either one is not there, then calculate the value using the Linux approach.

        Linux ports could probably dig into the OS/2 table as well, but I'll leave
        that up to them to implement.

        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@42678 268f45cc-cd09-0410-ab3c-d52691b4dbfc

556 files changed:
LayoutTests/ChangeLog
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/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-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.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/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 6eae404..6f0e45d 100644 (file)
@@ -1,3 +1,563 @@
+2009-04-10  Ojan Vafai  <ojan@chromium.org>
+
+        Reviewed by Dan Bernstein.
+
+        Make textarea and text input metrics more closely match IEs.
+        https://bugs.webkit.org/show_bug.cgi?id=15312
+
+        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.
+
+        * fast/forms/drag-out-of-textarea.html:
+        * fast/forms/resources/TEMPLATE.html: Copied from LayoutTests/editing/execCommand/resources/TEMPLATE.html.
+        * fast/forms/resources/text-control-intrinsic-widths.js: Added.
+        (printElementWidth):
+        * fast/forms/resources/textarea-metrics.js: Added.
+        (assertTextareaMetrics):
+        ():
+        * fast/forms/search-abs-pos-cancel-button.html:
+        * fast/forms/text-control-intrinsic-widths-expected.txt: Added.
+        * fast/forms/text-control-intrinsic-widths.html: Added.
+        * fast/forms/textarea-metrics-expected.txt: Added.
+        * fast/forms/textarea-metrics.html: Added.
+        * fast/forms/textarea-width.html:
+        * fast/replaced/table-percent-height-expected.txt:
+        * fast/replaced/table-percent-height.html:
+        * platform/mac/editing/deleting/5168598-expected.checksum:
+        * platform/mac/editing/deleting/5168598-expected.png:
+        * platform/mac/editing/deleting/5168598-expected.txt:
+        * platform/mac/editing/inserting/4960120-1-expected.checksum:
+        * platform/mac/editing/inserting/4960120-1-expected.png:
+        * platform/mac/editing/inserting/4960120-1-expected.txt:
+        * platform/mac/editing/inserting/5607069-2-expected.checksum:
+        * platform/mac/editing/inserting/5607069-2-expected.png:
+        * platform/mac/editing/inserting/5607069-2-expected.txt:
+        * platform/mac/editing/inserting/5607069-3-expected.checksum:
+        * platform/mac/editing/inserting/5607069-3-expected.png:
+        * platform/mac/editing/inserting/5607069-3-expected.txt:
+        * platform/mac/editing/inserting/before-after-input-element-expected.checksum:
+        * platform/mac/editing/inserting/before-after-input-element-expected.png:
+        * platform/mac/editing/inserting/before-after-input-element-expected.txt:
+        * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.checksum:
+        * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.png:
+        * platform/mac/editing/inserting/typing-tab-designmode-forms-expected.txt:
+        * platform/mac/editing/pasteboard/4806874-expected.checksum:
+        * platform/mac/editing/pasteboard/4806874-expected.png:
+        * platform/mac/editing/pasteboard/4806874-expected.txt:
+        * platform/mac/editing/pasteboard/drop-text-without-selection-expected.checksum:
+        * platform/mac/editing/pasteboard/drop-text-without-selection-expected.png:
+        * platform/mac/editing/pasteboard/drop-text-without-selection-expected.txt:
+        * platform/mac/editing/pasteboard/input-field-1-expected.checksum:
+        * platform/mac/editing/pasteboard/input-field-1-expected.png:
+        * platform/mac/editing/pasteboard/input-field-1-expected.txt:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.checksum:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.png:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-area-expected.txt:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.checksum:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.png:
+        * platform/mac/editing/pasteboard/nested-blocks-with-text-field-expected.txt:
+        * platform/mac/editing/pasteboard/pasting-tabs-expected.checksum:
+        * platform/mac/editing/pasteboard/pasting-tabs-expected.png:
+        * platform/mac/editing/pasteboard/pasting-tabs-expected.txt:
+        * platform/mac/editing/selection/3690703-2-expected.checksum:
+        * platform/mac/editing/selection/3690703-2-expected.png:
+        * platform/mac/editing/selection/3690703-2-expected.txt:
+        * platform/mac/editing/selection/3690703-expected.checksum:
+        * platform/mac/editing/selection/3690703-expected.png:
+        * platform/mac/editing/selection/3690703-expected.txt:
+        * platform/mac/editing/selection/3690719-expected.checksum:
+        * platform/mac/editing/selection/3690719-expected.png:
+        * platform/mac/editing/selection/3690719-expected.txt:
+        * platform/mac/editing/selection/4895428-3-expected.checksum:
+        * platform/mac/editing/selection/4895428-3-expected.png:
+        * platform/mac/editing/selection/4895428-3-expected.txt:
+        * platform/mac/editing/selection/4975120-expected.checksum:
+        * platform/mac/editing/selection/4975120-expected.png:
+        * platform/mac/editing/selection/4975120-expected.txt:
+        * platform/mac/editing/selection/5136696-expected.checksum:
+        * platform/mac/editing/selection/5136696-expected.png:
+        * platform/mac/editing/selection/5136696-expected.txt:
+        * platform/mac/editing/selection/5213963-expected.checksum:
+        * platform/mac/editing/selection/5213963-expected.png:
+        * platform/mac/editing/selection/5213963-expected.txt:
+        * platform/mac/editing/selection/drag-select-1-expected.checksum:
+        * platform/mac/editing/selection/drag-select-1-expected.png:
+        * platform/mac/editing/selection/drag-select-1-expected.txt:
+        * platform/mac/editing/selection/drag-text-delay-expected.checksum:
+        * platform/mac/editing/selection/drag-text-delay-expected.png:
+        * platform/mac/editing/selection/drag-text-delay-expected.txt:
+        * platform/mac/editing/selection/select-from-textfield-outwards-expected.checksum:
+        * platform/mac/editing/selection/select-from-textfield-outwards-expected.png:
+        * platform/mac/editing/selection/select-from-textfield-outwards-expected.txt:
+        * platform/mac/fast/block/margin-collapse/103-expected.txt:
+        * platform/mac/fast/css/line-height-expected.checksum:
+        * platform/mac/fast/css/line-height-expected.png:
+        * platform/mac/fast/css/line-height-expected.txt:
+        * platform/mac/fast/css/resize-corner-tracking-expected.checksum:
+        * platform/mac/fast/css/resize-corner-tracking-expected.png:
+        * platform/mac/fast/css/resize-corner-tracking-expected.txt:
+        * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.checksum:
+        * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.png:
+        * platform/mac/fast/dom/HTMLTextAreaElement/reset-textarea-expected.txt:
+        * platform/mac/fast/dom/isindex-002-expected.checksum:
+        * platform/mac/fast/dom/isindex-002-expected.png:
+        * platform/mac/fast/dom/isindex-002-expected.txt:
+        * platform/mac/fast/dynamic/008-expected.checksum:
+        * platform/mac/fast/dynamic/008-expected.png:
+        * platform/mac/fast/dynamic/008-expected.txt:
+        * platform/mac/fast/events/autoscroll-expected.checksum:
+        * platform/mac/fast/events/autoscroll-expected.png:
+        * platform/mac/fast/events/autoscroll-expected.txt:
+        * platform/mac/fast/events/context-no-deselect-expected.checksum:
+        * platform/mac/fast/events/context-no-deselect-expected.png:
+        * platform/mac/fast/events/context-no-deselect-expected.txt:
+        * platform/mac/fast/events/label-focus-expected.checksum:
+        * platform/mac/fast/events/label-focus-expected.png:
+        * platform/mac/fast/events/label-focus-expected.txt:
+        * platform/mac/fast/forms/basic-textareas-expected.checksum:
+        * platform/mac/fast/forms/basic-textareas-expected.png:
+        * platform/mac/fast/forms/basic-textareas-expected.txt:
+        * platform/mac/fast/forms/box-shadow-override-expected.checksum:
+        * platform/mac/fast/forms/box-shadow-override-expected.png:
+        * platform/mac/fast/forms/box-shadow-override-expected.txt:
+        * platform/mac/fast/forms/control-restrict-line-height-expected.checksum:
+        * platform/mac/fast/forms/control-restrict-line-height-expected.png:
+        * platform/mac/fast/forms/control-restrict-line-height-expected.txt:
+        * platform/mac/fast/forms/encoding-test-expected.checksum:
+        * platform/mac/fast/forms/encoding-test-expected.png:
+        * platform/mac/fast/forms/encoding-test-expected.txt:
+        * platform/mac/fast/forms/fieldset-align-expected.checksum:
+        * platform/mac/fast/forms/fieldset-align-expected.png:
+        * platform/mac/fast/forms/fieldset-align-expected.txt:
+        * platform/mac/fast/forms/form-element-geometry-expected.checksum:
+        * platform/mac/fast/forms/form-element-geometry-expected.png:
+        * platform/mac/fast/forms/form-element-geometry-expected.txt:
+        * platform/mac/fast/forms/input-align-expected.checksum:
+        * platform/mac/fast/forms/input-align-expected.png:
+        * platform/mac/fast/forms/input-align-expected.txt:
+        * platform/mac/fast/forms/input-appearance-bkcolor-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-bkcolor-expected.png:
+        * platform/mac/fast/forms/input-appearance-bkcolor-expected.txt:
+        * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.png:
+        * platform/mac/fast/forms/input-appearance-default-bkcolor-expected.txt:
+        * platform/mac/fast/forms/input-appearance-disabled-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-disabled-expected.png:
+        * platform/mac/fast/forms/input-appearance-disabled-expected.txt:
+        * platform/mac/fast/forms/input-appearance-focus-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-focus-expected.png:
+        * platform/mac/fast/forms/input-appearance-focus-expected.txt:
+        * platform/mac/fast/forms/input-appearance-height-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-height-expected.png:
+        * platform/mac/fast/forms/input-appearance-height-expected.txt:
+        * platform/mac/fast/forms/input-appearance-preventDefault-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-preventDefault-expected.png:
+        * platform/mac/fast/forms/input-appearance-preventDefault-expected.txt:
+        * platform/mac/fast/forms/input-appearance-readonly-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-readonly-expected.png:
+        * platform/mac/fast/forms/input-appearance-readonly-expected.txt:
+        * platform/mac/fast/forms/input-appearance-selection-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-selection-expected.png:
+        * platform/mac/fast/forms/input-appearance-selection-expected.txt:
+        * platform/mac/fast/forms/input-appearance-visibility-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-visibility-expected.png:
+        * platform/mac/fast/forms/input-appearance-visibility-expected.txt:
+        * platform/mac/fast/forms/input-appearance-width-expected.checksum:
+        * platform/mac/fast/forms/input-appearance-width-expected.png:
+        * platform/mac/fast/forms/input-appearance-width-expected.txt:
+        * platform/mac/fast/forms/input-baseline-expected.checksum:
+        * platform/mac/fast/forms/input-baseline-expected.png:
+        * platform/mac/fast/forms/input-baseline-expected.txt:
+        * platform/mac/fast/forms/input-disabled-color-expected.checksum:
+        * platform/mac/fast/forms/input-disabled-color-expected.png:
+        * platform/mac/fast/forms/input-disabled-color-expected.txt:
+        * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.checksum:
+        * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.png:
+        * platform/mac/fast/forms/input-double-click-selection-gap-bug-expected.txt:
+        * platform/mac/fast/forms/input-paste-undo-expected.checksum:
+        * platform/mac/fast/forms/input-paste-undo-expected.png:
+        * platform/mac/fast/forms/input-paste-undo-expected.txt:
+        * platform/mac/fast/forms/input-readonly-autoscroll-expected.checksum:
+        * platform/mac/fast/forms/input-readonly-autoscroll-expected.png:
+        * platform/mac/fast/forms/input-readonly-autoscroll-expected.txt:
+        * platform/mac/fast/forms/input-readonly-dimmed-expected.checksum:
+        * platform/mac/fast/forms/input-readonly-dimmed-expected.png:
+        * platform/mac/fast/forms/input-readonly-dimmed-expected.txt:
+        * platform/mac/fast/forms/input-readonly-empty-expected.checksum:
+        * platform/mac/fast/forms/input-readonly-empty-expected.png:
+        * platform/mac/fast/forms/input-readonly-empty-expected.txt:
+        * platform/mac/fast/forms/input-spaces-expected.checksum:
+        * platform/mac/fast/forms/input-spaces-expected.png:
+        * platform/mac/fast/forms/input-spaces-expected.txt:
+        * platform/mac/fast/forms/input-table-expected.txt:
+        * platform/mac/fast/forms/input-text-click-inside-expected.checksum:
+        * platform/mac/fast/forms/input-text-click-inside-expected.png:
+        * platform/mac/fast/forms/input-text-click-inside-expected.txt:
+        * platform/mac/fast/forms/input-text-click-outside-expected.checksum:
+        * platform/mac/fast/forms/input-text-click-outside-expected.png:
+        * platform/mac/fast/forms/input-text-click-outside-expected.txt:
+        * platform/mac/fast/forms/input-text-double-click-expected.checksum:
+        * platform/mac/fast/forms/input-text-double-click-expected.png:
+        * platform/mac/fast/forms/input-text-double-click-expected.txt:
+        * platform/mac/fast/forms/input-text-drag-down-expected.checksum:
+        * platform/mac/fast/forms/input-text-drag-down-expected.png:
+        * platform/mac/fast/forms/input-text-drag-down-expected.txt:
+        * platform/mac/fast/forms/input-text-maxlength-expected.checksum:
+        * platform/mac/fast/forms/input-text-maxlength-expected.png:
+        * platform/mac/fast/forms/input-text-maxlength-expected.txt:
+        * platform/mac/fast/forms/input-text-option-delete-expected.checksum:
+        * platform/mac/fast/forms/input-text-option-delete-expected.png:
+        * platform/mac/fast/forms/input-text-option-delete-expected.txt:
+        * platform/mac/fast/forms/input-text-paste-maxlength-expected.checksum:
+        * platform/mac/fast/forms/input-text-paste-maxlength-expected.png:
+        * platform/mac/fast/forms/input-text-paste-maxlength-expected.txt:
+        * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.checksum:
+        * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.png:
+        * platform/mac/fast/forms/input-text-scroll-left-on-blur-expected.txt:
+        * platform/mac/fast/forms/input-text-self-emptying-click-expected.checksum:
+        * platform/mac/fast/forms/input-text-self-emptying-click-expected.png:
+        * platform/mac/fast/forms/input-text-self-emptying-click-expected.txt:
+        * platform/mac/fast/forms/input-text-word-wrap-expected.checksum:
+        * platform/mac/fast/forms/input-text-word-wrap-expected.png:
+        * platform/mac/fast/forms/input-text-word-wrap-expected.txt:
+        * platform/mac/fast/forms/input-type-change2-expected.checksum:
+        * platform/mac/fast/forms/input-type-change2-expected.png:
+        * platform/mac/fast/forms/input-type-change2-expected.txt:
+        * platform/mac/fast/forms/input-type-text-min-width-expected.checksum:
+        * platform/mac/fast/forms/input-type-text-min-width-expected.png:
+        * platform/mac/fast/forms/input-type-text-min-width-expected.txt:
+        * platform/mac/fast/forms/input-value-expected.checksum:
+        * platform/mac/fast/forms/input-value-expected.png:
+        * platform/mac/fast/forms/input-value-expected.txt:
+        * platform/mac/fast/forms/input-width-expected.checksum:
+        * platform/mac/fast/forms/input-width-expected.png:
+        * platform/mac/fast/forms/input-width-expected.txt:
+        * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.checksum:
+        * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.png:
+        * platform/mac/fast/forms/linebox-overflow-in-textarea-padding-expected.txt:
+        * platform/mac/fast/forms/negativeLineHeight-expected.checksum:
+        * platform/mac/fast/forms/negativeLineHeight-expected.png:
+        * platform/mac/fast/forms/negativeLineHeight-expected.txt:
+        * platform/mac/fast/forms/password-placeholder-expected.checksum:
+        * platform/mac/fast/forms/password-placeholder-expected.png:
+        * platform/mac/fast/forms/password-placeholder-expected.txt:
+        * platform/mac/fast/forms/password-placeholder-text-security-expected.checksum:
+        * platform/mac/fast/forms/password-placeholder-text-security-expected.png:
+        * platform/mac/fast/forms/password-placeholder-text-security-expected.txt:
+        * platform/mac/fast/forms/placeholder-pseudo-style-expected.checksum:
+        * platform/mac/fast/forms/placeholder-pseudo-style-expected.png:
+        * platform/mac/fast/forms/placeholder-pseudo-style-expected.txt:
+        * platform/mac/fast/forms/placeholder-set-attribute-expected.checksum:
+        * platform/mac/fast/forms/placeholder-set-attribute-expected.png:
+        * platform/mac/fast/forms/placeholder-set-attribute-expected.txt:
+        * platform/mac/fast/forms/placeholder-set-value-expected.checksum:
+        * platform/mac/fast/forms/placeholder-set-value-expected.png:
+        * platform/mac/fast/forms/placeholder-set-value-expected.txt:
+        * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.checksum:
+        * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.png:
+        * platform/mac/fast/forms/search-cancel-button-style-sharing-expected.txt:
+        * platform/mac/fast/forms/search-display-none-cancel-button-expected.checksum:
+        * platform/mac/fast/forms/search-display-none-cancel-button-expected.png:
+        * platform/mac/fast/forms/search-display-none-cancel-button-expected.txt:
+        * platform/mac/fast/forms/search-placeholder-value-changed-expected.checksum:
+        * platform/mac/fast/forms/search-placeholder-value-changed-expected.png:
+        * platform/mac/fast/forms/search-placeholder-value-changed-expected.txt:
+        * platform/mac/fast/forms/search-rtl-expected.checksum:
+        * platform/mac/fast/forms/search-rtl-expected.png:
+        * platform/mac/fast/forms/search-rtl-expected.txt:
+        * platform/mac/fast/forms/search-transformed-expected.checksum:
+        * platform/mac/fast/forms/search-transformed-expected.png:
+        * platform/mac/fast/forms/search-transformed-expected.txt:
+        * platform/mac/fast/forms/search-zoomed-expected.checksum:
+        * platform/mac/fast/forms/search-zoomed-expected.png:
+        * platform/mac/fast/forms/search-zoomed-expected.txt:
+        * platform/mac/fast/forms/searchfield-heights-expected.checksum:
+        * platform/mac/fast/forms/searchfield-heights-expected.png:
+        * platform/mac/fast/forms/searchfield-heights-expected.txt:
+        * platform/mac/fast/forms/tabbing-input-iframe-expected.checksum:
+        * platform/mac/fast/forms/tabbing-input-iframe-expected.png:
+        * platform/mac/fast/forms/tabbing-input-iframe-expected.txt:
+        * platform/mac/fast/forms/textAreaLineHeight-expected.checksum:
+        * platform/mac/fast/forms/textAreaLineHeight-expected.png:
+        * platform/mac/fast/forms/textAreaLineHeight-expected.txt:
+        * platform/mac/fast/forms/textarea-align-expected.checksum:
+        * platform/mac/fast/forms/textarea-align-expected.png:
+        * platform/mac/fast/forms/textarea-align-expected.txt:
+        * platform/mac/fast/forms/textarea-rows-cols-expected.checksum:
+        * platform/mac/fast/forms/textarea-rows-cols-expected.png:
+        * platform/mac/fast/forms/textarea-rows-cols-expected.txt:
+        * platform/mac/fast/forms/textarea-scroll-height-expected.checksum:
+        * platform/mac/fast/forms/textarea-scroll-height-expected.png:
+        * platform/mac/fast/forms/textarea-scroll-height-expected.txt:
+        * platform/mac/fast/forms/textarea-scrollbar-expected.checksum:
+        * platform/mac/fast/forms/textarea-scrollbar-expected.png:
+        * platform/mac/fast/forms/textarea-scrollbar-expected.txt:
+        * platform/mac/fast/forms/textarea-scrolled-type-expected.checksum:
+        * platform/mac/fast/forms/textarea-scrolled-type-expected.png:
+        * platform/mac/fast/forms/textarea-scrolled-type-expected.txt:
+        * platform/mac/fast/forms/textarea-setinnerhtml-expected.checksum:
+        * platform/mac/fast/forms/textarea-setinnerhtml-expected.png:
+        * platform/mac/fast/forms/textarea-setinnerhtml-expected.txt:
+        * platform/mac/fast/forms/textarea-width-expected.checksum:
+        * platform/mac/fast/forms/textarea-width-expected.png:
+        * platform/mac/fast/forms/textarea-width-expected.txt:
+        * platform/mac/fast/forms/textfield-drag-into-disabled-expected.checksum:
+        * platform/mac/fast/forms/textfield-drag-into-disabled-expected.png:
+        * platform/mac/fast/forms/textfield-drag-into-disabled-expected.txt:
+        * platform/mac/fast/forms/textfield-outline-expected.checksum:
+        * platform/mac/fast/forms/textfield-outline-expected.png:
+        * platform/mac/fast/forms/textfield-outline-expected.txt:
+        * platform/mac/fast/forms/textfield-overflow-expected.checksum:
+        * platform/mac/fast/forms/textfield-overflow-expected.png:
+        * platform/mac/fast/forms/textfield-overflow-expected.txt:
+        * platform/mac/fast/forms/visual-hebrew-text-field-expected.checksum:
+        * platform/mac/fast/forms/visual-hebrew-text-field-expected.png:
+        * platform/mac/fast/forms/visual-hebrew-text-field-expected.txt:
+        * platform/mac/fast/invalid/residual-style-expected.txt:
+        * platform/mac/fast/lists/dynamic-marker-crash-expected.checksum:
+        * platform/mac/fast/lists/dynamic-marker-crash-expected.png:
+        * platform/mac/fast/lists/dynamic-marker-crash-expected.txt:
+        * platform/mac/fast/overflow/overflow-x-y-expected.checksum:
+        * platform/mac/fast/overflow/overflow-x-y-expected.png:
+        * platform/mac/fast/overflow/overflow-x-y-expected.txt:
+        * platform/mac/fast/parser/comment-in-textarea-expected.checksum:
+        * platform/mac/fast/parser/comment-in-textarea-expected.png:
+        * platform/mac/fast/parser/comment-in-textarea-expected.txt:
+        * platform/mac/fast/parser/entity-comment-in-textarea-expected.checksum:
+        * platform/mac/fast/parser/entity-comment-in-textarea-expected.png:
+        * platform/mac/fast/parser/entity-comment-in-textarea-expected.txt:
+        * platform/mac/fast/parser/open-comment-in-textarea-expected.checksum:
+        * platform/mac/fast/parser/open-comment-in-textarea-expected.png:
+        * platform/mac/fast/parser/open-comment-in-textarea-expected.txt:
+        * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.checksum:
+        * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.png:
+        * platform/mac/fast/repaint/renderer-destruction-by-invalidateSelection-crash-expected.txt:
+        * platform/mac/fast/repaint/search-field-cancel-expected.checksum:
+        * platform/mac/fast/repaint/search-field-cancel-expected.png:
+        * platform/mac/fast/repaint/search-field-cancel-expected.txt:
+        * platform/mac/fast/repaint/subtree-root-skipped-expected.checksum:
+        * platform/mac/fast/repaint/subtree-root-skipped-expected.png:
+        * platform/mac/fast/repaint/subtree-root-skipped-expected.txt:
+        * platform/mac/fast/replaced/replaced-breaking-expected.checksum:
+        * platform/mac/fast/replaced/replaced-breaking-expected.png:
+        * platform/mac/fast/replaced/replaced-breaking-expected.txt:
+        * platform/mac/fast/replaced/replaced-breaking-mixture-expected.checksum:
+        * platform/mac/fast/replaced/replaced-breaking-mixture-expected.png:
+        * platform/mac/fast/replaced/replaced-breaking-mixture-expected.txt:
+        * platform/mac/fast/replaced/width100percent-searchfield-expected.checksum:
+        * platform/mac/fast/replaced/width100percent-searchfield-expected.png:
+        * platform/mac/fast/replaced/width100percent-searchfield-expected.txt:
+        * platform/mac/fast/replaced/width100percent-textarea-expected.checksum:
+        * platform/mac/fast/replaced/width100percent-textarea-expected.png:
+        * platform/mac/fast/replaced/width100percent-textarea-expected.txt:
+        * platform/mac/fast/replaced/width100percent-textfield-expected.checksum:
+        * platform/mac/fast/replaced/width100percent-textfield-expected.png:
+        * platform/mac/fast/replaced/width100percent-textfield-expected.txt:
+        * platform/mac/fast/table/003-expected.checksum:
+        * platform/mac/fast/table/003-expected.png:
+        * platform/mac/fast/table/003-expected.txt:
+        * platform/mac/fast/table/colspanMinWidth-expected.checksum:
+        * platform/mac/fast/table/colspanMinWidth-expected.png:
+        * platform/mac/fast/table/colspanMinWidth-expected.txt:
+        * platform/mac/fast/table/spanOverlapRepaint-expected.checksum:
+        * platform/mac/fast/table/spanOverlapRepaint-expected.png:
+        * platform/mac/fast/table/spanOverlapRepaint-expected.txt:
+        * platform/mac/fast/table/text-field-baseline-expected.checksum:
+        * platform/mac/fast/table/text-field-baseline-expected.png:
+        * platform/mac/fast/table/text-field-baseline-expected.txt:
+        * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.checksum:
+        * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.png:
+        * platform/mac/fast/text/international/rtl-white-space-pre-wrap-expected.txt:
+        * platform/mac/fast/text/textIteratorNilRenderer-expected.checksum:
+        * platform/mac/fast/text/textIteratorNilRenderer-expected.png:
+        * platform/mac/fast/text/textIteratorNilRenderer-expected.txt:
+        * platform/mac/fast/transforms/transformed-focused-text-input-expected.checksum:
+        * platform/mac/fast/transforms/transformed-focused-text-input-expected.png:
+        * platform/mac/fast/transforms/transformed-focused-text-input-expected.txt:
+        * platform/mac/http/tests/navigation/anchor-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/anchor-basic-expected.png:
+        * platform/mac/http/tests/navigation/anchor-basic-expected.txt:
+        * platform/mac/http/tests/navigation/anchor-frames-expected.txt:
+        * platform/mac/http/tests/navigation/anchor-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/anchor-goback-expected.png:
+        * platform/mac/http/tests/navigation/anchor-goback-expected.txt:
+        * platform/mac/http/tests/navigation/anchor-subframeload-expected.txt:
+        * platform/mac/http/tests/navigation/javascriptlink-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/javascriptlink-basic-expected.png:
+        * platform/mac/http/tests/navigation/javascriptlink-basic-expected.txt:
+        * platform/mac/http/tests/navigation/javascriptlink-frames-expected.checksum:
+        * platform/mac/http/tests/navigation/javascriptlink-frames-expected.png:
+        * platform/mac/http/tests/navigation/javascriptlink-frames-expected.txt:
+        * platform/mac/http/tests/navigation/javascriptlink-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/javascriptlink-goback-expected.png:
+        * platform/mac/http/tests/navigation/javascriptlink-goback-expected.txt:
+        * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.checksum:
+        * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.png:
+        * platform/mac/http/tests/navigation/javascriptlink-subframeload-expected.txt:
+        * platform/mac/http/tests/navigation/metaredirect-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/metaredirect-basic-expected.png:
+        * platform/mac/http/tests/navigation/metaredirect-basic-expected.txt:
+        * platform/mac/http/tests/navigation/metaredirect-frames-expected.checksum:
+        * platform/mac/http/tests/navigation/metaredirect-frames-expected.png:
+        * platform/mac/http/tests/navigation/metaredirect-frames-expected.txt:
+        * platform/mac/http/tests/navigation/metaredirect-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/metaredirect-goback-expected.png:
+        * platform/mac/http/tests/navigation/metaredirect-goback-expected.txt:
+        * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.checksum:
+        * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.png:
+        * platform/mac/http/tests/navigation/metaredirect-subframeload-expected.txt:
+        * platform/mac/http/tests/navigation/post-goback2-expected.checksum:
+        * platform/mac/http/tests/navigation/post-goback2-expected.png:
+        * platform/mac/http/tests/navigation/post-goback2-expected.txt:
+        * platform/mac/http/tests/navigation/postredirect-goback2-expected.checksum:
+        * platform/mac/http/tests/navigation/postredirect-goback2-expected.png:
+        * platform/mac/http/tests/navigation/postredirect-goback2-expected.txt:
+        * platform/mac/http/tests/navigation/redirect302-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/redirect302-basic-expected.png:
+        * platform/mac/http/tests/navigation/redirect302-basic-expected.txt:
+        * platform/mac/http/tests/navigation/redirect302-frames-expected.checksum:
+        * platform/mac/http/tests/navigation/redirect302-frames-expected.png:
+        * platform/mac/http/tests/navigation/redirect302-frames-expected.txt:
+        * platform/mac/http/tests/navigation/redirect302-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/redirect302-goback-expected.png:
+        * platform/mac/http/tests/navigation/redirect302-goback-expected.txt:
+        * platform/mac/http/tests/navigation/redirect302-subframeload-expected.checksum:
+        * platform/mac/http/tests/navigation/redirect302-subframeload-expected.png:
+        * platform/mac/http/tests/navigation/redirect302-subframeload-expected.txt:
+        * platform/mac/http/tests/navigation/relativeanchor-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/relativeanchor-basic-expected.png:
+        * platform/mac/http/tests/navigation/relativeanchor-basic-expected.txt:
+        * platform/mac/http/tests/navigation/relativeanchor-frames-expected.txt:
+        * platform/mac/http/tests/navigation/relativeanchor-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/relativeanchor-goback-expected.png:
+        * platform/mac/http/tests/navigation/relativeanchor-goback-expected.txt:
+        * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.png:
+        * platform/mac/http/tests/navigation/slowmetaredirect-basic-expected.txt:
+        * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.png:
+        * platform/mac/http/tests/navigation/slowtimerredirect-basic-expected.txt:
+        * platform/mac/http/tests/navigation/success200-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-basic-expected.png:
+        * platform/mac/http/tests/navigation/success200-basic-expected.txt:
+        * platform/mac/http/tests/navigation/success200-frames-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-frames-expected.png:
+        * platform/mac/http/tests/navigation/success200-frames-expected.txt:
+        * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.png:
+        * platform/mac/http/tests/navigation/success200-frames-loadsame-expected.txt:
+        * platform/mac/http/tests/navigation/success200-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-goback-expected.png:
+        * platform/mac/http/tests/navigation/success200-goback-expected.txt:
+        * platform/mac/http/tests/navigation/success200-loadsame-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-loadsame-expected.png:
+        * platform/mac/http/tests/navigation/success200-loadsame-expected.txt:
+        * platform/mac/http/tests/navigation/success200-reload-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-reload-expected.png:
+        * platform/mac/http/tests/navigation/success200-reload-expected.txt:
+        * platform/mac/http/tests/navigation/success200-subframeload-expected.checksum:
+        * platform/mac/http/tests/navigation/success200-subframeload-expected.png:
+        * platform/mac/http/tests/navigation/success200-subframeload-expected.txt:
+        * platform/mac/http/tests/navigation/timerredirect-basic-expected.checksum:
+        * platform/mac/http/tests/navigation/timerredirect-basic-expected.png:
+        * platform/mac/http/tests/navigation/timerredirect-basic-expected.txt:
+        * platform/mac/http/tests/navigation/timerredirect-frames-expected.checksum:
+        * platform/mac/http/tests/navigation/timerredirect-frames-expected.png:
+        * platform/mac/http/tests/navigation/timerredirect-frames-expected.txt:
+        * platform/mac/http/tests/navigation/timerredirect-goback-expected.checksum:
+        * platform/mac/http/tests/navigation/timerredirect-goback-expected.png:
+        * platform/mac/http/tests/navigation/timerredirect-goback-expected.txt:
+        * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.checksum:
+        * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.png:
+        * platform/mac/http/tests/navigation/timerredirect-subframeload-expected.txt:
+        * platform/mac/svg/custom/inline-svg-in-xhtml-expected.checksum:
+        * platform/mac/svg/custom/inline-svg-in-xhtml-expected.png:
+        * platform/mac/svg/custom/inline-svg-in-xhtml-expected.txt:
+        * platform/mac/svg/hixie/mixed/003-expected.checksum:
+        * platform/mac/svg/hixie/mixed/003-expected.png:
+        * platform/mac/svg/hixie/mixed/003-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug1188-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug1188-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug1188-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug12384-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug12384-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug12384-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug18359-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug18359-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug18359-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug194024-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug194024-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug194024-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug24200-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug24200-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug24200-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug2479-2-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug2479-2-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug2479-2-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug2479-3-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug2479-3-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug2479-3-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug2479-4-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug28928-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug28928-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug28928-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug30559-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug30559-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug30559-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug30692-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug30692-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug30692-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug4382-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug4382-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug4382-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug4527-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug4527-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug4527-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug46368-1-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug46368-1-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug46368-1-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug46368-2-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug46368-2-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug46368-2-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug51037-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug51037-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug51037-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug55545-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug55545-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug55545-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug59354-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug59354-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug59354-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug7342-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug7342-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug7342-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug96334-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug96334-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug96334-expected.txt:
+        * platform/mac/tables/mozilla/bugs/bug99948-expected.checksum:
+        * platform/mac/tables/mozilla/bugs/bug99948-expected.png:
+        * platform/mac/tables/mozilla/bugs/bug99948-expected.txt:
+        * platform/mac/tables/mozilla/dom/tableDom-expected.checksum:
+        * platform/mac/tables/mozilla/dom/tableDom-expected.png:
+        * platform/mac/tables/mozilla/dom/tableDom-expected.txt:
+        * platform/mac/tables/mozilla/other/move_row-expected.checksum:
+        * platform/mac/tables/mozilla/other/move_row-expected.png:
+        * platform/mac/tables/mozilla/other/move_row-expected.txt:
+        * platform/mac/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
+        * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.checksum:
+        * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png:
+        * platform/mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.txt:
+        * svg/custom/resources/svg-fonts-in-text-controls.js: Added.
+        * svg/custom/svg-fonts-in-text-controls-expected.txt: Added.
+        * svg/custom/svg-fonts-in-text-controls.html: Added.
+
 2009-04-20  Simon Fraser  <simon.fraser@apple.com>
 
         Reviewed by Eric Seidel
index a289887..d3d2c3a 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 77c5ee4..fa0dcff 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");
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..fdde8b2
--- /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=29
+size=3 clientWidth=36
+size=4 clientWidth=43
+size=5 clientWidth=50
+size=10 clientWidth=85
+size=20 clientWidth=155
+size=50 clientWidth=363
+size=100 clientWidth=711
+size=500 clientWidth=3493
+size=1000 clientWidth=6971
+
+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=367
+cols=100 clientWidth=715
+cols=500 clientWidth=3497
+cols=1000 clientWidth=6975
+
+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=26
+size=3 clientWidth=32
+size=4 clientWidth=38
+size=5 clientWidth=44
+size=10 clientWidth=74
+size=20 clientWidth=134
+size=50 clientWidth=314
+size=100 clientWidth=614
+size=500 clientWidth=3014
+size=1000 clientWidth=6014
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=31
+cols=3 clientWidth=37
+cols=4 clientWidth=43
+cols=5 clientWidth=49
+cols=10 clientWidth=79
+cols=20 clientWidth=139
+cols=50 clientWidth=319
+cols=100 clientWidth=619
+cols=500 clientWidth=3019
+cols=1000 clientWidth=6019
+
+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=22
+size=2 clientWidth=28
+size=3 clientWidth=34
+size=4 clientWidth=40
+size=5 clientWidth=46
+size=10 clientWidth=76
+size=20 clientWidth=136
+size=50 clientWidth=316
+size=100 clientWidth=616
+size=500 clientWidth=3016
+size=1000 clientWidth=6016
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=31
+cols=3 clientWidth=37
+cols=4 clientWidth=43
+cols=5 clientWidth=49
+cols=10 clientWidth=79
+cols=20 clientWidth=139
+cols=50 clientWidth=319
+cols=100 clientWidth=619
+cols=500 clientWidth=3019
+cols=1000 clientWidth=6019
+
+Andale Mono
+input
+size=1 clientWidth=11
+size=2 clientWidth=18
+size=3 clientWidth=24
+size=4 clientWidth=31
+size=5 clientWidth=38
+size=10 clientWidth=71
+size=20 clientWidth=137
+size=50 clientWidth=335
+size=100 clientWidth=665
+size=500 clientWidth=3305
+size=1000 clientWidth=6606
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=39
+cols=4 clientWidth=46
+cols=5 clientWidth=53
+cols=10 clientWidth=86
+cols=20 clientWidth=152
+cols=50 clientWidth=350
+cols=100 clientWidth=680
+cols=500 clientWidth=3320
+cols=1000 clientWidth=6621
+
+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=119
+size=50 clientWidth=264
+size=100 clientWidth=507
+size=500 clientWidth=2449
+size=1000 clientWidth=4877
+
+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=262
+cols=100 clientWidth=505
+cols=500 clientWidth=2447
+cols=1000 clientWidth=4875
+
+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=116
+size=50 clientWidth=270
+size=100 clientWidth=528
+size=500 clientWidth=2588
+size=1000 clientWidth=5163
+
+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=123
+cols=50 clientWidth=277
+cols=100 clientWidth=535
+cols=500 clientWidth=2595
+cols=1000 clientWidth=5170
+
+Courier New
+input
+size=1 clientWidth=11
+size=2 clientWidth=18
+size=3 clientWidth=24
+size=4 clientWidth=31
+size=5 clientWidth=38
+size=10 clientWidth=71
+size=20 clientWidth=137
+size=50 clientWidth=335
+size=100 clientWidth=665
+size=500 clientWidth=3305
+size=1000 clientWidth=6606
+
+textarea
+cols=1 clientWidth=26
+cols=2 clientWidth=33
+cols=3 clientWidth=39
+cols=4 clientWidth=46
+cols=5 clientWidth=53
+cols=10 clientWidth=86
+cols=20 clientWidth=152
+cols=50 clientWidth=350
+cols=100 clientWidth=680
+cols=500 clientWidth=3320
+cols=1000 clientWidth=6621
+
+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=109
+size=50 clientWidth=254
+size=100 clientWidth=496
+size=500 clientWidth=2432
+size=1000 clientWidth=4852
+
+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=503
+cols=500 clientWidth=2439
+cols=1000 clientWidth=4859
+
+Times New Roman
+input
+size=1 clientWidth=26
+size=2 clientWidth=30
+size=3 clientWidth=35
+size=4 clientWidth=39
+size=5 clientWidth=44
+size=10 clientWidth=66
+size=20 clientWidth=110
+size=50 clientWidth=242
+size=100 clientWidth=462
+size=500 clientWidth=2226
+size=1000 clientWidth=4431
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=28
+cols=3 clientWidth=33
+cols=4 clientWidth=37
+cols=5 clientWidth=42
+cols=10 clientWidth=64
+cols=20 clientWidth=108
+cols=50 clientWidth=240
+cols=100 clientWidth=460
+cols=500 clientWidth=2224
+cols=1000 clientWidth=4429
+
+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=61
+size=20 clientWidth=111
+size=50 clientWidth=261
+size=100 clientWidth=510
+size=500 clientWidth=2506
+size=1000 clientWidth=5001
+
+textarea
+cols=1 clientWidth=24
+cols=2 clientWidth=29
+cols=3 clientWidth=34
+cols=4 clientWidth=39
+cols=5 clientWidth=44
+cols=10 clientWidth=69
+cols=20 clientWidth=119
+cols=50 clientWidth=269
+cols=100 clientWidth=518
+cols=500 clientWidth=2514
+cols=1000 clientWidth=5009
+
+Verdana
+input
+size=1 clientWidth=21
+size=2 clientWidth=27
+size=3 clientWidth=32
+size=4 clientWidth=38
+size=5 clientWidth=43
+size=10 clientWidth=71
+size=20 clientWidth=127
+size=50 clientWidth=295
+size=100 clientWidth=575
+size=500 clientWidth=2811
+size=1000 clientWidth=5607
+
+textarea
+cols=1 clientWidth=25
+cols=2 clientWidth=31
+cols=3 clientWidth=36
+cols=4 clientWidth=42
+cols=5 clientWidth=47
+cols=10 clientWidth=75
+cols=20 clientWidth=131
+cols=50 clientWidth=299
+cols=100 clientWidth=579
+cols=500 clientWidth=2815
+cols=1000 clientWidth=5611
+
+Webdings
+input
+size=1 clientWidth=18
+size=2 clientWidth=29
+size=3 clientWidth=40
+size=4 clientWidth=50
+size=5 clientWidth=61
+size=10 clientWidth=114
+size=20 clientWidth=221
+size=50 clientWidth=542
+size=100 clientWidth=1076
+size=500 clientWidth=5349
+size=1000 clientWidth=10691
+
+textarea
+cols=1 clientWidth=30
+cols=2 clientWidth=41
+cols=3 clientWidth=52
+cols=4 clientWidth=62
+cols=5 clientWidth=73
+cols=10 clientWidth=126
+cols=20 clientWidth=233
+cols=50 clientWidth=554
+cols=100 clientWidth=1088
+cols=500 clientWidth=5361
+cols=1000 clientWidth=10703
+
+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>
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 64ebf32..dcab536 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 9f35852..969eed7 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 '159px'
 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 '159px'
 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 '159px'
 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 '159px'
 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 '153px'
 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 '153px'
 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 '161px'
 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 '161px'
+PASS getComputedStyleForElement(document.getElementById('textarea-100'), 'height') is '28px'
 PASS successfullyParsed is true
 
 TEST COMPLETE
index 282b035..6d3883a 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')", "'159px'");
     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')", "'159px'");
     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')", "'159px'");
     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')", "'159px'");
     shouldBe("getComputedStyleForElement(document.getElementById('input-text-100'), 'height')", "'13px'");
 
-    shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'width')", "'142px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'width')", "'153px'");
     shouldBe("getComputedStyleForElement(document.getElementById('isindex-75'), 'height')", "'35px'");
-    shouldBe("getComputedStyleForElement(document.getElementById('isindex-100'), 'width')", "'142px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('isindex-100'), 'width')", "'153px'");
     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')", "'161px'");
     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')", "'161px'");
+    shouldBe("getComputedStyleForElement(document.getElementById('textarea-100'), 'height')", "'28px'");
 
     isSuccessfullyParsed();
 
index af96bf0..be92448 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 d17ffa1..5c363be 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 464x326
+        RenderTableSection {TBODY} at (0,0) size 464x326
+          RenderTableRow {TR} at (0,2) size 464x25
+            RenderTableCell {TD} at (2,2) size 60x25 [r=0 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,29) size 60x25 [r=1 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,56) size 60x25 [r=2 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,83) size 60x25 [r=3 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,110) size 60x25 [r=4 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,137) size 60x25 [r=5 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,164) size 60x25 [r=6 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,191) size 60x25 [r=7 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,218) size 60x25 [r=8 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,245) size 60x25 [r=9 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,272) size 60x25 [r=10 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 464x25
+            RenderTableCell {TD} at (2,299) size 60x25 [r=11 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     RenderText {#text} at (1,0) size 35x13
       text run at (1,0) width 35: "12x\x{305}\x{332}45"
index 077da98..ae4c354 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 fe73d98..787a55f 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 496x245
+        RenderTableSection {TBODY} at (0,0) size 496x245
+          RenderTableRow {TR} at (0,2) size 496x25
+            RenderTableCell {TD} at (2,2) size 60x25 [r=0 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,29) size 60x25 [r=1 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,56) size 60x25 [r=2 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,83) size 60x25 [r=3 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,110) size 60x25 [r=4 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,137) size 60x25 [r=5 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,164) size 60x25 [r=6 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,191) size 60x25 [r=7 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 496x25
+            RenderTableCell {TD} at (2,218) size 60x25 [r=8 c=0 rs=1 cs=1]
+              RenderTextControl {INPUT} at (3,3) size 54x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+            RenderTableCell {TD} at (64,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 (162,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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     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 48x13
+  RenderBlock {DIV} at (3,3) size 48x13
     RenderText {#text} at (1,0) size 28x13
       text run at (1,0) width 28: "12x\x{305}\x{332}4"
index e4468c7..0efb6a5 100644 (file)
@@ -1 +1 @@
-5699fb65d3f1d2be214196bad1badbd7
\ No newline at end of file
+094a319778369a23f72450745cd821b3
\ No newline at end of file
index b26c973..0e77507 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 a6e7a72..b4cb7d9 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 159x19 [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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
     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 348b081..3966770 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 f9cc774..aef541a 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 161x32 clip at (9,44) size 159x30
+  RenderTextControl {TEXTAREA} at (0,1) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 155x26
+      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 a3c8680..015bdf6 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 60cdf7d..f1574a2 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (163,16) size 0x0
+        RenderTextControl {INPUT} at (2,25) size 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+layer at (13,65) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
+layer at (13,88) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 caret: position 0 of child 2 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index f9a09d0..6ff3bc5 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 300b594..d30e874 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderText {#text} at (164,3) size 8x18
+            text run at (164,3) width 8: "x"
+          RenderBR {BR} at (172,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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+layer at (14,66) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
+layer at (22,89) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 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 e8998a4..d34e1cc 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 aa78531..0ed70e7 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (198,2) size 40x18
+          text run at (198,2) width 40: "World"
+layer at (48,47) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 caret: position 5 of child 2 {#text} of child 2 {DIV} of child 1 {BODY} of child 0 {HTML} of document
index 4e63355..696b985 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 2a1f96d..9af38f6 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+      RenderBR {BR} at (163,16) size 0x0
+      RenderTextControl {INPUT} at (2,25) size 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+      RenderText {#text} at (163,25) size 4x18
+        text run at (163,25) width 4: " "
+      RenderText {#text} at (167,25) size 455x18
+        text run at (167,25) width 455: "tabbing between forms in design mode (nothing happens at the moment)"
+      RenderBR {BR} at (622,39) size 0x0
+layer at (13,13) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
     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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 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 b44540a..a0fff23 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 bbe2e16..8c29be4 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (198,2) size 4x18
+          text run at (198,2) width 4: ":"
+layer at (48,47) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index 79b2fe0..1abcba8 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 2c23566..3a35a3f 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderText {#text} at (163,2) size 4x18
+          text run at (163,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 (167,2) size 162x18
+            text run at (167,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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
     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 96e12c1..de8a61e 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 2b79d8d..606ac44 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (165,2) size 159x19 [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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
+layer at (176,47) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 caret: position 1 of child 1 {INPUT} of child 2 {DIV} of child 2 {BODY} of child 0 {HTML} of document
index 8fd45a9..91d26aa 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 53e1c0d..1fb400c 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 (466,20) size 4x18
+            text run at (466,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 (470,20) size 8x18
+              text run at (470,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 (313,63) size 161x32 clip at (314,64) size 159x30
+  RenderTextControl {TEXTAREA} at (305,1) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 155x13
+      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 459928e..d6c1179 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 e2cbd4b..5c8ea9a 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 (306,2) size 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+          RenderText {#text} at (467,2) size 4x18
+            text run at (467,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 (471,2) size 8x18
+              text run at (471,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 (317,67) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 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 d6cf24c..dce05d6 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 8a7e669..e7e9842 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 161x32 clip at (9,62) size 159x30
+  RenderTextControl {TEXTAREA} at (0,1) size 161x32 [bgcolor=#FFFFFF] [border: (1px solid #000000)]
+    RenderBlock {DIV} at (3,3) size 155x13
+      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 682c15e..3bd7a6f 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 fe346cc..6558712 100644 (file)
@@ -77,21 +77,21 @@ layer at (0,0) size 800x600
           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]
+                RenderTableCell {TD} at (0,13) size 185x18 [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 (185,0) size 406x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 402x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (406,16) size 0x0
+                  RenderButton {INPUT} at (100,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 (197,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 (591,0) size 189x39 [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 (200,88) size 396x13
+  RenderBlock {DIV} at (3,3) size 396x13
 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 9ab6cad..2cb0462 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 a474ef1..f965fee 100644 (file)
@@ -79,21 +79,21 @@ layer at (0,0) size 800x600
           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]
+                RenderTableCell {TD} at (0,13) size 185x18 [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 (185,0) size 406x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 402x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (406,16) size 0x0
+                  RenderButton {INPUT} at (100,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 (197,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 (591,0) size 189x39 [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 (200,88) size 396x13
+  RenderBlock {DIV} at (3,3) size 396x13
 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 9ab6cad..2cb0462 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 8739e3a..e746456 100644 (file)
@@ -71,21 +71,21 @@ layer at (0,0) size 800x600
           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]
+                RenderTableCell {TD} at (0,13) size 185x18 [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 (185,0) size 406x45 [r=0 c=1 rs=1 cs=1]
+                  RenderTextControl {INPUT} at (2,2) size 402x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+                  RenderBR {BR} at (406,16) size 0x0
+                  RenderButton {INPUT} at (100,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 (197,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 (591,0) size 189x39 [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 (200,88) size 396x13
+  RenderBlock {DIV} at (3,3) size 396x13
 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 00a81f7..a7d9939 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 ea972c9..dd933a7 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 159x19 [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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 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 fdcbb74..a947bda 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 9924c55..2e9d84e 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 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (163,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 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
     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 d978f96..b150dd4 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 1fedd79..0a9b450 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 228x19 [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 222x13
+  RenderBlock {DIV} at (3,3) size 222x13
     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 ebb6676..5229c29 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 37ee1d5..998f01e 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 437x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderBR {BR} at (441,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 431x13
+  RenderBlock {DIV} at (3,3) size 431x13
     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."
index 9c4bc09..7760613 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.png and b/LayoutTests/platform/mac/editing/selection/drag-select-1-expected.png differ
index d2bf646..2cb5e88 100644 (file)
@@ -13,9 +13,9 @@ layer at (0,0) size 800x600
             text run at (0,2) width 64: "Start here."
         RenderText {#text} at (64,2) size 4x18
           text run at (64,2) width 4: " "
-        RenderTextControl {INPUT} at (70,2) size 148x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (70,2) size 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
       RenderBlock {UL} at (0,73) size 784x0
-layer at (81,47) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (81,47) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
 selection start: position 5 of child 0 {#text} of child 0 {SPAN} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
 selection end:   position 1 of child 1 {#text} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
index 1d9f6c2..b7e8344 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.png and b/LayoutTests/platform/mac/editing/selection/drag-text-delay-expected.png differ
index 605743f..6ecf1f3 100644 (file)
@@ -3,11 +3,11 @@ 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)]
+      RenderTextControl {INPUT} at (2,2) size 159x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
       RenderText {#text} at (0,0) size 0x0
       RenderText {#text} at (0,0) size 0x0
-layer at (13,13) size 142x13
-  RenderBlock {DIV} at (3,3) size 142x13
+layer at (13,13) size 153x13
+  RenderBlock {DIV} at (3,3) size 153x13
     RenderText {#text} at (1,0) size 60x13
       text run at (1,0) width 60: "hello world"
 caret: position 11 of child 0 {#text} of child 0 {DIV} of child 1 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
index 2b8e4fc..4bf0733 100644 (file)
Binary files a/LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.png and b/LayoutTests/platform/mac/editing/selection/select-from-textfield-outwards-expected.png differ
index b064748..45d6576 100644 (file)
@@ -1,17 +1,17 @@
-EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 11 of #text > DIV to 11 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 12 of #text > DIV to 12 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV to 11 of #text > DIV toDOMRange:range from 11 of #text > DIV to 12 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV to 12 of #text > DIV toDOMRange:range from 12 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV to 12 of #text > DIV toDOMRange:range from 0 of #text > DIV to 12 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV to 17 of #text > DIV toDOMRange:range from 0 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 12 of #text > DIV toDOMRange:range from 11 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 17 of #text > DIV toDOMRange:range from 12 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV to 17 of #text > DIV toDOMRange:range from 0 of #text > DIV to 12 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV to 17 of #text > DIV toDOMRange:range from 0 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 12 of #text > DIV toDOMRange:range from 11 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 17 of #text > DIV toDOMRange:range from 12 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV to 17 of #text > DIV toDOMRange:range from 11 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
-EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 11 of #text > DIV to 17 of #text > DIV toDOMRange:range from 11 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV to 17 of #text > DIV toDOMRange:range from 12 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
+EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12 of #text > DIV to 17 of #text > DIV toDOMRange:range from 12 of #text > DIV to 17 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
 layer at (0,0) size 800x600
   RenderView at (0,0) size 800x600
 layer at (0,0) size 800x600
@@ -37,16 +37,16 @@ layer at (0,0) size 800x600
           text run at (0,18) width 732: "non nisi molestie accumsan. Etiam tellus urna, laoreet ac, laoreet non, suscipit sed, sapien. Phasellus vehicula, sem at"
           text run at (0,36) width 541: "posuere vehicula, augue nibh molestie nisl, nec ullamcorper lacus ante vulputate pede."
       RenderBlock (anonymous) at (0,140) size 784x92
-        RenderTextControl {INPUT} at (20,20) size 330x52 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
+        RenderTextControl {INPUT} at (20,20) size 354x52 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
         RenderText {#text} at (0,0) size 0x0
       RenderBlock {P} at (0,248) size 784x54
         RenderText {#text} at (0,0) size 769x54
           text run at (0,0) width 754: "Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris viverra augue vitae purus."
           text run at (0,18) width 769: "Morbi sed sem. Donec dui nisi, ultrices non, pretium quis, hendrerit non, est. Donec tellus. Donec eget dui id eros pharetra"
           text run at (0,36) width 733: "rutrum. Suspendisse sodales lectus sit amet nulla. Morbi tortor arcu, convallis blandit, elementum eu, aliquet a, tellus."
-layer at (40,180) size 306x28
-  RenderBlock {DIV} at (12,12) size 306x28
+layer at (40,180) size 330x28
+  RenderBlock {DIV} at (12,12) size 330x28
     RenderText {#text} at (1,0) size 224x28
       text run at (1,0) width 224: "Lorem ipsum dolor"
-selection start: position 11 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
+selection start: position 12 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
 selection end:   position 17 of child 0 {#text} of child 0 {DIV} of child 7 {INPUT} of child 1 {BODY} of child 0 {HTML} of document
index b0c5e68..8350a3d 100644 (file)
@@ -1,11 +1,11 @@
-layer at (0,0) size 785x1698
+layer at (0,0) size 785x1718
   RenderView at (0,0) size 785x600
-layer at (0,0) size 785x1698
-  RenderBlock {HTML} at (0,0) size 785x1698
-    RenderBody {BODY} at (8,20) size 769x1658 [bgcolor=#A6A972]
-      RenderBlock {DIV} at (83,0) size 602x1658 [bgcolor=#FDFDE9] [border: (1px solid #000000)]
+layer at (0,0) size 785x1718
+  RenderBlock {HTML} at (0,0) size 785x1718
+    RenderBody {BODY} at (8,20) size 769x1678 [bgcolor=#A6A972]
+      RenderBlock {DIV} at (83,0) size 602x1678 [bgcolor=#FDFDE9] [border: (1px solid #000000)]
         RenderBlock {DIV} at (1,31) size 600x70
-        RenderBlock {DIV} at (1,114) size 600x1472
+        RenderBlock {DIV} at (1,114) size 600x1492
           RenderBlock {P} at (20,0) size 560x80 [color=#333333]
             RenderText {#text} at (0,2) size 520x35
               text run at (0,2) width 520: "We are trying to understand how UVic students perform Shakespeare related research for"
@@ -22,7 +22,7 @@ layer at (0,0) size 785x1698
           RenderBlock {P} at (20,93) size 560x20 [color=#333333]
             RenderText {#text} at (0,2) size 463x15
               text run at (0,2) width 463: "Please take the time to carefully review and complete the following questions."
-          RenderBlock {FORM} at (20,138) size 560x1301
+          RenderBlock {FORM} at (20,138) size 560x1321
             RenderBlock {H2} at (0,0) size 560x16 [color=#333333]
               RenderText {#text} at (0,0) size 201x16
                 text run at (0,0) width 201: "PERSONAL INFORMATION"
@@ -126,38 +126,38 @@ layer at (0,0) size 785x1698
             RenderBlock (floating) {SPAN} at (0,467) size 325x20 [color=#333333]
               RenderText {#text} at (0,2) size 206x15
                 text run at (0,2) width 206: "Please describe your use of the ISE."
-            RenderBlock {H2} at (0,617) size 560x16 [color=#333333]
+            RenderBlock {H2} at (0,621) size 560x16 [color=#333333]
               RenderText {#text} at (0,0) size 291x16
                 text run at (0,0) width 291: "TOOLS IN DEVELOPMENT QUESTIONS"
-            RenderBlock {P} at (0,646) size 560x60 [color=#333333]
+            RenderBlock {P} at (0,650) size 560x60 [color=#333333]
               RenderText {#text} at (0,2) size 556x55
                 text run at (0,2) width 453: "We are in the process of both making new material available and developing "
                 text run at (453,2) width 103: "new tools to view"
                 text run at (0,22) width 354: "and extrapolate information from Shakespeare's works. The "
                 text run at (354,22) width 160: "following images are visual"
                 text run at (0,42) width 343: "representations of some of the ideas being thrown around."
-            RenderBlock {P} at (0,719) size 560x20 [color=#333333]
+            RenderBlock {P} at (0,723) size 560x20 [color=#333333]
               RenderText {#text} at (0,2) size 337x15
                 text run at (0,2) width 337: "Please review them carefully and provide feedback below"
-            RenderBlock (floating) {SPAN} at (0,752) size 325x20 [color=#333333]
+            RenderBlock (floating) {SPAN} at (0,756) size 325x20 [color=#333333]
               RenderText {#text} at (0,2) size 145x15
                 text run at (0,2) width 145: "Your comments on Fig. 1"
-            RenderBlock (floating) {SPAN} at (0,879) size 325x20 [color=#333333]
+            RenderBlock (floating) {SPAN} at (0,887) size 325x20 [color=#333333]
               RenderText {#text} at (0,2) size 145x15
                 text run at (0,2) width 145: "Your comments on Fig. 2"
-            RenderBlock (floating) {SPAN} at (0,1006) size 325x20 [color=#333333]
+            RenderBlock (floating) {SPAN} at (0,1018) size 325x20 [color=#333333]
               RenderText {#text} at (0,2) size 145x15
                 text run at (0,2) width 145: "Your comments on Fig. 3"
-            RenderBlock {H2} at (0,1153) size 560x16 [color=#333333]
+            RenderBlock {H2} at (0,1169) size 560x16 [color=#333333]
               RenderText {#text} at (0,0) size 143x16
                 text run at (0,0) width 143: "OTHER FEEDBACK"
-            RenderBlock (floating) {SPAN} at (0,1179) size 325x20 [color=#333333]
+            RenderBlock (floating) {SPAN} at (0,1195) size 325x20 [color=#333333]
               RenderText {#text} at (0,2) size 220x15
                 text run at (0,2) width 220: "Please enter any other thoughts here."
-          RenderBlock {P} at (20,1452) size 560x20 [color=#333333]
+          RenderBlock {P} at (20,1472) size 560x20 [color=#333333]
             RenderText {#text} at (0,2) size 233x15
               text run at (0,2) width 233: "Thank you for your time filling this out."
-        RenderBlock {DIV} at (1,1606) size 600x51 [border: (1px dashed #A6A972) none]
+        RenderBlock {DIV} at (1,1626) size 600x51 [border: (1px dashed #A6A972) none]
           RenderBlock {SPAN} at (0,16) size 600x20 [color=#333333]
             RenderText {#text} at (247,2) size 106x15
               text run at (247,2) width 106: "\x{A9}2003 Kevin Davis"
@@ -165,18 +165,18 @@ layer at (440,301) size 180x13