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

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

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 GraphicsLayer* VisualViewport::layerForHorizontalScrollbar() const 572 GraphicsLayer* VisualViewport::layerForHorizontalScrollbar() const
573 { 573 {
574 return m_overlayScrollbarHorizontal.get(); 574 return m_overlayScrollbarHorizontal.get();
575 } 575 }
576 576
577 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const 577 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const
578 { 578 {
579 return m_overlayScrollbarVertical.get(); 579 return m_overlayScrollbarVertical.get();
580 } 580 }
581 581
582 void VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Graph icsLayerPaintingPhase, const IntRect* inClip) const 582 IntRect VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Gr aphicsLayerPaintingPhase, const IntRect*) const
583 { 583 {
584 return IntRect();
584 } 585 }
585 586
586 LocalFrame* VisualViewport::mainFrame() const 587 LocalFrame* VisualViewport::mainFrame() const
587 { 588 {
588 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0; 589 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0;
589 } 590 }
590 591
591 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset) 592 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset)
592 { 593 {
593 FloatPoint clampedOffset(offset); 594 FloatPoint clampedOffset(offset);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } else if (graphicsLayer == m_rootTransformLayer) { 738 } else if (graphicsLayer == m_rootTransformLayer) {
738 name = "Root Transform Layer"; 739 name = "Root Transform Layer";
739 } else { 740 } else {
740 ASSERT_NOT_REACHED(); 741 ASSERT_NOT_REACHED();
741 } 742 }
742 743
743 return name; 744 return name;
744 } 745 }
745 746
746 } // namespace blink 747 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698