OLD | NEW |
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 574 |
575 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const | 575 GraphicsLayer* VisualViewport::layerForVerticalScrollbar() const |
576 { | 576 { |
577 return m_overlayScrollbarVertical.get(); | 577 return m_overlayScrollbarVertical.get(); |
578 } | 578 } |
579 | 579 |
580 void VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Graph
icsLayerPaintingPhase, const IntRect& inClip) const | 580 void VisualViewport::paintContents(const GraphicsLayer*, GraphicsContext&, Graph
icsLayerPaintingPhase, const IntRect& inClip) const |
581 { | 581 { |
582 } | 582 } |
583 | 583 |
| 584 void VisualViewport::paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext
&, GraphicsLayerPaintingPhase) const |
| 585 { |
| 586 } |
| 587 |
584 LocalFrame* VisualViewport::mainFrame() const | 588 LocalFrame* VisualViewport::mainFrame() const |
585 { | 589 { |
586 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL
ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0; | 590 return frameHost().page().mainFrame() && frameHost().page().mainFrame()->isL
ocalFrame() ? frameHost().page().deprecatedLocalMainFrame() : 0; |
587 } | 591 } |
588 | 592 |
589 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset) | 593 FloatPoint VisualViewport::clampOffsetToBoundaries(const FloatPoint& offset) |
590 { | 594 { |
591 FloatPoint clampedOffset(offset); | 595 FloatPoint clampedOffset(offset); |
592 clampedOffset = clampedOffset.shrunkTo(FloatPoint(maximumScrollPositionDoubl
e())); | 596 clampedOffset = clampedOffset.shrunkTo(FloatPoint(maximumScrollPositionDoubl
e())); |
593 clampedOffset = clampedOffset.expandedTo(FloatPoint(minimumScrollPositionDou
ble())); | 597 clampedOffset = clampedOffset.expandedTo(FloatPoint(minimumScrollPositionDou
ble())); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } else if (graphicsLayer == m_rootTransformLayer) { | 739 } else if (graphicsLayer == m_rootTransformLayer) { |
736 name = "Root Transform Layer"; | 740 name = "Root Transform Layer"; |
737 } else { | 741 } else { |
738 ASSERT_NOT_REACHED(); | 742 ASSERT_NOT_REACHED(); |
739 } | 743 } |
740 | 744 |
741 return name; | 745 return name; |
742 } | 746 } |
743 | 747 |
744 } // namespace blink | 748 } // namespace blink |
OLD | NEW |