From 32861e5c843125e7373262d7d55c1c8e5b640763 Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Tue, 5 Dec 2006 22:18:37 +0000 Subject: 2006-12-05 Roman Kennke * javax/swing/text/html/HTMLEditorKit.java (HTMLFactory.create): Removed debug output. * javax/swing/text/html/InlineView.java (getBreakWeight): Likewise. * javax/swing/text/html/StyleSheet.java (addRule): Likewise. (ListPainter.paint): Removed debug output. --- ChangeLog | 10 ++++++++++ javax/swing/text/html/HTMLEditorKit.java | 1 - javax/swing/text/html/InlineView.java | 5 ++--- javax/swing/text/html/StyleSheet.java | 4 +--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index c85c6c553..e866cc94f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-12-05 Roman Kennke + + * javax/swing/text/html/HTMLEditorKit.java + (HTMLFactory.create): Removed debug output. + * javax/swing/text/html/InlineView.java + (getBreakWeight): Likewise. + * javax/swing/text/html/StyleSheet.java + (addRule): Likewise. + (ListPainter.paint): Removed debug output. + 2006-12-05 Roman Kennke * javax/swing/text/html/BlockView.java diff --git a/javax/swing/text/html/HTMLEditorKit.java b/javax/swing/text/html/HTMLEditorKit.java index 3b122bb36..c15fcae99 100644 --- a/javax/swing/text/html/HTMLEditorKit.java +++ b/javax/swing/text/html/HTMLEditorKit.java @@ -837,7 +837,6 @@ public class HTMLEditorKit } if (view == null) { - System.err.println("missing tag->view mapping for: " + element); view = new NullView(element); } return view; diff --git a/javax/swing/text/html/InlineView.java b/javax/swing/text/html/InlineView.java index cea0782b1..58edc7385 100644 --- a/javax/swing/text/html/InlineView.java +++ b/javax/swing/text/html/InlineView.java @@ -162,9 +162,8 @@ public class InlineView public int getBreakWeight(int axis, float pos, float len) { int weight; - if (nowrap) { if (getText(getStartOffset(), getEndOffset()).toString().contains("Web")) - System.err.println("Web NOWRAP"); - weight = BadBreakWeight;} + if (nowrap) + weight = BadBreakWeight; else weight = super.getBreakWeight(axis, pos, len); return weight; diff --git a/javax/swing/text/html/StyleSheet.java b/javax/swing/text/html/StyleSheet.java index 450f31da1..cb10ac1c5 100644 --- a/javax/swing/text/html/StyleSheet.java +++ b/javax/swing/text/html/StyleSheet.java @@ -512,8 +512,7 @@ public class StyleSheet extends StyleContext } catch (IOException ex) { - // Shouldn't happen. And if, then we - System.err.println("IOException while parsing stylesheet: " + ex.getMessage()); + // Shouldn't happen. And if, then don't let it bork the outside code. } // Clean up resolved styles cache so that the new styles are recognized // on next stylesheet request. @@ -1431,7 +1430,6 @@ public class StyleSheet extends StyleContext } if (centerY == -1) { - System.err.println("WARNING LI child is not a paragraph view " + itemView.getView(0) + ", " + itemView.getViewCount()); centerY =(int) (h / 2 + y); } g.fillOval(centerX - 3, centerY - 3, 6, 6); -- cgit v1.2.1