Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2587913002: Rename activeDOMObjectsAreSuspended to isContextSuspended (Closed)
Patch Set: temp Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 regions.append(region); 3115 regions.append(region);
3116 } 3116 }
3117 3117
3118 bool LayoutObject::willRenderImage() { 3118 bool LayoutObject::willRenderImage() {
3119 // Without visibility we won't render (and therefore don't care about 3119 // Without visibility we won't render (and therefore don't care about
3120 // animation). 3120 // animation).
3121 if (style()->visibility() != EVisibility::Visible) 3121 if (style()->visibility() != EVisibility::Visible)
3122 return false; 3122 return false;
3123 3123
3124 // We will not render a new image when SuspendableObjects is suspended 3124 // We will not render a new image when SuspendableObjects is suspended
3125 if (document().activeDOMObjectsAreSuspended()) 3125 if (document().isContextSuspended())
3126 return false; 3126 return false;
3127 3127
3128 // If we're not in a window (i.e., we're dormant from being in a background 3128 // If we're not in a window (i.e., we're dormant from being in a background
3129 // tab) then we don't want to render either. 3129 // tab) then we don't want to render either.
3130 return document().view()->isVisible(); 3130 return document().view()->isVisible();
3131 } 3131 }
3132 3132
3133 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) { 3133 bool LayoutObject::getImageAnimationPolicy(ImageAnimationPolicy& policy) {
3134 if (!document().settings()) 3134 if (!document().settings())
3135 return false; 3135 return false;
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
3519 const blink::LayoutObject* root = object1; 3519 const blink::LayoutObject* root = object1;
3520 while (root->parent()) 3520 while (root->parent())
3521 root = root->parent(); 3521 root = root->parent();
3522 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3522 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3523 } else { 3523 } else {
3524 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3524 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3525 } 3525 }
3526 } 3526 }
3527 3527
3528 #endif 3528 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698