Bug 82142

Summary: Add a notification function for detaching to TextFieldDecorator
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, morrita, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 80479, 82143    
Attachments:
Description Flags
Patch none

Description Kent Tamura 2012-03-25 03:45:02 PDT
Add a notification function for detaching to TextFieldDecorator
Comment 1 Kent Tamura 2012-03-25 03:52:56 PDT
Created attachment 133676 [details]
Patch
Comment 2 Dimitri Glazkov (Google) 2012-03-26 09:11:59 PDT
Comment on attachment 133676 [details]
Patch 

View in context: https://bugs.webkit.org/attachment.cgi?id=133676&action=review

ok.

> Source/WebCore/html/shadow/TextFieldDecorationElement.cpp:68
> +inline HTMLInputElement* TextFieldDecorationElement::hostInput()
> +{
> +    ASSERT(shadowAncestorNode());
> +    ASSERT(shadowAncestorNode()->hasTagName(inputTag));
> +    return static_cast<HTMLInputElement*>(shadowAncestorNode());
> +}

We usually put these into the header, right?
Comment 3 WebKit Review Bot 2012-03-26 09:19:19 PDT
Comment on attachment 133676 [details]
Patch 

Clearing flags on attachment: 133676

Committed r112109: <http://trac.webkit.org/changeset/112109>
Comment 4 WebKit Review Bot 2012-03-26 09:19:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Kent Tamura 2012-03-27 18:05:05 PDT
Comment on attachment 133676 [details]
Patch 

Thank you for reviewing!

View in context: https://bugs.webkit.org/attachment.cgi?id=133676&action=review

>> Source/WebCore/html/shadow/TextFieldDecorationElement.cpp:68
>> +}
> 
> We usually put these into the header, right?

I don't think we should do it in this case because
 - This function is private.
 - We need to include HTMLInputElement.h and HTMLNames.h to implement this function.