| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/layout/api/SelectionState.h" | 39 #include "core/layout/api/SelectionState.h" |
| 40 #include "core/layout/compositing/CompositingState.h" | 40 #include "core/layout/compositing/CompositingState.h" |
| 41 #include "core/paint/PaintPhase.h" | 41 #include "core/paint/PaintPhase.h" |
| 42 #include "core/style/ComputedStyle.h" | 42 #include "core/style/ComputedStyle.h" |
| 43 #include "platform/geometry/FloatQuad.h" | 43 #include "platform/geometry/FloatQuad.h" |
| 44 #include "platform/geometry/LayoutRect.h" | 44 #include "platform/geometry/LayoutRect.h" |
| 45 #include "platform/graphics/CompositingReasons.h" | 45 #include "platform/graphics/CompositingReasons.h" |
| 46 #include "platform/graphics/PaintInvalidationReason.h" | 46 #include "platform/graphics/PaintInvalidationReason.h" |
| 47 #include "platform/graphics/paint/DisplayItemClient.h" | 47 #include "platform/graphics/paint/DisplayItemClient.h" |
| 48 #include "platform/transforms/TransformationMatrix.h" | 48 #include "platform/transforms/TransformationMatrix.h" |
| 49 #include "wtf/AutoReset.h" |
| 49 | 50 |
| 50 namespace blink { | 51 namespace blink { |
| 51 | 52 |
| 52 class AffineTransform; | 53 class AffineTransform; |
| 53 class Cursor; | 54 class Cursor; |
| 54 class HitTestLocation; | 55 class HitTestLocation; |
| 55 class HitTestRequest; | 56 class HitTestRequest; |
| 56 class HitTestResult; | 57 class HitTestResult; |
| 57 class InlineBox; | 58 class InlineBox; |
| 58 class LayoutBoxModelObject; | 59 class LayoutBoxModelObject; |
| (...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit
. | 1957 // FIXME: remove this once the layout object lifecycle ASSERTS are no longer hit
. |
| 1957 class DeprecatedDisableModifyLayoutTreeStructureAsserts { | 1958 class DeprecatedDisableModifyLayoutTreeStructureAsserts { |
| 1958 STACK_ALLOCATED(); | 1959 STACK_ALLOCATED(); |
| 1959 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts); | 1960 WTF_MAKE_NONCOPYABLE(DeprecatedDisableModifyLayoutTreeStructureAsserts); |
| 1960 public: | 1961 public: |
| 1961 DeprecatedDisableModifyLayoutTreeStructureAsserts(); | 1962 DeprecatedDisableModifyLayoutTreeStructureAsserts(); |
| 1962 | 1963 |
| 1963 static bool canModifyLayoutTreeStateInAnyState(); | 1964 static bool canModifyLayoutTreeStateInAnyState(); |
| 1964 | 1965 |
| 1965 private: | 1966 private: |
| 1966 TemporaryChange<bool> m_disabler; | 1967 AutoReset<bool> m_disabler; |
| 1967 }; | 1968 }; |
| 1968 | 1969 |
| 1969 // FIXME: We should not allow paint invalidation out of paint invalidation state
. crbug.com/457415 | 1970 // FIXME: We should not allow paint invalidation out of paint invalidation state
. crbug.com/457415 |
| 1970 // Remove this once we fix the bug. | 1971 // Remove this once we fix the bug. |
| 1971 class DisablePaintInvalidationStateAsserts { | 1972 class DisablePaintInvalidationStateAsserts { |
| 1972 STACK_ALLOCATED(); | 1973 STACK_ALLOCATED(); |
| 1973 WTF_MAKE_NONCOPYABLE(DisablePaintInvalidationStateAsserts); | 1974 WTF_MAKE_NONCOPYABLE(DisablePaintInvalidationStateAsserts); |
| 1974 public: | 1975 public: |
| 1975 DisablePaintInvalidationStateAsserts(); | 1976 DisablePaintInvalidationStateAsserts(); |
| 1976 private: | 1977 private: |
| 1977 TemporaryChange<bool> m_disabler; | 1978 AutoReset<bool> m_disabler; |
| 1978 }; | 1979 }; |
| 1979 | 1980 |
| 1980 // Allow equality comparisons of LayoutObjects by reference or pointer, intercha
ngeably. | 1981 // Allow equality comparisons of LayoutObjects by reference or pointer, intercha
ngeably. |
| 1981 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(LayoutObject) | 1982 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(LayoutObject) |
| 1982 | 1983 |
| 1983 inline bool LayoutObject::documentBeingDestroyed() const | 1984 inline bool LayoutObject::documentBeingDestroyed() const |
| 1984 { | 1985 { |
| 1985 return document().lifecycle().state() >= DocumentLifecycle::Stopping; | 1986 return document().lifecycle().state() >= DocumentLifecycle::Stopping; |
| 1986 } | 1987 } |
| 1987 | 1988 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2176 void showTree(const blink::LayoutObject*); | 2177 void showTree(const blink::LayoutObject*); |
| 2177 void showLineTree(const blink::LayoutObject*); | 2178 void showLineTree(const blink::LayoutObject*); |
| 2178 void showLayoutTree(const blink::LayoutObject* object1); | 2179 void showLayoutTree(const blink::LayoutObject* object1); |
| 2179 // We don't make object2 an optional parameter so that showLayoutTree | 2180 // We don't make object2 an optional parameter so that showLayoutTree |
| 2180 // can be called from gdb easily. | 2181 // can be called from gdb easily. |
| 2181 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2182 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2182 | 2183 |
| 2183 #endif | 2184 #endif |
| 2184 | 2185 |
| 2185 #endif // LayoutObject_h | 2186 #endif // LayoutObject_h |
| OLD | NEW |