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

Unified Diff: tracing/third_party/tvcm/tvcm/html_generation_controller.py

Issue 1376953005: Move tracing/third_party/tvcm -> third_party/py_vulcanize. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 2 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: tracing/third_party/tvcm/tvcm/html_generation_controller.py
diff --git a/tracing/third_party/tvcm/tvcm/html_generation_controller.py b/tracing/third_party/tvcm/tvcm/html_generation_controller.py
deleted file mode 100644
index da58c0c0ecb0249367f5177a609284d4448bbae4..0000000000000000000000000000000000000000
--- a/tracing/third_party/tvcm/tvcm/html_generation_controller.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import re
-from tvcm import style_sheet
-
-
-class HTMLGenerationController(object):
-
- def __init__(self):
- self.current_module = None
-
- def GetHTMLForStylesheetHRef(self, href): # pylint: disable=unused-argument
- return None
-
- def GetHTMLForInlineStylesheet(self, contents):
- if self.current_module is None:
- if re.search('url\(.+\)', contents):
- raise Exception(
- 'Default HTMLGenerationController cannot handle inline style urls')
- return contents
-
- module_dirname = os.path.dirname(self.current_module.resource.absolute_path)
- ss = style_sheet.ParsedStyleSheet(
- self.current_module.loader, module_dirname, contents)
- return ss.contents_with_inlined_images

Powered by Google App Engine
This is Rietveld 408576698