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

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

Issue 2920733002: Rename VisibleSelection::end() to End() (Closed)
Patch Set: 2017-06-01T18:31:38 Created 3 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
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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 if (plugin_container) 1105 if (plugin_container)
1106 return plugin_container->Plugin()->HasSelection(); 1106 return plugin_container->Plugin()->HasSelection();
1107 1107
1108 // frame()->selection()->isNone() never returns true. 1108 // frame()->selection()->isNone() never returns true.
1109 return GetFrame() 1109 return GetFrame()
1110 ->Selection() 1110 ->Selection()
1111 .ComputeVisibleSelectionInDOMTreeDeprecated() 1111 .ComputeVisibleSelectionInDOMTreeDeprecated()
1112 .Start() != GetFrame() 1112 .Start() != GetFrame()
1113 ->Selection() 1113 ->Selection()
1114 .ComputeVisibleSelectionInDOMTreeDeprecated() 1114 .ComputeVisibleSelectionInDOMTreeDeprecated()
1115 .end(); 1115 .End();
1116 } 1116 }
1117 1117
1118 WebRange WebLocalFrameImpl::SelectionRange() const { 1118 WebRange WebLocalFrameImpl::SelectionRange() const {
1119 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets 1119 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets
1120 // needs to be audited. See http://crbug.com/590369 for more details. 1120 // needs to be audited. See http://crbug.com/590369 for more details.
1121 GetFrame()->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); 1121 GetFrame()->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets();
1122 1122
1123 return GetFrame() 1123 return GetFrame()
1124 ->Selection() 1124 ->Selection()
1125 .ComputeVisibleSelectionInDOMTreeDeprecated() 1125 .ComputeVisibleSelectionInDOMTreeDeprecated()
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { 2602 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
2603 return *text_checker_client_; 2603 return *text_checker_client_;
2604 } 2604 }
2605 2605
2606 void WebLocalFrameImpl::SetTextCheckClient( 2606 void WebLocalFrameImpl::SetTextCheckClient(
2607 WebTextCheckClient* text_check_client) { 2607 WebTextCheckClient* text_check_client) {
2608 text_check_client_ = text_check_client; 2608 text_check_client_ = text_check_client;
2609 } 2609 }
2610 2610
2611 } // namespace blink 2611 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698