forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor attachShadow() in Element class to attach a shadow root from…
… C++. This patch refactors Element::attachShadow() and add Element::AttachShadowRootInternal() in Element.{cpp, h} to attach shadow root from C++ codes, not only from JavaScript codes, for the changes to add ConvertTemplatesToShadow Roots() in third_party /WebKit/Source/core/editing/testing/SelectionSample.{cpp, h}, under reviewed in crrev.com/c/668275. Add bool Element::CanAttachShadowRoot() and ShadowRoot* Element:: AttachShadowRootInternal() not to pass JavaScript's ExceptionState to attach a shadow root to an element node. Bug: Change-Id: Ia1eee8539c0befeb32ba34f6d9f735f5c129a6d2 Reviewed-on: https://chromium-review.googlesource.com/672083 Commit-Queue: Akari Asai <akariasai@google.com> Reviewed-by: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#503658}
- Loading branch information
Akari Asai
authored and
Commit Bot
committed
Sep 22, 2017
1 parent
8ac701d
commit eae28e1
Showing
2 changed files
with
50 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters