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

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

Issue 58543002: Use a boolean hasCompositedLayerMapping() accessor instead of the pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 1 month 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 | Annotate | Revision Log
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 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after
2070 } 2070 }
2071 2071
2072 bool FrameView::isTransparent() const 2072 bool FrameView::isTransparent() const
2073 { 2073 {
2074 return m_isTransparent; 2074 return m_isTransparent;
2075 } 2075 }
2076 2076
2077 void FrameView::setTransparent(bool isTransparent) 2077 void FrameView::setTransparent(bool isTransparent)
2078 { 2078 {
2079 m_isTransparent = isTransparent; 2079 m_isTransparent = isTransparent;
2080 if (renderView() && renderView()->layer()->compositedLayerMapping()) 2080 if (renderView() && renderView()->layer()->hasCompositedLayerMapping())
2081 renderView()->layer()->compositedLayerMapping()->updateContentsOpaque(); 2081 renderView()->layer()->compositedLayerMapping()->updateContentsOpaque();
2082 } 2082 }
2083 2083
2084 bool FrameView::hasOpaqueBackground() const 2084 bool FrameView::hasOpaqueBackground() const
2085 { 2085 {
2086 return !m_isTransparent && !m_baseBackgroundColor.hasAlpha(); 2086 return !m_isTransparent && !m_baseBackgroundColor.hasAlpha();
2087 } 2087 }
2088 2088
2089 Color FrameView::baseBackgroundColor() const 2089 Color FrameView::baseBackgroundColor() const
2090 { 2090 {
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
3492 void FrameView::setLayoutSizeInternal(const IntSize& size) 3492 void FrameView::setLayoutSizeInternal(const IntSize& size)
3493 { 3493 {
3494 if (m_layoutSize == size) 3494 if (m_layoutSize == size)
3495 return; 3495 return;
3496 3496
3497 m_layoutSize = size; 3497 m_layoutSize = size;
3498 contentsResized(); 3498 contentsResized();
3499 } 3499 }
3500 3500
3501 } // namespace WebCore 3501 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | Source/core/rendering/RenderLayerCompositor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698