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 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1917 } else | 1917 } else |
1918 s_affectsParentBlock = false; | 1918 s_affectsParentBlock = false; |
1919 | 1919 |
1920 if (view()->frameView()) { | 1920 if (view()->frameView()) { |
1921 bool shouldBlitOnFixedBackgroundImage = false; | 1921 bool shouldBlitOnFixedBackgroundImage = false; |
1922 #if ENABLE(FAST_MOBILE_SCROLLING) | 1922 #if ENABLE(FAST_MOBILE_SCROLLING) |
1923 // On low-powered/mobile devices, preventing blitting on a scroll can ca
use noticeable delays | 1923 // On low-powered/mobile devices, preventing blitting on a scroll can ca
use noticeable delays |
1924 // when scrolling a page with a fixed background image. As an optimizati
on, assuming there are | 1924 // when scrolling a page with a fixed background image. As an optimizati
on, assuming there are |
1925 // no fixed positoned elements on the page, we can acclerate scrolling (
via blitting) if we | 1925 // no fixed positoned elements on the page, we can acclerate scrolling (
via blitting) if we |
1926 // ignore the CSS property "background-attachment: fixed". | 1926 // ignore the CSS property "background-attachment: fixed". |
1927 #if PLATFORM(QT) | 1927 shouldBlitOnFixedBackgroundImage = true; |
1928 if (view()->frameView()->delegatesScrolling()) | |
1929 #endif | |
1930 shouldBlitOnFixedBackgroundImage = true; | |
1931 #endif | 1928 #endif |
1932 | 1929 |
1933 bool newStyleSlowScroll = newStyle && !shouldBlitOnFixedBackgroundImage
&& newStyle->hasFixedBackgroundImage(); | 1930 bool newStyleSlowScroll = newStyle && !shouldBlitOnFixedBackgroundImage
&& newStyle->hasFixedBackgroundImage(); |
1934 bool oldStyleSlowScroll = m_style && !shouldBlitOnFixedBackgroundImage &
& m_style->hasFixedBackgroundImage(); | 1931 bool oldStyleSlowScroll = m_style && !shouldBlitOnFixedBackgroundImage &
& m_style->hasFixedBackgroundImage(); |
1935 | 1932 |
1936 #if USE(ACCELERATED_COMPOSITING) | 1933 #if USE(ACCELERATED_COMPOSITING) |
1937 bool drawsRootBackground = isRoot() || (isBody() && !rendererHasBackgrou
nd(document()->documentElement()->renderer())); | 1934 bool drawsRootBackground = isRoot() || (isBody() && !rendererHasBackgrou
nd(document()->documentElement()->renderer())); |
1938 if (drawsRootBackground && !shouldBlitOnFixedBackgroundImage) { | 1935 if (drawsRootBackground && !shouldBlitOnFixedBackgroundImage) { |
1939 if (view()->compositor()->supportsFixedRootBackgroundCompositing())
{ | 1936 if (view()->compositor()->supportsFixedRootBackgroundCompositing())
{ |
1940 if (newStyleSlowScroll && newStyle->hasEntirelyFixedBackground()
) | 1937 if (newStyleSlowScroll && newStyle->hasEntirelyFixedBackground()
) |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3192 { | 3189 { |
3193 if (object1) { | 3190 if (object1) { |
3194 const WebCore::RenderObject* root = object1; | 3191 const WebCore::RenderObject* root = object1; |
3195 while (root->parent()) | 3192 while (root->parent()) |
3196 root = root->parent(); | 3193 root = root->parent(); |
3197 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3194 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3198 } | 3195 } |
3199 } | 3196 } |
3200 | 3197 |
3201 #endif | 3198 #endif |
OLD | NEW |