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

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

Issue 2723663002: Refactor DocumentMarkerController (Closed)
Patch Set: Use correct base commit Created 3 years, 9 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 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 return page && page->focusController().isActive(); 2589 return page && page->focusController().isActive();
2590 } 2590 }
2591 2591
2592 void FrameView::invalidatePaintForTickmarks() { 2592 void FrameView::invalidatePaintForTickmarks() {
2593 if (Scrollbar* scrollbar = verticalScrollbar()) 2593 if (Scrollbar* scrollbar = verticalScrollbar())
2594 scrollbar->setNeedsPaintInvalidation( 2594 scrollbar->setNeedsPaintInvalidation(
2595 static_cast<ScrollbarPart>(~ThumbPart)); 2595 static_cast<ScrollbarPart>(~ThumbPart));
2596 } 2596 }
2597 2597
2598 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const { 2598 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const {
2599 if (!m_tickmarks.isEmpty()) 2599 if (!m_tickmarks.isEmpty()) {
Xiaocheng 2017/03/21 03:59:44 This change is irrelevant.
2600 tickmarks = m_tickmarks; 2600 tickmarks = m_tickmarks;
2601 else 2601 } else {
2602 tickmarks = frame().document()->markers().renderedRectsForMarkers( 2602 tickmarks = frame().document()->markers().renderedRectsForMarkers(
2603 DocumentMarker::TextMatch); 2603 DocumentMarker::TextMatch);
2604 }
2604 } 2605 }
2605 2606
2606 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset, 2607 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset,
2607 float contentScaleFactor) { 2608 float contentScaleFactor) {
2608 m_inputEventsOffsetForEmulation = offset; 2609 m_inputEventsOffsetForEmulation = offset;
2609 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 2610 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
2610 } 2611 }
2611 2612
2612 IntSize FrameView::inputEventsOffsetForEmulation() const { 2613 IntSize FrameView::inputEventsOffsetForEmulation() const {
2613 return m_inputEventsOffsetForEmulation; 2614 return m_inputEventsOffsetForEmulation;
(...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after
5261 void FrameView::setAnimationHost( 5262 void FrameView::setAnimationHost(
5262 std::unique_ptr<CompositorAnimationHost> host) { 5263 std::unique_ptr<CompositorAnimationHost> host) {
5263 m_animationHost = std::move(host); 5264 m_animationHost = std::move(host);
5264 } 5265 }
5265 5266
5266 LayoutUnit FrameView::caretWidth() const { 5267 LayoutUnit FrameView::caretWidth() const {
5267 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5268 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5268 } 5269 }
5269 5270
5270 } // namespace blink 5271 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698