| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |