<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>87762</bug_id>
          
          <creation_ts>2012-05-29 11:44:52 -0700</creation_ts>
          <short_desc>TextFieldDecorationElement should respect style attribute</short_desc>
          <delta_ts>2012-05-30 19:02:11 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Garrett Casto">gcasto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>gcasto</cc>
    
    <cc>tkent</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>636280</commentid>
    <comment_count>0</comment_count>
    <who name="Garrett Casto">gcasto</who>
    <bug_when>2012-05-29 11:44:52 -0700</bug_when>
    <thetext>Currently changing the style of a TextFieldDecorationElement does not result in the element rendering any differently. This is because customStyleForRenderer() does not take into account the current styling of the element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636651</commentid>
    <comment_count>1</comment_count>
    <who name="Garrett Casto">gcasto</who>
    <bug_when>2012-05-29 17:54:49 -0700</bug_when>
    <thetext>Kent-san, is this something that you can take or should I? If I should take this, can I get some guidance on how to proceed? I&apos;ve glanced through the other implementations of customStyleForRenderer in the codebase, but none of them obviously have the functionality that I&apos;m looking for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636658</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-05-29 18:03:49 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Kent-san, is this something that you can take or should I? If I should take this, can I get some guidance on how to proceed? I&apos;ve glanced through the other implementations of customStyleForRenderer in the codebase, but none of them obviously have the functionality that I&apos;m looking for.

Would you take this please?

I think the customStyleForRenderr() should be:

-    RefPtr&lt;RenderStyle&gt; style = RenderStyle::create();
+    RefPtr&lt;RenderStyle&gt; style = document()-&gt;styleResolver()-&gt;styleForElement(this);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636659</commentid>
    <comment_count>3</comment_count>
    <who name="Garrett Casto">gcasto</who>
    <bug_when>2012-05-29 18:05:31 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Kent-san, is this something that you can take or should I? If I should take this, can I get some guidance on how to proceed? I&apos;ve glanced through the other implementations of customStyleForRenderer in the codebase, but none of them obviously have the functionality that I&apos;m looking for.
&gt; 
&gt; Would you take this please?
&gt; 
&gt; I think the customStyleForRenderr() should be:
&gt; 
&gt; -    RefPtr&lt;RenderStyle&gt; style = RenderStyle::create();
&gt; +    RefPtr&lt;RenderStyle&gt; style = document()-&gt;styleResolver()-&gt;styleForElement(this);

Got it. I&apos;ll see if this works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>636666</commentid>
    <comment_count>4</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-05-29 18:15:41 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Kent-san, is this something that you can take or should I? If I should take this, can I get some guidance on how to proceed? I&apos;ve glanced through the other implementations of customStyleForRenderer in the codebase, but none of them obviously have the functionality that I&apos;m looking for.
&gt; 
&gt; Would you take this please?
&gt; 
&gt; I think the customStyleForRenderr() should be:
&gt; 
&gt; -    RefPtr&lt;RenderStyle&gt; style = RenderStyle::create();
&gt; +    RefPtr&lt;RenderStyle&gt; style = document()-&gt;styleResolver()-&gt;styleForElement(this);

Ah, we need to clone it because we modify it.

RefPtr&lt;RenderStyle&gt; originalStyle = document()-&gt;styleResolver()-&gt;styleForElement(this);
RefPtr&lt;RenderStyle&gt; style = RenderStyle::clone(originalStyle.get());</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637597</commentid>
    <comment_count>5</comment_count>
      <attachid>144902</attachid>
    <who name="Garrett Casto">gcasto</who>
    <bug_when>2012-05-30 13:20:18 -0700</bug_when>
    <thetext>Created attachment 144902
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637916</commentid>
    <comment_count>6</comment_count>
      <attachid>144902</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-05-30 18:49:06 -0700</bug_when>
    <thetext>Comment on attachment 144902
Patch

Looks good</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637924</commentid>
    <comment_count>7</comment_count>
      <attachid>144902</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-30 19:02:06 -0700</bug_when>
    <thetext>Comment on attachment 144902
Patch

Clearing flags on attachment: 144902

Committed r119020: &lt;http://trac.webkit.org/changeset/119020&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637925</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-05-30 19:02:11 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>144902</attachid>
            <date>2012-05-30 13:20:18 -0700</date>
            <delta_ts>2012-05-30 19:02:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-87762-20120530132017.patch</filename>
            <type>text/plain</type>
            <size>1800</size>
            <attacher name="Garrett Casto">gcasto</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE4ODQzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYmFkOTc1MDEyYmU5ODhh
OWVjYjk4ZWM1MGYxNmU5ZTNjNzliN2IyYy4uNjQwYjM1ZTY1NzY0NzE1YTZkNWQyZGY1ZGUwZGRl
YjgwYzQ0MDdmOCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDEyLTA1LTMwICBHYXJy
ZXR0IENhc3RvICA8Z2Nhc3RvQGNocm9taXVtLm9yZz4KKworICAgICAgICBUZXh0RmllbGREZWNv
cmF0aW9uRWxlbWVudCBzaG91bGQgcmVzcGVjdCBzdHlsZSBhdHRyaWJ1dGUKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTg3NzYyCisKKyAgICAgICAgUmV2
aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBodG1sL3NoYWRvdy9UZXh0Rmll
bGREZWNvcmF0aW9uRWxlbWVudC5jcHA6IFVzZSBzdHlsZSBzZXQgb24gdGhlCisgICAgICAgIEVs
ZW1lbnQgd2hlbiBjcmVhdGluZyByZW5kZXJpbmcgc3R5bGUuCisgICAgICAgIChXZWJDb3JlOjpU
ZXh0RmllbGREZWNvcmF0aW9uRWxlbWVudDo6Y3VzdG9tU3R5bGVGb3JSZW5kZXJlcik6CisKIDIw
MTItMDUtMjkgIFZpY3RvciBDYXJidW5lICA8dmljdG9yQHJvc2VkdS5vcmc+CiAKICAgICAgICAg
RG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