| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 Element* ownerElement = document().ownerElement(); | 563 Element* ownerElement = document().ownerElement(); |
| 564 if (ownerElement) { | 564 if (ownerElement) { |
| 565 if (!isHTMLFrameElement(*ownerElement)) { | 565 if (!isHTMLFrameElement(*ownerElement)) { |
| 566 // Locate the <body> element using the DOM. This is easier
than trying | 566 // Locate the <body> element using the DOM. This is easier
than trying |
| 567 // to crawl around a render tree with potential :before/:aft
er content and | 567 // to crawl around a render tree with potential :before/:aft
er content and |
| 568 // anonymous blocks created by inline <body> tags etc. We c
an locate the <body> | 568 // anonymous blocks created by inline <body> tags etc. We c
an locate the <body> |
| 569 // render object very easily via the DOM. | 569 // render object very easily via the DOM. |
| 570 HTMLElement* body = document().body(); | 570 HTMLElement* body = document().body(); |
| 571 if (body) { | 571 if (body) { |
| 572 // Can't scroll a frameset document anyway. | 572 // Can't scroll a frameset document anyway. |
| 573 isOpaqueRoot = body->hasLocalName(framesetTag); | 573 isOpaqueRoot = body->hasTagName(framesetTag); |
| 574 } else { | 574 } else { |
| 575 // SVG documents and XML documents with SVG root nodes a
re transparent. | 575 // SVG documents and XML documents with SVG root nodes a
re transparent. |
| 576 isOpaqueRoot = !document().hasSVGRootNode(); | 576 isOpaqueRoot = !document().hasSVGRootNode(); |
| 577 } | 577 } |
| 578 } | 578 } |
| 579 } else | 579 } else |
| 580 isOpaqueRoot = !view()->frameView()->isTransparent(); | 580 isOpaqueRoot = !view()->frameView()->isTransparent(); |
| 581 } | 581 } |
| 582 view()->frameView()->setContentIsOpaque(isOpaqueRoot); | 582 view()->frameView()->setContentIsOpaque(isOpaqueRoot); |
| 583 } | 583 } |
| (...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2727 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); | 2727 ASSERT(!beforeChild || toBoxModelObject == beforeChild->parent()); |
| 2728 for (RenderObject* child = startChild; child && child != endChild; ) { | 2728 for (RenderObject* child = startChild; child && child != endChild; ) { |
| 2729 // Save our next sibling as moveChildTo will clear it. | 2729 // Save our next sibling as moveChildTo will clear it. |
| 2730 RenderObject* nextSibling = child->nextSibling(); | 2730 RenderObject* nextSibling = child->nextSibling(); |
| 2731 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); | 2731 moveChildTo(toBoxModelObject, child, beforeChild, fullRemoveInsert); |
| 2732 child = nextSibling; | 2732 child = nextSibling; |
| 2733 } | 2733 } |
| 2734 } | 2734 } |
| 2735 | 2735 |
| 2736 } // namespace blink | 2736 } // namespace blink |
| OLD | NEW |