| 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. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/dom/DocumentLifecycle.h" | 32 #include "core/dom/DocumentLifecycle.h" |
| 33 #include "core/editing/PositionWithAffinity.h" | 33 #include "core/editing/PositionWithAffinity.h" |
| 34 #include "core/fetch/ImageResourceObserver.h" | 34 #include "core/fetch/ImageResourceObserver.h" |
| 35 #include "core/layout/LayoutObjectChildList.h" | 35 #include "core/layout/LayoutObjectChildList.h" |
| 36 #include "core/layout/PaintInvalidationState.h" | 36 #include "core/layout/PaintInvalidationState.h" |
| 37 #include "core/layout/ScrollAlignment.h" | 37 #include "core/layout/ScrollAlignment.h" |
| 38 #include "core/layout/SubtreeLayoutScope.h" | 38 #include "core/layout/SubtreeLayoutScope.h" |
| 39 #include "core/layout/api/HitTestAction.h" | 39 #include "core/layout/api/HitTestAction.h" |
| 40 #include "core/layout/api/SelectionState.h" | 40 #include "core/layout/api/SelectionState.h" |
| 41 #include "core/layout/compositing/CompositingState.h" | 41 #include "core/layout/compositing/CompositingState.h" |
| 42 #include "core/paint/LayerHitTestRects.h" |
| 42 #include "core/paint/PaintPhase.h" | 43 #include "core/paint/PaintPhase.h" |
| 43 #include "core/style/ComputedStyle.h" | 44 #include "core/style/ComputedStyle.h" |
| 44 #include "platform/geometry/FloatQuad.h" | 45 #include "platform/geometry/FloatQuad.h" |
| 45 #include "platform/geometry/LayoutRect.h" | 46 #include "platform/geometry/LayoutRect.h" |
| 46 #include "platform/graphics/CompositingReasons.h" | 47 #include "platform/graphics/CompositingReasons.h" |
| 47 #include "platform/graphics/PaintInvalidationReason.h" | 48 #include "platform/graphics/PaintInvalidationReason.h" |
| 48 #include "platform/graphics/paint/DisplayItemClient.h" | 49 #include "platform/graphics/paint/DisplayItemClient.h" |
| 49 #include "platform/transforms/TransformationMatrix.h" | 50 #include "platform/transforms/TransformationMatrix.h" |
| 50 #include "wtf/AutoReset.h" | 51 #include "wtf/AutoReset.h" |
| 51 | 52 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 struct AnnotatedRegionValue { | 109 struct AnnotatedRegionValue { |
| 109 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 110 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 110 bool operator==(const AnnotatedRegionValue& o) const { | 111 bool operator==(const AnnotatedRegionValue& o) const { |
| 111 return draggable == o.draggable && bounds == o.bounds; | 112 return draggable == o.draggable && bounds == o.bounds; |
| 112 } | 113 } |
| 113 | 114 |
| 114 LayoutRect bounds; | 115 LayoutRect bounds; |
| 115 bool draggable; | 116 bool draggable; |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 typedef WTF::HashMap<const PaintLayer*, Vector<LayoutRect>> LayerHitTestRects; | |
| 119 | |
| 120 #ifndef NDEBUG | 119 #ifndef NDEBUG |
| 121 const int showTreeCharacterOffset = 39; | 120 const int showTreeCharacterOffset = 39; |
| 122 #endif | 121 #endif |
| 123 | 122 |
| 124 // LayoutObject is the base class for all layout tree objects. | 123 // LayoutObject is the base class for all layout tree objects. |
| 125 // | 124 // |
| 126 // LayoutObjects form a tree structure that is a close mapping of the DOM tree. | 125 // LayoutObjects form a tree structure that is a close mapping of the DOM tree. |
| 127 // The root of the LayoutObject tree is the LayoutView, which is the | 126 // The root of the LayoutObject tree is the LayoutView, which is the |
| 128 // LayoutObject associated with the Document. | 127 // LayoutObject associated with the Document. |
| 129 // | 128 // |
| (...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2596 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2595 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
| 2597 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2596 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
| 2598 // We don't make object2 an optional parameter so that showLayoutTree | 2597 // We don't make object2 an optional parameter so that showLayoutTree |
| 2599 // can be called from gdb easily. | 2598 // can be called from gdb easily. |
| 2600 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2599 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
| 2601 const blink::LayoutObject* object2); | 2600 const blink::LayoutObject* object2); |
| 2602 | 2601 |
| 2603 #endif | 2602 #endif |
| 2604 | 2603 |
| 2605 #endif // LayoutObject_h | 2604 #endif // LayoutObject_h |
| OLD | NEW |