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 2764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 | 2775 |
2776 // We will not render a new image when Active DOM is suspended | 2776 // We will not render a new image when Active DOM is suspended |
2777 if (document().activeDOMObjectsAreSuspended()) | 2777 if (document().activeDOMObjectsAreSuspended()) |
2778 return false; | 2778 return false; |
2779 | 2779 |
2780 // If we're not in a window (i.e., we're dormant from being in a background
tab) | 2780 // If we're not in a window (i.e., we're dormant from being in a background
tab) |
2781 // then we don't want to render either. | 2781 // then we don't want to render either. |
2782 return document().view()->isVisible(); | 2782 return document().view()->isVisible(); |
2783 } | 2783 } |
2784 | 2784 |
| 2785 bool RenderObject::getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&
policy) |
| 2786 { |
| 2787 if (!document().settings()) |
| 2788 return false; |
| 2789 |
| 2790 policy = document().settings()->imageAnimationPolicy(); |
| 2791 return true; |
| 2792 } |
| 2793 |
2785 int RenderObject::caretMinOffset() const | 2794 int RenderObject::caretMinOffset() const |
2786 { | 2795 { |
2787 return 0; | 2796 return 0; |
2788 } | 2797 } |
2789 | 2798 |
2790 int RenderObject::caretMaxOffset() const | 2799 int RenderObject::caretMaxOffset() const |
2791 { | 2800 { |
2792 if (isReplaced()) | 2801 if (isReplaced()) |
2793 return node() ? std::max(1U, node()->countChildren()) : 1; | 2802 return node() ? std::max(1U, node()->countChildren()) : 1; |
2794 if (isHR()) | 2803 if (isHR()) |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 { | 3118 { |
3110 if (object1) { | 3119 if (object1) { |
3111 const blink::RenderObject* root = object1; | 3120 const blink::RenderObject* root = object1; |
3112 while (root->parent()) | 3121 while (root->parent()) |
3113 root = root->parent(); | 3122 root = root->parent(); |
3114 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3123 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3115 } | 3124 } |
3116 } | 3125 } |
3117 | 3126 |
3118 #endif | 3127 #endif |
OLD | NEW |