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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2737883002: Rename LayoutPart::widget to LayoutPart::frameViewBase (Closed)
Patch Set: Rename LayoutPart::widget to LayoutPart::frameViewBase Created 3 years, 9 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
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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 void FrameView::updateGeometries() { 1469 void FrameView::updateGeometries() {
1470 Vector<RefPtr<LayoutPart>> parts; 1470 Vector<RefPtr<LayoutPart>> parts;
1471 copyToVector(m_parts, parts); 1471 copyToVector(m_parts, parts);
1472 1472
1473 for (auto part : parts) { 1473 for (auto part : parts) {
1474 // Script or plugins could detach the frame so abort processing if that 1474 // Script or plugins could detach the frame so abort processing if that
1475 // happens. 1475 // happens.
1476 if (layoutViewItem().isNull()) 1476 if (layoutViewItem().isNull())
1477 break; 1477 break;
1478 1478
1479 if (FrameViewBase* frameViewBase = part->widget()) { 1479 if (FrameViewBase* frameViewBase = part->frameViewBase()) {
1480 if (frameViewBase->isFrameView()) { 1480 if (frameViewBase->isFrameView()) {
1481 FrameView* frameView = toFrameView(frameViewBase); 1481 FrameView* frameView = toFrameView(frameViewBase);
1482 bool didNeedLayout = frameView->needsLayout(); 1482 bool didNeedLayout = frameView->needsLayout();
1483 part->updateGeometry(); 1483 part->updateGeometry();
1484 if (!didNeedLayout && !frameView->shouldThrottleRendering()) 1484 if (!didNeedLayout && !frameView->shouldThrottleRendering())
1485 frameView->checkDoesNotNeedLayout(); 1485 frameView->checkDoesNotNeedLayout();
1486 } else { 1486 } else {
1487 part->updateGeometry(); 1487 part->updateGeometry();
1488 } 1488 }
1489 } 1489 }
(...skipping 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after
5253 void FrameView::setAnimationHost( 5253 void FrameView::setAnimationHost(
5254 std::unique_ptr<CompositorAnimationHost> host) { 5254 std::unique_ptr<CompositorAnimationHost> host) {
5255 m_animationHost = std::move(host); 5255 m_animationHost = std::move(host);
5256 } 5256 }
5257 5257
5258 LayoutUnit FrameView::caretWidth() const { 5258 LayoutUnit FrameView::caretWidth() const {
5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5259 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5260 } 5260 }
5261 5261
5262 } // namespace blink 5262 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698