| 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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2553 | 2553 |
| 2554 RenderObject* RenderObject::rendererForRootBackground() | 2554 RenderObject* RenderObject::rendererForRootBackground() |
| 2555 { | 2555 { |
| 2556 ASSERT(isDocumentElement()); | 2556 ASSERT(isDocumentElement()); |
| 2557 if (!hasBackground() && isHTMLHtmlElement(node())) { | 2557 if (!hasBackground() && isHTMLHtmlElement(node())) { |
| 2558 // Locate the <body> element using the DOM. This is easier than trying | 2558 // Locate the <body> element using the DOM. This is easier than trying |
| 2559 // to crawl around a render tree with potential :before/:after content a
nd | 2559 // to crawl around a render tree with potential :before/:after content a
nd |
| 2560 // anonymous blocks created by inline <body> tags etc. We can locate the
<body> | 2560 // anonymous blocks created by inline <body> tags etc. We can locate the
<body> |
| 2561 // render object very easily via the DOM. | 2561 // render object very easily via the DOM. |
| 2562 HTMLElement* body = document().body(); | 2562 HTMLElement* body = document().body(); |
| 2563 RenderObject* bodyObject = (body && body->hasLocalName(bodyTag)) ? body-
>renderer() : 0; | 2563 RenderObject* bodyObject = isHTMLBodyElement(body) ? body->renderer() :
0; |
| 2564 if (bodyObject) | 2564 if (bodyObject) |
| 2565 return bodyObject; | 2565 return bodyObject; |
| 2566 } | 2566 } |
| 2567 | 2567 |
| 2568 return this; | 2568 return this; |
| 2569 } | 2569 } |
| 2570 | 2570 |
| 2571 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const | 2571 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const |
| 2572 { | 2572 { |
| 2573 // Respect the image's orientation if it's being used as a full-page image o
r it's | 2573 // Respect the image's orientation if it's being used as a full-page image o
r it's |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3445 { | 3445 { |
| 3446 if (object1) { | 3446 if (object1) { |
| 3447 const blink::RenderObject* root = object1; | 3447 const blink::RenderObject* root = object1; |
| 3448 while (root->parent()) | 3448 while (root->parent()) |
| 3449 root = root->parent(); | 3449 root = root->parent(); |
| 3450 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3450 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3451 } | 3451 } |
| 3452 } | 3452 } |
| 3453 | 3453 |
| 3454 #endif | 3454 #endif |
| OLD | NEW |