| 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, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. 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 |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/rendering/RenderBox.h" | 27 #include "core/rendering/RenderBox.h" |
| 28 | 28 |
| 29 #include <math.h> | 29 #include "core/HTMLNames.h" |
| 30 #include <algorithm> | |
| 31 #include "HTMLNames.h" | |
| 32 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 33 #include "core/editing/htmlediting.h" | 31 #include "core/editing/htmlediting.h" |
| 34 #include "core/frame/FrameHost.h" | 32 #include "core/frame/FrameHost.h" |
| 35 #include "core/frame/FrameView.h" | 33 #include "core/frame/FrameView.h" |
| 36 #include "core/frame/LocalFrame.h" | 34 #include "core/frame/LocalFrame.h" |
| 37 #include "core/frame/PinchViewport.h" | 35 #include "core/frame/PinchViewport.h" |
| 38 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 39 #include "core/html/HTMLElement.h" | 37 #include "core/html/HTMLElement.h" |
| 40 #include "core/html/HTMLFrameElementBase.h" | 38 #include "core/html/HTMLFrameElementBase.h" |
| 41 #include "core/html/HTMLFrameOwnerElement.h" | 39 #include "core/html/HTMLFrameOwnerElement.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 #include "core/rendering/RenderListBox.h" | 51 #include "core/rendering/RenderListBox.h" |
| 54 #include "core/rendering/RenderListMarker.h" | 52 #include "core/rendering/RenderListMarker.h" |
| 55 #include "core/rendering/RenderTableCell.h" | 53 #include "core/rendering/RenderTableCell.h" |
| 56 #include "core/rendering/RenderTheme.h" | 54 #include "core/rendering/RenderTheme.h" |
| 57 #include "core/rendering/RenderView.h" | 55 #include "core/rendering/RenderView.h" |
| 58 #include "core/rendering/compositing/RenderLayerCompositor.h" | 56 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 59 #include "platform/LengthFunctions.h" | 57 #include "platform/LengthFunctions.h" |
| 60 #include "platform/geometry/FloatQuad.h" | 58 #include "platform/geometry/FloatQuad.h" |
| 61 #include "platform/geometry/TransformState.h" | 59 #include "platform/geometry/TransformState.h" |
| 62 #include "platform/graphics/GraphicsContextStateSaver.h" | 60 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 61 #include <algorithm> |
| 62 #include <math.h> |
| 63 | 63 |
| 64 using namespace std; | 64 using namespace std; |
| 65 | 65 |
| 66 namespace WebCore { | 66 namespace WebCore { |
| 67 | 67 |
| 68 using namespace HTMLNames; | 68 using namespace HTMLNames; |
| 69 | 69 |
| 70 // Used by flexible boxes when flexing this element and by table cells. | 70 // Used by flexible boxes when flexing this element and by table cells. |
| 71 typedef WTF::HashMap<const RenderBox*, LayoutUnit> OverrideSizeMap; | 71 typedef WTF::HashMap<const RenderBox*, LayoutUnit> OverrideSizeMap; |
| 72 | 72 |
| (...skipping 4564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4637 return 0; | 4637 return 0; |
| 4638 | 4638 |
| 4639 if (!layoutState && !flowThreadContainingBlock()) | 4639 if (!layoutState && !flowThreadContainingBlock()) |
| 4640 return 0; | 4640 return 0; |
| 4641 | 4641 |
| 4642 RenderBlock* containerBlock = containingBlock(); | 4642 RenderBlock* containerBlock = containingBlock(); |
| 4643 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); | 4643 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); |
| 4644 } | 4644 } |
| 4645 | 4645 |
| 4646 } // namespace WebCore | 4646 } // namespace WebCore |
| OLD | NEW |