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

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

Issue 7344020: Merge 90568 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 5 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 | « LayoutTests/fast/flexbox/crash-button-relayout-expected.txt ('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 * This file is part of the render object implementation for KHTML. 2 * This file is part of the render object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 --m_currentOrdinal; 82 --m_currentOrdinal;
83 if (!m_currentOrdinal) 83 if (!m_currentOrdinal)
84 return 0; 84 return 0;
85 m_currentChild = m_box->lastChildBox(); 85 m_currentChild = m_box->lastChildBox();
86 } 86 }
87 } 87 }
88 else 88 else
89 m_currentChild = m_forward ? m_currentChild->nextSiblingBox() : m_currentChild->previousSiblingBox(); 89 m_currentChild = m_forward ? m_currentChild->nextSiblingBox() : m_currentChild->previousSiblingBox();
90 if (m_currentChild && m_currentChild->style()->boxOrdinalGroup() > m _lastOrdinal) 90 if (m_currentChild && m_currentChild->style()->boxOrdinalGroup() > m _lastOrdinal)
91 m_lastOrdinal = m_currentChild->style()->boxOrdinalGroup(); 91 m_lastOrdinal = m_currentChild->style()->boxOrdinalGroup();
92 } while (!m_currentChild || m_currentChild->style()->boxOrdinalGroup() ! = m_currentOrdinal 92 } while (!m_currentChild || (!m_currentChild->isAnonymous()
93 || m_currentChild->style()->visibility() == COLLAPSE); 93 && (m_currentChild->style()->boxOrdinalGroup() != m_currentOrdi nal || m_currentChild->style()->visibility() == COLLAPSE)));
94 return m_currentChild; 94 return m_currentChild;
95 } 95 }
96 96
97 private: 97 private:
98 RenderFlexibleBox* m_box; 98 RenderFlexibleBox* m_box;
99 RenderBox* m_currentChild; 99 RenderBox* m_currentChild;
100 bool m_forward; 100 bool m_forward;
101 unsigned int m_currentOrdinal; 101 unsigned int m_currentOrdinal;
102 unsigned int m_lastOrdinal; 102 unsigned int m_lastOrdinal;
103 }; 103 };
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 if (isPositioned()) 1009 if (isPositioned())
1010 return "RenderFlexibleBox (positioned)"; 1010 return "RenderFlexibleBox (positioned)";
1011 if (isAnonymous()) 1011 if (isAnonymous())
1012 return "RenderFlexibleBox (generated)"; 1012 return "RenderFlexibleBox (generated)";
1013 if (isRelPositioned()) 1013 if (isRelPositioned())
1014 return "RenderFlexibleBox (relative positioned)"; 1014 return "RenderFlexibleBox (relative positioned)";
1015 return "RenderFlexibleBox"; 1015 return "RenderFlexibleBox";
1016 } 1016 }
1017 1017
1018 } // namespace WebCore 1018 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/fast/flexbox/crash-button-relayout-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698