| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/java2d/TexturePaintContext.java
(getRaster): Handle negative coordinate values.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(setPaint): Moved custom paint processing to a new method.
(setPaintPixels): Added x, y parameters.
(getRealBounds): Added documentation.
(copy): Copy clipping information.
(drawLine): Process custom paints.
(setCustomPaint): New method.
(fill): Process custom paints.
(drawGlyphVector): Process custom paints.
(drawRect): Process custom paints.
(draw): Process custom paints.
* gnu/java/awt/peer/gtk/CairoSurface.java
(cairoCM_opaque): New constant.
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(argb32): Removed constant.
(rgb32): Removed constant.
(BufferedImageGraphics(BufferedImage)): Updated constant names.
(BufferedImageGraphics(BufferedImageGraphics)): Copy color model flags.
(updateBufferedImage): Transform to device-space before updating.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Added x, y
parameters.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Set pattern
source at designated x, y origin.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/text/TextLayout.java
(Run): New inner helper class.
(length): New field.
(naturalBounds): New field.
(offset): New field.
(runIndices): Removed. This is now encapsulate in a Run object.
(runs): Changed to Run[].
(string): Changed to char[].
(totalAdvance): New field. Caches advance value.
(TextLayout(String,Font,FontRenderContext)): Change to store
string as char[] and run layout as Run[]. Clean out empty
run items.
(TextLayout(TextLayout,int,int)): Change to store
string as char[] and run layout as Run[].
(clone): Call private constructor for maximum efficiency.
(determineWhitespace): Adapted to use char[] data.
(draw): Adapted to use Run objects.
(getAdvance): Cache computed total advance.
(getBlackBoxBounds): Adapted to use Run objects.
(getCaretInfo): Use natural layout bounds.
(getCharacterCount): Return length field.
(getLogicalHighlightShape): Adapted to use Run objects.
(getNaturalBounds): New helper method. Calculates and returns the
natural bounds of this text layout.
(getOutline): Adapted to use Run objects.
(getStringProperties): Adapted to use char[] data.
(getVisibleAdvance): Adapted to use char[] and Run data.
(handleJustify): Adapted to use char[] and Run data.
(hitTestChar(float,float,Rectangle2D)): Implemented.
(hitTestChar(float,float)): Use natural bounds.
(setCharIndices): Adapted to use char[] and Run data.
(toString): Adapted to use char[] and Run data.
* java/text/Bidi.java
(requiresBidi): Exclude paragraph separators from bidi-triggers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkFontMetrics.java:
Removed. This is now an inner class in GdkFontPeer.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawString(float,float)): Use text layout cache from
GdkFontPeer.
(getFontMetrics): Delegate to GdkFontPeer.
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(getGlyphCodes): Also check array size.
(getGlyphPositions): Also check array size.
* gnu/java/awt/peer/gtk/GdkFontPeer.java
(GdkFontLineMetrics.fm): Removed.
(GdkFontLineMetrics.strikeThroughOffset): Removed.
(GdkFontLineMetrics.strikeThroughThickness): Removed.
(GdkFontLineMetrics.underlineOffset): Removed.
(GdkFontLineMetrics.underlineThickness): Removed.
(GdkFontLineMetrics.GdkFontLineMetrics): Don't take
FontMetrics argument. Don't init removed fields.
(GdkFontLineMetrics.getAscent): Return font peer's field.
(GdkFontLineMetrics.getDescent): Return font peer's field.
(GdkFontLineMetrics.getHeight): Return font peer's field.
(GdkFontLineMetrics.getLeading): Return font peer's field.
(GdkFontLineMetrics.getNumChars): Reformat.
(GdkFontLineMetrics.getStrikeThroughOffset): Return half ascent.
(GdkFontLineMetrics.getStrikeThroughThickness): Return 1.
(GdkFontLineMetrics.getUnderlineOffset): Return font peer's field.
(GdkFontLineMetrics.getUnderlineThickness): Return font peer's field.
(GdkFontMetrics): Moved class in here as inner class.
Make it use the font peer's fields and for the char(s) width
and string width method, use TextLayout to measure the actual widths.
(ascent): New field.
(bundle): Removed.
(DEFAULT_CTX): New constant field.
(descent): New field.
(FONT_METRICS_ASCENT): New constant.
(FONT_METRICS_DESCENT): New constant.
(FONT_METRICS_HEIGHT): New constant.
(FONT_METRICS_MAX_ADVANCE): New constant.
(FONT_METRICS_MAX_ASCENT): New constant.
(FONT_METRICS_MAX_DESCENT): New constant.
(FONT_METRICS_UNDERLINE_OFFSET): New constant.
(FONT_METRICS_UNDERLINE_THICKNESS): New constant.
(height): New field.
(maxAdvance): New field.
(maxAscent): New field.
(maxDescent): New field.
(metrics): New field. Stores a FontMetrics for this font.
(textLayoutCache): New field. Caches TextLayout instances.
(underlineOffset): New field.
(underlineThickness): New field.
(cinit): Don't initialize resource bundle.
(GdkFontPeer): Setup the metrics.
(getFontMetrics): Return stored metrics if possible.
(getLineMetrics): Adapt to new constructor.
(initFont): New helper method.
(setupMetrics): New helper method.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(LRUCache): Made class a static class.
(getFontMetrics): Delegate to GdkFontPeer.
* native/jni/gtk-peer/gdkfont.h
Added new constant defines.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(getFontMetrics): Rewritten to fetch the font metrics from
FreeType.
|
|
|
|
|
|
| |
* javax/swing/ButtonGroup.java:
(setSelected): Select the ButtonModel if all conditions
are met.
|
|
|
|
|
| |
* javax/swing/JSlider.java:
(updateLabelUIs): Removed casting.
|
|
|
|
|
|
|
|
|
| |
(bundle): New static final String field.
(getLocalizedMessage): Initialize messages when still null.
* gnu/java/util/regex/RESyntax.java (SYNTAX_IS_FINAL): Removed.
(set): Use RE.getLocalizedMessage().
(clear): Likewise.
(setLineSeparator): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/StyleSheet.java
(linked): New field.
(styleSheet): Replaced by linked.
(addStyleSheet): Use an arraylist for simplicity.
(getRule): Removed useless instantiation.
(getStyleSheets): Convert array list to array.
(removeStyleSheet): Use an arraylist for simplicity.
(resolveStyle): Include styles from linked lists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/BoxView.java
(BoxView): Initialize with invalid req's.
(forwardUpdate): Trigger repaint when children changed the
major axis.
(getResizeWeight): Return resizable when the pref differs from
the min or the pref differs from the max size.
(layoutMajorAxis): Actually sum up the preferred sizes.
(paint): Made binary search more robust.
(replace): Let arrays shrink when needed.
(replaceLayoutArray): Let arrays shrink when needed.
(setAxis): Trigger preferenceChanged.
* javax/swing/text/CompositeView.java
(getInsideAllocation): Call insets method to take account
of overriding subclasses.
* javax/swing/text/DefaultStyledDocument.java
(ElementBuffer.finishEdit): Clear the stack and edits buffer.
(ElementBuffer.insertUpdate): Only remove the found element, not
all.
* javax/swing/text/GlyphView.java
(insertUpdate): Pass null in preferenceChanged.
(removeUpdate): Pass null in preferenceChanged.
(changedUpdate): Pass null in preferenceChanged.
* javax/swing/text/Utilities.java
(drawTabbedText): Avoid single calls to charWidth() and instead
call charsWidth() on whole chunks.
* javax/swing/text/html/HTMLDocument.java
(BlockElement.getName): Fall back to super when necessary.
(RunElement.getName): Fall back to super when necessary.
(HTMLReader.MAX_THRESHOLD): New constant field.
(HTMLReader.GROW_THRESHOLD): New constant field.
(HTMLReader.theshold): New field.
(HTMLReader.HTMLReader): Fetch threshold from document.
(HTMLReader.addContent): Sucessivly grow the threshold.
(createLeafElement): Don't create two elemens and don't set
attribute.
* javax/swing/text/html/TableView.java
(RowView.replace): Invalidate grid.
(gridValid): Made package private.
(layoutMinorAxis): Mark all rows as invalid.
(replace): Invalidate grid.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/AbstractDocument.java
(DefaultDocumentEvent.changes): Changed to be a HashMap.
(DefaultDocumentEvent.modified): Made private.
(DefaultDocumentEvent.THRESHOLD): New constant field.
(DefaultDocumentEvent.DefaultDocumentEvent): Don't initialize
changes table.
(DefaultDocumentEvent.addEdit): Switch to hashmap only when
exceeding threshold.
(DefaultDocumentEvent.getChange): Use iterative approach
when we have no hashmap yet.
(documentCV): Removed.
(numWriters): Renamed from numWritersWaiting.
(createPosition): Reformat.
(getCurrentWriter): Synchronized.
(readLock): Implement more straightforward.
(readUnlock): Implement more straightforward.
(writeLock): Implement more straightforward.
(writeUnlock): Implement more straightforward.
(remove): Write-lock here.
(removeImpl): Don't write-lock here.
|
|
|
|
|
| |
* javax/swing/JEditorPane.java
(setPage): Set priority on loading thread.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/plaf/basic/BasicTextUI.java
(RootView.paint): Avoid allocation.
(cachedInsets): New field. Caches an Insets instance.
(getNextVisualPositionFrom): Read-lock the document to avoid
thread nastiness. Push allocation.
(getPreferredSize): Push fake allocation when not yet laid out.
(getVisibleEditorRect): Use cached insets.
(viewToModel): Read-lock the document to avoid
thread nastiness. Push allocation.
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/StyleContext.java
(attributeSetPool): Synchronize this map.
(addAttribute): Synchronize this method.
(addAttributes: Synchronize this method.
(readObject): Install synchronized map on target object.
(removeAttribute): Synchronize this method.
(removeAttributes): Synchronize this method.
(removeAttributes): Synchronize this method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/GapContent.java
(GapContentPosition.GapContentPosition): Removed constructor.
(Mark): Made subclass of WeakReference to refer directly to
the associated position.
(Mark.refCount): Removed.
(Mark.Mark(int,GapContentPosition,ReferenceQueue):
New constructor. Used to reference a position and register the
reference queue.
(Mark.Mark(index)): Call super and don't adjust mark offset.
(Mark.compareTo): Removed.
(Mark.equals): Removed.
(Mark.getOffset): Return at least null. Removed assert.
(Mark.getPosition): New helper method.
(garbageMarks): New field.
(positions): Removed.
(searchMark): New field.
(GapContent): Removed init of positions map.
(addImpl): New helper method.
(adjustPositionsInRange): Removed.
(compare): New helper method.
(createPosition): Rewritten for new datastructures. This now
performs a much more efficient binary search for finding
a position at the requested offste.
(garbageCollect): Rewritten to collect unused marks.
(getPositionsInRange): Adjusted for new data structures.
(removeImpl): New helper method.
(replace): Use new addImpl() and removeImpl() helper method for
correctly adjusting the positions and gap.
(search): Rewritten. Implements a more suitable binary search.
(searchFirst): New helper method.
(setPositionsInRange): Removed.
(shiftEnd): Update the marks here.
(shiftGap): Update the marks here.
(shiftGapEndUp): Update the marks here.
(shiftGapStartDown): Update the marks here.
|
|
|
|
|
|
|
|
|
| |
* java/util/jar/JarFile.java (digestAlgorithms): New field used to cache
digest algorithm implementations.
(readSignatures): Parse the manifest once and reuse that data.
Add support for line breaks.
(verifyHashes): Use the parsed manifest entry.
(readManifestEntry): Removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextServicesSupport.java:
Added more documentation.
(addService(Class,BeanContextServiceProvider,boolean)):
Synchronized over global hierarchy lock.
(bcsPreDeserializationHook(ObjectInputStream)): Implemented.
(bcsPreSerializationHook(ObjectOutputStream)): Implemented.
(childJustRemovedHook(Object,BCSChild)): Implemented.
(createBCSSServiceProvider(Class,BeanContextServiceProvider)):
Implemented.
(fireServiceRevoked(BeanContextServiceRevokedEvent)):
Added revocation-only listeners.
(getBeanContextServicesPeer()): Implemented.
(getCurrentServiceClasses(Class)): Synchronized over global
hierarchy lock.
(getCurrentServiceSelectors(Class)): Synchronized over global
hierarchy lock, and fixed FIXME.
(getService(BeanContextChild,Object,Class,Object,
BeanContextServiceRevokedListener)): Implemented.
(hasService(Class)): Synchronized over global hierarchy lock.
(releaseService(BeanContextChild,Object,Object)): Implemented.
(revokeService(Class,BeanContextServiceProvider,boolean)): Implemented.
* java/beans/beancontext/BeanContextSupport.java:
(remove(Object, boolean)): Documentation correction.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/JEditorPane.java
(PageStream): New inner class.
(PageLoader): New inner class.
(loading): New field.
(setPage): Implemented asynchronous loading.
* javax/swing/text/DefaultStyledDocument.java
(ElementBuffer.create): New helper method.
(create): Use new ElementBuffer method instead of hack.
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.flushImpl): New helper method.
(HTMLReader.addContent): Use flushImpl().
(HTMLReader.blockClose): Added null check.
(HTMLReader.flush): Use flushImpl().
* javax/swing/text/html/HTMLEditorKit.java
(createDefaultDocument): Set load priority to 4 and token threshold
to 100.
* javax/swing/text/html/TableView.java
(insertUpdate): Overridden to provide correct view factory.
(removeUpdate): Overridden to provide correct view factory.
(changedUpdate): Overridden to provide correct view factory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/BoxView.java
(clipRect): New field.
(tmpRect): New field.
(layout): Reorganized code. Now uses layoutAxis() helper method.
(layoutAxis): New helper method.
(paint): Optimized by using cached Rectangle objects and
a binary search for child views inside the clip.
* javax/swing/text/CompositeView.java
(insideAllocation): Made private and initialized in constructor.
(getInsideAllocation): Removed initialization block for
insideAllocation field. Avoid unnecessary allocations.
* javax/swing/text/GlyphView.java
(DefaultGlyphPainter.paint): Only paint the actual glyphs here
The remaining stuff (background, underline and striking) is
done in the GlpyhView itself. Avoid unnecessary allocations.
(cached): A cached Segment instance.
(getText): Return cached segment.
(paint): Paint underline, strike and background here. Avoid
unecessary allocs.
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/StyleSheet.java
(getFontSize): Removed debug output.
(ListPainter.tmpRect): New field.
(ListPainter.paint): Align bullet vertically centered to
the first line of the paragraph.
|
|
|
|
|
| |
* gnu/java/util/regex/RETokenNamedProperty.java:
(getHandler(String)): Add support for 'all'.
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/management/Server.java:
Initial implementation of a GNU management server.
* javax/management/MBeanPermission.java,
* javax/management/MBeanRegistration.java,
* javax/management/MBeanTrustPermission.java:
Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/css/CSSParser.java
(parseDeclaration): Trim string before reporting.
* gnu/javax/swing/text/html/css/FontSize.java
(size): New field.
(isRelative): New field.
(sizeIndex): New field.
(FontSize): Initialize new fields.
(getValue): Changed to call getValue(int).
(getValue(int)): New method. Implements relative font sizes.
(isRelative): New method.
(mapAbsolute): Store index.
(mapEM): New helper method.
(mapLarger): New helper method.
(mapPercent): New helper method.
(mapRelative): New helper method.
(mapSmaller): New helper method.
(mapValue): New helper method.
* javax/swing/text/html/CSS.java
(parseBackgroundShorthand): Create CSSColor directly.
* javax/swing/text/html/StyleSheet.java
(addRule): Invalidate resolved styles.
(getFont): Call new getFontSize() method to resolve relative
font sizes.
(getFontSize): New helper method. Resolves relative font sizes.
(translateHTMLToCSS): Create CSS objects directly.
|
| |
|
|
|
|
|
| |
* java/net/DatagramSocket.java (getLocalAddress, connect,
receive): Perform security check on address not hostname.
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/parser/support/Parser.java
(_handleText): Fixed condition for consuming whitespace.
Removed validator check, this is superfluous now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/css/CSSParser.java
(parseRuleset): Support 'combined' selectors.
(main): Adapt callback for combined selectors support.
* gnu/javax/swing/text/html/css/CSSParserCallback.java
(startStatement): Take selector array as argument, to
support combined selectors.
* javax/swing/text/html/BlockView.java
(calculateMinorAxisRequirements): Fetch and apply alignment.
* javax/swing/text/html/StyleSheet.java
(CSSStyle): Inverted the constants for correct precedence.
(CSSStyleSheetParserCallback.styles): New field. Stores the current
styles.
(CSSStyleSheetParserCallback.style): Removed.
(CSSStyleSheetParserCallback.declaration): Update multiple styles.
(CSSStyleSheetParserCallback.end): Push multiple styles.
(CSSStyleSheetParserCallback.start): Initialize multiple styles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/FlowView.java
(LogicalView.getPreferredSpan): Calculate maximum correctly.
* javax/swing/text/GlyphView.java
(tabExpander): New field.
(tabX): New field.
(breakView): Set tabX on broken view.
(getPartialSpan): Let the painter fetch the span.
(getTabbedSpan): Update the tab expander field. Maybe trigger
relayout.
(getTabExpander): Simply return the stored expander.
* javax/swing/text/Utilities.java
(getTabbedTextOffset): Made algoritm a little smarter and more
efficient.
(getTabbedTextWidth): Don't add single char widths, instead add
chunks of characters.
* javax/swing/text/html/ParagraphView.java
(calculateMinorAxisRequirements): Adjust margin only when the
CSS span is not fixed.
|
|
|
|
|
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(getChildBeanContextMembershipListener): Implemented,
(getChildPropertyChangeListener): Implemented,
(getChildSerializable): Implemented,
(getChildVetoableChangeListener): Implemented,
(getChildVisibility): Implemented,
(setDesignTime): Use same property name as Sun's implementation.
|
|
|
|
|
|
| |
* java/beans/DesignMode.java: Reformatted and removed a FIXME,
* java/beans/Statement.java
(toString): Updated to match reference implementation.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLEditorKit.java
(InsertHTMLTextAction.actionPerformed): Also try inserting
the alternate tag. Adjust the selection accordingly.
(InsertHTMLTextAction.adjustSelection): New helper method.
Adjusts the selection after an insertion.
(insertAtBoundary): Delegate to deprecated method.
(insertAtBoundry): Implemented missing method.
(tryInsert): New helper method.
(defaultActions): Implemented to fill the array with
a couple of InsertHTMLTextActions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/ImageView.java
(Observer): New class. Observes image loading.
(haveHeight): New field.
(haveWidth): New field.
(height): New field.
(width): New field.
(image): New field.
(imageIcon): New field.
(loading): New field.
(observer): New field.
(reloadImage): New field.
(reloadProperties): New field.
(ImageView): Initialize observer and some flags.
(getImage): Update the image state and return the image.
(loadImage): New helper method. Actually starts loading.
(paint): Rewritten to paint the image directly, not via Icon.
(reloadImage): Rewritten. Loads the image and its properties.
(renderIcon): Removed. No more necessary.
(setPropertiesFromAttributes): Don't nullify image here.
Added comment about missing impl.
(setSize): Added comment about missing impl.
(updateSize): New helper method. Updates the size attributes.
(updateState): New helper method. Makes sure the image
and its properties are valid.
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/parser/support/Parser.java
(_handleEndTag_remaining): Consume whitespace after a closing
block like tag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.ParagraphAction.end): Call super instead of blockClose()
directly.
(HTMLReader.ParagraphAction.start): Call super instead of blockOpen()
directly.
(HTMLReader.parseStack): Removed.
(HTMLReader.blockClose): Simply call addContent() with ' '
instead of doing more complicated stuff. Removed parseStack
handling.
(HTMLReader.blockOpen): Removed parseStack handling.
(getInsertingReader): Removed parseStack init.
* gnu/javax/swing/text/html/parser/htmlValidator.java
(closeTag): Return true only when the tag actually should be
closed.
* gnu/javax/swing/text/html/parser/support/Parser.java
(_handleEndTag): Only actually close the tag when the validator
allows it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/CSS.java
(Attribute.BORDER_SPACING): New field for the CSS border-spacing
attribute.
* javax/swing/text/html/StyleSheet.java
(BoxPainter.bottomPadding): New field.
(BoxPainter.leftPadding): New field.
(BoxPainter.rightPadding): New field.
(BoxPainter.topPadding): New field.
(BoxPainter.BoxPainter): Fetch the MARGIN and PADDING* attributes
too.
(BoxPainter.getInset): Recognize and include the padding.
(translateHTMLToCSS): Added mapping for CELLPADDING and CELLSPACING.
javax/swing/text/html/TableView.java
(RowView.calculateMajorAxisRequirements): Adjust req's for
cellSpacing.
(RowView.layoutMajorAxis): Adjust multi-column span for cellSpacing.
(cellSpacing): New field.
(columnRequirements): Made package private to avoid accessor method.
(calculateMinorAxisRequirements): Include cellSpacing.
(calculateMajorAxisRequirements): Overridden to include cellSpacing.
(layoutMajorAxis): Likewise.
(layoutColumns): Respect cellSpacing.
(setParent): Overridden to fetch the CSS attributes when view gets
connected.
(setPropertiesFromAttributes): New method. Fetches the cell
spacing from the CSS attributes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/parser/support/Parser.java
(_handleText): Consume whitespace directly before a closing tag.
(restOfTag): Consume whitespace directly after opening.
* gnu/javax/swing/text/html/parser/support/textPreProcessor.java
(preprocess): Don't perform array boundary checking by
catch AIOOBE, instead check the boundary in loop condition.
* gnu/javax/swing/text/html/parser/support/low/Constants.java
(TAG_CLOSE): New constants. Describes the token pattern for
a closing tag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/ImageView.java
(getPreferredSpan): Use CSS length values.
* javax/swing/text/html/TableView.java
(CellView.calculateMajorAxisRequirements): Overridden to
set the maximum reqs to maximum.
(RowView.getMaximumSize): For the X_AXIS, set the maximum
span to maximum.
(RowView.getMinimumSpan): Overridden. For the X_AXIS, return
the total column reqs.
(RowView.getPreferredSpan): Overridden. For the X_AXIS, return
the total column reqs.
* gnu/javax/swing/text/html/css/CSSColor.java
(convertValue): Catch NumberFormatExceptions for more robustness.
* gnu/javax/swing/text/html/css/FontSize.java
(mapPixels): Actually map px values. Catch NFE for more robustness.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/autofit/AxisHints.java,
* gnu/java/awt/font/autofit/Constants.java,
* gnu/java/awt/font/autofit/GlyphHints.java,
* nu/java/awt/font/autofit/Latin.java,
* nu/java/awt/font/autofit/LatinAxis.java,
* gnu/java/awt/font/autofit/LatinMetrics.java,
* gnu/java/awt/font/autofit/Scaler.java,
* gnu/java/awt/font/autofit/Script.java,
* gnu/java/awt/font/autofit/ScriptMetrics.java,
* gnu/java/awt/font/autofit/Segment.java,
* gnu/java/awt/font/autofit/Width.java:
New classes. This is some skeleton stuff for the FreeType-alike
auto-gridfitter.
* gnu/java/awt/font/opentype/CharGlyphMap.java: Made class public.
* gnu/java/awt/font/opentype/OpenTypeFont.java
(unitsPerEm): Made field public.
(getRawGlyphOutline): New method. Fetches the raw outline.
* gnu/java/awt/font/opentype/Scaler.java
(getRawGlyphOutline): New method. Fetches the raw outline.
* gnu/java/awt/font/opentype/truetype/GlyphLoader.java
(loadGlyph): New method. This is used to load raw outlines.
* gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java
(getRawOutline): New method. Fetches the raw outline.
* gnu/java/awt/font/opentype/truetype/Zone.java:
Made class public.
|
|
|
|
|
|
| |
* javax/swing/RepaintManager.java
(RepaintManager): Fetch the default state for the double buffering
from a system property gnu.swing.doublebuffering.
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/GLightweightPeer.java
(handleEvent): Try to do something reasonable and trigger painting
for the lightweight component.
(getFontMetrics): Fetch and return a font metrics object from
the Toolkit.
|
|
|
|
| |
* AUTHORS: Add myself.
|
|
|
|
|
|
| |
* AUTHORS: Add Tania Bento, Thomas Fitzsimmons, Francis Kung and
Dalibor Topic. Re-order 'K' section. Remove trailing space from
Roman Kennke's entry.
|
|
|
|
|
| |
* java/awt/image/IndexColorModel.java
(createCompatibleSampleModel): Implemented missing method.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkImageConsumer.java (setPixels): Handle data
from big endian systems correctly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/swing/text/html/css/CSSColor.java
(isValidColor): New helper method. Checks strings if they
form a valid color value.
* gnu/javax/swing/text/html/css/Length.java
(Length): Catch number format exceptions.
* javax/swing/text/html/CSS.java
(addInternal): New method. Checks for shorthand CSS attributes
and parses them.
(parseBackgroundShorthand): New method. Parses the background
shorthand attribute.
* javax/swing/text/html/HTMLDocument.java
(HTMLReader.LinkAction): Made class a subclass of HiddenAction.
(HTMLReader.LinkAction.start): Implemented to load the linked
stylesheet.
(HTMLReader.LinkAction.end): Removed. This is not needed.
* javax/swing/text/html/StyleSheet.java
(CSSStyleSheetParserCallback.declaration): Push declaration
through CSS.addInternal() to parse shorthand attributes.
(addCSSAttribute): Push declaration through CSS.addInternal()
to parse shorthand attributes.
(importStyleSheet): Implemented. This adds a stylesheet from
an URL.
* javax/swing/text/html/TableView.java
(calculateColumnRequirements): Increase column index for
non CellView children to avoid endless loop.
* javax/swing/text/CompositeView.java
(setParent): Comparen with numChildren not with real arraylength.
|
|
|
|
|
| |
* java/beans/beancontext/BeanContextSupport.java
(getChildBeanContextChild): Implemented.
|
|
|
|
|
| |
* javax/swing/text/View.java
(updateLayout): Only repaint when needed.
|
|
|
|
|
|
| |
* java/util/Collections.java
(sort(List)): Minor API doc addition,
(sort(List, Comparator)): Likewise.
|
|
|
|
|
|
|
|
| |
* javax/swing/text/html/HTMLWriter.java
(traverse): Removed Classpath specific handling of implied
tags.
(traverseHtmlFragment): Removed Classpath specific handling of
implied tags.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* javax/swing/text/ParagraphView.java
(Row.getMaximumSize): Removed. This method is not necessary.
* javax/swing/text/html/TableView.java
(CellView): Moved attribute init to setPropertiesFromAttributes().
(setPropertiesFromAttributes): Fetch attributes here.
(RowView.RowView): Documented.
(RowView.getMaximumSpan): Overridden to restrict the max span
in the Y direction.
(RowView.layoutMajorAxis): Correctly layout the spans.
(columnWidths): New field. Stores the width attributes of
the columns.
(calculateColumnRequirements): Added support for relative
(== percent) width attributes.
(calculateMajorAxisRequirements): Removed.
(calculateMinorAxisRequirements): Removed unnecessary code.
(getMaximumSpan): Overridden to restrict the table's width.
(layoutColumns): Documented. Implement more clever table layout,
i.e. for relative columns etc.
(layoutMinorAxis): Don't mark rows invalid.
(updateGrid): Added docs. Initialize column widths.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment,
* gnu/java/awt/peer/headless/HeadlessToolkit: New classes.
Implement basic headless toolkit.
* java/awt/Toolkit.java
(getDefaultToolkit): Check headless property and create
headless toolkit when true.
|