Title: [119020] trunk/Source/WebCore
- Revision
- 119020
- Author
- [email protected]
- Date
- 2012-05-30 19:01:50 -0700 (Wed, 30 May 2012)
Log Message
TextFieldDecorationElement should respect style attribute
https://bugs.webkit.org/show_bug.cgi?id=87762
Patch by Garrett Casto <[email protected]> on 2012-05-30
Reviewed by Kent Tamura.
* html/shadow/TextFieldDecorationElement.cpp: Use style set on the
Element when creating rendering style.
(WebCore::TextFieldDecorationElement::customStyleForRenderer):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (119019 => 119020)
--- trunk/Source/WebCore/ChangeLog 2012-05-31 01:54:50 UTC (rev 119019)
+++ trunk/Source/WebCore/ChangeLog 2012-05-31 02:01:50 UTC (rev 119020)
@@ -1,3 +1,14 @@
+2012-05-30 Garrett Casto <[email protected]>
+
+ TextFieldDecorationElement should respect style attribute
+ https://bugs.webkit.org/show_bug.cgi?id=87762
+
+ Reviewed by Kent Tamura.
+
+ * html/shadow/TextFieldDecorationElement.cpp: Use style set on the
+ Element when creating rendering style.
+ (WebCore::TextFieldDecorationElement::customStyleForRenderer):
+
2012-05-30 Ojan Vafai <[email protected]>
Avoid second layout for flex-direction:row, flex-basis:auto flex items
Modified: trunk/Source/WebCore/html/shadow/TextFieldDecorationElement.cpp (119019 => 119020)
--- trunk/Source/WebCore/html/shadow/TextFieldDecorationElement.cpp 2012-05-31 01:54:50 UTC (rev 119019)
+++ trunk/Source/WebCore/html/shadow/TextFieldDecorationElement.cpp 2012-05-31 02:01:50 UTC (rev 119020)
@@ -40,6 +40,7 @@
#include "NodeRenderStyle.h"
#include "RenderImage.h"
#include "ShadowRoot.h"
+#include "StyleResolver.h"
namespace WebCore {
@@ -143,7 +144,8 @@
PassRefPtr<RenderStyle> TextFieldDecorationElement::customStyleForRenderer()
{
- RefPtr<RenderStyle> style = RenderStyle::create();
+ RefPtr<RenderStyle> originalStyle = document()->styleResolver()->styleForElement(this);
+ RefPtr<RenderStyle> style = RenderStyle::clone(originalStyle.get());
RenderStyle* inputStyle = hostInput()->renderStyle();
ASSERT(inputStyle);
style->setWidth(Length(inputStyle->fontSize(), Fixed));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes