| 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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 GraphicsLayerPaintingPhase, | 674 GraphicsLayerPaintingPhase, |
| 675 const IntRect&) const {} | 675 const IntRect&) const {} |
| 676 | 676 |
| 677 LocalFrame* VisualViewport::mainFrame() const { | 677 LocalFrame* VisualViewport::mainFrame() const { |
| 678 return frameHost().page().mainFrame() && | 678 return frameHost().page().mainFrame() && |
| 679 frameHost().page().mainFrame()->isLocalFrame() | 679 frameHost().page().mainFrame()->isLocalFrame() |
| 680 ? frameHost().page().deprecatedLocalMainFrame() | 680 ? frameHost().page().deprecatedLocalMainFrame() |
| 681 : 0; | 681 : 0; |
| 682 } | 682 } |
| 683 | 683 |
| 684 Widget* VisualViewport::getWidget() { | 684 FrameViewBase* VisualViewport::getWidget() { |
| 685 return mainFrame()->view(); | 685 return mainFrame()->view(); |
| 686 } | 686 } |
| 687 | 687 |
| 688 void VisualViewport::clampToBoundaries() { | 688 void VisualViewport::clampToBoundaries() { |
| 689 setLocation(FloatPoint(m_offset)); | 689 setLocation(FloatPoint(m_offset)); |
| 690 } | 690 } |
| 691 | 691 |
| 692 FloatRect VisualViewport::viewportToRootFrame( | 692 FloatRect VisualViewport::viewportToRootFrame( |
| 693 const FloatRect& rectInViewport) const { | 693 const FloatRect& rectInViewport) const { |
| 694 FloatRect rectInRootFrame = rectInViewport; | 694 FloatRect rectInRootFrame = rectInViewport; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 } else if (graphicsLayer == m_rootTransformLayer.get()) { | 855 } else if (graphicsLayer == m_rootTransformLayer.get()) { |
| 856 name = "Root Transform Layer"; | 856 name = "Root Transform Layer"; |
| 857 } else { | 857 } else { |
| 858 ASSERT_NOT_REACHED(); | 858 ASSERT_NOT_REACHED(); |
| 859 } | 859 } |
| 860 | 860 |
| 861 return name; | 861 return name; |
| 862 } | 862 } |
| 863 | 863 |
| 864 } // namespace blink | 864 } // namespace blink |
| OLD | NEW |