| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 WebSize WebLocalFrameImpl::contentsSize() const | 646 WebSize WebLocalFrameImpl::contentsSize() const |
| 647 { | 647 { |
| 648 if (FrameView* view = frameView()) | 648 if (FrameView* view = frameView()) |
| 649 return view->contentsSize(); | 649 return view->contentsSize(); |
| 650 return WebSize(); | 650 return WebSize(); |
| 651 } | 651 } |
| 652 | 652 |
| 653 bool WebLocalFrameImpl::hasVisibleContent() const | 653 bool WebLocalFrameImpl::hasVisibleContent() const |
| 654 { | 654 { |
| 655 if (LayoutPart* layoutObject = frame()->ownerLayoutObject()) { | 655 if (LayoutPart* layoutObject = frame()->ownerLayoutObject()) { |
| 656 if (layoutObject->style()->visibility() != VISIBLE) | 656 if (layoutObject->style()->visibility() != EVisibility::Visible) |
| 657 return false; | 657 return false; |
| 658 } | 658 } |
| 659 | 659 |
| 660 if (FrameView* view = frameView()) | 660 if (FrameView* view = frameView()) |
| 661 return view->visibleWidth() > 0 && view->visibleHeight() > 0; | 661 return view->visibleWidth() > 0 && view->visibleHeight() > 0; |
| 662 return false; | 662 return false; |
| 663 } | 663 } |
| 664 | 664 |
| 665 WebRect WebLocalFrameImpl::visibleContentRect() const | 665 WebRect WebLocalFrameImpl::visibleContentRect() const |
| 666 { | 666 { |
| (...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2148 { | 2148 { |
| 2149 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); | 2149 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 void WebLocalFrameImpl::clearActiveFindMatch() | 2152 void WebLocalFrameImpl::clearActiveFindMatch() |
| 2153 { | 2153 { |
| 2154 ensureTextFinder().clearActiveFindMatch(); | 2154 ensureTextFinder().clearActiveFindMatch(); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 } // namespace blink | 2157 } // namespace blink |
| OLD | NEW |