Changeset 32802 in webkit
- Timestamp:
- May 1, 2008 11:37:23 PM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r32800 r32802 1 2008-05-01 Robin Dunn <robin@alldunn.com> 2 3 Reviewed by Kevin Ollivier. 4 5 Explicitly set the pen style in wx port to keep pen style changes from 6 affecting URL underline or text field drawing. 7 8 https://bugs.webkit.org/show_bug.cgi?id=18775 9 10 * platform/graphics/wx/GraphicsContextWx.cpp: 11 (WebCore::GraphicsContext::fillRect): 12 (WebCore::GraphicsContext::drawLineForText): 13 * platform/wx/RenderThemeWx.cpp: 14 (WebCore::RenderThemeWx::paintTextField): 15 1 16 2008-05-01 Robin Dunn <robin@alldunn.com> 2 17 -
trunk/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
r31961 r32802 268 268 return; 269 269 270 m_data->context->SetPen( wxPen(color));270 m_data->context->SetPen(*wxTRANSPARENT_PEN); 271 271 m_data->context->SetBrush(wxBrush(color)); 272 272 m_data->context->DrawRectangle(rect.x(), rect.y(), rect.width(), rect.height()); … … 335 335 336 336 IntPoint endPoint = origin + IntSize(width, 0); 337 m_data->context->SetPen(wxPen(strokeColor(), strokeThickness(), strokeStyleToWxPenStyle(strokeStyle())));337 m_data->context->SetPen(wxPen(strokeColor(), strokeThickness(), wxSOLID)); 338 338 m_data->context->DrawLine(origin.x(), origin.y(), endPoint.x(), endPoint.y()); 339 339 } -
trunk/WebCore/platform/wx/RenderThemeWx.cpp
r32448 r32802 225 225 bool RenderThemeWx::paintTextField(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r) 226 226 { 227 i.context->save(); 228 i.context->setStrokeStyle(SolidStroke); 227 229 i.context->setStrokeThickness(1); 228 230 i.context->setStrokeColor(Color(0, 0, 0)); 229 231 i.context->drawRect(r); 232 i.context->restore(); 230 233 return false; 231 234 }
Note: See TracChangeset
for help on using the changeset viewer.