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

Side by Side Diff: Source/core/page/Page.cpp

Issue 181693003: Have Document::markers() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/page/EventHandler.cpp ('k') | Source/core/rendering/HitTestResult.cpp » ('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) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 : curr->tree().traversePreviousWithWrap(wrapFlag); 319 : curr->tree().traversePreviousWithWrap(wrapFlag);
320 } 320 }
321 321
322 void Page::unmarkAllTextMatches() 322 void Page::unmarkAllTextMatches()
323 { 323 {
324 if (!mainFrame()) 324 if (!mainFrame())
325 return; 325 return;
326 326
327 LocalFrame* frame = mainFrame(); 327 LocalFrame* frame = mainFrame();
328 do { 328 do {
329 frame->document()->markers()->removeMarkers(DocumentMarker::TextMatch); 329 frame->document()->markers().removeMarkers(DocumentMarker::TextMatch);
330 frame = incrementFrame(frame, true, false); 330 frame = incrementFrame(frame, true, false);
331 } while (frame); 331 } while (frame);
332 } 332 }
333 333
334 void Page::setDefersLoading(bool defers) 334 void Page::setDefersLoading(bool defers)
335 { 335 {
336 if (defers == m_defersLoading) 336 if (defers == m_defersLoading)
337 return; 337 return;
338 338
339 m_defersLoading = defers; 339 m_defersLoading = defers;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 , spellCheckerClient(0) 557 , spellCheckerClient(0)
558 , storageClient(0) 558 , storageClient(0)
559 { 559 {
560 } 560 }
561 561
562 Page::PageClients::~PageClients() 562 Page::PageClients::~PageClients()
563 { 563 {
564 } 564 }
565 565
566 } // namespace WebCore 566 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698