| OLD | NEW |
| 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 return paintOrderList(element, ec, RenderLayer::AfterPromote); | 1487 return paintOrderList(element, ec, RenderLayer::AfterPromote); |
| 1488 } | 1488 } |
| 1489 | 1489 |
| 1490 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionC
ode& ec) const | 1490 String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionC
ode& ec) const |
| 1491 { | 1491 { |
| 1492 if (!document || !document->frame()) { | 1492 if (!document || !document->frame()) { |
| 1493 ec = INVALID_ACCESS_ERR; | 1493 ec = INVALID_ACCESS_ERR; |
| 1494 return String(); | 1494 return String(); |
| 1495 } | 1495 } |
| 1496 | 1496 |
| 1497 LayerTreeFlags layerTreeFlags = 0; | 1497 return document->frame()->layerTreeAsText(flags); |
| 1498 if (flags & LAYER_TREE_INCLUDES_VISIBLE_RECTS) | |
| 1499 layerTreeFlags |= LayerTreeFlagsIncludeVisibleRects; | |
| 1500 if (flags & LAYER_TREE_INCLUDES_TILE_CACHES) | |
| 1501 layerTreeFlags |= LayerTreeFlagsIncludeTileCaches; | |
| 1502 if (flags & LAYER_TREE_INCLUDES_REPAINT_RECTS) | |
| 1503 layerTreeFlags |= LayerTreeFlagsIncludeRepaintRects; | |
| 1504 if (flags & LAYER_TREE_INCLUDES_PAINTING_PHASES) | |
| 1505 layerTreeFlags |= LayerTreeFlagsIncludePaintingPhases; | |
| 1506 | |
| 1507 return document->frame()->layerTreeAsText(layerTreeFlags); | |
| 1508 } | 1498 } |
| 1509 | 1499 |
| 1510 void Internals::setNeedsCompositedScrolling(Element* element, unsigned needsComp
ositedScrolling, ExceptionCode& ec) | 1500 void Internals::setNeedsCompositedScrolling(Element* element, unsigned needsComp
ositedScrolling, ExceptionCode& ec) |
| 1511 { | 1501 { |
| 1512 if (!element) { | 1502 if (!element) { |
| 1513 ec = INVALID_ACCESS_ERR; | 1503 ec = INVALID_ACCESS_ERR; |
| 1514 return; | 1504 return; |
| 1515 } | 1505 } |
| 1516 | 1506 |
| 1517 element->document()->updateLayout(); | 1507 element->document()->updateLayout(); |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 | 1912 |
| 1923 RenderObject* renderer = select->renderer(); | 1913 RenderObject* renderer = select->renderer(); |
| 1924 if (!renderer->isMenuList()) | 1914 if (!renderer->isMenuList()) |
| 1925 return false; | 1915 return false; |
| 1926 | 1916 |
| 1927 RenderMenuList* menuList = toRenderMenuList(renderer); | 1917 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 1928 return menuList->popupIsVisible(); | 1918 return menuList->popupIsVisible(); |
| 1929 } | 1919 } |
| 1930 | 1920 |
| 1931 } | 1921 } |
| OLD | NEW |