| 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. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2465 // Respect the image's orientation if it's being used as a full-page image or | 2465 // Respect the image's orientation if it's being used as a full-page image or |
| 2466 // it's an <img> and the setting to respect it everywhere is set or the <img> | 2466 // it's an <img> and the setting to respect it everywhere is set or the <img> |
| 2467 // has image-orientation: from-image style. FIXME: crbug.com/498233 | 2467 // has image-orientation: from-image style. FIXME: crbug.com/498233 |
| 2468 if (layoutObject->document().isImageDocument()) | 2468 if (layoutObject->document().isImageDocument()) |
| 2469 return RespectImageOrientation; | 2469 return RespectImageOrientation; |
| 2470 | 2470 |
| 2471 if (!isHTMLImageElement(layoutObject->node())) | 2471 if (!isHTMLImageElement(layoutObject->node())) |
| 2472 return DoNotRespectImageOrientation; | 2472 return DoNotRespectImageOrientation; |
| 2473 | 2473 |
| 2474 if (layoutObject->document().settings() && | 2474 if (layoutObject->document().settings() && |
| 2475 layoutObject->document().settings()->shouldRespectImageOrientation()) | 2475 layoutObject->document().settings()->getShouldRespectImageOrientation()) |
| 2476 return RespectImageOrientation; | 2476 return RespectImageOrientation; |
| 2477 | 2477 |
| 2478 if (layoutObject->style() && | 2478 if (layoutObject->style() && |
| 2479 layoutObject->style()->respectImageOrientation() == | 2479 layoutObject->style()->respectImageOrientation() == |
| 2480 RespectImageOrientation) | 2480 RespectImageOrientation) |
| 2481 return RespectImageOrientation; | 2481 return RespectImageOrientation; |
| 2482 | 2482 |
| 2483 return DoNotRespectImageOrientation; | 2483 return DoNotRespectImageOrientation; |
| 2484 } | 2484 } |
| 2485 | 2485 |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3119 return false; | 3119 return false; |
| 3120 | 3120 |
| 3121 // If we're not in a window (i.e., we're dormant from being in a background | 3121 // If we're not in a window (i.e., we're dormant from being in a background |
| 3122 // tab) then we don't want to render either. | 3122 // tab) then we don't want to render either. |
| 3123 return document().view()->isVisible(); | 3123 return document().view()->isVisible(); |
| 3124 } | 3124 } |
| 3125 | 3125 |
| 3126 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { | 3126 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { |
| 3127 if (!document().settings()) | 3127 if (!document().settings()) |
| 3128 return false; | 3128 return false; |
| 3129 policy = document().settings()->imageAnimationPolicy(); | 3129 policy = document().settings()->getImageAnimationPolicy(); |
| 3130 return true; | 3130 return true; |
| 3131 } | 3131 } |
| 3132 | 3132 |
| 3133 int LayoutObject::caretMinOffset() const { | 3133 int LayoutObject::caretMinOffset() const { |
| 3134 return 0; | 3134 return 0; |
| 3135 } | 3135 } |
| 3136 | 3136 |
| 3137 int LayoutObject::caretMaxOffset() const { | 3137 int LayoutObject::caretMaxOffset() const { |
| 3138 if (isAtomicInlineLevel()) | 3138 if (isAtomicInlineLevel()) |
| 3139 return node() ? std::max(1U, node()->countChildren()) : 1; | 3139 return node() ? std::max(1U, node()->countChildren()) : 1; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3512 const blink::LayoutObject* root = object1; | 3512 const blink::LayoutObject* root = object1; |
| 3513 while (root->parent()) | 3513 while (root->parent()) |
| 3514 root = root->parent(); | 3514 root = root->parent(); |
| 3515 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3515 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3516 } else { | 3516 } else { |
| 3517 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3517 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
| 3518 } | 3518 } |
| 3519 } | 3519 } |
| 3520 | 3520 |
| 3521 #endif | 3521 #endif |
| OLD | NEW |