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

Side by Side Diff: sky/engine/core/html/HTMLImageElement.cpp

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/html/HTMLElement.h ('k') | sky/engine/core/html/HTMLImportElement.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }; 73 };
74 74
75 HTMLImageElement::HTMLImageElement(Document& document, bool createdByParser) 75 HTMLImageElement::HTMLImageElement(Document& document, bool createdByParser)
76 : HTMLElement(HTMLNames::imgTag, document) 76 : HTMLElement(HTMLNames::imgTag, document)
77 , m_imageLoader(HTMLImageLoader::create(this)) 77 , m_imageLoader(HTMLImageLoader::create(this))
78 , m_imageDevicePixelRatio(1.0f) 78 , m_imageDevicePixelRatio(1.0f)
79 , m_elementCreatedByParser(createdByParser) 79 , m_elementCreatedByParser(createdByParser)
80 , m_intrinsicSizingViewportDependant(false) 80 , m_intrinsicSizingViewportDependant(false)
81 , m_effectiveSizeViewportDependant(false) 81 , m_effectiveSizeViewportDependant(false)
82 { 82 {
83 ScriptWrappable::init(this);
84 } 83 }
85 84
86 PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document) 85 PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document)
87 { 86 {
88 return adoptRef(new HTMLImageElement(document)); 87 return adoptRef(new HTMLImageElement(document));
89 } 88 }
90 89
91 PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document, bool c reatedByParser) 90 PassRefPtr<HTMLImageElement> HTMLImageElement::create(Document& document, bool c reatedByParser)
92 { 91 {
93 return adoptRef(new HTMLImageElement(document, createdByParser)); 92 return adoptRef(new HTMLImageElement(document, createdByParser));
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 } 438 }
440 imageLoader().updateFromElement(behavior); 439 imageLoader().updateFromElement(behavior);
441 } 440 }
442 441
443 const KURL& HTMLImageElement::sourceURL() const 442 const KURL& HTMLImageElement::sourceURL() const
444 { 443 {
445 return cachedImage()->response().url(); 444 return cachedImage()->response().url();
446 } 445 }
447 446
448 } 447 }
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLElement.h ('k') | sky/engine/core/html/HTMLImportElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698