Changeset 83034 in webkit
- Timestamp:
- Apr 6, 2011 2:03:39 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83033 r83034 1 2011-04-06 Alejandro G. Castro <alex@igalia.com> 2 3 Fix GTK3 compilation after r82962. 4 5 * platform/gtk/RenderThemeGtk3.cpp: 6 (WebCore::paintToggle): 7 (WebCore::renderButton): 8 (WebCore::RenderThemeGtk::paintMenuList): 9 (WebCore::RenderThemeGtk::paintTextField): 10 (WebCore::RenderThemeGtk::paintSliderTrack): 11 (WebCore::RenderThemeGtk::paintSliderThumb): 12 (WebCore::RenderThemeGtk::paintProgressBar): 13 (WebCore::paintSpinArrowButton): 14 * platform/gtk/ScrollbarThemeGtk3.cpp: 15 (WebCore::ScrollbarThemeGtk::paintTrackBackground): 16 (WebCore::ScrollbarThemeGtk::paintScrollbarBackground): 17 (WebCore::ScrollbarThemeGtk::paintThumb): 18 (WebCore::ScrollbarThemeGtk::paintButton): 19 1 20 2011-04-06 Andrey Kosyakov <caseq@chromium.org> 2 21 -
trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp
r80554 r83034 35 35 #include "Page.h" 36 36 #include "PaintInfo.h" 37 #include "PlatformContextCairo.h" 37 38 #include "RenderObject.h" 38 39 #include "TextDirection.h" … … 217 218 218 219 if (widgetType == GTK_TYPE_CHECK_BUTTON) 219 gtk_render_check(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());220 gtk_render_check(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 220 221 else 221 gtk_render_option(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());222 gtk_render_option(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 222 223 223 224 if (theme->isFocused(renderObject)) { … … 226 227 gtk_style_context_get_style(context, "indicator-spacing", &indicatorSpacing, NULL); 227 228 indicatorRect.inflate(indicatorSpacing); 228 gtk_render_focus(context, paintInfo.context->platformContext() , indicatorRect.x(), indicatorRect.y(),229 gtk_render_focus(context, paintInfo.context->platformContext()->cr(), indicatorRect.x(), indicatorRect.y(), 229 230 indicatorRect.width(), indicatorRect.height()); 230 231 } … … 285 286 } 286 287 287 gtk_render_background(context, paintInfo.context->platformContext() , buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height());288 gtk_render_frame(context, paintInfo.context->platformContext() , buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height());288 gtk_render_background(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height()); 289 gtk_render_frame(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height()); 289 290 290 291 if (theme->isFocused(renderObject)) { … … 318 319 } 319 320 320 gtk_render_focus(context, paintInfo.context->platformContext() , buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height());321 gtk_render_focus(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height()); 321 322 } 322 323 } … … 424 425 bool RenderThemeGtk::paintMenuList(RenderObject* renderObject, const PaintInfo& paintInfo, const IntRect& rect) 425 426 { 426 cairo_t* cairoContext = paintInfo.context->platformContext() ;427 cairo_t* cairoContext = paintInfo.context->platformContext()->cr(); 427 428 GtkTextDirection direction = static_cast<GtkTextDirection>(gtkTextDirection(renderObject->style()->direction())); 428 429 … … 569 570 gtk_style_context_set_state(context, static_cast<GtkStateFlags>(flags)); 570 571 571 gtk_render_background(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());572 gtk_render_frame(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());572 gtk_render_background(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 573 gtk_render_frame(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 573 574 574 575 if (isFocused(renderObject) && isEnabled(renderObject)) { … … 583 584 IntRect focusRect(rect); 584 585 focusRect.inflate(focusWidth + focusPad); 585 gtk_render_focus(context, paintInfo.context->platformContext() ,586 gtk_render_focus(context, paintInfo.context->platformContext()->cr(), 586 587 focusRect.x(), focusRect.y(), focusRect.width(), focusRect.height()); 587 588 } … … 608 609 gtk_style_context_set_state(context, GTK_STATE_FLAG_INSENSITIVE); 609 610 610 gtk_render_background(context, paintInfo.context->platformContext() ,611 gtk_render_background(context, paintInfo.context->platformContext()->cr(), 611 612 rect.x(), rect.y(), rect.width(), rect.height()); 612 gtk_render_frame(context, paintInfo.context->platformContext() ,613 gtk_render_frame(context, paintInfo.context->platformContext()->cr(), 613 614 rect.x(), rect.y(), rect.width(), rect.height()); 614 615 … … 620 621 IntRect focusRect(rect); 621 622 focusRect.inflate(focusWidth + focusPad); 622 gtk_render_focus(context, paintInfo.context->platformContext() ,623 gtk_render_focus(context, paintInfo.context->platformContext()->cr(), 623 624 focusRect.x(), focusRect.y(), focusRect.width(), focusRect.height()); 624 625 } … … 655 656 gtk_style_context_set_state(context, static_cast<GtkStateFlags>(flags)); 656 657 657 gtk_render_slider(context, paintInfo.context->platformContext() , sliderRect.x(), sliderRect.y(), sliderRect.width(), sliderRect.height(),658 gtk_render_slider(context, paintInfo.context->platformContext()->cr(), sliderRect.x(), sliderRect.y(), sliderRect.width(), sliderRect.height(), 658 659 part == SliderThumbHorizontalPart ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL); 659 660 … … 699 700 gtk_style_context_add_class(context, GTK_STYLE_CLASS_TROUGH); 700 701 701 gtk_render_background(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());702 gtk_render_frame(context, paintInfo.context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());702 gtk_render_background(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 703 gtk_render_frame(context, paintInfo.context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 703 704 704 705 gtk_style_context_restore(context); … … 716 717 717 718 if (!progressRect.isEmpty()) 718 gtk_render_activity(context, paintInfo.context->platformContext() , progressRect.x(), progressRect.y(), progressRect.width(), progressRect.height());719 gtk_render_activity(context, paintInfo.context->platformContext()->cr(), progressRect.x(), progressRect.y(), progressRect.width(), progressRect.height()); 719 720 720 721 gtk_style_context_restore(context); … … 778 779 gtk_style_context_set_junction_sides(context, static_cast<GtkJunctionSides>(junction)); 779 780 780 gtk_render_background(context, paintInfo.context->platformContext() , buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height());781 gtk_render_frame(context, paintInfo.context->platformContext() , buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height());781 gtk_render_background(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height()); 782 gtk_render_frame(context, paintInfo.context->platformContext()->cr(), buttonRect.x(), buttonRect.y(), buttonRect.width(), buttonRect.height()); 782 783 783 784 // Paint arrow centered inside button. … … 805 806 806 807 arrowRect.move((arrowRect.width() - width) / 2, (arrowRect.height() - height) / 2); 807 gtk_render_arrow(context, paintInfo.context->platformContext() , angle, arrowRect.x(), arrowRect.y(), width);808 gtk_render_arrow(context, paintInfo.context->platformContext()->cr(), angle, arrowRect.x(), arrowRect.y(), width); 808 809 809 810 gtk_style_context_restore(context); -
trunk/Source/WebCore/platform/gtk/ScrollbarThemeGtk3.cpp
r80555 r83034 29 29 #ifndef GTK_API_VERSION_2 30 30 31 #include "PlatformContextCairo.h" 31 32 #include "PlatformMouseEvent.h" 32 33 #include "RenderThemeGtk.h" … … 78 79 gtk_style_context_add_class(m_context, GTK_STYLE_CLASS_TROUGH); 79 80 80 gtk_render_background(m_context, context->platformContext() ,81 gtk_render_background(m_context, context->platformContext()->cr(), 81 82 fullScrollbarRect.x(), fullScrollbarRect.y(), fullScrollbarRect.width(), fullScrollbarRect.height()); 82 gtk_render_frame(m_context, context->platformContext() ,83 gtk_render_frame(m_context, context->platformContext()->cr(), 83 84 fullScrollbarRect.x(), fullScrollbarRect.y(), fullScrollbarRect.width(), fullScrollbarRect.height()); 84 85 … … 92 93 gtk_style_context_add_class(m_context, GTK_STYLE_CLASS_SCROLLBAR); 93 94 gtk_style_context_add_class(m_context, "scrolled-window"); 94 gtk_render_frame(m_context, context->platformContext() , scrollbar->x(), scrollbar->y(), scrollbar->width(), scrollbar->height());95 gtk_render_frame(m_context, context->platformContext()->cr(), scrollbar->x(), scrollbar->y(), scrollbar->width(), scrollbar->height()); 95 96 96 97 gtk_style_context_restore(m_context); … … 111 112 gtk_style_context_set_state(m_context, static_cast<GtkStateFlags>(flags)); 112 113 113 gtk_render_slider(m_context, context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height(),114 gtk_render_slider(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height(), 114 115 scrollbar->orientation() == VerticalScrollbar ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL); 115 116 … … 137 138 138 139 gtk_style_context_add_class(m_context, GTK_STYLE_CLASS_BUTTON); 139 gtk_render_background(m_context, context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());140 gtk_render_frame(m_context, context->platformContext() , rect.x(), rect.y(), rect.width(), rect.height());140 gtk_render_background(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 141 gtk_render_frame(m_context, context->platformContext()->cr(), rect.x(), rect.y(), rect.width(), rect.height()); 141 142 142 143 gfloat arrowScaling; … … 163 164 } 164 165 165 gtk_render_arrow(m_context, context->platformContext() , angle, arrowPoint.x(), arrowPoint.y(), arrowSize);166 gtk_render_arrow(m_context, context->platformContext()->cr(), angle, arrowPoint.x(), arrowPoint.y(), arrowSize); 166 167 167 168 gtk_style_context_restore(m_context);
Note: See TracChangeset
for help on using the changeset viewer.