Changeset 91345 in webkit
- Timestamp:
- Jul 20, 2011, 12:52:39 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/input-appearance-number-rtl.html (added)
-
LayoutTests/platform/chromium/test_expectations.txt (modified) (1 diff)
-
LayoutTests/platform/gtk/test_expectations.txt (modified) (1 diff)
-
LayoutTests/platform/mac/fast/forms/input-appearance-number-rtl-expected.png (added)
-
LayoutTests/platform/mac/fast/forms/input-appearance-number-rtl-expected.txt (added)
-
LayoutTests/platform/qt/test_expectations.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/html.css (modified) (2 diffs)
-
Source/WebCore/rendering/RenderTextControlSingleLine.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r91344 r91345 1 2011-07-20 tkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> 2 3 input type=number doesn't render correctly in rtl. 4 https://bugs.webkit.org/show_bug.cgi?id=59703 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/forms/input-appearance-number-rtl.html: Added. 9 * platform/chromium/test_expectations.txt: 10 * platform/gtk/test_expectations.txt: 11 * platform/mac/fast/forms/input-appearance-number-rtl-expected.png: Added. 12 * platform/mac/fast/forms/input-appearance-number-rtl-expected.txt: Added. 13 * platform/qt/test_expectations.txt: 14 1 15 2011-07-19 Gavin Barraclough <barraclough@apple.com> 2 16 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r91343 r91345 3744 3744 BUGCR83652 : storage/indexeddb/database-quota.html = TEXT 3745 3745 3746 // New test. Need platform-dependent baseline files. 3747 BUGWK59703 : fast/forms/input-appearance-number-rtl.html = FAIL 3748 3746 3749 BUGCR88311 MAC DEBUG : fast/css/last-of-type-pseudo-class.html = TEXT 3747 3750 -
trunk/LayoutTests/platform/gtk/test_expectations.txt
r90971 r91345 18 18 BUGWK64253 : fast/forms/textarea-placeholder-set-attribute.html = FAIL 19 19 BUGWK64253 : fast/forms/textarea-placeholder-wrapping.html = FAIL 20 21 // New test. Need platform-dependent baseline files. 22 BUGWK59703 : fast/forms/input-appearance-number-rtl.html = FAIL -
trunk/LayoutTests/platform/qt/test_expectations.txt
r90995 r91345 2 2 // 3 3 // See http://trac.webkit.org/wiki/TestExpectations for more information on this file. 4 5 // New test. Need platform-dependent baseline files. 6 BUGWK59703 : fast/forms/input-appearance-number-rtl.html = FAIL 4 7 5 8 BUGWK64002 : http/tests/misc/object-embedding-svg-delayed-size-negotiation-2.htm = TEXT PASS -
trunk/Source/WebCore/ChangeLog
r91337 r91345 1 2011-07-20 Kent Tamura <tkent@chromium.org> 2 3 input type=number doesn't render correctly in rtl. 4 https://bugs.webkit.org/show_bug.cgi?id=59703 5 6 Reviewed by Ryosuke Niwa. 7 8 Test: fast/forms/input-appearance-number-rtl.html 9 10 * css/html.css: 11 (input[type="search"]::-webkit-textfield-decoration-container): 12 Set "direction: ltr;" only for type=search because we'd like to 13 respect text direction except type=search. 14 (input[x-webkit-speech][di=rtl]::-webkit-input-speech-button): 15 Remove a workaround. 16 * rendering/RenderTextControlSingleLine.cpp: 17 (WebCore::RenderTextControlSingleLine::layout): 18 Support for RTL in the spin button location adjustment. 19 1 20 2011-07-19 Steve Lacey <sjl@chromium.org> 2 21 -
trunk/Source/WebCore/css/html.css
r91249 r91345 421 421 422 422 input::-webkit-textfield-decoration-container { 423 direction: ltr;424 423 display: -webkit-box; 425 424 -webkit-box-align: center; 425 } 426 427 input[type="search"]::-webkit-textfield-decoration-container { 428 direction: ltr; 426 429 } 427 430 … … 473 476 vertical-align: top; 474 477 -webkit-box-flex: 0; 475 }476 477 input[x-webkit-speech][dir=rtl]::-webkit-textfield-decoration-container {478 direction: rtl;479 478 } 480 479 #endif -
trunk/Source/WebCore/rendering/RenderTextControlSingleLine.cpp
r91014 r91345 277 277 if (RenderBox* innerSpinBox = innerSpinButtonElement() ? innerSpinButtonElement()->renderBox() : 0) { 278 278 RenderBox* parentBox = innerSpinBox->parentBox(); 279 innerSpinBox->setLocation(LayoutPoint(parentBox->width() - innerSpinBox->width() + paddingRight(), -paddingTop())); 279 if (containerRenderer && !containerRenderer->style()->isLeftToRightDirection()) 280 innerSpinBox->setLocation(LayoutPoint(-paddingLeft(), -paddingTop())); 281 else 282 innerSpinBox->setLocation(LayoutPoint(parentBox->width() - innerSpinBox->width() + paddingRight(), -paddingTop())); 280 283 innerSpinBox->setHeight(height() - borderTop() - borderBottom()); 281 284 }
Note:
See TracChangeset
for help on using the changeset viewer.