OLD | NEW |
---|---|
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 void animationPaused(double timeOffset, const String& name); | 193 void animationPaused(double timeOffset, const String& name); |
194 void animationFinished(const String& name); | 194 void animationFinished(const String& name); |
195 | 195 |
196 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE; | 196 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE; |
197 | 197 |
198 protected: | 198 protected: |
199 virtual void willBeDestroyed(); | 199 virtual void willBeDestroyed(); |
200 | 200 |
201 class BackgroundImageGeometry { | 201 class BackgroundImageGeometry { |
202 public: | 202 public: |
203 BackgroundImageGeometry() | |
204 : m_hasNonLocalGeometry(false) | |
205 { } | |
esprehn
2014/01/08 01:53:55
nl after }
Stephen White
2014/03/27 15:07:12
Done.
| |
203 IntPoint destOrigin() const { return m_destOrigin; } | 206 IntPoint destOrigin() const { return m_destOrigin; } |
204 void setDestOrigin(const IntPoint& destOrigin) | 207 void setDestOrigin(const IntPoint& destOrigin) |
205 { | 208 { |
206 m_destOrigin = destOrigin; | 209 m_destOrigin = destOrigin; |
207 } | 210 } |
208 | 211 |
209 IntRect destRect() const { return m_destRect; } | 212 IntRect destRect() const { return m_destRect; } |
210 void setDestRect(const IntRect& destRect) | 213 void setDestRect(const IntRect& destRect) |
211 { | 214 { |
212 m_destRect = destRect; | 215 m_destRect = destRect; |
(...skipping 24 matching lines...) Expand all Loading... | |
237 | 240 |
238 void setPhaseX(int x) { m_phase.setX(x); } | 241 void setPhaseX(int x) { m_phase.setX(x); } |
239 void setPhaseY(int y) { m_phase.setY(y); } | 242 void setPhaseY(int y) { m_phase.setY(y); } |
240 | 243 |
241 void setNoRepeatX(int xOffset); | 244 void setNoRepeatX(int xOffset); |
242 void setNoRepeatY(int yOffset); | 245 void setNoRepeatY(int yOffset); |
243 | 246 |
244 void useFixedAttachment(const IntPoint& attachmentPoint); | 247 void useFixedAttachment(const IntPoint& attachmentPoint); |
245 | 248 |
246 void clip(const IntRect&); | 249 void clip(const IntRect&); |
250 | |
251 void setHasNonLocalGeometry(bool hasNonLocalGeometry = true) { m_hasNonL ocalGeometry = hasNonLocalGeometry; } | |
252 bool hasNonLocalGeometry() const { return m_hasNonLocalGeometry; } | |
253 | |
247 private: | 254 private: |
248 IntRect m_destRect; | 255 IntRect m_destRect; |
249 IntPoint m_destOrigin; | 256 IntPoint m_destOrigin; |
250 IntPoint m_phase; | 257 IntPoint m_phase; |
251 IntSize m_tileSize; | 258 IntSize m_tileSize; |
259 bool m_hasNonLocalGeometry; // Has background-attachment: fixed. Implies that we can't always cheaply compute destRect. | |
esprehn
2014/01/08 01:53:55
Don't stick a bool between the IntSizes, that caus
Stephen White
2014/03/27 15:07:12
Done.
| |
252 IntSize m_repeatSpacing; | 260 IntSize m_repeatSpacing; |
253 }; | 261 }; |
254 | 262 |
255 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const ; | 263 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const ; |
256 | 264 |
257 void calculateBackgroundImageGeometry(const FillLayer*, const LayoutRect& pa intRect, BackgroundImageGeometry&, RenderObject* = 0); | 265 void calculateBackgroundImageGeometry(const RenderLayerModelObject* paintCon tainer, const FillLayer*, const LayoutRect& paintRect, BackgroundImageGeometry&, RenderObject* = 0) const; |
258 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; | 266 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; |
259 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; | 267 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; |
260 bool borderObscuresBackground() const; | 268 bool borderObscuresBackground() const; |
261 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; | 269 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; |
262 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance) const; | 270 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const LayoutRect&, BackgroundBleedAvoidance) const; |
263 | 271 |
264 bool shouldPaintAtLowQuality(GraphicsContext*, Image*, const void*, const La youtSize&); | 272 bool shouldPaintAtLowQuality(GraphicsContext*, Image*, const void*, const La youtSize&); |
265 | 273 |
266 RenderBoxModelObject* continuation() const; | 274 RenderBoxModelObject* continuation() const; |
267 void setContinuation(RenderBoxModelObject*); | 275 void setContinuation(RenderBoxModelObject*); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[], | 341 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[], |
334 float thickness, float drawThickness, BoxSide, const RenderStyle*, | 342 float thickness, float drawThickness, BoxSide, const RenderStyle*, |
335 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); | 343 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); |
336 }; | 344 }; |
337 | 345 |
338 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 346 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
339 | 347 |
340 } // namespace WebCore | 348 } // namespace WebCore |
341 | 349 |
342 #endif // RenderBoxModelObject_h | 350 #endif // RenderBoxModelObject_h |
OLD | NEW |