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

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 102123013: Fix painting of fixed background images in composited layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes per review comments Created 6 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 | Annotate | Revision Log
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 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 removeFloatingOrPositionedChildFromBlockLists(); 624 removeFloatingOrPositionedChildFromBlockLists();
625 } 625 }
626 626
627 protected: 627 protected:
628 virtual void willBeDestroyed() OVERRIDE; 628 virtual void willBeDestroyed() OVERRIDE;
629 629
630 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE; 630 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE;
631 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 631 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
632 virtual void updateFromStyle() OVERRIDE; 632 virtual void updateFromStyle() OVERRIDE;
633 633
634 LayoutRect backgroundPaintedExtent() const; 634 // Returns false if it could not cheaply compute the extent (e.g. fixed back ground), in which case the returned rect may be incorrect.
635 bool getBackgroundPaintedExtent(LayoutRect&) const;
635 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const; 636 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const;
636 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE; 637 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE;
637 638
638 void paintBackgroundWithBorderAndBoxShadow(PaintInfo&, const LayoutRect&, Ba ckgroundBleedAvoidance); 639 void paintBackgroundWithBorderAndBoxShadow(PaintInfo&, const LayoutRect&, Ba ckgroundBleedAvoidance);
639 void paintBackground(const PaintInfo&, const LayoutRect&, BackgroundBleedAvo idance = BackgroundBleedNone); 640 void paintBackground(const PaintInfo&, const LayoutRect&, BackgroundBleedAvo idance = BackgroundBleedNone);
640 641
641 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou ndObject); 642 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou ndObject);
642 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0); 643 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0);
643 644
644 void paintMaskImages(const PaintInfo&, const LayoutRect&); 645 void paintMaskImages(const PaintInfo&, const LayoutRect&);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 if (UNLIKELY(inlineBoxWrapper() != 0)) 777 if (UNLIKELY(inlineBoxWrapper() != 0))
777 deleteLineBoxWrapper(); 778 deleteLineBoxWrapper();
778 } 779 }
779 780
780 ensureRareData().m_inlineBoxWrapper = boxWrapper; 781 ensureRareData().m_inlineBoxWrapper = boxWrapper;
781 } 782 }
782 783
783 } // namespace WebCore 784 } // namespace WebCore
784 785
785 #endif // RenderBox_h 786 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698