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

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

Issue 2723663002: Refactor DocumentMarkerController (Closed)
Patch Set: 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 2553 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 return page && page->focusController().isActive(); 2564 return page && page->focusController().isActive();
2565 } 2565 }
2566 2566
2567 void FrameView::invalidatePaintForTickmarks() { 2567 void FrameView::invalidatePaintForTickmarks() {
2568 if (Scrollbar* scrollbar = verticalScrollbar()) 2568 if (Scrollbar* scrollbar = verticalScrollbar())
2569 scrollbar->setNeedsPaintInvalidation( 2569 scrollbar->setNeedsPaintInvalidation(
2570 static_cast<ScrollbarPart>(~ThumbPart)); 2570 static_cast<ScrollbarPart>(~ThumbPart));
2571 } 2571 }
2572 2572
2573 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const { 2573 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const {
2574 if (!m_tickmarks.isEmpty()) 2574 if (!m_tickmarks.isEmpty()) {
2575 tickmarks = m_tickmarks; 2575 tickmarks = m_tickmarks;
2576 else 2576 } else {
2577 tickmarks = frame().document()->markers().renderedRectsForMarkers( 2577 tickmarks =
2578 DocumentMarker::TextMatch); 2578 frame().document()->markers().renderedRectsForTextMatchMarkers();
2579 }
2579 } 2580 }
2580 2581
2581 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset, 2582 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset,
2582 float contentScaleFactor) { 2583 float contentScaleFactor) {
2583 m_inputEventsOffsetForEmulation = offset; 2584 m_inputEventsOffsetForEmulation = offset;
2584 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 2585 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
2585 } 2586 }
2586 2587
2587 IntSize FrameView::inputEventsOffsetForEmulation() const { 2588 IntSize FrameView::inputEventsOffsetForEmulation() const {
2588 return m_inputEventsOffsetForEmulation; 2589 return m_inputEventsOffsetForEmulation;
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
5212 void FrameView::setAnimationHost( 5213 void FrameView::setAnimationHost(
5213 std::unique_ptr<CompositorAnimationHost> host) { 5214 std::unique_ptr<CompositorAnimationHost> host) {
5214 m_animationHost = std::move(host); 5215 m_animationHost = std::move(host);
5215 } 5216 }
5216 5217
5217 LayoutUnit FrameView::caretWidth() const { 5218 LayoutUnit FrameView::caretWidth() const {
5218 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5219 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5219 } 5220 }
5220 5221
5221 } // namespace blink 5222 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698