| 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.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| 11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
| 12 * | 12 * |
| 13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
| 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
| 17 * | 17 * |
| 18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
| 19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
| 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 */ | 22 */ |
| 23 | 23 |
| 24 #include "core/layout/LayoutBlock.h" | 24 #include "core/layout/LayoutBlock.h" |
| 25 | 25 |
| 26 #include "core/HTMLNames.h" | 26 #include "core/HTMLNames.h" |
| 27 #include "core/dom/AXObjectCache.h" | |
| 28 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
| 29 #include "core/dom/Element.h" | 28 #include "core/dom/Element.h" |
| 30 #include "core/dom/StyleEngine.h" | 29 #include "core/dom/StyleEngine.h" |
| 31 #include "core/dom/shadow/ShadowRoot.h" | 30 #include "core/dom/shadow/ShadowRoot.h" |
| 32 #include "core/editing/DragCaretController.h" | 31 #include "core/editing/DragCaretController.h" |
| 33 #include "core/editing/EditingUtilities.h" | 32 #include "core/editing/EditingUtilities.h" |
| 34 #include "core/editing/FrameSelection.h" | 33 #include "core/editing/FrameSelection.h" |
| 35 #include "core/frame/FrameView.h" | 34 #include "core/frame/FrameView.h" |
| 36 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 37 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 38 #include "core/html/HTMLMarqueeElement.h" | 37 #include "core/html/HTMLMarqueeElement.h" |
| 39 #include "core/layout/HitTestLocation.h" | 38 #include "core/layout/HitTestLocation.h" |
| 40 #include "core/layout/HitTestResult.h" | 39 #include "core/layout/HitTestResult.h" |
| 41 #include "core/layout/LayoutAnalyzer.h" | 40 #include "core/layout/LayoutAnalyzer.h" |
| 42 #include "core/layout/LayoutFlexibleBox.h" | 41 #include "core/layout/LayoutFlexibleBox.h" |
| 43 #include "core/layout/LayoutFlowThread.h" | 42 #include "core/layout/LayoutFlowThread.h" |
| 44 #include "core/layout/LayoutGrid.h" | 43 #include "core/layout/LayoutGrid.h" |
| 45 #include "core/layout/LayoutInline.h" | |
| 46 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" | 44 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" |
| 47 #include "core/layout/LayoutObject.h" | |
| 48 #include "core/layout/LayoutTableCell.h" | 45 #include "core/layout/LayoutTableCell.h" |
| 49 #include "core/layout/LayoutTextCombine.h" | |
| 50 #include "core/layout/LayoutTextFragment.h" | |
| 51 #include "core/layout/LayoutTheme.h" | 46 #include "core/layout/LayoutTheme.h" |
| 52 #include "core/layout/LayoutView.h" | 47 #include "core/layout/LayoutView.h" |
| 53 #include "core/layout/TextAutosizer.h" | 48 #include "core/layout/TextAutosizer.h" |
| 49 #include "core/layout/api/LineLayoutBox.h" |
| 54 #include "core/layout/api/LineLayoutItem.h" | 50 #include "core/layout/api/LineLayoutItem.h" |
| 55 #include "core/layout/line/GlyphOverflow.h" | |
| 56 #include "core/layout/line/InlineIterator.h" | |
| 57 #include "core/layout/line/InlineTextBox.h" | 51 #include "core/layout/line/InlineTextBox.h" |
| 58 #include "core/layout/shapes/ShapeOutsideInfo.h" | |
| 59 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
| 60 #include "core/paint/BlockPainter.h" | 53 #include "core/paint/BlockPainter.h" |
| 61 #include "core/paint/BoxPainter.h" | |
| 62 #include "core/paint/LayoutObjectDrawingRecorder.h" | |
| 63 #include "core/paint/PaintLayer.h" | 54 #include "core/paint/PaintLayer.h" |
| 64 #include "core/style/ComputedStyle.h" | 55 #include "core/style/ComputedStyle.h" |
| 65 #include "core/style/ContentData.h" | |
| 66 #include "platform/RuntimeEnabledFeatures.h" | 56 #include "platform/RuntimeEnabledFeatures.h" |
| 67 #include "platform/geometry/FloatQuad.h" | |
| 68 #include "platform/geometry/TransformState.h" | |
| 69 #include "wtf/StdLibExtras.h" | 57 #include "wtf/StdLibExtras.h" |
| 70 #include "wtf/TemporaryChange.h" | |
| 71 | |
| 72 using namespace WTF; | |
| 73 using namespace Unicode; | |
| 74 | 58 |
| 75 namespace blink { | 59 namespace blink { |
| 76 | 60 |
| 77 using namespace HTMLNames; | |
| 78 | |
| 79 struct SameSizeAsLayoutBlock : public LayoutBox { | 61 struct SameSizeAsLayoutBlock : public LayoutBox { |
| 80 LayoutObjectChildList children; | 62 LayoutObjectChildList children; |
| 81 uint32_t bitfields; | 63 uint32_t bitfields; |
| 82 }; | 64 }; |
| 83 | 65 |
| 84 static_assert(sizeof(LayoutBlock) == sizeof(SameSizeAsLayoutBlock), "LayoutBlock
should stay small"); | 66 static_assert(sizeof(LayoutBlock) == sizeof(SameSizeAsLayoutBlock), "LayoutBlock
should stay small"); |
| 85 | 67 |
| 86 // This map keeps track of the positioned objects associated with a containing | 68 // This map keeps track of the positioned objects associated with a containing |
| 87 // block. | 69 // block. |
| 88 // | 70 // |
| (...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1913 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda
ntSet->begin(); it != end; ++it) { | 1895 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda
ntSet->begin(); it != end; ++it) { |
| 1914 LayoutBox* currBox = *it; | 1896 LayoutBox* currBox = *it; |
| 1915 ASSERT(!currBox->needsLayout()); | 1897 ASSERT(!currBox->needsLayout()); |
| 1916 } | 1898 } |
| 1917 } | 1899 } |
| 1918 } | 1900 } |
| 1919 | 1901 |
| 1920 #endif | 1902 #endif |
| 1921 | 1903 |
| 1922 } // namespace blink | 1904 } // namespace blink |
| OLD | NEW |