OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 void CanvasRenderingContext2D::setLineDash(const Vector<float>& dash) | 494 void CanvasRenderingContext2D::setLineDash(const Vector<float>& dash) |
495 { | 495 { |
496 if (!lineDashSequenceIsValid(dash)) | 496 if (!lineDashSequenceIsValid(dash)) |
497 return; | 497 return; |
498 | 498 |
499 realizeSaves(); | 499 realizeSaves(); |
500 modifiableState().m_lineDash = dash; | 500 modifiableState().m_lineDash = dash; |
501 // Spec requires the concatenation of two copies the dash list when the | 501 // Spec requires the concatenation of two copies the dash list when the |
502 // number of elements is odd | 502 // number of elements is odd |
503 if (dash.size() % 2) | 503 if (dash.size() % 2) |
504 modifiableState().m_lineDash.append(dash); | 504 modifiableState().m_lineDash.appendVector(dash); |
505 | 505 |
506 applyLineDash(); | 506 applyLineDash(); |
507 } | 507 } |
508 | 508 |
509 float CanvasRenderingContext2D::lineDashOffset() const | 509 float CanvasRenderingContext2D::lineDashOffset() const |
510 { | 510 { |
511 return state().m_lineDashOffset; | 511 return state().m_lineDashOffset; |
512 } | 512 } |
513 | 513 |
514 void CanvasRenderingContext2D::setLineDashOffset(float offset) | 514 void CanvasRenderingContext2D::setLineDashOffset(float offset) |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2392 const int focusRingWidth = 5; | 2392 const int focusRingWidth = 5; |
2393 const int focusRingOutline = 0; | 2393 const int focusRingOutline = 0; |
2394 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); | 2394 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); |
2395 | 2395 |
2396 c->restore(); | 2396 c->restore(); |
2397 | 2397 |
2398 didDraw(dirtyRect); | 2398 didDraw(dirtyRect); |
2399 } | 2399 } |
2400 | 2400 |
2401 } // namespace WebCore | 2401 } // namespace WebCore |
OLD | NEW |