Changeset 37460 in webkit
- Timestamp:
- Oct 9, 2008 7:26:54 PM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r37456 r37460 1 2008-10-09 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Oliver Hunt. 4 5 Fix Canvex DOOM Game 6 Gradient clips were not getting cleared after filling the 7 gradient, this was causing nothing to draw in Canvex 8 https://bugs.webkit.org/show_bug.cgi?id=21498 9 10 Tests forthcoming. 11 12 * WebCore.xcodeproj/project.pbxproj: 13 * platform/graphics/cg/GraphicsContextCG.cpp: 14 (WebCore::GraphicsContext::fillPath): 15 (WebCore::GraphicsContext::strokePath): 16 (WebCore::GraphicsContext::fillRect): 17 1 18 2008-10-09 Eric Seidel <eric@webkit.org> 2 19 -
trunk/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r37456 r37460 494 494 break; 495 495 case GradientColorSpace: 496 CGContextSaveGState(context); 496 497 if (fillRule() == RULE_EVENODD) 497 498 CGContextEOClip(context); … … 499 500 CGContextClip(context); 500 501 CGContextDrawShading(context, m_common->state.fillGradient->platformGradient()); 502 CGContextRestoreGState(context); 501 503 break; 502 504 } … … 519 521 break; 520 522 case GradientColorSpace: 523 CGContextSaveGState(context); 521 524 CGContextReplacePathWithStrokedPath(context); 522 525 CGContextClip(context); 523 526 CGContextDrawShading(context, m_common->state.strokeGradient->platformGradient()); 527 CGContextRestoreGState(context); 524 528 break; 525 529 } … … 530 534 if (paintingDisabled()) 531 535 return; 536 CGContextRef context = platformContext(); 532 537 switch (m_common->state.fillColorSpace) { 533 538 case SolidColorSpace: 534 539 if (fillColor().alpha()) 535 CGContextFillRect( platformContext(), rect);540 CGContextFillRect(context, rect); 536 541 break; 537 542 case PatternColorSpace: 538 543 applyFillPattern(this, m_common->state.fillPattern.get()); 539 CGContextFillRect( platformContext(), rect);544 CGContextFillRect(context, rect); 540 545 break; 541 546 case GradientColorSpace: 542 clip(rect); 543 CGContextDrawShading(platformContext(), m_common->state.fillGradient->platformGradient()); 547 CGContextSaveGState(context); 548 CGContextClipToRect(context, rect); 549 CGContextDrawShading(context, m_common->state.fillGradient->platformGradient()); 550 CGContextRestoreGState(context); 544 551 break; 545 552 }
Note: See TracChangeset
for help on using the changeset viewer.