1 // Copyright (c) 2013 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.
7 tvcm.exportTo('tracing.analysis', function() {
9 function StubAnalysisTable() {
10 this.ownerDocument_ = document;
14 StubAnalysisTable.prototype = {
15 __proto__: Object.protoype,
18 return this.ownerDocument_;
21 appendChild: function(node) {
22 if (node.tagName == 'TFOOT' || node.tagName == 'THEAD' ||
23 node.tagName == 'TBODY') {
24 node.__proto__ = StubAnalysisTable.prototype;
26 this.ownerDocument_ = document;
28 this.nodes_.push(node);
32 return this.nodes_.pop();
36 return this.nodes_.length;
41 StubAnalysisTable: StubAnalysisTable