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

Unified Diff: test/com/dom_distiller/client/SimpleContentHandler.java

Issue 296113004: Start using computed style instead of default tag actions. (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: Added tests Created 6 years, 7 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: test/com/dom_distiller/client/SimpleContentHandler.java
diff --git a/test/com/dom_distiller/client/SimpleContentHandler.java b/test/com/dom_distiller/client/SimpleContentHandler.java
index c533d6e3739c0dea2e524e7c792863b92784bfdf..ce07318b5dabf309d8f969cf6d4ec0a9af9a2f1e 100644
--- a/test/com/dom_distiller/client/SimpleContentHandler.java
+++ b/test/com/dom_distiller/client/SimpleContentHandler.java
@@ -6,6 +6,7 @@ package com.dom_distiller.client;
import com.dom_distiller.client.sax.Attributes;
import com.dom_distiller.client.sax.ContentHandler;
+import com.google.gwt.dom.client.Element;
/**
* This is a simple SAX content handler that converts sax events to an xml document. It only handles
@@ -31,7 +32,8 @@ class SimpleContentHandler implements ContentHandler {
public void startDocument() {}
@Override
- public void startElement(String uri, String localName, String qName, Attributes atts) {
+ public void startElement(
+ String uri, String localName, String qName, Element element, Attributes atts) {
documentStringBuilder.append("<" + localName);
for (int i = 0; i < atts.getLength(); i++) {
documentStringBuilder.append(" ");
@@ -45,7 +47,7 @@ class SimpleContentHandler implements ContentHandler {
}
@Override
- public void endElement(String uri, String localName, String qName) {
+ public void endElement(String uri, String localName, String qName, Element element) {
documentStringBuilder.append("</" + localName + ">");
}

Powered by Google App Engine
This is Rietveld 408576698