| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 } | 621 } |
| 622 | 622 |
| 623 bool WebLocalFrameImpl::hasHorizontalScrollbar() const { | 623 bool WebLocalFrameImpl::hasHorizontalScrollbar() const { |
| 624 return frame() && frame()->view() && frame()->view()->horizontalScrollbar(); | 624 return frame() && frame()->view() && frame()->view()->horizontalScrollbar(); |
| 625 } | 625 } |
| 626 | 626 |
| 627 bool WebLocalFrameImpl::hasVerticalScrollbar() const { | 627 bool WebLocalFrameImpl::hasVerticalScrollbar() const { |
| 628 return frame() && frame()->view() && frame()->view()->verticalScrollbar(); | 628 return frame() && frame()->view() && frame()->view()->verticalScrollbar(); |
| 629 } | 629 } |
| 630 | 630 |
| 631 void WebLocalFrameImpl::collapseFrameOwner(bool collapsed) { |
| 632 DCHECK(frame()->owner()->isLocal()); |
| 633 frame()->owner()->setShouldCollapse(collapsed); |
| 634 } |
| 635 |
| 631 WebView* WebLocalFrameImpl::view() const { | 636 WebView* WebLocalFrameImpl::view() const { |
| 632 return viewImpl(); | 637 return viewImpl(); |
| 633 } | 638 } |
| 634 | 639 |
| 635 WebDocument WebLocalFrameImpl::document() const { | 640 WebDocument WebLocalFrameImpl::document() const { |
| 636 if (!frame() || !frame()->document()) | 641 if (!frame() || !frame()->document()) |
| 637 return WebDocument(); | 642 return WebDocument(); |
| 638 return WebDocument(frame()->document()); | 643 return WebDocument(frame()->document()); |
| 639 } | 644 } |
| 640 | 645 |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 ->frameScheduler() | 2364 ->frameScheduler() |
| 2360 ->unthrottledTaskRunner() | 2365 ->unthrottledTaskRunner() |
| 2361 ->toSingleThreadTaskRunner(); | 2366 ->toSingleThreadTaskRunner(); |
| 2362 } | 2367 } |
| 2363 | 2368 |
| 2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2369 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
| 2365 return m_inputMethodController.get(); | 2370 return m_inputMethodController.get(); |
| 2366 } | 2371 } |
| 2367 | 2372 |
| 2368 } // namespace blink | 2373 } // namespace blink |
| OLD | NEW |