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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderBoxModelObject.h

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 9 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
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) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void paintBorder(GraphicsContext*, int tx, int ty, int w, int h, const Rende rStyle*, bool begin = true, bool end = true); 90 void paintBorder(GraphicsContext*, int tx, int ty, int w, int h, const Rende rStyle*, bool begin = true, bool end = true);
91 bool paintNinePieceImage(GraphicsContext*, int tx, int ty, int w, int h, con st RenderStyle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver) ; 91 bool paintNinePieceImage(GraphicsContext*, int tx, int ty, int w, int h, con st RenderStyle*, const NinePieceImage&, CompositeOperator = CompositeSourceOver) ;
92 void paintBoxShadow(GraphicsContext*, int tx, int ty, int w, int h, const Re nderStyle*, bool begin = true, bool end = true); 92 void paintBoxShadow(GraphicsContext*, int tx, int ty, int w, int h, const Re nderStyle*, bool begin = true, bool end = true);
93 virtual void paintFillLayerExtended(const PaintInfo&, const Color&, const Fi llLayer*, int clipY, int clipHeight, 93 virtual void paintFillLayerExtended(const PaintInfo&, const Color&, const Fi llLayer*, int clipY, int clipHeight,
94 int tx, int ty, int width, int height, I nlineFlowBox* = 0, CompositeOperator = CompositeSourceOver); 94 int tx, int ty, int width, int height, I nlineFlowBox* = 0, CompositeOperator = CompositeSourceOver);
95 95
96 // The difference between this inline's baseline position and the line's bas eline position. 96 // The difference between this inline's baseline position and the line's bas eline position.
97 int verticalPosition(bool firstLine) const; 97 int verticalPosition(bool firstLine) const;
98 98
99 // Called by RenderObject::destroy() (and RenderWidget::destroy()) and is th e only way layers should ever be destroyed
100 void destroyLayer();
101
99 protected: 102 protected:
100 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize); 103 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize);
101 IntSize calculateBackgroundSize(const FillLayer*, int scaledWidth, int scale dHeight) const; 104 IntSize calculateBackgroundSize(const FillLayer*, int scaledWidth, int scale dHeight) const;
102 105
103 private: 106 private:
104 virtual bool isBoxModelObject() const { return true; } 107 virtual bool isBoxModelObject() const { return true; }
105 friend class RenderView; 108 friend class RenderView;
106 109
107 RenderLayer* m_layer; 110 RenderLayer* m_layer;
108 111
109 // Used to store state between styleWillChange and styleDidChange 112 // Used to store state between styleWillChange and styleDidChange
110 static bool s_wasFloating; 113 static bool s_wasFloating;
111 }; 114 };
112 115
113 inline RenderBoxModelObject* toRenderBoxModelObject(RenderObject* o) 116 inline RenderBoxModelObject* toRenderBoxModelObject(RenderObject* o)
114 { 117 {
115 ASSERT(!o || o->isBoxModelObject()); 118 ASSERT(!o || o->isBoxModelObject());
116 return static_cast<RenderBoxModelObject*>(o); 119 return static_cast<RenderBoxModelObject*>(o);
117 } 120 }
118 121
119 inline const RenderBoxModelObject* toRenderBoxModelObject(const RenderObject* o) 122 inline const RenderBoxModelObject* toRenderBoxModelObject(const RenderObject* o)
120 { 123 {
121 ASSERT(!o || o->isBoxModelObject()); 124 ASSERT(!o || o->isBoxModelObject());
122 return static_cast<const RenderBoxModelObject*>(o); 125 return static_cast<const RenderBoxModelObject*>(o);
123 } 126 }
124 127
125 // This will catch anyone doing an unnecessary cast. 128 // This will catch anyone doing an unnecessary cast.
126 void toRenderBoxModelObject(const RenderBox*); 129 void toRenderBoxModelObject(const RenderBoxModelObject*);
127 130
128 } // namespace WebCore 131 } // namespace WebCore
129 132
130 #endif // RenderBoxModelObject_h 133 #endif // RenderBoxModelObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderBox.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698