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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrameView.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 RenderedPosition rendered_end(visible_end); 2078 RenderedPosition rendered_end(visible_end);
2079 rendered_end.PositionInGraphicsLayerBacking(selection.end, false); 2079 rendered_end.PositionInGraphicsLayerBacking(selection.end, false);
2080 if (!selection.end.layer) 2080 if (!selection.end.layer)
2081 return false; 2081 return false;
2082 2082
2083 selection.type = visible_selection.GetSelectionType(); 2083 selection.type = visible_selection.GetSelectionType();
2084 selection.start.is_text_direction_rtl |= 2084 selection.start.is_text_direction_rtl |=
2085 PrimaryDirectionOf(*visible_selection.Start().AnchorNode()) == 2085 PrimaryDirectionOf(*visible_selection.Start().AnchorNode()) ==
2086 TextDirection::kRtl; 2086 TextDirection::kRtl;
2087 selection.end.is_text_direction_rtl |= 2087 selection.end.is_text_direction_rtl |=
2088 PrimaryDirectionOf(*visible_selection.end().AnchorNode()) == 2088 PrimaryDirectionOf(*visible_selection.End().AnchorNode()) ==
2089 TextDirection::kRtl; 2089 TextDirection::kRtl;
2090 2090
2091 return true; 2091 return true;
2092 } 2092 }
2093 2093
2094 void LocalFrameView::UpdateCompositedSelectionIfNeeded() { 2094 void LocalFrameView::UpdateCompositedSelectionIfNeeded() {
2095 if (!RuntimeEnabledFeatures::compositedSelectionUpdateEnabled()) 2095 if (!RuntimeEnabledFeatures::compositedSelectionUpdateEnabled())
2096 return; 2096 return;
2097 2097
2098 TRACE_EVENT0("blink", "LocalFrameView::updateCompositedSelectionIfNeeded"); 2098 TRACE_EVENT0("blink", "LocalFrameView::updateCompositedSelectionIfNeeded");
(...skipping 3285 matching lines...) Expand 10 before | Expand all | Expand 10 after
5384 void LocalFrameView::SetAnimationHost( 5384 void LocalFrameView::SetAnimationHost(
5385 std::unique_ptr<CompositorAnimationHost> host) { 5385 std::unique_ptr<CompositorAnimationHost> host) {
5386 animation_host_ = std::move(host); 5386 animation_host_ = std::move(host);
5387 } 5387 }
5388 5388
5389 LayoutUnit LocalFrameView::CaretWidth() const { 5389 LayoutUnit LocalFrameView::CaretWidth() const {
5390 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1)); 5390 return LayoutUnit(GetChromeClient()->WindowToViewportScalar(1));
5391 } 5391 }
5392 5392
5393 } // namespace blink 5393 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698