| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 494 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
| 495 virtual void updateFromStyle() override; | 495 virtual void updateFromStyle() override; |
| 496 | 496 |
| 497 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 497 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
| 498 bool getBackgroundPaintedExtent(LayoutRect&) const; | 498 bool getBackgroundPaintedExtent(LayoutRect&) const; |
| 499 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 499 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
| 500 virtual bool computeBackgroundIsKnownToBeObscured() override; | 500 virtual bool computeBackgroundIsKnownToBeObscured() override; |
| 501 | 501 |
| 502 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg
roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); | 502 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg
roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); |
| 503 | 503 |
| 504 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou
ndObject, bool skipBaseColor = false); | 504 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance, RenderObject* backgroundObject, bool skip
BaseColor = false); |
| 505 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator
= CompositeSourceOver, RenderObject* backgroundObject = 0); | 505 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, RenderObject* back
groundObject = 0); |
| 506 | 506 |
| 507 void paintMaskImages(const PaintInfo&, const LayoutRect&); | 507 void paintMaskImages(const PaintInfo&, const LayoutRect&); |
| 508 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co
nst LayoutRect&); | 508 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co
nst LayoutRect&); |
| 509 | 509 |
| 510 // Information extracted from RenderStyle for box painting. | 510 // Information extracted from RenderStyle for box painting. |
| 511 // These are always needed during box painting and recomputing them takes ti
me. | 511 // These are always needed during box painting and recomputing them takes ti
me. |
| 512 struct BoxDecorationData { | 512 struct BoxDecorationData { |
| 513 BoxDecorationData(const RenderStyle&); | 513 BoxDecorationData(const RenderStyle&); |
| 514 | 514 |
| 515 Color backgroundColor; | 515 Color backgroundColor; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 if (UNLIKELY(inlineBoxWrapper() != 0)) | 658 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 659 deleteLineBoxWrapper(); | 659 deleteLineBoxWrapper(); |
| 660 } | 660 } |
| 661 | 661 |
| 662 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 662 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace blink | 665 } // namespace blink |
| 666 | 666 |
| 667 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 667 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |