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 3098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 region.bounds = LayoutRect(absBounds); | 3109 region.bounds = LayoutRect(absBounds); |
3110 regions.append(region); | 3110 regions.append(region); |
3111 } | 3111 } |
3112 | 3112 |
3113 bool LayoutObject::willRenderImage() { | 3113 bool LayoutObject::willRenderImage() { |
3114 // Without visibility we won't render (and therefore don't care about | 3114 // Without visibility we won't render (and therefore don't care about |
3115 // animation). | 3115 // animation). |
3116 if (style()->visibility() != EVisibility::Visible) | 3116 if (style()->visibility() != EVisibility::Visible) |
3117 return false; | 3117 return false; |
3118 | 3118 |
3119 // We will not render a new image when Active DOM is suspended | 3119 // We will not render a new image when SuspendableObjects is suspended |
3120 if (document().activeDOMObjectsAreSuspended()) | 3120 if (document().activeDOMObjectsAreSuspended()) |
3121 return false; | 3121 return false; |
3122 | 3122 |
3123 // If we're not in a window (i.e., we're dormant from being in a background | 3123 // If we're not in a window (i.e., we're dormant from being in a background |
3124 // tab) then we don't want to render either. | 3124 // tab) then we don't want to render either. |
3125 return document().view()->isVisible(); | 3125 return document().view()->isVisible(); |
3126 } | 3126 } |
3127 | 3127 |
3128 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { | 3128 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { |
3129 if (!document().settings()) | 3129 if (!document().settings()) |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3514 const blink::LayoutObject* root = object1; | 3514 const blink::LayoutObject* root = object1; |
3515 while (root->parent()) | 3515 while (root->parent()) |
3516 root = root->parent(); | 3516 root = root->parent(); |
3517 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3517 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
3518 } else { | 3518 } else { |
3519 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); | 3519 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); |
3520 } | 3520 } |
3521 } | 3521 } |
3522 | 3522 |
3523 #endif | 3523 #endif |
OLD | NEW |