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

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

Issue 430823002: Drop editing's createFullMarkup() function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Omit optional arguments 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
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | no next file » | 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 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/markup.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698