Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Added underlying type notes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698