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

Side by Side Diff: Source/core/frame/ImageBitmap.h

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ImageBitmap_h 5 #ifndef ImageBitmap_h
6 #define ImageBitmap_h 6 #define ImageBitmap_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/html/HTMLImageElement.h" 9 #include "core/html/HTMLImageElement.h"
10 #include "core/html/canvas/CanvasImageSource.h" 10 #include "core/html/canvas/CanvasImageSource.h"
(...skipping 30 matching lines...) Expand all
41 IntSize size() const { return m_cropRect.size(); } 41 IntSize size() const { return m_cropRect.size(); }
42 42
43 virtual ~ImageBitmap(); 43 virtual ~ImageBitmap();
44 44
45 // CanvasImageSource implementation 45 // CanvasImageSource implementation
46 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override; 46 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override;
47 virtual bool wouldTaintOrigin(SecurityOrigin*) const override { return false ; }; 47 virtual bool wouldTaintOrigin(SecurityOrigin*) const override { return false ; };
48 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const o verride; 48 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const o verride;
49 virtual FloatSize sourceSize() const override; 49 virtual FloatSize sourceSize() const override;
50 50
51 virtual void trace(Visitor*); 51 DECLARE_VIRTUAL_TRACE();
52 52
53 private: 53 private:
54 ImageBitmap(HTMLImageElement*, const IntRect&); 54 ImageBitmap(HTMLImageElement*, const IntRect&);
55 ImageBitmap(HTMLVideoElement*, const IntRect&); 55 ImageBitmap(HTMLVideoElement*, const IntRect&);
56 ImageBitmap(HTMLCanvasElement*, const IntRect&); 56 ImageBitmap(HTMLCanvasElement*, const IntRect&);
57 ImageBitmap(ImageData*, const IntRect&); 57 ImageBitmap(ImageData*, const IntRect&);
58 ImageBitmap(ImageBitmap*, const IntRect&); 58 ImageBitmap(ImageBitmap*, const IntRect&);
59 ImageBitmap(Image*, const IntRect&); 59 ImageBitmap(Image*, const IntRect&);
60 60
61 // ImageLoaderClient 61 // ImageLoaderClient
(...skipping 11 matching lines...) Expand all
73 // The offset by which the desired Image is stored internally. 73 // The offset by which the desired Image is stored internally.
74 // ImageBitmaps constructed from HTMLImageElements reference the entire Imag eResource and may have a non-zero bitmap offset. 74 // ImageBitmaps constructed from HTMLImageElements reference the entire Imag eResource and may have a non-zero bitmap offset.
75 // ImageBitmaps not constructed from HTMLImageElements always pre-crop and s tore the image at (0, 0). 75 // ImageBitmaps not constructed from HTMLImageElements always pre-crop and s tore the image at (0, 0).
76 IntPoint m_bitmapOffset; 76 IntPoint m_bitmapOffset;
77 77
78 }; 78 };
79 79
80 } // namespace blink 80 } // namespace blink
81 81
82 #endif // ImageBitmap_h 82 #endif // ImageBitmap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698