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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.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: fixed 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) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 template<class T> void fullCanvasCompositedFill(const T&); 336 template<class T> void fullCanvasCompositedFill(const T&);
337 template<class T> void fullCanvasCompositedStroke(const T&); 337 template<class T> void fullCanvasCompositedStroke(const T&);
338 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c onst FloatRect&, CompositeOperator); 338 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c onst FloatRect&, CompositeOperator);
339 339
340 void drawFocusIfNeededInternal(const Path&, Element*); 340 void drawFocusIfNeededInternal(const Path&, Element*);
341 bool focusRingCallIsValid(const Path&, Element*); 341 bool focusRingCallIsValid(const Path&, Element*);
342 void drawFocusRing(const Path&); 342 void drawFocusRing(const Path&);
343 343
344 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&); 344 void addHitRegionInternal(const HitRegionOptions&, ExceptionState&);
345 bool isClipMode() { return m_clipCount; }
Justin Novosad 2014/07/02 15:12:31 should be hasClip()
345 346
346 void validateStateStack(); 347 void validateStateStack();
347 348
348 virtual bool is2d() const OVERRIDE { return true; } 349 virtual bool is2d() const OVERRIDE { return true; }
349 virtual bool isAccelerated() const OVERRIDE; 350 virtual bool isAccelerated() const OVERRIDE;
350 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } 351 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; }
351 352
352 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; } 353 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; }
353 354
354 virtual blink::WebLayer* platformLayer() const OVERRIDE; 355 virtual blink::WebLayer* platformLayer() const OVERRIDE;
355 356
356 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack; 357 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack;
357 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager; 358 OwnPtrWillBeMember<HitRegionManager> m_hitRegionManager;
358 bool m_usesCSSCompatibilityParseMode; 359 bool m_usesCSSCompatibilityParseMode;
359 bool m_hasAlpha; 360 bool m_hasAlpha;
360 bool m_isContextLost; 361 bool m_isContextLost;
361 bool m_contextRestorable; 362 bool m_contextRestorable;
362 Canvas2DContextStorage m_storageMode; 363 Canvas2DContextStorage m_storageMode;
363 MutableStylePropertyMap m_fetchedFonts; 364 MutableStylePropertyMap m_fetchedFonts;
364 unsigned m_tryRestoreContextAttemptCount; 365 unsigned m_tryRestoreContextAttemptCount;
366 unsigned m_clipCount;
365 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 367 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
366 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 368 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
367 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 369 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
368 }; 370 };
369 371
370 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 372 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
371 373
372 } // namespace WebCore 374 } // namespace WebCore
373 375
374 #endif 376 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698