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 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights 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 5211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5222 } | 5222 } |
5223 | 5223 |
5224 bool RenderBlock::hasLineIfEmpty() const | 5224 bool RenderBlock::hasLineIfEmpty() const |
5225 { | 5225 { |
5226 if (!node()) | 5226 if (!node()) |
5227 return false; | 5227 return false; |
5228 | 5228 |
5229 if (node()->isContentEditable() && node()->rootEditableElement() == node()) | 5229 if (node()->isContentEditable() && node()->rootEditableElement() == node()) |
5230 return true; | 5230 return true; |
5231 | 5231 |
5232 if (node()->isShadowNode() && (node()->shadowParentNode()->hasTagName(inputT
ag) || node()->shadowParentNode()->hasTagName(textareaTag))) | 5232 if (node()->isShadowNode() && (node()->shadowParentNode()->hasTagName(inputT
ag))) |
5233 return true; | 5233 return true; |
5234 | 5234 |
5235 return false; | 5235 return false; |
5236 } | 5236 } |
5237 | 5237 |
5238 int RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction, LinePos
itionMode linePositionMode) const | 5238 int RenderBlock::lineHeight(bool firstLine, LineDirectionMode direction, LinePos
itionMode linePositionMode) const |
5239 { | 5239 { |
5240 // Inline blocks are replaced elements. Otherwise, just pass off to | 5240 // Inline blocks are replaced elements. Otherwise, just pass off to |
5241 // the base class. If we're being queried as though we're the root line | 5241 // the base class. If we're being queried as though we're the root line |
5242 // box, then the fact that we're an inline-block is irrelevant, and we behav
e | 5242 // box, then the fact that we're an inline-block is irrelevant, and we behav
e |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6389 else if (isAnonymous()) | 6389 else if (isAnonymous()) |
6390 return "RenderBlock (generated)"; | 6390 return "RenderBlock (generated)"; |
6391 if (isRelPositioned()) | 6391 if (isRelPositioned()) |
6392 return "RenderBlock (relative positioned)"; | 6392 return "RenderBlock (relative positioned)"; |
6393 if (isRunIn()) | 6393 if (isRunIn()) |
6394 return "RenderBlock (run-in)"; | 6394 return "RenderBlock (run-in)"; |
6395 return "RenderBlock"; | 6395 return "RenderBlock"; |
6396 } | 6396 } |
6397 | 6397 |
6398 } // namespace WebCore | 6398 } // namespace WebCore |
OLD | NEW |