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 3796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3807 } | 3807 } |
3808 | 3808 |
3809 bool RenderBlock::hasLineIfEmpty() const | 3809 bool RenderBlock::hasLineIfEmpty() const |
3810 { | 3810 { |
3811 if (!node()) | 3811 if (!node()) |
3812 return false; | 3812 return false; |
3813 | 3813 |
3814 if (node()->isRootEditableElement()) | 3814 if (node()->isRootEditableElement()) |
3815 return true; | 3815 return true; |
3816 | 3816 |
3817 if (node()->isShadowRoot() && toShadowRoot(node())->host()->hasTagName(input
Tag)) | 3817 if (node()->isShadowRoot() && isHTMLInputElement(*toShadowRoot(node())->host
())) |
3818 return true; | 3818 return true; |
3819 | 3819 |
3820 return false; | 3820 return false; |
3821 } | 3821 } |
3822 | 3822 |
3823 LayoutUnit RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction,
LinePositionMode linePositionMode) const | 3823 LayoutUnit RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction,
LinePositionMode linePositionMode) const |
3824 { | 3824 { |
3825 // Inline blocks are replaced elements. Otherwise, just pass off to | 3825 // Inline blocks are replaced elements. Otherwise, just pass off to |
3826 // the base class. If we're being queried as though we're the root line | 3826 // the base class. If we're being queried as though we're the root line |
3827 // box, then the fact that we're an inline-block is irrelevant, and we behav
e | 3827 // box, then the fact that we're an inline-block is irrelevant, and we behav
e |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5021 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 5021 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
5022 { | 5022 { |
5023 showRenderObject(); | 5023 showRenderObject(); |
5024 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 5024 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
5025 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 5025 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
5026 } | 5026 } |
5027 | 5027 |
5028 #endif | 5028 #endif |
5029 | 5029 |
5030 } // namespace WebCore | 5030 } // namespace WebCore |
OLD | NEW |