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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1180573003: Add option to dump line box tree when dumping layout tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: pointers->references Created 5 years, 6 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
« no previous file with comments | « Source/platform/text/TextStream.cpp ('k') | public/web/WebFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/text/TextStream.cpp ('k') | public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698