Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h |
| diff --git a/third_party/WebKit/Source/core/dom/IgnoreDestructiveWriteCountIncrementer.h b/third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h |
| similarity index 78% |
| copy from third_party/WebKit/Source/core/dom/IgnoreDestructiveWriteCountIncrementer.h |
| copy to third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h |
| index 677c3d8b56589b0746c56cc0eb46baed92229a3e..65428cfba4892edb80d5f3dcc790f32e629321e2 100644 |
| --- a/third_party/WebKit/Source/core/dom/IgnoreDestructiveWriteCountIncrementer.h |
| +++ b/third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h |
| @@ -23,27 +23,27 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef IgnoreDestructiveWriteCountIncrementer_h |
| -#define IgnoreDestructiveWriteCountIncrementer_h |
| +#ifndef ThrowOnDynamicMarkupInsertionCountIncrementer_h |
| +#define ThrowOnDynamicMarkupInsertionCountIncrementer_h |
| #include "core/dom/Document.h" |
| #include "wtf/Allocator.h" |
| namespace blink { |
| -class IgnoreDestructiveWriteCountIncrementer { |
| +class ThrowOnDynamicMarkupInsertionCountIncrementer { |
| STACK_ALLOCATED(); |
| - WTF_MAKE_NONCOPYABLE(IgnoreDestructiveWriteCountIncrementer); |
| + WTF_MAKE_NONCOPYABLE(ThrowOnDynamicMarkupInsertionCountIncrementer); |
| public: |
| - explicit IgnoreDestructiveWriteCountIncrementer(Document* document) |
| - : m_count(document ? &document->m_ignoreDestructiveWriteCount : 0) |
| + explicit ThrowOnDynamicMarkupInsertionCountIncrementer(Document* document) |
|
dominicc (has gone to gerrit)
2016/09/28 08:01:03
Why not make this Document&?
|
| + : m_count(document ? &document->m_throwOnDynamicMarkupInsertionCount : 0) |
| { |
| if (!m_count) |
| return; |
| ++(*m_count); |
| } |
| - ~IgnoreDestructiveWriteCountIncrementer() |
| + ~ThrowOnDynamicMarkupInsertionCountIncrementer() |
| { |
| if (!m_count) |
| return; |