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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. 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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #include "core/layout/LayoutBlockFlow.h" | 27 #include "core/layout/LayoutBlockFlow.h" |
28 #include "core/layout/LayoutBox.h" | 28 #include "core/layout/LayoutBox.h" |
29 #include "core/layout/LayoutView.h" | 29 #include "core/layout/LayoutView.h" |
30 #include "core/layout/api/LineLayoutBlockFlow.h" | 30 #include "core/layout/api/LineLayoutBlockFlow.h" |
31 #include "core/layout/shapes/ShapeOutsideInfo.h" | 31 #include "core/layout/shapes/ShapeOutsideInfo.h" |
32 #include "wtf/PtrUtil.h" | 32 #include "wtf/PtrUtil.h" |
33 #include <algorithm> | 33 #include <algorithm> |
34 #include <memory> | 34 #include <memory> |
35 | 35 |
36 using namespace WTF; | |
37 | |
38 namespace blink { | 36 namespace blink { |
39 | 37 |
40 struct SameSizeAsFloatingObject { | 38 struct SameSizeAsFloatingObject { |
41 void* pointers[2]; | 39 void* pointers[2]; |
42 LayoutRect rect; | 40 LayoutRect rect; |
43 uint32_t bitfields : 8; | 41 uint32_t bitfields : 8; |
44 }; | 42 }; |
45 | 43 |
46 static_assert(sizeof(FloatingObject) == sizeof(SameSizeAsFloatingObject), | 44 static_assert(sizeof(FloatingObject) == sizeof(SameSizeAsFloatingObject), |
47 "FloatingObject should stay small"); | 45 "FloatingObject should stay small"); |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 const FloatingObject* floatingObject) { | 724 const FloatingObject* floatingObject) { |
727 return String::format("%p (%gx%g %gx%g)", floatingObject, | 725 return String::format("%p (%gx%g %gx%g)", floatingObject, |
728 floatingObject->frameRect().x().toFloat(), | 726 floatingObject->frameRect().x().toFloat(), |
729 floatingObject->frameRect().y().toFloat(), | 727 floatingObject->frameRect().y().toFloat(), |
730 floatingObject->frameRect().maxX().toFloat(), | 728 floatingObject->frameRect().maxX().toFloat(), |
731 floatingObject->frameRect().maxY().toFloat()); | 729 floatingObject->frameRect().maxY().toFloat()); |
732 } | 730 } |
733 #endif | 731 #endif |
734 | 732 |
735 } // namespace blink | 733 } // namespace blink |
OLD | NEW |