Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: third_party/WebKit/Source/core/dom/ThrowOnDynamicMarkupInsertionCountIncrementer.h

Issue 2369853002: HTML parser: implementing throw-on-dynamic-markup-insertion counter (Closed)
Patch Set: reentry permit check Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698