OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "core/layout/LayoutBlockFlow.h" | 31 #include "core/layout/LayoutBlockFlow.h" |
32 | 32 |
33 #include "core/dom/AXObjectCache.h" | |
34 #include "core/editing/Editor.h" | 33 #include "core/editing/Editor.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" | |
38 #include "core/html/HTMLDialogElement.h" | 36 #include "core/html/HTMLDialogElement.h" |
39 #include "core/layout/HitTestLocation.h" | 37 #include "core/layout/HitTestLocation.h" |
40 #include "core/layout/LayoutAnalyzer.h" | 38 #include "core/layout/LayoutAnalyzer.h" |
41 #include "core/layout/LayoutFlowThread.h" | 39 #include "core/layout/LayoutFlowThread.h" |
| 40 #include "core/layout/LayoutInline.h" |
42 #include "core/layout/LayoutMultiColumnFlowThread.h" | 41 #include "core/layout/LayoutMultiColumnFlowThread.h" |
43 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" | 42 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" |
44 #include "core/layout/LayoutPagedFlowThread.h" | 43 #include "core/layout/LayoutPagedFlowThread.h" |
45 #include "core/layout/LayoutText.h" | |
46 #include "core/layout/LayoutView.h" | 44 #include "core/layout/LayoutView.h" |
47 #include "core/layout/TextAutosizer.h" | 45 #include "core/layout/TextAutosizer.h" |
48 #include "core/layout/api/SelectionState.h" | |
49 #include "core/layout/line/GlyphOverflow.h" | 46 #include "core/layout/line/GlyphOverflow.h" |
| 47 #include "core/layout/line/InlineIterator.h" |
50 #include "core/layout/line/InlineTextBox.h" | 48 #include "core/layout/line/InlineTextBox.h" |
51 #include "core/layout/line/LineBreaker.h" | |
52 #include "core/layout/line/LineWidth.h" | 49 #include "core/layout/line/LineWidth.h" |
53 #include "core/layout/shapes/ShapeOutsideInfo.h" | 50 #include "core/layout/shapes/ShapeOutsideInfo.h" |
54 #include "core/paint/BlockFlowPainter.h" | |
55 #include "core/paint/ClipScope.h" | 51 #include "core/paint/ClipScope.h" |
56 #include "core/paint/LayoutObjectDrawingRecorder.h" | |
57 #include "core/paint/PaintInfo.h" | |
58 #include "core/paint/PaintLayer.h" | 52 #include "core/paint/PaintLayer.h" |
59 #include "platform/RuntimeEnabledFeatures.h" | |
60 #include "platform/geometry/TransformState.h" | |
61 #include "platform/text/BidiTextRun.h" | |
62 | 53 |
63 namespace blink { | 54 namespace blink { |
64 | 55 |
65 bool LayoutBlockFlow::s_canPropagateFloatIntoSibling = false; | 56 bool LayoutBlockFlow::s_canPropagateFloatIntoSibling = false; |
66 | 57 |
67 struct SameSizeAsLayoutBlockFlow : public LayoutBlock { | 58 struct SameSizeAsLayoutBlockFlow : public LayoutBlock { |
68 LineBoxList lineBoxes; | 59 LineBoxList lineBoxes; |
69 LayoutUnit m_paintInvalidationLogicalTopAndBottom[2]; | 60 LayoutUnit m_paintInvalidationLogicalTopAndBottom[2]; |
70 void* pointers[2]; | 61 void* pointers[2]; |
71 }; | 62 }; |
(...skipping 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3850 if (!rect.isEmpty()) | 3841 if (!rect.isEmpty()) |
3851 rects.append(rect); | 3842 rects.append(rect); |
3852 } | 3843 } |
3853 } | 3844 } |
3854 | 3845 |
3855 if (inlineElementContinuation) | 3846 if (inlineElementContinuation) |
3856 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in
lineElementContinuation->containingBlock()->location() - location()), includeBlo
ckOverflows); | 3847 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in
lineElementContinuation->containingBlock()->location() - location()), includeBlo
ckOverflows); |
3857 } | 3848 } |
3858 | 3849 |
3859 } // namespace blink | 3850 } // namespace blink |
OLD | NEW |