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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 return WebString(); | 1456 return WebString(); |
1457 StringBuilder text; | 1457 StringBuilder text; |
1458 frameContentAsPlainText(maxChars, frame(), text); | 1458 frameContentAsPlainText(maxChars, frame(), text); |
1459 return text.toString(); | 1459 return text.toString(); |
1460 } | 1460 } |
1461 | 1461 |
1462 WebString WebLocalFrameImpl::contentAsMarkup() const | 1462 WebString WebLocalFrameImpl::contentAsMarkup() const |
1463 { | 1463 { |
1464 if (!frame()) | 1464 if (!frame()) |
1465 return WebString(); | 1465 return WebString(); |
1466 return createFullMarkup(frame()->document()); | 1466 return createMarkup(frame()->document()); |
1467 } | 1467 } |
1468 | 1468 |
1469 WebString WebLocalFrameImpl::renderTreeAsText(RenderAsTextControls toShow) const | 1469 WebString WebLocalFrameImpl::renderTreeAsText(RenderAsTextControls toShow) const |
1470 { | 1470 { |
1471 RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal; | 1471 RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal; |
1472 | 1472 |
1473 if (toShow & RenderAsTextDebug) | 1473 if (toShow & RenderAsTextDebug) |
1474 behavior |= RenderAsTextShowCompositedLayers | RenderAsTextShowAddresses
| RenderAsTextShowIDAndClass | RenderAsTextShowLayerNesting; | 1474 behavior |= RenderAsTextShowCompositedLayers | RenderAsTextShowAddresses
| RenderAsTextShowIDAndClass | RenderAsTextShowLayerNesting; |
1475 | 1475 |
1476 if (toShow & RenderAsTextPrinting) | 1476 if (toShow & RenderAsTextPrinting) |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 | 1869 |
1870 void WebLocalFrameImpl::invalidateAll() const | 1870 void WebLocalFrameImpl::invalidateAll() const |
1871 { | 1871 { |
1872 ASSERT(frame() && frame()->view()); | 1872 ASSERT(frame() && frame()->view()); |
1873 FrameView* view = frame()->view(); | 1873 FrameView* view = frame()->view(); |
1874 view->invalidateRect(view->frameRect()); | 1874 view->invalidateRect(view->frameRect()); |
1875 invalidateScrollbar(); | 1875 invalidateScrollbar(); |
1876 } | 1876 } |
1877 | 1877 |
1878 } // namespace blink | 1878 } // namespace blink |
OLD | NEW |