Commit db08bf82 authored by bdash's avatar bdash

2007-03-18 Mitz Pettel <mitz@webkit.org>

        Reviewed by Adele.

        - fix http://bugs.webkit.org/show_bug.cgi?id=13101
          REGRESSION (NativeTextField): Specifying word-wrap:break-word makes text field wrap

        Test: fast/forms/input-text-word-wrap.html

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::createInnerTextStyle): Force the inner block to
        'word-wrap:normal'.

2007-03-18  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Adele.

        - test for http://bugs.webkit.org/show_bug.cgi?id=13101
          REGRESSION (NativeTextField): Specifying word-wrap:break-word makes text field wrap

        * fast/forms/input-text-word-wrap-expected.checksum: Added.
        * fast/forms/input-text-word-wrap-expected.png: Added.
        * fast/forms/input-text-word-wrap-expected.txt: Added.
        * fast/forms/input-text-word-wrap.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 70afc63b
2007-03-18 Mitz Pettel <mitz@webkit.org>
Reviewed by Adele.
- test for http://bugs.webkit.org/show_bug.cgi?id=13101
REGRESSION (NativeTextField): Specifying word-wrap:break-word makes text field wrap
* fast/forms/input-text-word-wrap-expected.checksum: Added.
* fast/forms/input-text-word-wrap-expected.png: Added.
* fast/forms/input-text-word-wrap-expected.txt: Added.
* fast/forms/input-text-word-wrap.html: Added.
2007-03-18 Mitz Pettel <mitz@webkit.org>
Reviewed by Tim Hatcher.
f49e07e88a937e67809c5e36b534bc7b
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,8) size 784x584
RenderBlock {P} at (0,0) size 784x18
RenderText {#text} at (0,0) size 113x18
text run at (0,0) width 113: "This tests that the "
RenderInline {CODE} at (0,0) size 72x15
RenderText {#text} at (113,2) size 72x15
text run at (113,2) width 72: "word-wrap"
RenderText {#text} at (185,0) size 299x18
text run at (185,0) width 299: " property is ignored for single-line text controls."
RenderBlock (anonymous) at (0,34) size 784x33
RenderTextControl {INPUT} at (2,0) size 148x33 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
RenderText {#text} at (0,0) size 0x0
layer at (13,45) size 142x27 scrollWidth 264
RenderBlock {DIV} at (3,3) size 142x27
RenderText {#text} at (1,0) size 262x13
text run at (1,0) width 262: "This sentence should not wrap into the next line."
<p>
This tests that the <code>word-wrap</code> property is ignored for single-line text controls.
</p>
<input style="height: 3em; word-wrap: break-word;" value="This sentence should not wrap into the next line.">
2007-03-18 Mitz Pettel <mitz@webkit.org>
Reviewed by Adele.
- fix http://bugs.webkit.org/show_bug.cgi?id=13101
REGRESSION (NativeTextField): Specifying word-wrap:break-word makes text field wrap
Test: fast/forms/input-text-word-wrap.html
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::createInnerTextStyle): Force the inner block to
'word-wrap:normal'.
2007-03-18 Mitz Pettel <mitz@webkit.org>
Reviewed by Tim Hatcher.
......
......@@ -153,6 +153,7 @@ RenderStyle* RenderTextControl::createInnerTextStyle(RenderStyle* startStyle)
}
} else {
textBlockStyle->setWhiteSpace(PRE);
textBlockStyle->setWordWrap(WBNORMAL);
textBlockStyle->setOverflowX(OHIDDEN);
textBlockStyle->setOverflowY(OHIDDEN);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment