Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: Source/WebCore/rendering/RenderBlock.cpp

Issue 10448068: Merge 118236 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/html/HTMLProgressElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 // as it makes the back-and-forth placing complex. 1838 // as it makes the back-and-forth placing complex.
1839 if (runIn->isElementContinuation() || runIn->virtualContinuation()) 1839 if (runIn->isElementContinuation() || runIn->virtualContinuation())
1840 return; 1840 return;
1841 1841
1842 // Check if this node is allowed to run-in. E.g. <select> expects its render er to 1842 // Check if this node is allowed to run-in. E.g. <select> expects its render er to
1843 // be a RenderListBox or RenderMenuList, and hence cannot be a RenderInline run-in. 1843 // be a RenderListBox or RenderMenuList, and hence cannot be a RenderInline run-in.
1844 Node* runInNode = runIn->node(); 1844 Node* runInNode = runIn->node();
1845 if (runInNode && runInNode->hasTagName(selectTag)) 1845 if (runInNode && runInNode->hasTagName(selectTag))
1846 return; 1846 return;
1847 1847
1848 if (runInNode && runInNode->hasTagName(progressTag))
1849 return;
1850
1848 RenderObject* curr = runIn->nextSibling(); 1851 RenderObject* curr = runIn->nextSibling();
1849 if (!curr || !curr->isRenderBlock() || !curr->childrenInline()) 1852 if (!curr || !curr->isRenderBlock() || !curr->childrenInline())
1850 return; 1853 return;
1851 1854
1852 // Per CSS3, "A run-in cannot run in to a block that already starts with a 1855 // Per CSS3, "A run-in cannot run in to a block that already starts with a
1853 // run-in or that itself is a run-in". 1856 // run-in or that itself is a run-in".
1854 if (curr->isRunIn() || (curr->firstChild() && curr->firstChild()->isRunIn()) ) 1857 if (curr->isRunIn() || (curr->firstChild() && curr->firstChild()->isRunIn()) )
1855 return; 1858 return;
1856 1859
1857 if (curr->isAnonymous() || curr->isFloatingOrPositioned()) 1860 if (curr->isAnonymous() || curr->isFloatingOrPositioned())
(...skipping 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after
7389 } 7392 }
7390 7393
7391 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject) 7394 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::Fl oatingObject* floatingObject)
7392 { 7395 {
7393 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->pi xelSnappedX(), floatingObject->pixelSnappedY(), floatingObject->pixelSnappedMaxX (), floatingObject->pixelSnappedMaxY()); 7396 return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->pi xelSnappedX(), floatingObject->pixelSnappedY(), floatingObject->pixelSnappedMaxX (), floatingObject->pixelSnappedMaxY());
7394 } 7397 }
7395 7398
7396 #endif 7399 #endif
7397 7400
7398 } // namespace WebCore 7401 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLProgressElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698