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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 669 |
670 // Given a rect in the object's coordinate space, compute a rect suitable fo
r repainting | 670 // Given a rect in the object's coordinate space, compute a rect suitable fo
r repainting |
671 // that rect in view coordinates. | 671 // that rect in view coordinates. |
672 LayoutRect computeAbsoluteRepaintRect(const LayoutRect& r, bool fixed = fals
e) const | 672 LayoutRect computeAbsoluteRepaintRect(const LayoutRect& r, bool fixed = fals
e) const |
673 { | 673 { |
674 return computeRectForRepaint(r, nullptr, { fixed, false }); | 674 return computeRectForRepaint(r, nullptr, { fixed, false }); |
675 } | 675 } |
676 // Given a rect in the object's coordinate space, compute a rect suitable fo
r repainting | 676 // Given a rect in the object's coordinate space, compute a rect suitable fo
r repainting |
677 // that rect in the coordinate space of repaintContainer. | 677 // that rect in the coordinate space of repaintContainer. |
678 struct RepaintContext { | 678 struct RepaintContext { |
679 RepaintContext(bool hasPositionFixedDescendant = false, bool dirtyRectIs
Flipped = false) | 679 RepaintContext(bool hasPositionFixedDescendant = false, bool dirtyRectIs
Flipped = false, bool useInclusiveIntersection = false, bool* intersects = nullp
tr) |
680 : m_hasPositionFixedDescendant(hasPositionFixedDescendant) | 680 : m_hasPositionFixedDescendant(hasPositionFixedDescendant) |
681 , m_dirtyRectIsFlipped(dirtyRectIsFlipped) | 681 , m_dirtyRectIsFlipped(dirtyRectIsFlipped) |
| 682 , m_useInclusiveIntersection(useInclusiveIntersection) |
| 683 , m_intersects(intersects) |
682 { | 684 { |
683 } | 685 } |
684 bool m_hasPositionFixedDescendant; | 686 bool m_hasPositionFixedDescendant; |
685 bool m_dirtyRectIsFlipped; | 687 bool m_dirtyRectIsFlipped; |
| 688 bool m_useInclusiveIntersection; |
| 689 bool* m_intersects; |
686 }; | 690 }; |
687 virtual LayoutRect computeRectForRepaint(const LayoutRect&, const RenderLaye
rModelObject* repaintContainer, RepaintContext = { }) const; | 691 virtual LayoutRect computeRectForRepaint(const LayoutRect&, const RenderLaye
rModelObject* repaintContainer, RepaintContext = { }) const; |
688 virtual FloatRect computeFloatRectForRepaint(const FloatRect&, const RenderL
ayerModelObject* repaintContainer, bool fixed = false) const; | 692 virtual FloatRect computeFloatRectForRepaint(const FloatRect&, const RenderL
ayerModelObject* repaintContainer, bool fixed = false, bool useInclusiveIntersec
tion = false, bool* intersects = nullptr) const; |
689 | 693 |
690 virtual unsigned int length() const { return 1; } | 694 virtual unsigned int length() const { return 1; } |
691 | 695 |
692 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut
OfFlowPositioned()); } | 696 bool isFloatingOrOutOfFlowPositioned() const { return (isFloating() || isOut
OfFlowPositioned()); } |
693 | 697 |
694 enum SelectionState { | 698 enum SelectionState { |
695 SelectionNone, // The object is not selected. | 699 SelectionNone, // The object is not selected. |
696 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run | 700 SelectionStart, // The object either contains the start of a selection r
un or is the start of a run |
697 SelectionInside, // The object is fully encompassed by a selection run | 701 SelectionInside, // The object is fully encompassed by a selection run |
698 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run | 702 SelectionEnd, // The object either contains the end of a selection run o
r is the end of a run |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ToValueTypeName) \ | 1113 SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ToValueTypeName) \ |
1110 static bool isType(const WebCore::RenderObject& renderer) { return renderer.
predicate; } \ | 1114 static bool isType(const WebCore::RenderObject& renderer) { return renderer.
predicate; } \ |
1111 SPECIALIZE_TYPE_TRAITS_END() | 1115 SPECIALIZE_TYPE_TRAITS_END() |
1112 | 1116 |
1113 #if ENABLE(TREE_DEBUGGING) | 1117 #if ENABLE(TREE_DEBUGGING) |
1114 // Outside the WebCore namespace for ease of invocation from the debugger. | 1118 // Outside the WebCore namespace for ease of invocation from the debugger. |
1115 void showNodeTree(const WebCore::RenderObject*); | 1119 void showNodeTree(const WebCore::RenderObject*); |
1116 void showLineTree(const WebCore::RenderObject*); | 1120 void showLineTree(const WebCore::RenderObject*); |
1117 void showRenderTree(const WebCore::RenderObject*); | 1121 void showRenderTree(const WebCore::RenderObject*); |
1118 #endif | 1122 #endif |
OLD | NEW |