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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2536733003: Add tracing for LayoutView::commitPendingSelection (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 DisableCompositingQueryAsserts disabler; 808 DisableCompositingQueryAsserts disabler;
809 809
810 setSelection(0, -1, 0, -1, PaintInvalidationNewMinusOld); 810 setSelection(0, -1, 0, -1, PaintInvalidationNewMinusOld);
811 } 811 }
812 812
813 bool LayoutView::hasPendingSelection() const { 813 bool LayoutView::hasPendingSelection() const {
814 return m_frameView->frame().selection().isAppearanceDirty(); 814 return m_frameView->frame().selection().isAppearanceDirty();
815 } 815 }
816 816
817 void LayoutView::commitPendingSelection() { 817 void LayoutView::commitPendingSelection() {
818 TRACE_EVENT0("blink", "LayoutView::commitPendingSelection");
818 m_frameView->frame().selection().commitAppearanceIfNeeded(*this); 819 m_frameView->frame().selection().commitAppearanceIfNeeded(*this);
819 } 820 }
820 821
821 LayoutObject* LayoutView::selectionStart() { 822 LayoutObject* LayoutView::selectionStart() {
822 commitPendingSelection(); 823 commitPendingSelection();
823 return m_selectionStart; 824 return m_selectionStart;
824 } 825 }
825 826
826 LayoutObject* LayoutView::selectionEnd() { 827 LayoutObject* LayoutView::selectionEnd() {
827 commitPendingSelection(); 828 commitPendingSelection();
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 if (block) 1039 if (block)
1039 block->adjustChildDebugRect(rect); 1040 block->adjustChildDebugRect(rect);
1040 1041
1041 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars))); 1042 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars)));
1042 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars))); 1043 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars)));
1043 1044
1044 return rect; 1045 return rect;
1045 } 1046 }
1046 1047
1047 } // namespace blink 1048 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698