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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 // FIXME: Using subResourceAttributeName as fallback is not a perfect | 1693 // FIXME: Using subResourceAttributeName as fallback is not a perfect |
1694 // solution. subResourceAttributeName returns just one attribute name. The | 1694 // solution. subResourceAttributeName returns just one attribute name. The |
1695 // element might not have the attribute, and there might be other attributes | 1695 // element might not have the attribute, and there might be other attributes |
1696 // which can identify the element. | 1696 // which can identify the element. |
1697 WebLocalFrameImpl* webframe_child = | 1697 WebLocalFrameImpl* webframe_child = |
1698 ToWebLocalFrameImpl(client_->CreateChildFrame( | 1698 ToWebLocalFrameImpl(client_->CreateChildFrame( |
1699 this, scope, name, | 1699 this, scope, name, |
1700 owner_element->getAttribute( | 1700 owner_element->getAttribute( |
1701 owner_element->SubResourceAttributeName()), | 1701 owner_element->SubResourceAttributeName()), |
1702 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()), | 1702 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()), |
1703 owner_properties)); | 1703 owner_element->ContainerPolicy(), owner_properties)); |
1704 if (!webframe_child) | 1704 if (!webframe_child) |
1705 return nullptr; | 1705 return nullptr; |
1706 | 1706 |
1707 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element, | 1707 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element, |
1708 name); | 1708 name); |
1709 // Initializing the core frame may cause the new child to be detached, since | 1709 // Initializing the core frame may cause the new child to be detached, since |
1710 // it may dispatch a load event in the parent. | 1710 // it may dispatch a load event in the parent. |
1711 if (!webframe_child->Parent()) | 1711 if (!webframe_child->Parent()) |
1712 return nullptr; | 1712 return nullptr; |
1713 | 1713 |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2585 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2586 return *text_checker_client_; | 2586 return *text_checker_client_; |
2587 } | 2587 } |
2588 | 2588 |
2589 void WebLocalFrameImpl::SetTextCheckClient( | 2589 void WebLocalFrameImpl::SetTextCheckClient( |
2590 WebTextCheckClient* text_check_client) { | 2590 WebTextCheckClient* text_check_client) { |
2591 text_check_client_ = text_check_client; | 2591 text_check_client_ = text_check_client; |
2592 } | 2592 } |
2593 | 2593 |
2594 } // namespace blink | 2594 } // namespace blink |
OLD | NEW |