| 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 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 7 * Copyright (C) 2014 Samsung Electronics. 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 |
| (...skipping 4832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4843 ASSERT(layoutState->renderer() == this); | 4843 ASSERT(layoutState->renderer() == this); |
| 4844 | 4844 |
| 4845 LayoutSize offsetDelta = layoutState->layoutOffset() - layoutState->page
Offset(); | 4845 LayoutSize offsetDelta = layoutState->layoutOffset() - layoutState->page
Offset(); |
| 4846 return isHorizontalWritingMode() ? offsetDelta.height() : offsetDelta.wi
dth(); | 4846 return isHorizontalWritingMode() ? offsetDelta.height() : offsetDelta.wi
dth(); |
| 4847 } | 4847 } |
| 4848 | 4848 |
| 4849 ASSERT_NOT_REACHED(); | 4849 ASSERT_NOT_REACHED(); |
| 4850 return 0; | 4850 return 0; |
| 4851 } | 4851 } |
| 4852 | 4852 |
| 4853 RenderRegion* RenderBlock::regionAtBlockOffset(LayoutUnit blockOffset) const | |
| 4854 { | |
| 4855 RenderFlowThread* flowThread = flowThreadContainingBlock(); | |
| 4856 if (!flowThread || !flowThread->hasValidRegionInfo()) | |
| 4857 return 0; | |
| 4858 | |
| 4859 return flowThread->regionAtBlockOffset(offsetFromLogicalTopOfFirstPage() + b
lockOffset, true); | |
| 4860 } | |
| 4861 | |
| 4862 LayoutUnit RenderBlock::collapsedMarginBeforeForChild(const RenderBox* child) co
nst | 4853 LayoutUnit RenderBlock::collapsedMarginBeforeForChild(const RenderBox* child) co
nst |
| 4863 { | 4854 { |
| 4864 // If the child has the same directionality as we do, then we can just retur
n its | 4855 // If the child has the same directionality as we do, then we can just retur
n its |
| 4865 // collapsed margin. | 4856 // collapsed margin. |
| 4866 if (!child->isWritingModeRoot()) | 4857 if (!child->isWritingModeRoot()) |
| 4867 return child->collapsedMarginBefore(); | 4858 return child->collapsedMarginBefore(); |
| 4868 | 4859 |
| 4869 // The child has a different directionality. If the child is parallel, then
it's just | 4860 // The child has a different directionality. If the child is parallel, then
it's just |
| 4870 // flipped relative to us. We can use the collapsed margin for the opposite
edge. | 4861 // flipped relative to us. We can use the collapsed margin for the opposite
edge. |
| 4871 if (child->isHorizontalWritingMode() == isHorizontalWritingMode()) | 4862 if (child->isHorizontalWritingMode() == isHorizontalWritingMode()) |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5014 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5005 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
| 5015 { | 5006 { |
| 5016 showRenderObject(); | 5007 showRenderObject(); |
| 5017 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5008 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 5018 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5009 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 5019 } | 5010 } |
| 5020 | 5011 |
| 5021 #endif | 5012 #endif |
| 5022 | 5013 |
| 5023 } // namespace WebCore | 5014 } // namespace WebCore |
| OLD | NEW |