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

Side by Side Diff: sky/engine/core/frame/FrameView.cpp

Issue 771323002: Remove a couple more core/ header includes from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698