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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 selection.isEditable = visibleSelection.isContentEditable(); 1979 selection.isEditable = visibleSelection.isContentEditable();
1980 if (selection.isEditable) { 1980 if (selection.isEditable) {
1981 if (TextControlElement* enclosingTextControlElement = 1981 if (TextControlElement* enclosingTextControlElement =
1982 enclosingTextControl(visibleSelection.rootEditableElement())) { 1982 enclosingTextControl(visibleSelection.rootEditableElement())) {
1983 selection.isEmptyTextControl = 1983 selection.isEmptyTextControl =
1984 enclosingTextControlElement->value().isEmpty(); 1984 enclosingTextControlElement->value().isEmpty();
1985 } 1985 }
1986 } 1986 }
1987 selection.start.isTextDirectionRTL |= 1987 selection.start.isTextDirectionRTL |=
1988 primaryDirectionOf(*visibleSelection.start().anchorNode()) == 1988 primaryDirectionOf(*visibleSelection.start().anchorNode()) ==
1989 TextDirection::Rtl; 1989 TextDirection::kRtl;
1990 selection.end.isTextDirectionRTL |= 1990 selection.end.isTextDirectionRTL |=
1991 primaryDirectionOf(*visibleSelection.end().anchorNode()) == 1991 primaryDirectionOf(*visibleSelection.end().anchorNode()) ==
1992 TextDirection::Rtl; 1992 TextDirection::kRtl;
1993 1993
1994 return true; 1994 return true;
1995 } 1995 }
1996 1996
1997 void FrameView::updateCompositedSelectionIfNeeded() { 1997 void FrameView::updateCompositedSelectionIfNeeded() {
1998 if (!RuntimeEnabledFeatures::compositedSelectionUpdateEnabled()) 1998 if (!RuntimeEnabledFeatures::compositedSelectionUpdateEnabled())
1999 return; 1999 return;
2000 2000
2001 TRACE_EVENT0("blink", "FrameView::updateCompositedSelectionIfNeeded"); 2001 TRACE_EVENT0("blink", "FrameView::updateCompositedSelectionIfNeeded");
2002 2002
(...skipping 2899 matching lines...) Expand 10 before | Expand all | Expand 10 after
4902 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount; 4902 reason < MainThreadScrollingReason::kMainThreadScrollingReasonCount;
4903 ++reason) { 4903 ++reason) {
4904 if (m_mainThreadScrollingReasonsCounter[reason] > 0) { 4904 if (m_mainThreadScrollingReasonsCounter[reason] > 0) {
4905 reasons |= 1 << (reason - 1); 4905 reasons |= 1 << (reason - 1);
4906 } 4906 }
4907 } 4907 }
4908 return reasons; 4908 return reasons;
4909 } 4909 }
4910 4910
4911 } // namespace blink 4911 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698