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

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

Issue 478733002: Rename repaint to paintInvalidation for remaining methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/rendering/RenderGrid.cpp ('k') | Source/core/rendering/RenderImage.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 * (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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL; 95 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE FINAL;
96 96
97 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE; 97 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE;
98 98
99 virtual void notifyFinished(Resource*) OVERRIDE FINAL; 99 virtual void notifyFinished(Resource*) OVERRIDE FINAL;
100 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL; 100 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL;
101 101
102 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const OVERRIDE FINAL; 102 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance, InlineFlowBox*) const OVERRIDE FINAL;
103 103
104 IntSize imageSizeForError(ImageResource*) const; 104 IntSize imageSizeForError(ImageResource*) const;
105 void repaintOrMarkForLayout(bool imageSizeChanged, const IntRect* = 0); 105 void paintInvalidationOrMarkForLayout(bool imageSizeChanged, const IntRect* = 0);
106 void updateIntrinsicSizeIfNeeded(const LayoutSize&); 106 void updateIntrinsicSizeIfNeeded(const LayoutSize&);
107 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect. 107 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect.
108 void updateInnerContentRect(); 108 void updateInnerContentRect();
109 109
110 void paintAreaElementFocusRing(PaintInfo&); 110 void paintAreaElementFocusRing(PaintInfo&);
111 111
112 // Text to display as long as the image isn't available. 112 // Text to display as long as the image isn't available.
113 String m_altText; 113 String m_altText;
114 OwnPtr<RenderImageResource> m_imageResource; 114 OwnPtr<RenderImageResource> m_imageResource;
115 bool m_didIncrementVisuallyNonEmptyPixelCount; 115 bool m_didIncrementVisuallyNonEmptyPixelCount;
116 bool m_isGeneratedContent; 116 bool m_isGeneratedContent;
117 float m_imageDevicePixelRatio; 117 float m_imageDevicePixelRatio;
118 118
119 friend class RenderImageScaleObserver; 119 friend class RenderImageScaleObserver;
120 }; 120 };
121 121
122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 122 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // RenderImage_h 126 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderGrid.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698