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

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElement.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 GetDocument().Lifecycle()); 534 GetDocument().Lifecycle());
535 const SelectionInDOMTree& selection = 535 const SelectionInDOMTree& selection =
536 frame->Selection().GetSelectionInDOMTree(); 536 frame->Selection().GetSelectionInDOMTree();
537 if (selection.Granularity() == kCharacterGranularity) { 537 if (selection.Granularity() == kCharacterGranularity) {
538 return IndexForPosition(InnerEditorElement(), 538 return IndexForPosition(InnerEditorElement(),
539 selection.ComputeEndPosition()); 539 selection.ComputeEndPosition());
540 } 540 }
541 } 541 }
542 const VisibleSelection& visible_selection = 542 const VisibleSelection& visible_selection =
543 frame->Selection().ComputeVisibleSelectionInDOMTreeDeprecated(); 543 frame->Selection().ComputeVisibleSelectionInDOMTreeDeprecated();
544 return IndexForPosition(InnerEditorElement(), visible_selection.end()); 544 return IndexForPosition(InnerEditorElement(), visible_selection.End());
545 } 545 }
546 546
547 static const AtomicString& DirectionString( 547 static const AtomicString& DirectionString(
548 TextFieldSelectionDirection direction) { 548 TextFieldSelectionDirection direction) {
549 DEFINE_STATIC_LOCAL(const AtomicString, none, ("none")); 549 DEFINE_STATIC_LOCAL(const AtomicString, none, ("none"));
550 DEFINE_STATIC_LOCAL(const AtomicString, forward, ("forward")); 550 DEFINE_STATIC_LOCAL(const AtomicString, forward, ("forward"));
551 DEFINE_STATIC_LOCAL(const AtomicString, backward, ("backward")); 551 DEFINE_STATIC_LOCAL(const AtomicString, backward, ("backward"));
552 552
553 switch (direction) { 553 switch (direction) {
554 case kSelectionHasNoDirection: 554 case kSelectionHasNoDirection:
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 971
972 void TextControlElement::CopyNonAttributePropertiesFromElement( 972 void TextControlElement::CopyNonAttributePropertiesFromElement(
973 const Element& source) { 973 const Element& source) {
974 const TextControlElement& source_element = 974 const TextControlElement& source_element =
975 static_cast<const TextControlElement&>(source); 975 static_cast<const TextControlElement&>(source);
976 last_change_was_user_edit_ = source_element.last_change_was_user_edit_; 976 last_change_was_user_edit_ = source_element.last_change_was_user_edit_;
977 HTMLFormControlElement::CopyNonAttributePropertiesFromElement(source); 977 HTMLFormControlElement::CopyNonAttributePropertiesFromElement(source);
978 } 978 }
979 979
980 } // namespace blink 980 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698