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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 486493002: Merge AcceleratedCompositingForOverflowScroll into PreferCompositingToLCDText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm-overflowscroll: imagefailure Created 6 years, 4 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 exceptionState.throwDOMException(InvalidAccessError, renderer ? "The pro vided element's renderer is not a box." : "The provided element has no renderer. "); 1542 exceptionState.throwDOMException(InvalidAccessError, renderer ? "The pro vided element's renderer is not a box." : "The provided element has no renderer. ");
1543 return 0; 1543 return 0;
1544 } 1544 }
1545 1545
1546 RenderLayer* layer = toRenderBox(renderer)->layer(); 1546 RenderLayer* layer = toRenderBox(renderer)->layer();
1547 if (!layer) { 1547 if (!layer) {
1548 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca n be obtained from the provided element."); 1548 exceptionState.throwDOMException(InvalidAccessError, "No render layer ca n be obtained from the provided element.");
1549 return 0; 1549 return 0;
1550 } 1550 }
1551 1551
1552 // We used to compute isUnclippedDescendant only when acceleratedCompositing ForOverflowScrollEnabled, 1552 // We used to compute isUnclippedDescendant only when preferCompositingToLCD TextEnabled,
1553 // but now we compute it all the time. 1553 // but now we compute it all the time.
1554 // FIXME: Remove this if statement and rebaseline the tests that make this a ssumption. 1554 // FIXME: Remove this if statement and rebaseline the tests that make this a ssumption.
1555 if (!layer->compositor()->acceleratedCompositingForOverflowScrollEnabled()) 1555 if (!layer->compositor()->preferCompositingToLCDTextEnabled())
1556 return false; 1556 return false;
1557 1557
1558 return layer->isUnclippedDescendant(); 1558 return layer->isUnclippedDescendant();
1559 } 1559 }
1560 1560
1561 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS tate& exceptionState) const 1561 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionS tate& exceptionState) const
1562 { 1562 {
1563 ASSERT(document); 1563 ASSERT(document);
1564 if (!document->frame()) { 1564 if (!document->frame()) {
1565 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid."); 1565 exceptionState.throwDOMException(InvalidAccessError, "The document provi ded is invalid.");
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 { 2220 {
2221 Vector<Document::TransitionElementData> elementData; 2221 Vector<Document::TransitionElementData> elementData;
2222 frame()->document()->getTransitionElementData(elementData); 2222 frame()->document()->getTransitionElementData(elementData);
2223 2223
2224 Vector<Document::TransitionElementData>::iterator iter = elementData.begin() ; 2224 Vector<Document::TransitionElementData>::iterator iter = elementData.begin() ;
2225 for (; iter != elementData.end(); ++iter) 2225 for (; iter != elementData.end(); ++iter)
2226 frame()->document()->hideTransitionElements(AtomicString(iter->selector) ); 2226 frame()->document()->hideTransitionElements(AtomicString(iter->selector) );
2227 } 2227 }
2228 2228
2229 } // namespace blink 2229 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698