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

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

Issue 129873009: Remove RenderImage::m_needsToSetSizeForAltText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void imageDimensionsChanged(bool imageSizeChanged, const IntRect* = 0); 108 void imageDimensionsChanged(bool imageSizeChanged, const IntRect* = 0);
109 bool updateIntrinsicSizeIfNeeded(const LayoutSize&, bool imageSizeChanged); 109 bool updateIntrinsicSizeIfNeeded(const LayoutSize&, bool imageSizeChanged);
110 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect. 110 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect.
111 void updateInnerContentRect(); 111 void updateInnerContentRect();
112 112
113 void paintAreaElementFocusRing(PaintInfo&); 113 void paintAreaElementFocusRing(PaintInfo&);
114 114
115 // Text to display as long as the image isn't available. 115 // Text to display as long as the image isn't available.
116 String m_altText; 116 String m_altText;
117 OwnPtr<RenderImageResource> m_imageResource; 117 OwnPtr<RenderImageResource> m_imageResource;
118 bool m_needsToSetSizeForAltText;
119 bool m_didIncrementVisuallyNonEmptyPixelCount; 118 bool m_didIncrementVisuallyNonEmptyPixelCount;
120 bool m_isGeneratedContent; 119 bool m_isGeneratedContent;
121 float m_imageDevicePixelRatio; 120 float m_imageDevicePixelRatio;
122 121
123 friend class RenderImageScaleObserver; 122 friend class RenderImageScaleObserver;
124 }; 123 };
125 124
126 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 125 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
127 126
128 } // namespace WebCore 127 } // namespace WebCore
129 128
130 #endif // RenderImage_h 129 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/rendering/RenderImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698