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

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: fix DocumentLifecycle error 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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 bool shouldUseTransformFromContainer(const LayoutObject* container) const; 997 bool shouldUseTransformFromContainer(const LayoutObject* container) const;
998 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 998 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
999 999
1000 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); } 1000 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); }
1001 1001
1002 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { } 1002 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { }
1003 1003
1004 // Compute a list of hit-test rectangles per layer rooted at this layoutObje ct. 1004 // Compute a list of hit-test rectangles per layer rooted at this layoutObje ct.
1005 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; 1005 virtual void computeLayerHitTestRects(LayerHitTestRects&) const;
1006 1006
1007 // 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.
1008 LayoutObject* layoutObjectForRootBackground();
1009
1010 RespectImageOrientationEnum shouldRespectImageOrientation() const; 1007 RespectImageOrientationEnum shouldRespectImageOrientation() const;
1011 1008
1012 bool isRelayoutBoundaryForInspector() const; 1009 bool isRelayoutBoundaryForInspector() const;
1013 1010
1014 // The previous paint invalidation rect in the object's previous paint backi ng. 1011 // The previous paint invalidation rect in the object's previous paint backi ng.
1015 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; } 1012 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; }
1016 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 1013 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; }
1017 1014
1018 // The previous position of the top-left corner of the object in its previou s paint backing. 1015 // The previous position of the top-left corner of the object in its previou s paint backing.
1019 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re turn m_previousPositionFromPaintInvalidationBacking; } 1016 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const { re turn m_previousPositionFromPaintInvalidationBacking; }
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 void showTree(const blink::LayoutObject*); 1659 void showTree(const blink::LayoutObject*);
1663 void showLineTree(const blink::LayoutObject*); 1660 void showLineTree(const blink::LayoutObject*);
1664 void showLayoutTree(const blink::LayoutObject* object1); 1661 void showLayoutTree(const blink::LayoutObject* object1);
1665 // We don't make object2 an optional parameter so that showLayoutTree 1662 // We don't make object2 an optional parameter so that showLayoutTree
1666 // can be called from gdb easily. 1663 // can be called from gdb easily.
1667 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1664 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1668 1665
1669 #endif 1666 #endif
1670 1667
1671 #endif // LayoutObject_h 1668 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698