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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 bool borderObscuresBackground() const; | 239 bool borderObscuresBackground() const; |
240 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*,
const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&,
bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; | 240 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*,
const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&,
bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; |
241 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const
LayoutRect&, BackgroundBleedAvoidance) const; | 241 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const
LayoutRect&, BackgroundBleedAvoidance) const; |
242 | 242 |
243 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); | 243 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); |
244 | 244 |
245 static void clipRoundedInnerRect(GraphicsContext*, const LayoutRect&, const
RoundedRect& clipRect); | 245 static void clipRoundedInnerRect(GraphicsContext*, const LayoutRect&, const
RoundedRect& clipRect); |
246 | 246 |
247 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; | 247 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; |
248 | 248 |
249 bool isDocumentElementWithOpaqueBackground() const; | |
250 | |
251 void paintRootBackgroundColor(const PaintInfo&, const LayoutRect&, const Col
or&); | 249 void paintRootBackgroundColor(const PaintInfo&, const LayoutRect&, const Col
or&); |
252 | 250 |
253 public: | 251 public: |
254 static bool shouldAntialiasLines(GraphicsContext*); | 252 static bool shouldAntialiasLines(GraphicsContext*); |
255 | 253 |
256 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. | 254 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. |
257 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert); | 255 void moveChildTo(RenderBoxModelObject* toBoxModelObject, RenderObject* child
, RenderObject* beforeChild, bool fullRemoveInsert); |
258 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject*
beforeChild, bool fullRemoveInsert); | 256 void moveAllChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderObject*
beforeChild, bool fullRemoveInsert); |
259 | 257 |
260 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize) const; | 258 IntSize calculateImageIntrinsicDimensions(StyleImage*, const IntSize& scaled
PositioningAreaSize) const; |
(...skipping 21 matching lines...) Expand all Loading... |
282 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], | 280 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], |
283 float thickness, float drawThickness, BoxSide, const
RenderStyle*, | 281 float thickness, float drawThickness, BoxSide, const
RenderStyle*, |
284 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); | 282 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); |
285 }; | 283 }; |
286 | 284 |
287 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 285 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
288 | 286 |
289 } // namespace blink | 287 } // namespace blink |
290 | 288 |
291 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_ | 289 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_ |
OLD | NEW |