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

Side by Side Diff: third_party/WebKit/PerformanceTests/HTMLToDOM/dom/bindings/realdomparserbindings.js

Issue 2189533004: Add blink_perf.html_to_dom benchmark. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to the original benchmark Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 "use strict";
5
6 (function(exports) {
7
8 class RealDomParserBindings {
9 static setAttribute(element, name, value) {
10 element.setAttribute(name, value);
11 }
12
13 static appendChild(parent, child) {
14 parent.appendChild(child);
15 }
16
17 static createText(value) {
18 return document.createTextNode(value);
19 }
20
21 static createElement(tagName) {
22 return document.createElement(tagName);
23 }
24
25 static createDocumentFragment() {
26 return document.createDocumentFragment();
27 }
28 }
29
30 exports.RealDomParserBindings = RealDomParserBindings;
31
32 })(this);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698