| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 | 1010 |
| 1011 void FrameView::setLayoutSizeInternal(const IntSize& size) | 1011 void FrameView::setLayoutSizeInternal(const IntSize& size) |
| 1012 { | 1012 { |
| 1013 if (m_layoutSize == size) | 1013 if (m_layoutSize == size) |
| 1014 return; | 1014 return; |
| 1015 | 1015 |
| 1016 m_layoutSize = size; | 1016 m_layoutSize = size; |
| 1017 contentsResized(); | 1017 contentsResized(); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 void FrameView::countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned
& totalObjects, bool& isPartial) |
| 1021 { |
| 1022 RenderObject* root = layoutRoot(); |
| 1023 isPartial = true; |
| 1024 if (!root) { |
| 1025 isPartial = false; |
| 1026 root = m_frame->contentRenderer(); |
| 1027 } |
| 1028 |
| 1029 needsLayoutObjects = 0; |
| 1030 totalObjects = 0; |
| 1031 |
| 1032 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) { |
| 1033 ++totalObjects; |
| 1034 if (o->needsLayout()) |
| 1035 ++needsLayoutObjects; |
| 1036 } |
| 1037 } |
| 1038 |
| 1020 } // namespace blink | 1039 } // namespace blink |
| OLD | NEW |