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

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

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/ImageDocument.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, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 private: 89 private:
90 ImageDocumentParser(ImageDocument* document) 90 ImageDocumentParser(ImageDocument* document)
91 : RawDataDocumentParser(document) 91 : RawDataDocumentParser(document)
92 { 92 {
93 } 93 }
94 94
95 virtual void appendBytes(DocumentWriter*, const char*, size_t); 95 virtual void appendBytes(DocumentWriter*, const char*, size_t);
96 virtual void finish(); 96 virtual void finish();
97 }; 97 };
98 98
99 class ImageDocumentElement : public HTMLImageElement { 99 class ImageDocumentElement FINAL : public HTMLImageElement {
100 public: 100 public:
101 static PassRefPtr<ImageDocumentElement> create(ImageDocument*); 101 static PassRefPtr<ImageDocumentElement> create(ImageDocument*);
102 102
103 private: 103 private:
104 ImageDocumentElement(ImageDocument* document) 104 ImageDocumentElement(ImageDocument* document)
105 : HTMLImageElement(imgTag, document) 105 : HTMLImageElement(imgTag, document)
106 , m_imageDocument(document) 106 , m_imageDocument(document)
107 { 107 {
108 } 108 }
109 109
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument) 395 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument)
396 { 396 {
397 if (m_imageDocument) { 397 if (m_imageDocument) {
398 m_imageDocument->disconnectImageElement(); 398 m_imageDocument->disconnectImageElement();
399 m_imageDocument = 0; 399 m_imageDocument = 0;
400 } 400 }
401 HTMLImageElement::didMoveToNewDocument(oldDocument); 401 HTMLImageElement::didMoveToNewDocument(oldDocument);
402 } 402 }
403 403
404 } 404 }
OLDNEW
« no previous file with comments | « Source/core/html/ImageDocument.h ('k') | Source/core/html/MediaDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698