| 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 598 |
| 599 WebSize WebLocalFrameImpl::contentsSize() const { | 599 WebSize WebLocalFrameImpl::contentsSize() const { |
| 600 if (FrameView* view = frameView()) | 600 if (FrameView* view = frameView()) |
| 601 return view->contentsSize(); | 601 return view->contentsSize(); |
| 602 return WebSize(); | 602 return WebSize(); |
| 603 } | 603 } |
| 604 | 604 |
| 605 bool WebLocalFrameImpl::hasVisibleContent() const { | 605 bool WebLocalFrameImpl::hasVisibleContent() const { |
| 606 LayoutPartItem layoutItem = frame()->ownerLayoutItem(); | 606 LayoutPartItem layoutItem = frame()->ownerLayoutItem(); |
| 607 if (!layoutItem.isNull() && | 607 if (!layoutItem.isNull() && |
| 608 layoutItem.style()->visibility() != EVisibility::Visible) { | 608 layoutItem.style()->visibility() != EVisibility::kVisible) { |
| 609 return false; | 609 return false; |
| 610 } | 610 } |
| 611 | 611 |
| 612 if (FrameView* view = frameView()) | 612 if (FrameView* view = frameView()) |
| 613 return view->visibleWidth() > 0 && view->visibleHeight() > 0; | 613 return view->visibleWidth() > 0 && view->visibleHeight() > 0; |
| 614 return false; | 614 return false; |
| 615 } | 615 } |
| 616 | 616 |
| 617 WebRect WebLocalFrameImpl::visibleContentRect() const { | 617 WebRect WebLocalFrameImpl::visibleContentRect() const { |
| 618 if (FrameView* view = frameView()) | 618 if (FrameView* view = frameView()) |
| (...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 ->frameScheduler() | 2359 ->frameScheduler() |
| 2360 ->unthrottledTaskRunner() | 2360 ->unthrottledTaskRunner() |
| 2361 ->toSingleThreadTaskRunner(); | 2361 ->toSingleThreadTaskRunner(); |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
| 2365 return m_inputMethodController.get(); | 2365 return m_inputMethodController.get(); |
| 2366 } | 2366 } |
| 2367 | 2367 |
| 2368 } // namespace blink | 2368 } // namespace blink |
| OLD | NEW |