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

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

Issue 1428643004: Repaint on interest rect change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableSyncPaint
Patch Set: Created 5 years, 1 month 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 GraphicsLayer* VisualViewport::layerForHorizontalScrollbar() const 567 GraphicsLayer* VisualViewport::layerForHorizontalScrollbar() const
568 { 568 {
569 return m_overlayScrollbarHorizontal.get(); 569 return m_overlayScrollbarHorizontal.get();
570 } 570 }
571 571
572 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const 572 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const
573 { 573 {
574 return m_overlayScrollbarVertical.get(); 574 return m_overlayScrollbarVertical.get();
575 } 575 }
576 576
577 void VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Graph icsLayerPaintingPhase, const IntRect& inClip) const 577 void VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Graph icsLayerPaintingPhase, const IntRect* inClip) const
578 { 578 {
579 } 579 }
580 580
581 void VisualViewport::paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext &, GraphicsLayerPaintingPhase) const
582 {
583 }
584
585 LocalFrame* VisualViewport::mainFrame() const 581 LocalFrame* VisualViewport::mainFrame() const
586 { 582 {
587 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0; 583 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0;
588 } 584 }
589 585
590 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset) 586 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset)
591 { 587 {
592 FloatPoint clampedOffset(offset); 588 FloatPoint clampedOffset(offset);
593 clampedOffset = clampedOffset.shrunkTo(FloatPoint(maximumScrollPositionDoubl e())); 589 clampedOffset = clampedOffset.shrunkTo(FloatPoint(maximumScrollPositionDoubl e()));
594 clampedOffset = clampedOffset.expandedTo(FloatPoint(minimumScrollPositionDou ble())); 590 clampedOffset = clampedOffset.expandedTo(FloatPoint(minimumScrollPositionDou ble()));
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 } else if (graphicsLayer == m_rootTransformLayer) { 732 } else if (graphicsLayer == m_rootTransformLayer) {
737 name = "Root Transform Layer"; 733 name = "Root Transform Layer";
738 } else { 734 } else {
739 ASSERT_NOT_REACHED(); 735 ASSERT_NOT_REACHED();
740 } 736 }
741 737
742 return name; 738 return name;
743 } 739 }
744 740
745 } // namespace blink 741 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698