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

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

Powered by Google App Engine
This is Rietveld 408576698