Changeset 187095 in webkit
- Timestamp:
- Jul 20, 2015 10:33:50 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r187088 r187095 1 2015-07-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Remove RenderTheme::shouldShowPlaceholderWhenFocused() 4 https://bugs.webkit.org/show_bug.cgi?id=147104 5 6 Reviewed by Martin Robinson. 7 8 GTK+ is the only port that returns false in 9 shouldShowPlaceholderWhenFocused(). That's inconsistent with all 10 other browsers that show the placeholder text even for focused 11 entries in all platforms. We should change the GTK+ port 12 behaviour, but that would leave all implementations of 13 shouldShowPlaceholderWhenFocused returning true, so let's just 14 remove it. 15 16 * html/HTMLTextFormControlElement.cpp: 17 (WebCore::HTMLTextFormControlElement::placeholderShouldBeVisible): 18 Do not consider whether the entry is focused or not. 19 * platform/efl/RenderThemeEfl.h: 20 * rendering/RenderTheme.h: 21 (WebCore::RenderTheme::shouldShowPlaceholderWhenFocused): Deleted. 22 * rendering/RenderThemeIOS.h: 23 * rendering/RenderThemeIOS.mm: 24 (WebCore::RenderThemeIOS::shouldShowPlaceholderWhenFocused): Deleted. 25 * rendering/RenderThemeMac.h: 26 * rendering/RenderThemeMac.mm: 27 (WebCore::RenderThemeMac::shouldShowPlaceholderWhenFocused): Deleted. 28 * rendering/RenderThemeSafari.h: 29 (WebCore::RenderThemeSafari::shouldShowPlaceholderWhenFocused): Deleted. 30 * rendering/RenderThemeWin.h: 31 1 32 2015-07-20 Zan Dobersek <zdobersek@igalia.com> 2 33 -
trunk/Source/WebCore/html/HTMLTextFormControlElement.cpp
r186256 r187095 151 151 // This function is used by the style resolver to match the :placeholder-shown pseudo class. 152 152 // Since it is used for styling, it must not use any value depending on the style. 153 return supportsPlaceholder() 154 && isEmptyValue() 155 && !isPlaceholderEmpty() 156 && (document().focusedElement() != this || (document().page()->theme().shouldShowPlaceholderWhenFocused())); 153 return supportsPlaceholder() && isEmptyValue() && !isPlaceholderEmpty(); 157 154 } 158 155 -
trunk/Source/WebCore/platform/efl/RenderThemeEfl.h
r186829 r187095 176 176 virtual bool supportsClosedCaptioning() const override { return true; } 177 177 #endif 178 virtual bool shouldShowPlaceholderWhenFocused() const override { return true; }179 178 180 179 void setThemePath(const String&); -
trunk/Source/WebCore/rendering/RenderTheme.h
r185481 r187095 229 229 #endif 230 230 231 virtual bool shouldShowPlaceholderWhenFocused() const { return false; }232 231 virtual bool shouldHaveSpinButton(HTMLInputElement&) const; 233 232 virtual bool shouldHaveCapsLockIndicator(HTMLInputElement&) const; -
trunk/Source/WebCore/rendering/RenderThemeIOS.h
r184147 r187095 103 103 #endif 104 104 105 virtual bool shouldShowPlaceholderWhenFocused() const override;106 105 virtual bool shouldHaveSpinButton(HTMLInputElement&) const override; 107 106 virtual bool shouldHaveCapsLockIndicator(HTMLInputElement&) const override; -
trunk/Source/WebCore/rendering/RenderThemeIOS.mm
r185934 r187095 1074 1074 } 1075 1075 1076 bool RenderThemeIOS::shouldShowPlaceholderWhenFocused() const1077 {1078 return true;1079 }1080 1081 1076 bool RenderThemeIOS::shouldHaveSpinButton(HTMLInputElement&) const 1082 1077 { -
trunk/Source/WebCore/rendering/RenderThemeMac.h
r185481 r187095 163 163 #endif 164 164 165 virtual bool shouldShowPlaceholderWhenFocused() const override;166 165 virtual bool shouldHaveCapsLockIndicator(HTMLInputElement&) const override; 167 166 -
trunk/Source/WebCore/rendering/RenderThemeMac.mm
r186858 r187095 1937 1937 } 1938 1938 1939 bool RenderThemeMac::shouldShowPlaceholderWhenFocused() const1940 {1941 return true;1942 }1943 1944 1939 bool RenderThemeMac::shouldHaveCapsLockIndicator(HTMLInputElement& element) const 1945 1940 { -
trunk/Source/WebCore/rendering/RenderThemeSafari.h
r184147 r187095 141 141 #endif 142 142 143 virtual bool shouldShowPlaceholderWhenFocused() const { return true; }144 145 143 private: 146 144 RenderThemeSafari(); -
trunk/Source/WebCore/rendering/RenderThemeWin.h
r187022 r187095 135 135 #endif 136 136 137 virtual bool shouldShowPlaceholderWhenFocused() const override { return true; }138 139 137 private: 140 138 enum ControlSubPart {
Note: See TracChangeset
for help on using the changeset viewer.