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

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

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/html/HTMLImageElement.h ('k') | Source/core/html/HTMLImageLoader.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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "core/html/parser/HTMLSrcsetParser.h" 43 #include "core/html/parser/HTMLSrcsetParser.h"
44 #include "core/inspector/ConsoleMessage.h" 44 #include "core/inspector/ConsoleMessage.h"
45 #include "core/rendering/RenderImage.h" 45 #include "core/rendering/RenderImage.h"
46 #include "platform/MIMETypeRegistry.h" 46 #include "platform/MIMETypeRegistry.h"
47 #include "platform/RuntimeEnabledFeatures.h" 47 #include "platform/RuntimeEnabledFeatures.h"
48 48
49 namespace blink { 49 namespace blink {
50 50
51 using namespace HTMLNames; 51 using namespace HTMLNames;
52 52
53 class HTMLImageElement::ViewportChangeListener FINAL : public MediaQueryListList ener { 53 class HTMLImageElement::ViewportChangeListener final : public MediaQueryListList ener {
54 public: 54 public:
55 static RefPtrWillBeRawPtr<ViewportChangeListener> create(HTMLImageElement* e lement) 55 static RefPtrWillBeRawPtr<ViewportChangeListener> create(HTMLImageElement* e lement)
56 { 56 {
57 return adoptRefWillBeNoop(new ViewportChangeListener(element)); 57 return adoptRefWillBeNoop(new ViewportChangeListener(element));
58 } 58 }
59 59
60 virtual void notifyMediaQueryChanged() OVERRIDE 60 virtual void notifyMediaQueryChanged() override
61 { 61 {
62 if (m_element) 62 if (m_element)
63 m_element->notifyViewportChanged(); 63 m_element->notifyViewportChanged();
64 } 64 }
65 65
66 #if !ENABLE(OILPAN) 66 #if !ENABLE(OILPAN)
67 void clearElement() { m_element = nullptr; } 67 void clearElement() { m_element = nullptr; }
68 #endif 68 #endif
69 virtual void trace(Visitor* visitor) OVERRIDE 69 virtual void trace(Visitor* visitor) override
70 { 70 {
71 visitor->trace(m_element); 71 visitor->trace(m_element);
72 MediaQueryListListener::trace(visitor); 72 MediaQueryListListener::trace(visitor);
73 } 73 }
74 private: 74 private:
75 explicit ViewportChangeListener(HTMLImageElement* element) : m_element(eleme nt) { } 75 explicit ViewportChangeListener(HTMLImageElement* element) : m_element(eleme nt) { }
76 RawPtrWillBeMember<HTMLImageElement> m_element; 76 RawPtrWillBeMember<HTMLImageElement> m_element;
77 }; 77 };
78 78
79 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo ol createdByParser) 79 HTMLImageElement::HTMLImageElement(Document& document, HTMLFormElement* form, bo ol createdByParser)
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 648 }
649 imageLoader().updateFromElement(behavior); 649 imageLoader().updateFromElement(behavior);
650 } 650 }
651 651
652 const KURL& HTMLImageElement::sourceURL() const 652 const KURL& HTMLImageElement::sourceURL() const
653 { 653 {
654 return cachedImage()->response().url(); 654 return cachedImage()->response().url();
655 } 655 }
656 656
657 } 657 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageElement.h ('k') | Source/core/html/HTMLImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698