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

Side by Side Diff: Source/core/rendering/RenderImage.h

Issue 129173004: Update rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
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 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE FINAL; 68 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE FINAL;
69 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL; 69 virtual RenderBox* embeddedContentBox() const OVERRIDE FINAL;
70 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE FINAL; 70 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE FINAL;
71 71
72 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE FI NAL; 72 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE FI NAL;
73 73
74 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 74 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
75 75
76 void paintIntoRect(GraphicsContext*, const LayoutRect&); 76 void paintIntoRect(GraphicsContext*, const LayoutRect&);
77 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; 77 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
78 virtual void layout(); 78 virtual void layout() OVERRIDE;
79 virtual void didLayout(ResourceLoadPriorityOptimizer&); 79 virtual void didLayout(ResourceLoadPriorityOptimizer&) OVERRIDE;
80 virtual void didScroll(ResourceLoadPriorityOptimizer&); 80 virtual void didScroll(ResourceLoadPriorityOptimizer&) OVERRIDE;
81 void updateImageLoadingPriority(ResourceLoadPriorityOptimizer&); 81 void updateImageLoadingPriority(ResourceLoadPriorityOptimizer&);
82 82
83 virtual void intrinsicSizeChanged() 83 virtual void intrinsicSizeChanged() OVERRIDE
84 { 84 {
85 if (m_imageResource) 85 if (m_imageResource)
86 imageChanged(m_imageResource->imagePtr()); 86 imageChanged(m_imageResource->imagePtr());
87 } 87 }
88 88
89 private: 89 private:
90 virtual const char* renderName() const { return "RenderImage"; } 90 virtual const char* renderName() const OVERRIDE { return "RenderImage"; }
91 91
92 virtual bool isImage() const { return true; } 92 virtual bool isImage() const OVERRIDE { return true; }
93 virtual bool isRenderImage() const OVERRIDE FINAL { return true; } 93 virtual bool isRenderImage() const OVERRIDE FINAL { return true; }
94 94
95 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); 95 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE;
96 96
97 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const OVERRIDE FINAL; 97 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const OVERRIDE FINAL;
98 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL; 98 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL;
99 99
100 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE; 100 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE;
101 101
102 virtual void notifyFinished(Resource*) OVERRIDE FINAL; 102 virtual void notifyFinished(Resource*) OVERRIDE FINAL;
103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL; 103 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL;
104 104
105 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const OVERRIDE FINAL; 105 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const OVERRIDE FINAL;
(...skipping 15 matching lines...) Expand all
121 float m_imageDevicePixelRatio; 121 float m_imageDevicePixelRatio;
122 122
123 friend class RenderImageScaleObserver; 123 friend class RenderImageScaleObserver;
124 }; 124 };
125 125
126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
127 127
128 } // namespace WebCore 128 } // namespace WebCore
129 129
130 #endif // RenderImage_h 130 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderHTMLCanvas.h ('k') | Source/core/rendering/RenderImageResourceStyleImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698