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

Side by Side Diff: sky/engine/core/frame/FrameView.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/frame/FrameView.h ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('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) 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 bool FrameView::isTransparent() const 553 bool FrameView::isTransparent() const
554 { 554 {
555 return m_isTransparent; 555 return m_isTransparent;
556 } 556 }
557 557
558 void FrameView::setTransparent(bool isTransparent) 558 void FrameView::setTransparent(bool isTransparent)
559 { 559 {
560 m_isTransparent = isTransparent; 560 m_isTransparent = isTransparent;
561 } 561 }
562 562
563 bool FrameView::hasOpaqueBackground() const
564 {
565 return !m_isTransparent && !m_baseBackgroundColor.hasAlpha();
566 }
567
568 Color FrameView::baseBackgroundColor() const 563 Color FrameView::baseBackgroundColor() const
569 { 564 {
570 return m_baseBackgroundColor; 565 return m_baseBackgroundColor;
571 } 566 }
572 567
573 void FrameView::setBaseBackgroundColor(const Color& backgroundColor) 568 void FrameView::setBaseBackgroundColor(const Color& backgroundColor)
574 { 569 {
575 m_baseBackgroundColor = backgroundColor; 570 m_baseBackgroundColor = backgroundColor;
576 } 571 }
577 572
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 totalObjects = 0; 909 totalObjects = 0;
915 910
916 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) { 911 for (RenderObject* o = root; o; o = o->nextInPreOrder(root)) {
917 ++totalObjects; 912 ++totalObjects;
918 if (o->needsLayout()) 913 if (o->needsLayout())
919 ++needsLayoutObjects; 914 ++needsLayoutObjects;
920 } 915 }
921 } 916 }
922 917
923 } // namespace blink 918 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.h ('k') | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698