Changeset 110480 in webkit
- Timestamp:
- Mar 12, 2012, 2:33:48 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/WebCore/ChangeLog ¶
r110478 r110480 1 2012-03-12 Beth Dakin <bdakin@apple.com> 2 3 https://bugs.webkit.org/show_bug.cgi?id=80888 4 Clear background for NSTextFieldCell is unreliable and not necessary 5 -and corresponding- 6 <rdar://problem/10663710> 7 8 Reviewed by Dan Bernstein. 9 10 With http://trac.webkit.org/changeset/104240 I thought it was necessary to 11 make NSTextFieldCells draw with a clear background in order to allow styled 12 text fields. That is not actually necessary; we just had a different bug 13 where isControlStyled() was only checking for styled borders on text fields. 14 Text fields can also be styled with backgrounds, so they need the full check. 15 * rendering/RenderThemeMac.mm: 16 (WebCore::RenderThemeMac::isControlStyled): 17 (WebCore::RenderThemeMac::textField): 18 1 19 2012-03-12 Scott Byer <scottbyer@chromium.org> 2 20 -
TabularUnified trunk/Source/WebCore/rendering/RenderThemeMac.mm ¶
r109785 r110480 488 488 const FillLayer& background, const Color& backgroundColor) const 489 489 { 490 if (style->appearance() == Text FieldPart || style->appearance() == TextAreaPart || style->appearance() == ListboxPart)490 if (style->appearance() == TextAreaPart || style->appearance() == ListboxPart) 491 491 return style->border() != border; 492 492 … … 2138 2138 [m_textField.get() setEditable:YES]; 2139 2139 [m_textField.get() setFocusRingType:NSFocusRingTypeExterior]; 2140 2141 // Setting a clear background on the cell is necessary for CSS-styled backgrounds2142 // to show through. Ideally, there would be a better way to do this.2143 [m_textField.get() setDrawsBackground:YES];2144 [m_textField.get() setBackgroundColor:[NSColor clearColor]];2145 2140 } 2146 2141
Note:
See TracChangeset
for help on using the changeset viewer.