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

Side by Side Diff: sky/engine/core/rendering/RenderView.cpp

Issue 856563006: Remove background obscuration checks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/rendering/RenderView.h ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 { 447 {
448 m_layoutState = &layoutState; 448 m_layoutState = &layoutState;
449 } 449 }
450 450
451 void RenderView::popLayoutState() 451 void RenderView::popLayoutState()
452 { 452 {
453 ASSERT(m_layoutState); 453 ASSERT(m_layoutState);
454 m_layoutState = m_layoutState->next(); 454 m_layoutState = m_layoutState->next();
455 } 455 }
456 456
457 bool RenderView::backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const
458 {
459 return m_frameView->hasOpaqueBackground();
460 }
461
462 // FIXME(sky): remove 457 // FIXME(sky): remove
463 double RenderView::layoutViewportWidth() const 458 double RenderView::layoutViewportWidth() const
464 { 459 {
465 return viewWidth(IncludeScrollbars); 460 return viewWidth(IncludeScrollbars);
466 } 461 }
467 462
468 // FIXME(sky): remove 463 // FIXME(sky): remove
469 double RenderView::layoutViewportHeight() const 464 double RenderView::layoutViewportHeight() const
470 { 465 {
471 return viewHeight(IncludeScrollbars); 466 return viewHeight(IncludeScrollbars);
472 } 467 }
473 468
474 void RenderView::addIFrame(RenderIFrame* iframe) 469 void RenderView::addIFrame(RenderIFrame* iframe)
475 { 470 {
476 m_iframes.add(iframe); 471 m_iframes.add(iframe);
477 } 472 }
478 473
479 void RenderView::removeIFrame(RenderIFrame* iframe) 474 void RenderView::removeIFrame(RenderIFrame* iframe)
480 { 475 {
481 m_iframes.remove(iframe); 476 m_iframes.remove(iframe);
482 } 477 }
483 478
484 void RenderView::updateIFramesAfterLayout() 479 void RenderView::updateIFramesAfterLayout()
485 { 480 {
486 for (auto& iframe: m_iframes) 481 for (auto& iframe: m_iframes)
487 iframe->updateWidgetBounds(); 482 iframe->updateWidgetBounds();
488 } 483 }
489 484
490 } // namespace blink 485 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderView.h ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698