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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
549 return; | 549 return; |
550 | 550 |
551 if (frame()->remotePlatformLayer()) | 551 if (frame()->remotePlatformLayer()) |
552 GraphicsLayer::unregisterContentsLayer(frame()->remotePlatformLayer()); | 552 GraphicsLayer::unregisterContentsLayer(frame()->remotePlatformLayer()); |
553 if (webLayer) | 553 if (webLayer) |
554 GraphicsLayer::registerContentsLayer(webLayer); | 554 GraphicsLayer::registerContentsLayer(webLayer); |
555 frame()->setRemotePlatformLayer(webLayer); | 555 frame()->setRemotePlatformLayer(webLayer); |
556 // FIXME: This should be moved to WebRemoteFrame. | 556 // FIXME: This should be moved to WebRemoteFrame. |
557 ASSERT(frame()->deprecatedLocalOwner()); | 557 ASSERT(frame()->deprecatedLocalOwner()); |
558 frame()->deprecatedLocalOwner()->setNeedsCompositingUpdate(); | 558 frame()->deprecatedLocalOwner()->setNeedsCompositingUpdate(); |
559 frame()->ownerRenderer()->layer()->updateSelfPaintingLayer(); | |
ojan
2014/06/13 21:29:09
Is the frame guaranteed to have a renderer at this
kenrb
2014/06/16 15:43:38
I was thinking yes, but now that you ask I am not
ojan
2014/06/17 16:42:11
Yeah, I'm not sure. You could put in an ASSERT(fra
| |
559 } | 560 } |
560 | 561 |
561 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t) | 562 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t) |
562 { | 563 { |
563 m_permissionClient = permissionClient; | 564 m_permissionClient = permissionClient; |
564 } | 565 } |
565 | 566 |
566 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client) | 567 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client) |
567 { | 568 { |
568 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient); | 569 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient); |
(...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1946 | 1947 |
1947 void WebLocalFrameImpl::invalidateAll() const | 1948 void WebLocalFrameImpl::invalidateAll() const |
1948 { | 1949 { |
1949 ASSERT(frame() && frame()->view()); | 1950 ASSERT(frame() && frame()->view()); |
1950 FrameView* view = frame()->view(); | 1951 FrameView* view = frame()->view(); |
1951 view->invalidateRect(view->frameRect()); | 1952 view->invalidateRect(view->frameRect()); |
1952 invalidateScrollbar(); | 1953 invalidateScrollbar(); |
1953 } | 1954 } |
1954 | 1955 |
1955 } // namespace blink | 1956 } // namespace blink |
OLD | NEW |