OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |