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

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

Issue 556023: Merge 53291 - WebCore: Fix for crash with gradient on table cell. Pass the c... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/249s/
Patch Set: Created 10 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 | « WebCore/rendering/RenderBox.cpp ('k') | WebCore/rendering/RenderBoxModelObject.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 * 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool hasHorizontalBordersPaddingOrMargin() const { return hasHorizontalBorde rsOrPadding() || marginLeft() != 0 || marginRight() != 0; } 83 bool hasHorizontalBordersPaddingOrMargin() const { return hasHorizontalBorde rsOrPadding() || marginLeft() != 0 || marginRight() != 0; }
84 bool hasHorizontalBordersOrPadding() const { return borderLeft() != 0 || bor derRight() != 0 || paddingLeft() != 0 || paddingRight() != 0; } 84 bool hasHorizontalBordersOrPadding() const { return borderLeft() != 0 || bor derRight() != 0 || paddingLeft() != 0 || paddingRight() != 0; }
85 85
86 virtual int containingBlockWidthForContent() const; 86 virtual int containingBlockWidthForContent() const;
87 87
88 virtual void childBecameNonInline(RenderObject* /*child*/) { } 88 virtual void childBecameNonInline(RenderObject* /*child*/) { }
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*, ShadowStyle, bool begin = true, bool end = true); 92 void paintBoxShadow(GraphicsContext*, int tx, int ty, int w, int h, const Re nderStyle*, ShadowStyle, bool begin = true, bool end = true);
93 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer* , int tx, int ty, int width, int height, InlineFlowBox* = 0, CompositeOperator = CompositeSourceOver); 93 void paintFillLayerExtended(const PaintInfo&, const Color&, const FillLayer* , int tx, int ty, int width, int height, InlineFlowBox* = 0, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0);
94 94
95 // The difference between this inline's baseline position and the line's bas eline position. 95 // The difference between this inline's baseline position and the line's bas eline position.
96 int verticalPosition(bool firstLine) const; 96 int verticalPosition(bool firstLine) const;
97 97
98 // Called by RenderObject::destroy() (and RenderWidget::destroy()) and is th e only way layers should ever be destroyed 98 // Called by RenderObject::destroy() (and RenderWidget::destroy()) and is th e only way layers should ever be destroyed
99 void destroyLayer(); 99 void destroyLayer();
100 100
101 protected: 101 protected:
102 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize); 102 void calculateBackgroundImageGeometry(const FillLayer*, int tx, int ty, int w, int h, IntRect& destRect, IntPoint& phase, IntSize& tileSize);
103 103
(...skipping 23 matching lines...) Expand all
127 ASSERT(!object || object->isBoxModelObject()); 127 ASSERT(!object || object->isBoxModelObject());
128 return static_cast<const RenderBoxModelObject*>(object); 128 return static_cast<const RenderBoxModelObject*>(object);
129 } 129 }
130 130
131 // This will catch anyone doing an unnecessary cast. 131 // This will catch anyone doing an unnecessary cast.
132 void toRenderBoxModelObject(const RenderBoxModelObject*); 132 void toRenderBoxModelObject(const RenderBoxModelObject*);
133 133
134 } // namespace WebCore 134 } // namespace WebCore
135 135
136 #endif // RenderBoxModelObject_h 136 #endif // RenderBoxModelObject_h
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderBox.cpp ('k') | WebCore/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698