OLD | NEW |
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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 void setStyle(PassRefPtr<ComputedStyle>); | 731 void setStyle(PassRefPtr<ComputedStyle>); |
732 | 732 |
733 // Set the style of the object if it's generated content. | 733 // Set the style of the object if it's generated content. |
734 void setPseudoStyle(PassRefPtr<ComputedStyle>); | 734 void setPseudoStyle(PassRefPtr<ComputedStyle>); |
735 | 735 |
736 // Updates only the local style ptr of the object. Does not update the stat
e of the object, | 736 // Updates only the local style ptr of the object. Does not update the stat
e of the object, |
737 // and so only should be called when the style is known not to have changed
(or from setStyle). | 737 // and so only should be called when the style is known not to have changed
(or from setStyle). |
738 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; } | 738 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; } |
739 | 739 |
740 // returns the containing block level element for this element. | 740 // returns the containing block level element for this element. |
741 LayoutBlock* containingBlock() const; | 741 LayoutBlock* containingBlock(const ComputedStyle* overrideStyle = nullptr) c
onst; |
742 | 742 |
743 bool canContainFixedPositionObjects() const | 743 bool canContainFixedPositionObjects() const |
744 { | 744 { |
745 return isLayoutView() || (hasTransformRelatedProperty() && isLayoutBlock
()) || isSVGForeignObject(); | 745 return isLayoutView() || (hasTransformRelatedProperty() && isLayoutBlock
()) || isSVGForeignObject(); |
746 } | 746 } |
747 | 747 |
748 // Convert the given local point to absolute coordinates | 748 // Convert the given local point to absolute coordinates |
749 // FIXME: Temporary. If UseTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. | 749 // FIXME: Temporary. If UseTransforms is true, take transforms into account.
Eventually localToAbsolute() will always be transform-aware. |
750 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags = 0) const; | 750 FloatPoint localToAbsolute(const FloatPoint& localPoint = FloatPoint(), MapC
oordinatesFlags = 0) const; |
751 FloatPoint absoluteToLocal(const FloatPoint&, MapCoordinatesFlags = 0) const
; | 751 FloatPoint absoluteToLocal(const FloatPoint&, MapCoordinatesFlags = 0) const
; |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 void showTree(const blink::LayoutObject*); | 1663 void showTree(const blink::LayoutObject*); |
1664 void showLineTree(const blink::LayoutObject*); | 1664 void showLineTree(const blink::LayoutObject*); |
1665 void showLayoutTree(const blink::LayoutObject* object1); | 1665 void showLayoutTree(const blink::LayoutObject* object1); |
1666 // We don't make object2 an optional parameter so that showLayoutTree | 1666 // We don't make object2 an optional parameter so that showLayoutTree |
1667 // can be called from gdb easily. | 1667 // can be called from gdb easily. |
1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1668 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1669 | 1669 |
1670 #endif | 1670 #endif |
1671 | 1671 |
1672 #endif // LayoutObject_h | 1672 #endif // LayoutObject_h |
OLD | NEW |