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 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1846 if (!runIn->isRenderBlock()) | 1846 if (!runIn->isRenderBlock()) |
1847 return; | 1847 return; |
1848 | 1848 |
1849 // FIXME: We don't support run-ins with or as part of a continuation | 1849 // FIXME: We don't support run-ins with or as part of a continuation |
1850 // as it makes the back-and-forth placing complex. | 1850 // as it makes the back-and-forth placing complex. |
1851 if (runIn->isElementContinuation() || runIn->virtualContinuation()) | 1851 if (runIn->isElementContinuation() || runIn->virtualContinuation()) |
1852 return; | 1852 return; |
1853 | 1853 |
1854 // Check if this node is allowed to run-in. E.g. <select> expects its render
er to | 1854 // Check if this node is allowed to run-in. E.g. <select> expects its render
er to |
1855 // be a RenderListBox or RenderMenuList, and hence cannot be a RenderInline
run-in. | 1855 // be a RenderListBox or RenderMenuList, and hence cannot be a RenderInline
run-in. |
1856 Node* runInNode = runIn->node(); | 1856 if (!runIn->canBeReplacedWithInlineRunIn()) |
1857 if (runInNode && runInNode->hasTagName(selectTag)) | |
1858 return; | |
1859 | |
1860 if (runInNode && runInNode->hasTagName(progressTag)) | |
1861 return; | 1857 return; |
1862 | 1858 |
1863 RenderObject* curr = runIn->nextSibling(); | 1859 RenderObject* curr = runIn->nextSibling(); |
1864 if (!curr || !curr->isRenderBlock() || !curr->childrenInline()) | 1860 if (!curr || !curr->isRenderBlock() || !curr->childrenInline()) |
1865 return; | 1861 return; |
1866 | 1862 |
1867 // Per CSS3, "A run-in cannot run in to a block that already starts with a | 1863 // Per CSS3, "A run-in cannot run in to a block that already starts with a |
1868 // run-in or that itself is a run-in". | 1864 // run-in or that itself is a run-in". |
1869 if (curr->isRunIn() || (curr->firstChild() && curr->firstChild()->isRunIn())
) | 1865 if (curr->isRunIn() || (curr->firstChild() && curr->firstChild()->isRunIn())
) |
1870 return; | 1866 return; |
(...skipping 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7264 } | 7260 } |
7265 | 7261 |
7266 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl
oatingObject* floatingObject) | 7262 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl
oatingObject* floatingObject) |
7267 { | 7263 { |
7268 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->fr
ameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floating
Object->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnapped
MaxY()); | 7264 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->fr
ameRect().pixelSnappedX(), floatingObject->frameRect().pixelSnappedY(), floating
Object->frameRect().pixelSnappedMaxX(), floatingObject->frameRect().pixelSnapped
MaxY()); |
7269 } | 7265 } |
7270 | 7266 |
7271 #endif | 7267 #endif |
7272 | 7268 |
7273 } // namespace WebCore | 7269 } // namespace WebCore |
OLD | NEW |