| 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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1671 // FIXME: Using subResourceAttributeName as fallback is not a perfect | 1671 // FIXME: Using subResourceAttributeName as fallback is not a perfect |
| 1672 // solution. subResourceAttributeName returns just one attribute name. The | 1672 // solution. subResourceAttributeName returns just one attribute name. The |
| 1673 // element might not have the attribute, and there might be other attributes | 1673 // element might not have the attribute, and there might be other attributes |
| 1674 // which can identify the element. | 1674 // which can identify the element. |
| 1675 WebLocalFrameImpl* webframe_child = | 1675 WebLocalFrameImpl* webframe_child = |
| 1676 ToWebLocalFrameImpl(client_->CreateChildFrame( | 1676 ToWebLocalFrameImpl(client_->CreateChildFrame( |
| 1677 this, scope, name, | 1677 this, scope, name, |
| 1678 owner_element->getAttribute( | 1678 owner_element->getAttribute( |
| 1679 owner_element->SubResourceAttributeName()), | 1679 owner_element->SubResourceAttributeName()), |
| 1680 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()), | 1680 static_cast<WebSandboxFlags>(owner_element->GetSandboxFlags()), |
| 1681 owner_properties)); | 1681 owner_element->ContainerPolicy(), owner_properties)); |
| 1682 if (!webframe_child) | 1682 if (!webframe_child) |
| 1683 return nullptr; | 1683 return nullptr; |
| 1684 | 1684 |
| 1685 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element, | 1685 webframe_child->InitializeCoreFrame(*GetFrame()->GetPage(), owner_element, |
| 1686 name); | 1686 name); |
| 1687 // Initializing the core frame may cause the new child to be detached, since | 1687 // Initializing the core frame may cause the new child to be detached, since |
| 1688 // it may dispatch a load event in the parent. | 1688 // it may dispatch a load event in the parent. |
| 1689 if (!webframe_child->Parent()) | 1689 if (!webframe_child->Parent()) |
| 1690 return nullptr; | 1690 return nullptr; |
| 1691 | 1691 |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2558 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2558 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
| 2559 return *text_checker_client_; | 2559 return *text_checker_client_; |
| 2560 } | 2560 } |
| 2561 | 2561 |
| 2562 void WebLocalFrameImpl::SetTextCheckClient( | 2562 void WebLocalFrameImpl::SetTextCheckClient( |
| 2563 WebTextCheckClient* text_check_client) { | 2563 WebTextCheckClient* text_check_client) { |
| 2564 text_check_client_ = text_check_client; | 2564 text_check_client_ = text_check_client; |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 } // namespace blink | 2567 } // namespace blink |
| OLD | NEW |