Title: [124960] trunk
- Revision
- 124960
- Author
- [email protected]
- Date
- 2012-08-07 18:10:54 -0700 (Tue, 07 Aug 2012)
Log Message
translateZ(0) shifts file name in file input
https://bugs.webkit.org/show_bug.cgi?id=69248
Reviewed by Simon Fraser.
Source/WebCore:
This patch changes to use relative y-coordinate rather than absolute
y-coordinate for baseline of text of input type "file" what we've already
done for file icon y-coordinate.
Test: file-appearance-transform-no-effects.html
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::paintObject): Changed to use paintOffset
instead of absoluteBoundingBoxRectIgnoringTransforms().
LayoutTests:
This patch introduces a new test for input type "file" with CSS transform
translate(0).
* fast/forms/file/file-appearance-transform-no-effects-expected.html: Added. "-webkit-transform: translate(0)" should not have visual effects.
* fast/forms/file/file-appearance-transform-no-effects.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (124959 => 124960)
--- trunk/LayoutTests/ChangeLog 2012-08-08 01:10:13 UTC (rev 124959)
+++ trunk/LayoutTests/ChangeLog 2012-08-08 01:10:54 UTC (rev 124960)
@@ -1,3 +1,16 @@
+2012-08-07 Yoshifumi Inoue <[email protected]>
+
+ translateZ(0) shifts file name in file input
+ https://bugs.webkit.org/show_bug.cgi?id=69248
+
+ Reviewed by Simon Fraser.
+
+ This patch introduces a new test for input type "file" with CSS transform
+ translate(0).
+
+ * fast/forms/file/file-appearance-transform-no-effects-expected.html: Added. "-webkit-transform: translate(0)" should not have visual effects.
+ * fast/forms/file/file-appearance-transform-no-effects.html: Added.
+
2012-08-07 Gyuyoung Kim <[email protected]>
[EFL] Unskip fast/dom/HTMLLinkElement/subresource.html
Added: trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects-expected.html (0 => 124960)
--- trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects-expected.html (rev 0)
+++ trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects-expected.html 2012-08-08 01:10:54 UTC (rev 124960)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+<body>
+<input type="file">
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects-expected.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects.html (0 => 124960)
--- trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects.html (rev 0)
+++ trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects.html 2012-08-08 01:10:54 UTC (rev 124960)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+<body>
+<input type="file" style="-webkit-transform: translate(0)">
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/forms/file/file-appearance-transform-no-effects.html
___________________________________________________________________
Added: svn:eol-style
Modified: trunk/Source/WebCore/ChangeLog (124959 => 124960)
--- trunk/Source/WebCore/ChangeLog 2012-08-08 01:10:13 UTC (rev 124959)
+++ trunk/Source/WebCore/ChangeLog 2012-08-08 01:10:54 UTC (rev 124960)
@@ -1,3 +1,20 @@
+2012-08-07 Yoshifumi Inoue <[email protected]>
+
+ translateZ(0) shifts file name in file input
+ https://bugs.webkit.org/show_bug.cgi?id=69248
+
+ Reviewed by Simon Fraser.
+
+ This patch changes to use relative y-coordinate rather than absolute
+ y-coordinate for baseline of text of input type "file" what we've already
+ done for file icon y-coordinate.
+
+ Test: file-appearance-transform-no-effects.html
+
+ * rendering/RenderFileUploadControl.cpp:
+ (WebCore::RenderFileUploadControl::paintObject): Changed to use paintOffset
+ instead of absoluteBoundingBoxRectIgnoringTransforms().
+
2012-08-07 Kentaro Hara <[email protected]>
[V8] Replace throwError(ExceptionCode, Isolate*) with
Modified: trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp (124959 => 124960)
--- trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp 2012-08-08 01:10:13 UTC (rev 124959)
+++ trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp 2012-08-08 01:10:54 UTC (rev 124960)
@@ -146,8 +146,7 @@
// We want to match the button's baseline
RenderButton* buttonRenderer = toRenderButton(button->renderer());
// FIXME: Make this work with transforms.
- LayoutUnit textY = buttonRenderer->absoluteBoundingBoxRectIgnoringTransforms().y()
- + buttonRenderer->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine);
+ LayoutUnit textY = paintOffset.y() + buttonRenderer->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine);
paintInfo.context->setFillColor(style()->visitedDependentColor(CSSPropertyColor), style()->colorSpace());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes