Changeset 24091 in webkit
- Timestamp:
- Jul 7, 2007 1:42:50 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24090 r24091 1 2007-07-07 Darin Adler <darin@apple.com> 2 3 - test for <rdar://problem/5292364> REGRESSION: ZX Spectrum 3.0 widget - graphic anomalies in widget window frame 4 5 * fast/canvas/fill-stroke-clip-reset-path-expected.checksum: Added. 6 * fast/canvas/fill-stroke-clip-reset-path-expected.png: Added. 7 * fast/canvas/fill-stroke-clip-reset-path-expected.txt: Added. 8 * fast/canvas/fill-stroke-clip-reset-path.html: Added. 9 1 10 2007-07-07 Rob Buis <buis@kde.org> 2 11 -
trunk/WebCore/ChangeLog
r24090 r24091 1 2007-07-07 Darin Adler <darin@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 - fix <rdar://problem/5292364> REGRESSION: ZX Spectrum 3.0 widget - graphic anomalies in widget window frame 6 7 Updated Dashboard quirk so it affects fill, stroke, and clip, rather than just stroke. 8 9 Test: fast/canvas/fill-stroke-clip-reset-path.html 10 11 * html/CanvasRenderingContext2D.h: Added clearPathForDashboardBackwardCompatibilityMode. 12 * html/CanvasRenderingContext2D.cpp: 13 (WebCore::CanvasRenderingContext2D::clearPathForDashboardBackwardCompatibilityMode): Added. 14 (WebCore::CanvasRenderingContext2D::fill): Call the new function. 15 (WebCore::CanvasRenderingContext2D::stroke): Replaced in-line code with a call to the new function. 16 (WebCore::CanvasRenderingContext2D::clip): Call the new function. 17 1 18 2007-07-07 Rob Buis <buis@kde.org> 2 19 -
trunk/WebCore/html/CanvasRenderingContext2D.cpp
r24090 r24091 1 1 /* 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.All rights reserved.2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2007 Trolltech ASA 4 4 * … … 431 431 } 432 432 433 void CanvasRenderingContext2D::clearPathForDashboardBackwardCompatibilityMode() 434 { 435 if (m_canvas) 436 if (Settings* settings = m_canvas->document()->settings()) 437 if (settings->usesDashboardBackwardCompatibilityMode()) 438 state().m_path.clear(); 439 } 440 433 441 void CanvasRenderingContext2D::fill() 434 442 { … … 468 476 } 469 477 #endif 478 479 clearPathForDashboardBackwardCompatibilityMode(); 470 480 } 471 481 … … 513 523 #endif 514 524 515 Settings* settings = m_canvas ? m_canvas->document()->settings() : 0; 516 if (settings && settings->usesDashboardBackwardCompatibilityMode()) 517 state().m_path.clear(); 525 clearPathForDashboardBackwardCompatibilityMode(); 518 526 } 519 527 … … 524 532 return; 525 533 c->clip(state().m_path); 534 clearPathForDashboardBackwardCompatibilityMode(); 526 535 } 527 536 -
trunk/WebCore/html/CanvasRenderingContext2D.h
r18874 r24091 1 1 /* 2 * Copyright (C) 2006 Apple Computer, Inc.All rights reserved.2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 200 200 void applyFillPattern(); 201 201 202 void clearPathForDashboardBackwardCompatibilityMode(); 203 202 204 HTMLCanvasElement* m_canvas; 203 205 Vector<State, 1> m_stateStack;
Note: See TracChangeset
for help on using the changeset viewer.