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 12 matching lines...) Expand all Loading... |
23 * | 23 * |
24 */ | 24 */ |
25 | 25 |
26 #ifndef LayoutObject_h | 26 #ifndef LayoutObject_h |
27 #define LayoutObject_h | 27 #define LayoutObject_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/dom/DocumentLifecycle.h" | 31 #include "core/dom/DocumentLifecycle.h" |
32 #include "core/dom/Element.h" | 32 #include "core/dom/Element.h" |
33 #include "core/editing/Position.h" | |
34 #include "core/editing/PositionWithAffinity.h" | 33 #include "core/editing/PositionWithAffinity.h" |
35 #include "core/editing/TextAffinity.h" | |
36 #include "core/fetch/ImageResourceClient.h" | 34 #include "core/fetch/ImageResourceClient.h" |
37 #include "core/html/HTMLElement.h" | 35 #include "core/html/HTMLElement.h" |
38 #include "core/inspector/InspectorTraceEvents.h" | 36 #include "core/inspector/InspectorTraceEvents.h" |
39 #include "core/layout/HitTestRequest.h" | 37 #include "core/layout/HitTestRequest.h" |
40 #include "core/layout/LayoutObjectChildList.h" | 38 #include "core/layout/LayoutObjectChildList.h" |
41 #include "core/layout/PaintInvalidationState.h" | 39 #include "core/layout/PaintInvalidationState.h" |
42 #include "core/layout/ScrollAlignment.h" | 40 #include "core/layout/ScrollAlignment.h" |
43 #include "core/layout/SubtreeLayoutScope.h" | 41 #include "core/layout/SubtreeLayoutScope.h" |
44 #include "core/layout/api/HitTestAction.h" | 42 #include "core/layout/api/HitTestAction.h" |
45 #include "core/layout/api/SelectionState.h" | 43 #include "core/layout/api/SelectionState.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); | 707 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); |
710 | 708 |
711 CompositingState compositingState() const; | 709 CompositingState compositingState() const; |
712 virtual CompositingReasons additionalCompositingReasons() const; | 710 virtual CompositingReasons additionalCompositingReasons() const; |
713 | 711 |
714 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con
st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll); | 712 bool hitTest(HitTestResult&, const HitTestLocation& locationInContainer, con
st LayoutPoint& accumulatedOffset, HitTestFilter = HitTestAll); |
715 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 713 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
716 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, HitTestAction); | 714 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
717 | 715 |
718 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); | 716 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); |
719 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); | 717 PositionWithAffinity createPositionWithAffinity(int offset, TextAffinity); |
720 PositionWithAffinity createPositionWithAffinity(int offset); | 718 PositionWithAffinity createPositionWithAffinity(int offset); |
721 PositionWithAffinity createPositionWithAffinity(const Position&); | 719 PositionWithAffinity createPositionWithAffinity(const Position&); |
722 | 720 |
723 virtual void dirtyLinesFromChangedChild(LayoutObject*); | 721 virtual void dirtyLinesFromChangedChild(LayoutObject*); |
724 | 722 |
725 // Set the style of the object and update the state of the object accordingl
y. | 723 // Set the style of the object and update the state of the object accordingl
y. |
726 void setStyle(PassRefPtr<ComputedStyle>); | 724 void setStyle(PassRefPtr<ComputedStyle>); |
727 | 725 |
728 // Set the style of the object if it's generated content. | 726 // Set the style of the object if it's generated content. |
729 void setPseudoStyle(PassRefPtr<ComputedStyle>); | 727 void setPseudoStyle(PassRefPtr<ComputedStyle>); |
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 void showTree(const blink::LayoutObject*); | 1669 void showTree(const blink::LayoutObject*); |
1672 void showLineTree(const blink::LayoutObject*); | 1670 void showLineTree(const blink::LayoutObject*); |
1673 void showLayoutTree(const blink::LayoutObject* object1); | 1671 void showLayoutTree(const blink::LayoutObject* object1); |
1674 // We don't make object2 an optional parameter so that showLayoutTree | 1672 // We don't make object2 an optional parameter so that showLayoutTree |
1675 // can be called from gdb easily. | 1673 // can be called from gdb easily. |
1676 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1674 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1677 | 1675 |
1678 #endif | 1676 #endif |
1679 | 1677 |
1680 #endif // LayoutObject_h | 1678 #endif // LayoutObject_h |
OLD | NEW |