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