| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/paint/BlockPainter.h" | 6 #include "core/paint/BlockPainter.h" |
| 7 | 7 |
| 8 #include "core/editing/Caret.h" | 8 #include "core/editing/Caret.h" |
| 9 #include "core/editing/FrameSelection.h" | 9 #include "core/editing/FrameSelection.h" |
| 10 #include "core/frame/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 void BlockPainter::paintChildren(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) | 105 void BlockPainter::paintChildren(const PaintInfo& paintInfo, const LayoutPoint&
paintOffset) |
| 106 { | 106 { |
| 107 for (RenderBox* child = m_renderBlock.firstChildBox(); child; child = child-
>nextSiblingBox()) | 107 for (RenderBox* child = m_renderBlock.firstChildBox(); child; child = child-
>nextSiblingBox()) |
| 108 paintChild(child, paintInfo, paintOffset); | 108 paintChild(child, paintInfo, paintOffset); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void BlockPainter::paintChild(RenderBox* child, const PaintInfo& paintInfo, cons
t LayoutPoint& paintOffset) | 111 void BlockPainter::paintChild(RenderBox* child, const PaintInfo& paintInfo, cons
t LayoutPoint& paintOffset) |
| 112 { | 112 { |
| 113 LayoutPoint childPoint = m_renderBlock.flipForWritingModeForChild(child, pai
ntOffset); | 113 LayoutPoint childPoint = m_renderBlock.flipForWritingModeForChild(child, pai
ntOffset); |
| 114 if (!child->hasSelfPaintingLayer() && !child->isFloating()) | 114 if (!child->hasSelfPaintingLayer() && !child->isFloating() && !child->isColu
mnSpanAll()) |
| 115 child->paint(paintInfo, childPoint); | 115 child->paint(paintInfo, childPoint); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void BlockPainter::paintChildrenOfFlexibleBox(RenderFlexibleBox& renderFlexibleB
ox, const PaintInfo& paintInfo, const LayoutPoint& paintOffset) | 118 void BlockPainter::paintChildrenOfFlexibleBox(RenderFlexibleBox& renderFlexibleB
ox, const PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 119 { | 119 { |
| 120 for (RenderBox* child = renderFlexibleBox.orderIterator().first(); child; ch
ild = renderFlexibleBox.orderIterator().next()) | 120 for (RenderBox* child = renderFlexibleBox.orderIterator().first(); child; ch
ild = renderFlexibleBox.orderIterator().next()) |
| 121 BlockPainter(renderFlexibleBox).paintChildAsInlineBlock(child, paintInfo
, paintOffset); | 121 BlockPainter(renderFlexibleBox).paintChildAsInlineBlock(child, paintInfo
, paintOffset); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void BlockPainter::paintChildAsInlineBlock(RenderBox* child, const PaintInfo& pa
intInfo, const LayoutPoint& paintOffset) | 124 void BlockPainter::paintChildAsInlineBlock(RenderBox* child, const PaintInfo& pa
intInfo, const LayoutPoint& paintOffset) |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 RenderBlock* block = flow->containingBlock(); | 495 RenderBlock* block = flow->containingBlock(); |
| 496 for ( ; block && block != &m_renderBlock; block = block->containingBlock
()) | 496 for ( ; block && block != &m_renderBlock; block = block->containingBlock
()) |
| 497 accumulatedPaintOffset.moveBy(block->location()); | 497 accumulatedPaintOffset.moveBy(block->location()); |
| 498 ASSERT(block); | 498 ASSERT(block); |
| 499 InlinePainter(*flow).paintOutline(info, accumulatedPaintOffset); | 499 InlinePainter(*flow).paintOutline(info, accumulatedPaintOffset); |
| 500 } | 500 } |
| 501 } | 501 } |
| 502 | 502 |
| 503 | 503 |
| 504 } // namespace blink | 504 } // namespace blink |
| OLD | NEW |