Changeset 34764 in webkit
- Timestamp:
- Jun 24, 2008 3:58:32 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r34763 r34764 1 2008-06-24 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> 2 3 Reviewed by Simon. 4 5 https://bugs.webkit.org/show_bug.cgi?id=18459 6 7 Clean up and remove unused platform shadow code. 8 9 Minor edits by Simon, removed unused TextShadow struct. 10 11 * platform/graphics/qt/GraphicsContextQt.cpp: 12 (WebCore::GraphicsContext::setPlatformShadow): 13 (WebCore::GraphicsContext::clearPlatformShadow): Qt doesn't support a 14 platform shadow, so just make these functions empty. The shadows are 15 drawn manually in function like drawLine(), etc. 16 1 17 2008-06-24 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> 2 18 -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r34763 r34764 180 180 }; 181 181 182 struct TextShadow183 {184 TextShadow()185 : x(0)186 , y(0)187 , blur(0)188 {189 }190 191 bool isNull() { return !x && !y && !blur; }192 193 int x;194 int y;195 int blur;196 197 Color color;198 };199 200 182 class GraphicsContextPlatformPrivate 201 183 { … … 219 201 QStack<TransparencyLayer *> layers; 220 202 QPainter* redirect; 221 222 TextShadow shadow;223 203 224 204 // Only used by SVG for now. … … 650 630 void GraphicsContext::setPlatformShadow(const IntSize& pos, int blur, const Color &color) 651 631 { 652 if (paintingDisabled()) 653 return; 654 655 m_data->shadow.x = pos.width(); 656 m_data->shadow.y = pos.height(); 657 m_data->shadow.blur = blur; 658 m_data->shadow.color = color; 632 // Qt doesn't support shadows natively, they are drawn manually in the draw* 633 // functions 659 634 } 660 635 661 636 void GraphicsContext::clearPlatformShadow() 662 637 { 663 if (paintingDisabled()) 664 return; 665 666 m_data->shadow = TextShadow(); 638 // Qt doesn't support shadows natively, they are drawn manually in the draw* 639 // functions 667 640 } 668 641
Note: See TracChangeset
for help on using the changeset viewer.