| 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 } | 775 } |
| 776 | 776 |
| 777 void FrameView::paintContents(GraphicsContext* p, const IntRect& rect) | 777 void FrameView::paintContents(GraphicsContext* p, const IntRect& rect) |
| 778 { | 778 { |
| 779 Document* document = m_frame->document(); | 779 Document* document = m_frame->document(); |
| 780 | 780 |
| 781 #ifndef NDEBUG | 781 #ifndef NDEBUG |
| 782 bool fillWithRed; | 782 bool fillWithRed; |
| 783 if (isTransparent()) | 783 if (isTransparent()) |
| 784 fillWithRed = false; // Transparent, don't fill with red. | 784 fillWithRed = false; // Transparent, don't fill with red. |
| 785 else if (m_paintBehavior & PaintBehaviorSelectionOnly) | |
| 786 fillWithRed = false; // Selections are transparent, don't fill with red. | |
| 787 else if (m_nodeToDraw) | 785 else if (m_nodeToDraw) |
| 788 fillWithRed = false; // Element images are transparent, don't fill with
red. | 786 fillWithRed = false; // Element images are transparent, don't fill with
red. |
| 789 else | 787 else |
| 790 fillWithRed = true; | 788 fillWithRed = true; |
| 791 | 789 |
| 792 if (fillWithRed) | 790 if (fillWithRed) |
| 793 p->fillRect(rect, Color(0xFF, 0, 0)); | 791 p->fillRect(rect, Color(0xFF, 0, 0)); |
| 794 #endif | 792 #endif |
| 795 | 793 |
| 796 RenderView* renderView = this->renderView(); | 794 RenderView* renderView = this->renderView(); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 void FrameView::setLayoutSizeInternal(const IntSize& size) | 1015 void FrameView::setLayoutSizeInternal(const IntSize& size) |
| 1018 { | 1016 { |
| 1019 if (m_layoutSize == size) | 1017 if (m_layoutSize == size) |
| 1020 return; | 1018 return; |
| 1021 | 1019 |
| 1022 m_layoutSize = size; | 1020 m_layoutSize = size; |
| 1023 contentsResized(); | 1021 contentsResized(); |
| 1024 } | 1022 } |
| 1025 | 1023 |
| 1026 } // namespace blink | 1024 } // namespace blink |
| OLD | NEW |