Bug 73629

Summary: [Chromium] Show placeholder even if the element is focused
Product: WebKit Reporter: Kent Tamura <tkent>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, gordeon, mathias, morrita
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 73615    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Kent Tamura 2011-12-01 23:30:39 PST
Follows the behavior of Apple ports.

The new behavior is allowed by the standard.
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-placeholder-attribute
Comment 1 Kent Tamura 2011-12-01 23:34:32 PST
Created attachment 117578 [details]
Patch
Comment 2 Kent Tamura 2011-12-01 23:38:01 PST
Comment on attachment 117578 [details]
Patch

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

> Source/WebCore/ChangeLog:8
> +        No new tests. Need to update some existing placeholder tests.

Affected tests were already marked as FAIL in http://trac.webkit.org/changeset/101742.

> Source/WebCore/rendering/RenderThemeChromiumSkia.h:160
> +    int menuListInternalPadding(RenderStyle*, int paddingType) const;
> +    bool paintMediaButtonInternal(GraphicsContext*, const IntRect&, Image*);
> +    IntRect convertToPaintingRect(RenderObject* inputRenderer, const RenderObject* partRenderer, IntRect partRect, const IntRect& localOffset) const;
> +};

Note: The declaration of RenderThemeChromiumSkia starts at the first column. The current indentation of these functions and '};' are wrong.
Comment 3 Kent Tamura 2011-12-01 23:54:21 PST
Chromium bug: http://code.google.com/p/chromium/issues/detail?id=103025
Comment 4 Kent Tamura 2011-12-02 13:56:00 PST
Comment on attachment 117578 [details]
Patch

Clearing flags on attachment: 117578

Committed r101848: <http://trac.webkit.org/changeset/101848>
Comment 5 Kent Tamura 2011-12-02 13:56:06 PST
All reviewed patches have been landed.  Closing bug.