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

Side by Side Diff: Source/platform/graphics/GraphicsContext.h

Issue 352793006: context.addHitRegion() is not working when using transform operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: state stack Created 6 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 LeftEdge = 1 << 4 364 LeftEdge = 1 << 4
365 }; 365 };
366 typedef unsigned Edges; 366 typedef unsigned Edges;
367 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge ); 367 void drawInnerShadow(const RoundedRect&, const Color& shadowColor, const Int Size shadowOffset, int shadowBlur, int shadowSpread, Edges clippedEdges = NoEdge );
368 368
369 // This clip function is used only by <canvas> code. It allows 369 // This clip function is used only by <canvas> code. It allows
370 // implementations to handle clipping on the canvas differently since 370 // implementations to handle clipping on the canvas differently since
371 // the discipline is different. 371 // the discipline is different.
372 void canvasClip(const Path&, WindRule = RULE_EVENODD); 372 void canvasClip(const Path&, WindRule = RULE_EVENODD);
373 void clipOut(const Path&); 373 void clipOut(const Path&);
374 bool isClipMode() const;
375 374
376 // ---------- Transformation methods ----------------- 375 // ---------- Transformation methods -----------------
377 // Note that the getCTM method returns only the current transform from Blink 's perspective, 376 // Note that the getCTM method returns only the current transform from Blink 's perspective,
378 // which is not the final transform used to place content on screen. It cann ot be relied upon 377 // which is not the final transform used to place content on screen. It cann ot be relied upon
379 // for testing where a point will appear on screen or how large it will be. 378 // for testing where a point will appear on screen or how large it will be.
380 AffineTransform getCTM() const; 379 AffineTransform getCTM() const;
381 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa trix(affine)); } 380 void concatCTM(const AffineTransform& affine) { concat(affineTransformToSkMa trix(affine)); }
382 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa trix(affine)); } 381 void setCTM(const AffineTransform& affine) { setMatrix(affineTransformToSkMa trix(affine)); }
383 void setMatrix(const SkMatrix&); 382 void setMatrix(const SkMatrix&);
384 383
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 bool m_updatingControlTints : 1; 523 bool m_updatingControlTints : 1;
525 bool m_accelerated : 1; 524 bool m_accelerated : 1;
526 bool m_isCertainlyOpaque : 1; 525 bool m_isCertainlyOpaque : 1;
527 bool m_printing : 1; 526 bool m_printing : 1;
528 bool m_antialiasHairlineImages : 1; 527 bool m_antialiasHairlineImages : 1;
529 }; 528 };
530 529
531 } // namespace WebCore 530 } // namespace WebCore
532 531
533 #endif // GraphicsContext_h 532 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698