Commit 38fa0002 authored by Dong Hwi Lee's avatar Dong Hwi Lee Committed by Commit Bot

Adjust indentation two spaces for DocumentXMLTreeViewer.js.

Change-Id: I3e30b0c29dea6dd6db8657c7236505968dd22274
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2084726
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746556}
parent 4819ce58
......@@ -48,7 +48,8 @@ function sourceXMLLoaded()
{
var sourceXML = document.getElementById('webkit-xml-viewer-source-xml');
if (!sourceXML)
return; // Stop if some XML tree extension is already processing this document
return; // Stop if some XML tree extension is already processing this
// document
for (var child = sourceXML.firstChild; child; child = child.nextSibling)
processNode(tree, child);
......@@ -270,12 +271,10 @@ function createAttribute(attributeNode)
function toggleFunction(sectionId) {
return function() {
var foldedContent =
document.querySelector('#' + sectionId + ' > .folded');
var openedContent =
document.querySelector('#' + sectionId + ' > .opened');
var folderButton = document.querySelector(
'#' + sectionId + ' > .line > .folder-button');
var foldedContent = document.querySelector('#' + sectionId + ' > .folded');
var openedContent = document.querySelector('#' + sectionId + ' > .opened');
var folderButton =
document.querySelector('#' + sectionId + ' > .line > .folder-button');
if (foldedContent) {
if (foldedContent.className.includes('hidden'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment