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

Side by Side Diff: Source/WebCore/rendering/RenderObject.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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 | Annotate | Revision Log
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. 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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/platform/text/TextBoundaries.cpp ('k') | Source/WebCore/rendering/RenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698