OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 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 24 matching lines...) Expand all Loading... |
35 #include "core/layout/LayoutInline.h" | 35 #include "core/layout/LayoutInline.h" |
36 #include "core/layout/LayoutView.h" | 36 #include "core/layout/LayoutView.h" |
37 #include "core/layout/compositing/CompositedLayerMapping.h" | 37 #include "core/layout/compositing/CompositedLayerMapping.h" |
38 #include "core/layout/compositing/PaintLayerCompositor.h" | 38 #include "core/layout/compositing/PaintLayerCompositor.h" |
39 #include "core/paint/ObjectPaintInvalidator.h" | 39 #include "core/paint/ObjectPaintInvalidator.h" |
40 #include "core/paint/PaintLayer.h" | 40 #include "core/paint/PaintLayer.h" |
41 #include "core/style/ShadowList.h" | 41 #include "core/style/ShadowList.h" |
42 #include "platform/LengthFunctions.h" | 42 #include "platform/LengthFunctions.h" |
43 #include "platform/geometry/TransformState.h" | 43 #include "platform/geometry/TransformState.h" |
44 #include "platform/scroll/MainThreadScrollingReason.h" | 44 #include "platform/scroll/MainThreadScrollingReason.h" |
45 #include "wtf/PtrUtil.h" | 45 #include "platform/wtf/PtrUtil.h" |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 namespace { | 49 namespace { |
50 inline bool IsOutOfFlowPositionedWithImplicitHeight( | 50 inline bool IsOutOfFlowPositionedWithImplicitHeight( |
51 const LayoutBoxModelObject* child) { | 51 const LayoutBoxModelObject* child) { |
52 return child->IsOutOfFlowPositioned() && | 52 return child->IsOutOfFlowPositioned() && |
53 !child->Style()->LogicalTop().IsAuto() && | 53 !child->Style()->LogicalTop().IsAuto() && |
54 !child->Style()->LogicalBottom().IsAuto(); | 54 !child->Style()->LogicalBottom().IsAuto(); |
55 } | 55 } |
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1481 if (root_element_style->HasBackground()) | 1481 if (root_element_style->HasBackground()) |
1482 return false; | 1482 return false; |
1483 | 1483 |
1484 if (GetNode() != GetDocument().FirstBodyElement()) | 1484 if (GetNode() != GetDocument().FirstBodyElement()) |
1485 return false; | 1485 return false; |
1486 | 1486 |
1487 return true; | 1487 return true; |
1488 } | 1488 } |
1489 | 1489 |
1490 } // namespace blink | 1490 } // namespace blink |
OLD | NEW |