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

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

Issue 299823003: Enable canvas.drawFocusIfNeeded() by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove test Created 6 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const; 325 bool rectContainsTransformedRect(const FloatRect&, const FloatRect&) const;
326 326
327 void inflateStrokeRect(FloatRect&) const; 327 void inflateStrokeRect(FloatRect&) const;
328 328
329 template<class T> void fullCanvasCompositedFill(const T&); 329 template<class T> void fullCanvasCompositedFill(const T&);
330 template<class T> void fullCanvasCompositedStroke(const T&); 330 template<class T> void fullCanvasCompositedStroke(const T&);
331 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c onst FloatRect&, CompositeOperator); 331 template<class T> void fullCanvasCompositedDrawImage(T*, const FloatRect&, c onst FloatRect&, CompositeOperator);
332 332
333 void drawFocusIfNeededInternal(const Path&, Element*); 333 void drawFocusIfNeededInternal(const Path&, Element*);
334 bool focusRingCallIsValid(const Path&, Element*); 334 bool focusRingCallIsValid(const Path&, Element*);
335 void updateFocusRingAccessibility(const Path&, Element*);
336 void drawFocusRing(const Path&); 335 void drawFocusRing(const Path&);
337 336
338 virtual bool is2d() const OVERRIDE { return true; } 337 virtual bool is2d() const OVERRIDE { return true; }
339 virtual bool isAccelerated() const OVERRIDE; 338 virtual bool isAccelerated() const OVERRIDE;
340 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; } 339 virtual bool hasAlpha() const OVERRIDE { return m_hasAlpha; }
341 340
342 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; } 341 virtual bool isTransformInvertible() const OVERRIDE { return state().m_inver tibleCTM; }
343 342
344 virtual blink::WebLayer* platformLayer() const OVERRIDE; 343 virtual blink::WebLayer* platformLayer() const OVERRIDE;
345 344
346 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack; 345 WillBeHeapVector<OwnPtrWillBeMember<State> > m_stateStack;
347 bool m_usesCSSCompatibilityParseMode; 346 bool m_usesCSSCompatibilityParseMode;
348 bool m_hasAlpha; 347 bool m_hasAlpha;
349 bool m_isContextLost; 348 bool m_isContextLost;
350 bool m_contextRestorable; 349 bool m_contextRestorable;
351 Canvas2DContextStorage m_storageMode; 350 Canvas2DContextStorage m_storageMode;
352 MutableStylePropertyMap m_fetchedFonts; 351 MutableStylePropertyMap m_fetchedFonts;
353 unsigned m_tryRestoreContextAttemptCount; 352 unsigned m_tryRestoreContextAttemptCount;
354 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 353 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
355 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 354 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
356 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 355 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
357 }; 356 };
358 357
359 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 358 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
360 359
361 } // namespace WebCore 360 } // namespace WebCore
362 361
363 #endif 362 #endif
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/draw-custom-focus-ring-expected.txt ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698