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

Side by Side Diff: WebCore/rendering/RenderImage.h

Issue 3431018: Merge 68004 - 2010-09-21 Cosmin Truta <ctruta@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebCore/html/HTMLImageElement.cpp ('k') | no next file » | 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 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010 Apple Inc. All rights reserv ed.
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 protected: 54 protected:
55 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 55 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
56 56
57 virtual void paintIntoRect(GraphicsContext*, const IntRect&); 57 virtual void paintIntoRect(GraphicsContext*, const IntRect&);
58 void paintFocusRings(PaintInfo&, const RenderStyle*); 58 void paintFocusRings(PaintInfo&, const RenderStyle*);
59 virtual void paint(PaintInfo&, int tx, int ty); 59 virtual void paint(PaintInfo&, int tx, int ty);
60 60
61 bool isWidthSpecified() const; 61 bool isWidthSpecified() const;
62 bool isHeightSpecified() const; 62 bool isHeightSpecified() const;
63 63
64 virtual void intrinsicSizeChanged() { imageChanged(m_imageResource->imagePtr ()); } 64 virtual void intrinsicSizeChanged()
65 {
66 if (m_imageResource)
67 imageChanged(m_imageResource->imagePtr());
68 }
65 69
66 private: 70 private:
67 virtual const char* renderName() const { return "RenderImage"; } 71 virtual const char* renderName() const { return "RenderImage"; }
68 72
69 virtual bool isImage() const { return true; } 73 virtual bool isImage() const { return true; }
70 virtual bool isRenderImage() const { return true; } 74 virtual bool isRenderImage() const { return true; }
71 75
72 virtual void paintReplaced(PaintInfo&, int tx, int ty); 76 virtual void paintReplaced(PaintInfo&, int tx, int ty);
73 77
74 virtual int minimumReplacedHeight() const; 78 virtual int minimumReplacedHeight() const;
(...skipping 28 matching lines...) Expand all
103 ASSERT(!object || object->isRenderImage()); 107 ASSERT(!object || object->isRenderImage());
104 return static_cast<const RenderImage*>(object); 108 return static_cast<const RenderImage*>(object);
105 } 109 }
106 110
107 // This will catch anyone doing an unnecessary cast. 111 // This will catch anyone doing an unnecessary cast.
108 void toRenderImage(const RenderImage*); 112 void toRenderImage(const RenderImage*);
109 113
110 } // namespace WebCore 114 } // namespace WebCore
111 115
112 #endif // RenderImage_h 116 #endif // RenderImage_h
OLDNEW
« no previous file with comments | « WebCore/html/HTMLImageElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698