| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "core/editing/htmlediting.h" | 35 #include "core/editing/htmlediting.h" |
| 36 #include "core/events/OverflowEvent.h" | 36 #include "core/events/OverflowEvent.h" |
| 37 #include "core/fetch/ResourceLoadPriorityOptimizer.h" | 37 #include "core/fetch/ResourceLoadPriorityOptimizer.h" |
| 38 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
| 39 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
| 40 #include "core/frame/Settings.h" | 40 #include "core/frame/Settings.h" |
| 41 #include "core/layout/HitTestLocation.h" | 41 #include "core/layout/HitTestLocation.h" |
| 42 #include "core/layout/HitTestResult.h" | 42 #include "core/layout/HitTestResult.h" |
| 43 #include "core/layout/Layer.h" | 43 #include "core/layout/Layer.h" |
| 44 #include "core/layout/LayoutFlowThread.h" | 44 #include "core/layout/LayoutFlowThread.h" |
| 45 #include "core/layout/LayoutGrid.h" |
| 45 #include "core/layout/LayoutObject.h" | 46 #include "core/layout/LayoutObject.h" |
| 46 #include "core/layout/LayoutRegion.h" | 47 #include "core/layout/LayoutRegion.h" |
| 47 #include "core/layout/LayoutTableCell.h" | 48 #include "core/layout/LayoutTableCell.h" |
| 48 #include "core/layout/LayoutTextControl.h" | 49 #include "core/layout/LayoutTextControl.h" |
| 49 #include "core/layout/LayoutTheme.h" | 50 #include "core/layout/LayoutTheme.h" |
| 50 #include "core/layout/PaintInfo.h" | 51 #include "core/layout/PaintInfo.h" |
| 51 #include "core/layout/TextAutosizer.h" | 52 #include "core/layout/TextAutosizer.h" |
| 52 #include "core/layout/line/InlineIterator.h" | 53 #include "core/layout/line/InlineIterator.h" |
| 53 #include "core/layout/line/InlineTextBox.h" | 54 #include "core/layout/line/InlineTextBox.h" |
| 54 #include "core/layout/shapes/ShapeOutsideInfo.h" | 55 #include "core/layout/shapes/ShapeOutsideInfo.h" |
| 55 #include "core/layout/style/ContentData.h" | 56 #include "core/layout/style/ContentData.h" |
| 56 #include "core/layout/style/LayoutStyle.h" | 57 #include "core/layout/style/LayoutStyle.h" |
| 57 #include "core/page/Page.h" | 58 #include "core/page/Page.h" |
| 58 #include "core/paint/BlockPainter.h" | 59 #include "core/paint/BlockPainter.h" |
| 59 #include "core/paint/BoxPainter.h" | 60 #include "core/paint/BoxPainter.h" |
| 60 #include "core/paint/RenderDrawingRecorder.h" | 61 #include "core/paint/RenderDrawingRecorder.h" |
| 61 #include "core/rendering/RenderCombineText.h" | 62 #include "core/rendering/RenderCombineText.h" |
| 62 #include "core/rendering/RenderDeprecatedFlexibleBox.h" | 63 #include "core/rendering/RenderDeprecatedFlexibleBox.h" |
| 63 #include "core/rendering/RenderFlexibleBox.h" | 64 #include "core/rendering/RenderFlexibleBox.h" |
| 64 #include "core/rendering/RenderGrid.h" | |
| 65 #include "core/rendering/RenderInline.h" | 65 #include "core/rendering/RenderInline.h" |
| 66 #include "core/rendering/RenderTextFragment.h" | 66 #include "core/rendering/RenderTextFragment.h" |
| 67 #include "core/rendering/RenderView.h" | 67 #include "core/rendering/RenderView.h" |
| 68 #include "platform/geometry/FloatQuad.h" | 68 #include "platform/geometry/FloatQuad.h" |
| 69 #include "platform/geometry/TransformState.h" | 69 #include "platform/geometry/TransformState.h" |
| 70 #include "wtf/StdLibExtras.h" | 70 #include "wtf/StdLibExtras.h" |
| 71 #include "wtf/TemporaryChange.h" | 71 #include "wtf/TemporaryChange.h" |
| 72 | 72 |
| 73 using namespace WTF; | 73 using namespace WTF; |
| 74 using namespace Unicode; | 74 using namespace Unicode; |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 if (child->nextSibling()) | 1059 if (child->nextSibling()) |
| 1060 child->nextSibling()->setPreviousSibling(child->previousSibling()); | 1060 child->nextSibling()->setPreviousSibling(child->previousSibling()); |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 child->children()->setFirstChild(0); | 1063 child->children()->setFirstChild(0); |
| 1064 child->m_next = nullptr; | 1064 child->m_next = nullptr; |
| 1065 | 1065 |
| 1066 // Remove all the information in the flow thread associated with the leftove
r anonymous block. | 1066 // Remove all the information in the flow thread associated with the leftove
r anonymous block. |
| 1067 child->removeFromLayoutFlowThread(); | 1067 child->removeFromLayoutFlowThread(); |
| 1068 | 1068 |
| 1069 // RenderGrid keeps track of its children, we must notify it about changes i
n the tree. | 1069 // LayoutGrid keeps track of its children, we must notify it about changes i
n the tree. |
| 1070 if (child->parent()->isRenderGrid()) | 1070 if (child->parent()->isLayoutGrid()) |
| 1071 toRenderGrid(child->parent())->dirtyGrid(); | 1071 toLayoutGrid(child->parent())->dirtyGrid(); |
| 1072 | 1072 |
| 1073 child->setParent(0); | 1073 child->setParent(0); |
| 1074 child->setPreviousSibling(0); | 1074 child->setPreviousSibling(0); |
| 1075 child->setNextSibling(0); | 1075 child->setNextSibling(0); |
| 1076 | 1076 |
| 1077 child->destroy(); | 1077 child->destroy(); |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 static bool canMergeContiguousAnonymousBlocks(LayoutObject* oldChild, LayoutObje
ct* prev, LayoutObject* next) | 1080 static bool canMergeContiguousAnonymousBlocks(LayoutObject* oldChild, LayoutObje
ct* prev, LayoutObject* next) |
| 1081 { | 1081 { |
| (...skipping 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3945 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const | 3945 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const |
| 3946 { | 3946 { |
| 3947 showLayoutObject(); | 3947 showLayoutObject(); |
| 3948 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 3948 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 3949 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 3949 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 3950 } | 3950 } |
| 3951 | 3951 |
| 3952 #endif | 3952 #endif |
| 3953 | 3953 |
| 3954 } // namespace blink | 3954 } // namespace blink |
| OLD | NEW |