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 RenderObject_h | 26 #ifndef RenderObject_h |
27 #define RenderObject_h | 27 #define RenderObject_h |
28 | 28 |
29 #include "core/dom/Element.h" | 29 #include "core/dom/Element.h" |
30 #include "core/dom/Position.h" | 30 #include "core/dom/Position.h" |
31 #include "core/dom/StyleEngine.h" | 31 #include "core/dom/StyleEngine.h" |
32 #include "core/fetch/ImageResourceClient.h" | 32 #include "core/fetch/ImageResourceClient.h" |
33 #include "core/rendering/CompositingState.h" | |
33 #include "core/rendering/LayoutIndicator.h" | 34 #include "core/rendering/LayoutIndicator.h" |
34 #include "core/rendering/PaintPhase.h" | 35 #include "core/rendering/PaintPhase.h" |
35 #include "core/rendering/RenderObjectChildList.h" | 36 #include "core/rendering/RenderObjectChildList.h" |
36 #include "core/rendering/RenderingNodeProxy.h" | 37 #include "core/rendering/RenderingNodeProxy.h" |
37 #include "core/rendering/ScrollBehavior.h" | 38 #include "core/rendering/ScrollBehavior.h" |
38 #include "core/rendering/SubtreeLayoutScope.h" | 39 #include "core/rendering/SubtreeLayoutScope.h" |
39 #include "core/rendering/style/RenderStyle.h" | 40 #include "core/rendering/style/RenderStyle.h" |
40 #include "core/rendering/style/StyleInheritedData.h" | 41 #include "core/rendering/style/StyleInheritedData.h" |
41 #include "platform/geometry/FloatQuad.h" | 42 #include "platform/geometry/FloatQuad.h" |
42 #include "platform/geometry/LayoutRect.h" | 43 #include "platform/geometry/LayoutRect.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
691 // True if we can abort layout, leaving a partially laid out tree. | 692 // True if we can abort layout, leaving a partially laid out tree. |
692 virtual bool supportsPartialLayout() const { return false; } | 693 virtual bool supportsPartialLayout() const { return false; } |
693 | 694 |
694 // used for element state updates that cannot be fixed with a | 695 // used for element state updates that cannot be fixed with a |
695 // repaint and do not need a relayout | 696 // repaint and do not need a relayout |
696 virtual void updateFromElement() { } | 697 virtual void updateFromElement() { } |
697 | 698 |
698 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); | 699 virtual void addAnnotatedRegions(Vector<AnnotatedRegionValue>&); |
699 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&); | 700 void collectAnnotatedRegions(Vector<AnnotatedRegionValue>&); |
700 | 701 |
701 bool isComposited() const; | 702 CompositingState compositingState() const; |
Julien - ping for review
2013/10/03 20:08:36
We discussed this over IM, I am not a huge fan of
shawnsingh
2013/10/07 11:45:04
I think the new version is slightly better because
| |
702 | 703 |
703 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes tAll); | 704 bool hitTest(const HitTestRequest&, HitTestResult&, const HitTestLocation& l ocationInContainer, const LayoutPoint& accumulatedOffset, HitTestFilter = HitTes tAll); |
704 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); | 705 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); |
705 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion); | 706 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion); |
706 | 707 |
707 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); | 708 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); |
708 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); | 709 PositionWithAffinity createPositionWithAffinity(int offset, EAffinity); |
709 PositionWithAffinity createPositionWithAffinity(const Position&); | 710 PositionWithAffinity createPositionWithAffinity(const Position&); |
710 | 711 |
711 virtual void dirtyLinesFromChangedChild(RenderObject*); | 712 virtual void dirtyLinesFromChangedChild(RenderObject*); |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1382 void showTree(const WebCore::RenderObject*); | 1383 void showTree(const WebCore::RenderObject*); |
1383 void showLineTree(const WebCore::RenderObject*); | 1384 void showLineTree(const WebCore::RenderObject*); |
1384 void showRenderTree(const WebCore::RenderObject* object1); | 1385 void showRenderTree(const WebCore::RenderObject* object1); |
1385 // We don't make object2 an optional parameter so that showRenderTree | 1386 // We don't make object2 an optional parameter so that showRenderTree |
1386 // can be called from gdb easily. | 1387 // can be called from gdb easily. |
1387 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); | 1388 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); |
1388 | 1389 |
1389 #endif | 1390 #endif |
1390 | 1391 |
1391 #endif // RenderObject_h | 1392 #endif // RenderObject_h |
OLD | NEW |