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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp

Issue 1983863002: Inflate dirty rect by 1 pixel on a high DPI display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullcheck on page() Created 4 years, 7 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 | « third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h ('k') | no next file » | 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 ASSERT(m_stateStack.begin() < m_stateStack.end()); 295 ASSERT(m_stateStack.begin() < m_stateStack.end());
296 for (currState = m_stateStack.begin(); currState < m_stateStack.end(); currS tate++) { 296 for (currState = m_stateStack.begin(); currState < m_stateStack.end(); currS tate++) {
297 c->setMatrix(SkMatrix::I()); 297 c->setMatrix(SkMatrix::I());
298 currState->get()->playbackClips(c); 298 currState->get()->playbackClips(c);
299 c->setMatrix(affineTransformToSkMatrix(currState->get()->transform())); 299 c->setMatrix(affineTransformToSkMatrix(currState->get()->transform()));
300 c->save(); 300 c->save();
301 } 301 }
302 c->restore(); 302 c->restore();
303 } 303 }
304 304
305 bool CanvasRenderingContext2D::shouldAntialias() const
306 {
307 return state().shouldAntialias();
308 }
309
305 void CanvasRenderingContext2D::setShouldAntialias(bool doAA) 310 void CanvasRenderingContext2D::setShouldAntialias(bool doAA)
306 { 311 {
307 modifiableState().setShouldAntialias(doAA); 312 modifiableState().setShouldAntialias(doAA);
308 } 313 }
309 314
310 void CanvasRenderingContext2D::scrollPathIntoView() 315 void CanvasRenderingContext2D::scrollPathIntoView()
311 { 316 {
312 scrollPathIntoViewInternal(m_path); 317 scrollPathIntoViewInternal(m_path);
313 } 318 }
314 319
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 1060
1056 unsigned CanvasRenderingContext2D::hitRegionsCount() const 1061 unsigned CanvasRenderingContext2D::hitRegionsCount() const
1057 { 1062 {
1058 if (m_hitRegionManager) 1063 if (m_hitRegionManager)
1059 return m_hitRegionManager->getHitRegionsCount(); 1064 return m_hitRegionManager->getHitRegionsCount();
1060 1065
1061 return 0; 1066 return 0;
1062 } 1067 }
1063 1068
1064 } // namespace blink 1069 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698