| 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 586 |
| 587 void VisualViewport::setBrowserControlsAdjustment(float adjustment) { | 587 void VisualViewport::setBrowserControlsAdjustment(float adjustment) { |
| 588 m_browserControlsAdjustment = adjustment; | 588 m_browserControlsAdjustment = adjustment; |
| 589 } | 589 } |
| 590 | 590 |
| 591 float VisualViewport::browserControlsAdjustment() const { | 591 float VisualViewport::browserControlsAdjustment() const { |
| 592 return m_browserControlsAdjustment; | 592 return m_browserControlsAdjustment; |
| 593 } | 593 } |
| 594 | 594 |
| 595 IntRect VisualViewport::scrollableAreaBoundingBox() const { | 595 IntRect VisualViewport::scrollableAreaBoundingBox() const { |
| 596 // This method should return the bounding box in the parent view's coordinate | 596 // This method should return the bounding box in the top-level FrameView's |
| 597 // space; however, VisualViewport technically isn't a child of any Frames. | 597 // coordinate space; however, VisualViewport technically isn't a child of any |
| 598 // Nonetheless, the VisualViewport always occupies the entire main frame so | 598 // Frames. Nonetheless, the VisualViewport always occupies the entire main |
| 599 // just return that. | 599 // frame so just return that. |
| 600 LocalFrame* frame = mainFrame(); | 600 LocalFrame* frame = mainFrame(); |
| 601 | 601 |
| 602 if (!frame || !frame->view()) | 602 if (!frame || !frame->view()) |
| 603 return IntRect(); | 603 return IntRect(); |
| 604 | 604 |
| 605 return frame->view()->frameRect(); | 605 return frame->view()->frameRect(); |
| 606 } | 606 } |
| 607 | 607 |
| 608 IntSize VisualViewport::contentsSize() const { | 608 IntSize VisualViewport::contentsSize() const { |
| 609 LocalFrame* frame = mainFrame(); | 609 LocalFrame* frame = mainFrame(); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 } else if (graphicsLayer == m_rootTransformLayer.get()) { | 848 } else if (graphicsLayer == m_rootTransformLayer.get()) { |
| 849 name = "Root Transform Layer"; | 849 name = "Root Transform Layer"; |
| 850 } else { | 850 } else { |
| 851 ASSERT_NOT_REACHED(); | 851 ASSERT_NOT_REACHED(); |
| 852 } | 852 } |
| 853 | 853 |
| 854 return name; | 854 return name; |
| 855 } | 855 } |
| 856 | 856 |
| 857 } // namespace blink | 857 } // namespace blink |
| OLD | NEW |