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

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

Issue 12712011: Merge 145726 "Fix body background image geometry calculation" (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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
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 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 void clip(const IntRect&); 223 void clip(const IntRect&);
224 private: 224 private:
225 IntRect m_destRect; 225 IntRect m_destRect;
226 IntPoint m_destOrigin; 226 IntPoint m_destOrigin;
227 IntPoint m_phase; 227 IntPoint m_phase;
228 IntSize m_tileSize; 228 IntSize m_tileSize;
229 }; 229 };
230 230
231 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const ; 231 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const ;
232 232
233 void calculateBackgroundImageGeometry(const FillLayer*, const LayoutRect& pa intRect, BackgroundImageGeometry&); 233 void calculateBackgroundImageGeometry(const FillLayer*, const LayoutRect& pa intRect, BackgroundImageGeometry&, RenderObject* = 0);
234 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 234 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
235 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; 235 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const;
236 bool borderObscuresBackground() const; 236 bool borderObscuresBackground() const;
237 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; 237 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const;
238 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance) const; 238 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance) const;
239 239
240 bool shouldPaintAtLowQuality(GraphicsContext*, Image*, const void*, const La youtSize&); 240 bool shouldPaintAtLowQuality(GraphicsContext*, Image*, const void*, const La youtSize&);
241 241
242 RenderBoxModelObject* continuation() const; 242 RenderBoxModelObject* continuation() const;
243 void setContinuation(RenderBoxModelObject*); 243 void setContinuation(RenderBoxModelObject*);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject()); 320 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isBoxModelObject());
321 return static_cast<const RenderBoxModelObject*>(object); 321 return static_cast<const RenderBoxModelObject*>(object);
322 } 322 }
323 323
324 // This will catch anyone doing an unnecessary cast. 324 // This will catch anyone doing an unnecessary cast.
325 void toRenderBoxModelObject(const RenderBoxModelObject*); 325 void toRenderBoxModelObject(const RenderBoxModelObject*);
326 326
327 } // namespace WebCore 327 } // namespace WebCore
328 328
329 #endif // RenderBoxModelObject_h 329 #endif // RenderBoxModelObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698