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

Side by Side Diff: Source/core/html/ImageDocument.h

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLViewSourceDocument.h ('k') | Source/core/html/MediaDocument.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
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 19 matching lines...) Expand all
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class ImageResource; 33 class ImageResource;
34 class HTMLImageElement; 34 class HTMLImageElement;
35 35
36 class ImageDocument FINAL : public HTMLDocument { 36 class ImageDocument FINAL : public HTMLDocument {
37 public: 37 public:
38 static PassRefPtrWillBeRawPtr<ImageDocument> create(const DocumentInit& init ializer = DocumentInit()) 38 static PassRefPtrWillBeRawPtr<ImageDocument> create(const DocumentInit& init ializer = DocumentInit())
39 { 39 {
40 return adoptRefWillBeRefCountedGarbageCollected(new ImageDocument(initia lizer)); 40 return adoptRefWillBeNoop(new ImageDocument(initializer));
41 } 41 }
42 42
43 ImageResource* cachedImage(); 43 ImageResource* cachedImage();
44 HTMLImageElement* imageElement() const { return m_imageElement.get(); } 44 HTMLImageElement* imageElement() const { return m_imageElement.get(); }
45 45
46 void windowSizeChanged(); 46 void windowSizeChanged();
47 void imageUpdated(); 47 void imageUpdated();
48 void imageClicked(int x, int y); 48 void imageClicked(int x, int y);
49 49
50 virtual void trace(Visitor*) OVERRIDE; 50 virtual void trace(Visitor*) OVERRIDE;
(...skipping 23 matching lines...) Expand all
74 74
75 // Whether the image should be shrunk or not 75 // Whether the image should be shrunk or not
76 bool m_shouldShrinkImage; 76 bool m_shouldShrinkImage;
77 }; 77 };
78 78
79 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); 79 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument);
80 80
81 } 81 }
82 82
83 #endif // ImageDocument_h 83 #endif // ImageDocument_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLViewSourceDocument.h ('k') | Source/core/html/MediaDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698