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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase & revise expectation Created 5 years, 6 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 bool shouldUseTransformFromContainer(const LayoutObject* container) const; 999 bool shouldUseTransformFromContainer(const LayoutObject* container) const;
1000 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 1000 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
1001 1001
1002 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); } 1002 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); }
1003 1003
1004 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { } 1004 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { }
1005 1005
1006 // Compute a list of hit-test rectangles per layer rooted at this layoutObje ct. 1006 // Compute a list of hit-test rectangles per layer rooted at this layoutObje ct.
1007 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; 1007 virtual void computeLayerHitTestRects(LayerHitTestRects&) const;
1008 1008
1009 // Return the layoutObject whose background style is used to paint the root background. Should only be called on the layoutObject for which isDocumentElemen t() is true.
1010 LayoutObject* layoutObjectForRootBackground();
1011
1012 RespectImageOrientationEnum shouldRespectImageOrientation() const; 1009 RespectImageOrientationEnum shouldRespectImageOrientation() const;
1013 1010
1014 bool isRelayoutBoundaryForInspector() const; 1011 bool isRelayoutBoundaryForInspector() const;
1015 1012
1016 // The previous paint invalidation rect in the object's previous paint backi ng. 1013 // The previous paint invalidation rect in the object's previous paint backi ng.
1017 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; } 1014 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; }
1018 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 1015 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; }
1019 1016
1020 // The previous position of the top-left corner of the object in its previou s paint backing. 1017 // The previous position of the top-left corner of the object in its previou s paint backing.
1021 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re turn m_previousPositionFromPaintInvalidationBacking; } 1018 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re turn m_previousPositionFromPaintInvalidationBacking; }
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 void showTree(const blink::LayoutObject*); 1663 void showTree(const blink::LayoutObject*);
1667 void showLineTree(const blink::LayoutObject*); 1664 void showLineTree(const blink::LayoutObject*);
1668 void showLayoutTree(const blink::LayoutObject* object1); 1665 void showLayoutTree(const blink::LayoutObject* object1);
1669 // We don't make object2 an optional parameter so that showLayoutTree 1666 // We don't make object2 an optional parameter so that showLayoutTree
1670 // can be called from gdb easily. 1667 // can be called from gdb easily.
1671 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1672 1669
1673 #endif 1670 #endif
1674 1671
1675 #endif // LayoutObject_h 1672 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698