Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 150653006: Remove the Vector::append overload that takes a Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/TextCheckingHelper.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/TextCheckingHelper.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698