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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 783393006: Remove relayout due to scrollbars taking up width (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool WebLocalFrameImpl::hasVisibleContent() const 226 bool WebLocalFrameImpl::hasVisibleContent() const
227 { 227 {
228 return frame()->view()->width() > 0 && frame()->view()->height() > 0; 228 return frame()->view()->width() > 0 && frame()->view()->height() > 0;
229 } 229 }
230 230
231 WebRect WebLocalFrameImpl::visibleContentRect() const 231 WebRect WebLocalFrameImpl::visibleContentRect() const
232 { 232 {
233 return frame()->view()->frameRect(); 233 return frame()->view()->frameRect();
234 } 234 }
235 235
236 bool WebLocalFrameImpl::hasHorizontalScrollbar() const
237 {
238 // FIXME(sky): Remove
239 return false;
240 }
241
242 bool WebLocalFrameImpl::hasVerticalScrollbar() const
243 {
244 // FIXME(sky): Remove
245 return false;
246 }
247
248 WebView* WebLocalFrameImpl::view() const 236 WebView* WebLocalFrameImpl::view() const
249 { 237 {
250 return viewImpl(); 238 return viewImpl();
251 } 239 }
252 240
253 WebDocument WebLocalFrameImpl::document() const 241 WebDocument WebLocalFrameImpl::document() const
254 { 242 {
255 if (!frame() || !frame()->document()) 243 if (!frame() || !frame()->document())
256 return WebDocument(); 244 return WebDocument();
257 return WebDocument(frame()->document()); 245 return WebDocument(frame()->document());
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 686 }
699 687
700 void WebLocalFrameImpl::invalidateAll() const 688 void WebLocalFrameImpl::invalidateAll() const
701 { 689 {
702 ASSERT(frame() && frame()->view()); 690 ASSERT(frame() && frame()->view());
703 FrameView* view = frame()->view(); 691 FrameView* view = frame()->view();
704 view->invalidateRect(view->frameRect()); 692 view->invalidateRect(view->frameRect());
705 } 693 }
706 694
707 } // namespace blink 695 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698