| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 { | 1560 { |
| 1561 if (!frame()) | 1561 if (!frame()) |
| 1562 return WebString(); | 1562 return WebString(); |
| 1563 return createMarkup(frame()->document()); | 1563 return createMarkup(frame()->document()); |
| 1564 } | 1564 } |
| 1565 | 1565 |
| 1566 WebString WebLocalFrameImpl::layoutTreeAsText(LayoutAsTextControls toShow) const | 1566 WebString WebLocalFrameImpl::layoutTreeAsText(LayoutAsTextControls toShow) const |
| 1567 { | 1567 { |
| 1568 LayoutAsTextBehavior behavior = LayoutAsTextShowAllLayers; | 1568 LayoutAsTextBehavior behavior = LayoutAsTextShowAllLayers; |
| 1569 | 1569 |
| 1570 if (toShow & LayoutAsTextWithLineTrees) |
| 1571 behavior |= LayoutAsTextShowLineTrees; |
| 1572 |
| 1570 if (toShow & LayoutAsTextDebug) | 1573 if (toShow & LayoutAsTextDebug) |
| 1571 behavior |= LayoutAsTextShowCompositedLayers | LayoutAsTextShowAddresses
| LayoutAsTextShowIDAndClass | LayoutAsTextShowLayerNesting; | 1574 behavior |= LayoutAsTextShowCompositedLayers | LayoutAsTextShowAddresses
| LayoutAsTextShowIDAndClass | LayoutAsTextShowLayerNesting; |
| 1572 | 1575 |
| 1573 if (toShow & LayoutAsTextPrinting) | 1576 if (toShow & LayoutAsTextPrinting) |
| 1574 behavior |= LayoutAsTextPrintingMode; | 1577 behavior |= LayoutAsTextPrintingMode; |
| 1575 | 1578 |
| 1576 return externalRepresentation(frame(), behavior); | 1579 return externalRepresentation(frame(), behavior); |
| 1577 } | 1580 } |
| 1578 | 1581 |
| 1579 WebString WebLocalFrameImpl::markerTextForListItem(const WebElement& webElement)
const | 1582 WebString WebLocalFrameImpl::markerTextForListItem(const WebElement& webElement)
const |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 { | 2115 { |
| 2113 m_frameWidget = frameWidget; | 2116 m_frameWidget = frameWidget; |
| 2114 } | 2117 } |
| 2115 | 2118 |
| 2116 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2119 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2117 { | 2120 { |
| 2118 return m_frameWidget; | 2121 return m_frameWidget; |
| 2119 } | 2122 } |
| 2120 | 2123 |
| 2121 } // namespace blink | 2124 } // namespace blink |
| OLD | NEW |