From: <mgu...@us...> - 2013-01-23 11:48:26
|
Revision: 8025 http://sourceforge.net/p/htmlunit/code/8025 Author: mguillem Date: 2013-01-23 11:48:21 +0000 (Wed, 23 Jan 2013) Log Message: ----------- - start moving style attributes definitions in dedicated structure able to hold definitions and default values per browser - fixed some FF17 expectations and marked NYI when needed Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclaration.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CodeStyleTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebDriverTestCase.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/NamedNodeMapTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclarationTest.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.java Added Paths: ----------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/BrowserConfiguration.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/StyleAttributes.java trunk/htmlunit/src/test/resources/com/gargoylesoftware/htmlunit/javascript/host/css/ trunk/htmlunit/src/test/resources/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF17.txt trunk/htmlunit/src/test/resources/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.FF3.6.txt trunk/htmlunit/src/test/resources/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.properties.IE.txt Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2013-01-23 11:46:27 UTC (rev 8024) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2013-01-23 11:48:21 UTC (rev 8025) @@ -105,9 +105,6 @@ CSS_TEXT_SHADOW_DEFAULT_NONE, /** Default is 'normal'. */ - CSS_UNICODE_BIDI_DEFAULT_NORMAL, - - /** Default is 'normal'. */ CSS_WORD_SPACING_DEFAULT_NORMAL, /** Values for the zIndex are rounded to integer. */ Added: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/BrowserConfiguration.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/BrowserConfiguration.java (rev 0) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/BrowserConfiguration.java 2013-01-23 11:48:21 UTC (rev 8025) @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2002-2013 Gargoyle Software Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.gargoylesoftware.htmlunit.javascript.host.css; + +import com.gargoylesoftware.htmlunit.BrowserVersion; + +/** + * Allows to specify for which {@link BrowserVersion} a style attribute is defined. + * Quite experimental: it allows to do more than what we had previously but let's see if + * this is the right way. + * + * @version $Revision$ + * @author Marc Guillemot + * + */ +class BrowserConfiguration { + private String browserFamily_; + private String defaultValue_; + private int minVersionNumber_ = -1; + private int maxVersionNumber_ = Integer.MAX_VALUE; + + public static BrowserConfiguration ff(final String defaultValue) { + final BrowserConfiguration browserConfiguration = new BrowserConfiguration(); + browserConfiguration.browserFamily_ = "FF"; + browserConfiguration.defaultValue_ = defaultValue; + return browserConfiguration; + } + + public static BrowserConfiguration ie(final String defaultValue) { + final BrowserConfiguration browserConfiguration = new BrowserConfiguration(); + browserConfiguration.browserFamily_ = "IE"; + browserConfiguration.defaultValue_ = defaultValue; + return browserConfiguration; + } + + public static BrowserConfiguration ffBelow17(final String defaultValue) { + return ff(defaultValue).upTo(16); + } + + public static BrowserConfiguration ff17up(final String defaultValue) { + return ff(defaultValue).startingWith(17); + } + + public static BrowserConfiguration ie8up(final String defaultValue) { + return ie(defaultValue).startingWith(8); + } + + public static boolean isDefined(final BrowserVersion browserVersion, + final BrowserConfiguration[] browserConfigurations) { + if (browserConfigurations == null) { + return true; // defined for all browsers + } + + return getMatchingConfiguration(browserVersion, browserConfigurations) != null; + } + + public static BrowserConfiguration getMatchingConfiguration( + final BrowserVersion browserVersion, + final BrowserConfiguration[] browserConfigurations) { + + for (final BrowserConfiguration browserConfiguration : browserConfigurations) { + if (browserVersion.getNickname().startsWith(browserConfiguration.browserFamily_) + && browserVersion.getBrowserVersionNumeric() >= browserConfiguration.minVersionNumber_ + && browserVersion.getBrowserVersionNumeric() <= browserConfiguration.maxVersionNumber_) { + return browserConfiguration; + } + } + + return null; + } + + public String getDefaultValue() { + return defaultValue_; + } + + public BrowserConfiguration startingWith(final int minVersionNumber) { + if (minVersionNumber_ != -1) { + throw new IllegalStateException("startingWith has already been set to " + minVersionNumber_); + } + minVersionNumber_ = minVersionNumber; + return this; + } + + public BrowserConfiguration upTo(final int maxVersionNumber) { + if (maxVersionNumber_ != Integer.MAX_VALUE) { + throw new IllegalStateException("below has already been set to " + maxVersionNumber_); + } + maxVersionNumber_ = maxVersionNumber; + return this; + } +} Property changes on: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/BrowserConfiguration.java ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Revision \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java 2013-01-23 11:46:27 UTC (rev 8024) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java 2013-01-23 11:48:21 UTC (rev 8025) @@ -33,8 +33,10 @@ import java.io.StringReader; import java.text.MessageFormat; import java.text.ParseException; +import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.SortedSet; import java.util.TreeSet; @@ -64,6 +66,7 @@ import com.gargoylesoftware.htmlunit.javascript.configuration.JsxSetter; import com.gargoylesoftware.htmlunit.javascript.configuration.WebBrowser; import com.gargoylesoftware.htmlunit.javascript.host.Element; +import com.gargoylesoftware.htmlunit.javascript.host.css.StyleAttributes.Definition; import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLCanvasElement; import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement; import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLHtmlElement; @@ -89,7 +92,6 @@ /** Css important property constant. */ protected static final String PRIORITY_IMPORTANT = "important"; - private static final String AZIMUTH = "azimuth"; private static final String BACKGROUND = "background"; private static final String BACKGROUND_ATTACHMENT = "background-attachment"; private static final String BACKGROUND_COLOR = "background-color"; @@ -130,15 +132,10 @@ private static final String CONTENT = "content"; private static final String COUNTER_INCREMENT = "counter-increment"; private static final String COUNTER_RESET = "counter-reset"; - private static final String CUE = "cue"; - private static final String CUE_AFTER = "cue-after"; - private static final String CUE_BEFORE = "cue-before"; private static final String CURSOR = "cursor"; private static final String DIRECTION = "direction"; private static final String DISPLAY = "display"; - private static final String ELEVATION = "elevation"; private static final String EMPTY_CELLS = "empty-cells"; - private static final String FILTER = "filter"; private static final String FONT = "font"; private static final String FONT_FAMILY = "font-family"; private static final String FONT_SIZE = "font-size"; @@ -158,7 +155,6 @@ private static final String LEFT = "left"; private static final String LETTER_SPACING = "letter-spacing"; private static final String LINE_BREAK = "line-break"; - private static final String LINE_HEIGHT = "line-height"; private static final String LIST_STYLE = "list-style"; private static final String LIST_STYLE_IMAGE = "list-style-image"; private static final String LIST_STYLE_POSITION = "list-style-position"; @@ -174,71 +170,6 @@ private static final String MAX_WIDTH = "max-width"; private static final String MIN_HEIGHT = "min-height"; private static final String MIN_WIDTH = "min-width"; - private static final String MOZ_APPEARANCE = "-moz-appearance"; - private static final String MOZ_BACKGROUND_CLIP = "-moz-background-clip"; - private static final String MOZ_BACKGROUND_INLINE_POLICY = "-moz-background-inline-policy"; - private static final String MOZ_BACKGROUND_ORIGIN = "-moz-background-origin"; - private static final String MOZ_BACKGROUND_SIZE = "-moz-background-size"; - private static final String MOZ_BINDING = "-moz-binding"; - private static final String MOZ_BORDER_BOTTOM_COLORS = "-moz-border-bottom-colors"; - private static final String MOZ_BORDER_END = "-moz-border-end"; - private static final String MOZ_BORDER_END_COLOR = "-moz-border-end-color"; - private static final String MOZ_BORDER_END_STYLE = "-moz-border-end-style"; - private static final String MOZ_BORDER_END_WIDTH = "-moz-border-end-width"; - private static final String MOZ_BORDER_IMAGE = "-moz-border-image"; - private static final String MOZ_BORDER_LEFT_COLORS = "-moz-border-left-colors"; - private static final String MOZ_BORDER_RADIUS = "-moz-border-radius"; - private static final String MOZ_BORDER_RADIUS_BOTTOMLEFT = "-moz-border-radius-bottomleft"; - private static final String MOZ_BORDER_RADIUS_BOTTOMRIGHT = "-moz-border-radius-bottomright"; - private static final String MOZ_BORDER_RADIUS_TOPLEFT = "-moz-border-radius-topleft"; - private static final String MOZ_BORDER_RADIUS_TOPRIGHT = "-moz-border-radius-topright"; - private static final String MOZ_BORDER_RIGHT_COLORS = "-moz-border-right-colors"; - private static final String MOZ_BORDER_START = "-moz-border-start"; - private static final String MOZ_BORDER_START_COLOR = "-moz-border-start-color"; - private static final String MOZ_BORDER_START_STYLE = "-moz-border-start-style"; - private static final String MOZ_BORDER_START_WIDTH = "-moz-border-start-width"; - private static final String MOZ_BORDER_TOP_COLORS = "-moz-border-top-colors"; - private static final String MOZ_BOX_ALIGN = "-moz-box-align"; - private static final String MOZ_BOX_DIRECTION = "-moz-box-direction"; - private static final String MOZ_BOX_FLEX = "-moz-box-flex"; - private static final String MOZ_BOX_ORDINAL_GROUP = "-moz-box-ordinal-group"; - private static final String MOZ_BOX_ORIENT = "-moz-box-orient"; - private static final String MOZ_BOX_PACK = "-moz-box-pack"; - private static final String MOZ_BOX_SHADOW = "-moz-box-shadow"; - private static final String MOZ_BOX_SIZING = "-moz-box-sizing"; - private static final String MOZ_COLUMN_COUNT = "-moz-column-count"; - private static final String MOZ_COLUMN_GAP = "-moz-column-gap"; - private static final String MOZ_COLUMN_RULE = "-moz-column-rule"; - private static final String MOZ_COLUMN_RULE_COLOR = "-moz-column-rule-color"; - private static final String MOZ_COLUMN_RULE_STYLE = "-moz-column-rule-style"; - private static final String MOZ_COLUMN_RULE_WIDTH = "-moz-column-rule-width"; - private static final String MOZ_COLUMN_WIDTH = "-moz-column-width"; - private static final String MOZ_FLOAT_EDGE = "-moz-float-edge"; - private static final String MOZ_FORCE_BROKEN_IMAGE_ICON = "-moz-force-broken-image-icon"; - private static final String MOZ_IMAGE_REGION = "-moz-image-region"; - private static final String MOZ_MARGIN_END = "-moz-margin-end"; - private static final String MOZ_MARGIN_START = "-moz-margin-start"; - private static final String MOZ_OPACITY = "-moz-opacity"; - private static final String MOZ_OUTLINE = "-moz-outline"; - private static final String MOZ_OUTLINE_COLOR = "-moz-outline-color"; - private static final String MOZ_OUTLINE_OFFSET = "-moz-outline-offset"; - private static final String MOZ_OUTLINE_RADIUS = "-mz-outline-radius"; - private static final String MOZ_OUTLINE_RADIUS_BOTTOMLEFT = "-moz-outline-radius-bottomleft"; - private static final String MOZ_OUTLINE_RADIUS_BOTTOMRIGHT = "-moz-outline-radius-bottomright"; - private static final String MOZ_OUTLINE_RADIUS_TOPLEFT = "-moz-outline-radius-topleft"; - private static final String MOZ_OUTLINE_RADIUS_TOPRIGHT = "-moz-outline-radius-topright"; - private static final String MOZ_OUTLINE_STYLE = "-moz-outline-style"; - private static final String MOZ_OUTLINE_WIDTH = "-moz-outline-width"; - private static final String MOZ_PADDING_END = "-moz-padding-end"; - private static final String MOZ_PADDING_START = "-moz-padding-start"; - private static final String MOZ_STACK_SIZING = "-moz-stack-sizing"; - private static final String MOZ_TRANSFORM = "-moz-transform"; - private static final String MOZ_TRANSFORM_ORIGIN = "-moz-transform-origin"; - private static final String MOZ_USER_FOCUS = "-moz-user-focus"; - private static final String MOZ_USER_INPUT = "-moz-user-input"; - private static final String MOZ_USER_MODIFY = "-moz-user-modify"; - private static final String MOZ_USER_SELECT = "-moz-user-select"; - private static final String MOZ_WINDOW_SHADOW = "-moz-window-shadow"; private static final String MS_BLOCK_PROGRESSION = "ms-block-progression"; private static final String MS_INTERPOLATION_MODE = "ms-interpolation-mode"; private static final String OPACITY = "opacity"; @@ -260,15 +191,8 @@ private static final String PAGE_BREAK_AFTER = "page-break-after"; private static final String PAGE_BREAK_BEFORE = "page-break-before"; private static final String PAGE_BREAK_INSIDE = "page-break-inside"; - private static final String PAUSE = "pause"; - private static final String PAUSE_AFTER = "pause-after"; - private static final String PAUSE_BEFORE = "pause-before"; - private static final String PITCH = "pitch"; - private static final String PITCH_RANGE = "pitch-range"; private static final String POINTER_EVENTS = "pointer-events"; private static final String POSITION = "position"; - private static final String QUOTES = "quotes"; - private static final String RICHNESS = "richness"; private static final String RIGHT = "right"; private static final String RUBY_ALIGN = "ruby-align"; private static final String RUBY_OVERHANG = "ruby-overhang"; @@ -282,12 +206,6 @@ private static final String SCROLLBAR_SHADOW_COLOR = "scrollbar-shadow-color"; private static final String SCROLLBAR_TRACK_COLOR = "scrollbar-track-color"; private static final String SIZE = "size"; - private static final String SPEAK = "speak"; - private static final String SPEAK_HEADER = "speak-header"; - private static final String SPEAK_NUMERAL = "speak-numeral"; - private static final String SPEAK_PUNCTUATION = "speak-punctuation"; - private static final String SPEECH_RATE = "speech-rate"; - private static final String STRESS = "stress"; private static final String FLOAT = "float"; private static final String TABLE_LAYOUT = "table-layout"; private static final String TEXT_ALIGN = "text-align"; @@ -304,14 +222,10 @@ private static final String TEXT_TRANSFORM = "text-transform"; private static final String TEXT_UNDERLINE_POSITION = "text-underline-position"; private static final String TOP = "top"; - private static final String UNICODE_BIDI = "unicode-bidi"; private static final String VERTICAL_ALIGN = "vertical-align"; private static final String VISIBILITY = "visibility"; - private static final String VOICE_FAMILY = "voice-family"; - private static final String VOLUME = "volume"; private static final String WHITE_SPACE = "white-space"; private static final String WIDOWS = "widows"; - private static final String WORD_BREAK = "word-break"; private static final String WORD_SPACING = "word-spacing"; private static final String WORD_WRAP = "word-wrap"; private static final String WRITING_MODE = "writing-mode"; @@ -743,24 +657,6 @@ } /** - * Gets the "azimuth" style attribute. - * @return the style attribute - */ - @JsxGetter(@WebBrowser(FF)) - public String getAzimuth() { - return getStyleAttribute(AZIMUTH, null); - } - - /** - * Sets the "azimuth" style attribute. - * @param azimuth the new attribute - */ - @JsxSetter(@WebBrowser(FF)) - public void setAzimuth(final String azimuth) { - setStyleAttribute(AZIMUTH, azimuth); - } - - /** * Gets the "background" style attribute. * @return the style attribute */ @@ -1791,60 +1687,6 @@ } /** - * Gets the "cue" style attribute. - * @return the style attribute - */ - @JsxGetter(@WebBrowser(FF)) - public String getCue() { - return getStyleAttribute(CUE, null); - } - - /** - * Sets the "cue" style attribute. - * @param cue the new attribute - */ - @JsxSetter(@WebBrowser(FF)) - public void setCue(final String cue) { - setStyleAttribute(CUE, cue); - } - - /** - * Gets the "cueAfter" style attribute. - * @return the style attribute - */ - @JsxGetter(@WebBrowser(FF)) - public String getCueAfter() { - return getStyleAttribute(CUE_AFTER, null); - } - - /** - * Sets the "cueAfter" style attribute. - * @param cueAfter the new attribute - */ - @JsxSetter(@WebBrowser(FF)) - public void setCueAfter(final String cueAfter) { - setStyleAttribute(CUE_AFTER, cueAfter); - } - - /** - * Gets the "cueBefore" style attribute. - * @return the style attribute - */ - @JsxGetter(@WebBrowser(FF)) - public String getCueBefore() { - return getStyleAttribute(CUE_BEFORE, null); - } - - /** - * Sets the "cueBefore" style attribute. - * @param cueBefore the new attribute - */ - @JsxSetter(@WebBrowser(FF)) - public void setCueBefore(final String cueBefore) { - setStyleAttribute(CUE_BEFORE, cueBefore); - } - - /** * Gets the "cursor" style attribute. * @return the style attribute */ @@ -1899,24 +1741,6 @@ } /** - * Gets the "elevation" style attribute. - * @return the style attribute - */ - @JsxGetter(@WebBrowser(FF)) - public String getElevation() { - return getStyleAttribute(ELEVATION, null); - } - - /** - * Sets the "elevation" style attribute. - * @param elevation the new attribute - */ - @JsxSetter(@WebBrowser(FF)) - public void setElevation(final String elevation) { - setStyleAttribute(ELEVATION, elevation); - } - - /** * Gets the "emptyCells" style attribute. * @return the style attribute */ @@ -1935,28 +1759,6 @@ } /** - * Gets the object's filter (IE only). See the <a - * href="http://msdn2.microsoft.com/en-us/library/ms530752.aspx">MSDN documentation</a> for - * more information. - * @return the object's filter - */ - @JsxGetter(@WebBrowser(IE)) - public String getFilter() { - return getStyleAttribute(FILTER, null); - } - - /** - * Sets the object's filter (IE only). See the <a - * href="http://msdn2.microsoft.com/en-us/library/ms530752.aspx">MSDN documentation</a> for - * more information. - * @param filter the new filter - */ - @JsxSetter(@WebBrowser(IE)) - public void setFilter(final String filter) { - setStyleAttribute(FILTER, filter); - } - - /** * Gets the "font" style attribute. * @return the style attribute */ @@ -2308,24 +2110,6 @@ } /** - * Gets the "lineHeight" style attribute. - * @return the style attribute - */ - @JsxGetter - public String getLineHeight() { - return getStyleAttribute(LINE_HEIGHT, null); - } - - /** - * Sets the "lineHeight" style attribute. - * @param lineHeight the new attribute - */ - @JsxSetter - public void setLineHeight(final String lineHeight) { - setStyleAttribute(LINE_HEIGHT, lineHeight); - } - - /** * Gets the "listStyle" style attribute. * @return the style attribute */ @@ -2595,1177 +2379,76 @@ setStyleAttributePixel(MIN_WIDTH, minWidth); } - /** - * Gets the "MozAppearance" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozAppearance") - public String getMozAppearance() { - return getStyleAttribute(MOZ_APPEARANCE, null); - } + @Override + public Object get(final String name, final Scriptable start) { + if (this != start) { + return super.get(name, start); + } - /** - * Sets the "MozAppearance" style attribute. - * @param mozAppearance the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozAppearance") - public void setMozAppearance(final String mozAppearance) { - setStyleAttribute(MOZ_APPEARANCE, mozAppearance); - } + final Definition style = StyleAttributes.getDefinition(name, getBrowserVersion()); + if (style != null) { + return getStyleAttributeValue(style); + } - /** - * Gets the "MozBackgroundClip" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBackgroundClip") - public String getMozBackgroundClip() { - return getStyleAttribute(MOZ_BACKGROUND_CLIP, null); + return super.get(name, start); } /** - * Sets the "MozBackgroundClip" style attribute. - * @param mozBackgroundClip the new attribute + * Get the value for the style attribute. + * @param style the style + * @return the value */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBackgroundClip") - public void setMozBackgroundClip(final String mozBackgroundClip) { - setStyleAttribute(MOZ_BACKGROUND_CLIP, mozBackgroundClip); + protected String getStyleAttributeValue(final Definition style) { + return getStyleAttribute(style.getAttributeName(), null); } - /** - * Gets the "MozBackgroundInlinePolicy" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBackgroundInlinePolicy") - public String getMozBackgroundInlinePolicy() { - return getStyleAttribute(MOZ_BACKGROUND_INLINE_POLICY, null); - } + @Override + public void put(final String name, final Scriptable start, final Object value) { + if (this != start) { + super.put(name, start, value); + return; + } - /** - * Sets the "MozBackgroundInlinePolicy" style attribute. - * @param mozBackgroundInlinePolicy the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBackgroundInlinePolicy") - public void setMozBackgroundInlinePolicy(final String mozBackgroundInlinePolicy) { - setStyleAttribute(MOZ_BACKGROUND_INLINE_POLICY, mozBackgroundInlinePolicy); - } + final Definition style = StyleAttributes.getDefinition(name, getBrowserVersion()); + if (style != null) { + final String stringValue = Context.toString(value); + setStyleAttribute(style.getPropertyName(), stringValue); + return; + } - /** - * Gets the "MozBackgroundOrigin" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBackgroundOrigin") - public String getMozBackgroundOrigin() { - return getStyleAttribute(MOZ_BACKGROUND_ORIGIN, null); + super.put(name, start, value); } - /** - * Sets the "MozBackgroundOrigin" style attribute. - * @param mozBackgroundOrigin the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBackgroundOrigin") - public void setMozBackgroundOrigin(final String mozBackgroundOrigin) { - setStyleAttribute(MOZ_BACKGROUND_ORIGIN, mozBackgroundOrigin); - } + @Override + public boolean has(final String name, final Scriptable start) { + if (this != start) { + return super.has(name, start); + } - /** - * Gets the "MozBackgroundSize" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBackgroundSize") - public String getMozBackgroundSize() { - return getStyleAttribute(MOZ_BACKGROUND_SIZE, null); - } + final Definition style = StyleAttributes.getDefinition(name, getBrowserVersion()); + if (style != null) { + return true; + } - /** - * Sets the "MozBackgroundSize" style attribute. - * @param mozBackgroundSize the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBackgroundSize") - public void setMozBackgroundSize(final String mozBackgroundSize) { - setStyleAttribute(MOZ_BACKGROUND_SIZE, mozBackgroundSize); + return super.has(name, start); } - /** - * Gets the "MozBinding" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBinding") - public String getMozBinding() { - return getStyleAttribute(MOZ_BINDING, null); + @Override + public Object[] getIds() { + final List<Object> ids = new ArrayList<Object>(); + for (final Definition styleAttribute : StyleAttributes.getDefinitions(getBrowserVersion())) { + ids.add(styleAttribute.getPropertyName()); + } + final Object[] normalIds = super.getIds(); + for (final Object o : normalIds) { + if (!ids.contains(o)) { + ids.add(o); + } + } + return ids.toArray(); } /** - * Sets the "MozBinding" style attribute. - * @param mozBinding the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBinding") - public void setMozBinding(final String mozBinding) { - setStyleAttribute(MOZ_BINDING, mozBinding); - } - - /** - * Gets the "MozBorderBottomColors" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderBottomColors") - public String getMozBorderBottomColors() { - return getStyleAttribute(MOZ_BORDER_BOTTOM_COLORS, null); - } - - /** - * Sets the "MozBorderBottomColors" style attribute. - * @param mozBorderBottomColors the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderBottomColors") - public void setMozBorderBottomColors(final String mozBorderBottomColors) { - setStyleAttribute(MOZ_BORDER_BOTTOM_COLORS, mozBorderBottomColors); - } - - /** - * Gets the "MozBorderEnd" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderEnd") - public String getMozBorderEnd() { - return getStyleAttribute(MOZ_BORDER_END, null); - } - - /** - * Sets the "MozBorderEnd" style attribute. - * @param mozBorderEnd the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderEnd") - public void setMozBorderEnd(final String mozBorderEnd) { - setStyleAttribute(MOZ_BORDER_END, mozBorderEnd); - } - - /** - * Gets the "MozBorderEndColor" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderEndColor") - public String getMozBorderEndColor() { - return getStyleAttribute(MOZ_BORDER_END_COLOR, null); - } - - /** - * Sets the "MozBorderEndColor" style attribute. - * @param mozBorderEndColor the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderEndColor") - public void setMozBorderEndColor(final String mozBorderEndColor) { - setStyleAttribute(MOZ_BORDER_END_COLOR, mozBorderEndColor); - } - - /** - * Gets the "MozBorderEndStyle" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderEndStyle") - public String getMozBorderEndStyle() { - return getStyleAttribute(MOZ_BORDER_END_STYLE, null); - } - - /** - * Sets the "MozBorderEndStyle" style attribute. - * @param mozBorderEndStyle the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderEndStyle") - public void setMozBorderEndStyle(final String mozBorderEndStyle) { - setStyleAttribute(MOZ_BORDER_END_STYLE, mozBorderEndStyle); - } - - /** - * Gets the "MozBorderEndWidth" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderEndWidth") - public String getMozBorderEndWidth() { - return getStyleAttribute(MOZ_BORDER_END_WIDTH, null); - } - - /** - * Sets the "MozBorderEndWidth" style attribute. - * @param mozBorderEndWidth the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderEndWidth") - public void setMozBorderEndWidth(final String mozBorderEndWidth) { - setStyleAttribute(MOZ_BORDER_END_WIDTH, mozBorderEndWidth); - } - - /** - * Gets the "MozBorderImage" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderImage") - public String getMozBorderImage() { - return getStyleAttribute(MOZ_BORDER_IMAGE, null); - } - - /** - * Sets the "MozBorderImage" style attribute. - * @param mozBorderImage the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderImage") - public void setMozBorderImage(final String mozBorderImage) { - setStyleAttribute(MOZ_BORDER_IMAGE, mozBorderImage); - } - - /** - * Gets the "MozBorderLeftColors" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderLeftColors") - public String getMozBorderLeftColors() { - return getStyleAttribute(MOZ_BORDER_LEFT_COLORS, null); - } - - /** - * Sets the "MozBorderLeftColors" style attribute. - * @param mozBorderLeftColors the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderLeftColors") - public void setMozBorderLeftColors(final String mozBorderLeftColors) { - setStyleAttribute(MOZ_BORDER_LEFT_COLORS, mozBorderLeftColors); - } - - /** - * Gets the "MozBorderRadius" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRadius") - public String getMozBorderRadius() { - return getStyleAttribute(MOZ_BORDER_RADIUS, null); - } - - /** - * Sets the "MozBorderRadius" style attribute. - * @param mozBorderRadius the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRadius") - public void setMozBorderRadius(final String mozBorderRadius) { - setStyleAttribute(MOZ_BORDER_RADIUS, mozBorderRadius); - } - - /** - * Gets the "MozBorderRadiusBottomleft" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusBottomleft") - public String getMozBorderRadiusBottomleft() { - return getStyleAttribute(MOZ_BORDER_RADIUS_BOTTOMLEFT, null); - } - - /** - * Sets the "MozBorderRadiusBottomleft" style attribute. - * @param mozBorderRadiusBottomleft the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusBottomleft") - public void setMozBorderRadiusBottomleft(final String mozBorderRadiusBottomleft) { - setStyleAttribute(MOZ_BORDER_RADIUS_BOTTOMLEFT, mozBorderRadiusBottomleft); - } - - /** - * Gets the "MozBorderRadiusBottomright" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusBottomright") - public String getMozBorderRadiusBottomright() { - return getStyleAttribute(MOZ_BORDER_RADIUS_BOTTOMRIGHT, null); - } - - /** - * Sets the "MozBorderRadiusBottomright" style attribute. - * @param mozBorderRadiusBottomright the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusBottomright") - public void setMozBorderRadiusBottomright(final String mozBorderRadiusBottomright) { - setStyleAttribute(MOZ_BORDER_RADIUS_BOTTOMRIGHT, mozBorderRadiusBottomright); - } - - /** - * Gets the "MozBorderRadiusTopleft" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusTopleft") - public String getMozBorderRadiusTopleft() { - return getStyleAttribute(MOZ_BORDER_RADIUS_TOPLEFT, null); - } - - /** - * Sets the "MozBorderRadiusTopleft" style attribute. - * @param mozBorderRadiusTopleft the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusTopleft") - public void setMozBorderRadiusTopleft(final String mozBorderRadiusTopleft) { - setStyleAttribute(MOZ_BORDER_RADIUS_TOPLEFT, mozBorderRadiusTopleft); - } - - /** - * Gets the "MozBorderRadiusTopright" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusTopright") - public String getMozBorderRadiusTopright() { - return getStyleAttribute(MOZ_BORDER_RADIUS_TOPRIGHT, null); - } - - /** - * Sets the "MozBorderRadiusTopright" style attribute. - * @param mozBorderRadiusTopright the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRadiusTopright") - public void setMozBorderRadiusTopright(final String mozBorderRadiusTopright) { - setStyleAttribute(MOZ_BORDER_RADIUS_TOPRIGHT, mozBorderRadiusTopright); - } - - /** - * Gets the "MozBorderRightColors" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderRightColors") - public String getMozBorderRightColors() { - return getStyleAttribute(MOZ_BORDER_RIGHT_COLORS, null); - } - - /** - * Sets the "MozBorderRightColors" style attribute. - * @param mozBorderRightColors the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderRightColors") - public void setMozBorderRightColors(final String mozBorderRightColors) { - setStyleAttribute(MOZ_BORDER_RIGHT_COLORS, mozBorderRightColors); - } - - /** - * Gets the "MozBorderStart" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderStart") - public String getMozBorderStart() { - return getStyleAttribute(MOZ_BORDER_START, null); - } - - /** - * Sets the "MozBorderStart" style attribute. - * @param mozBorderStart the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderStart") - public void setMozBorderStart(final String mozBorderStart) { - setStyleAttribute(MOZ_BORDER_START, mozBorderStart); - } - - /** - * Gets the "MozBorderStartColor" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderStartColor") - public String getMozBorderStartColor() { - return getStyleAttribute(MOZ_BORDER_START_COLOR, null); - } - - /** - * Sets the "MozBorderStartColor" style attribute. - * @param mozBorderStartColor the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderStartColor") - public void setMozBorderStartColor(final String mozBorderStartColor) { - setStyleAttribute(MOZ_BORDER_START_COLOR, mozBorderStartColor); - } - - /** - * Gets the "MozBorderStartStyle" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderStartStyle") - public String getMozBorderStartStyle() { - return getStyleAttribute(MOZ_BORDER_START_STYLE, null); - } - - /** - * Sets the "MozBorderStartStyle" style attribute. - * @param mozBorderStartStyle the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderStartStyle") - public void setMozBorderStartStyle(final String mozBorderStartStyle) { - setStyleAttribute(MOZ_BORDER_START_STYLE, mozBorderStartStyle); - } - - /** - * Gets the "MozBorderStartWidth" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderStartWidth") - public String getMozBorderStartWidth() { - return getStyleAttribute(MOZ_BORDER_START_WIDTH, null); - } - - /** - * Sets the "MozBorderStartWidth" style attribute. - * @param mozBorderStartWidth the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderStartWidth") - public void setMozBorderStartWidth(final String mozBorderStartWidth) { - setStyleAttribute(MOZ_BORDER_START_WIDTH, mozBorderStartWidth); - } - - /** - * Gets the "MozBorderTopColors" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBorderTopColors") - public String getMozBorderTopColors() { - return getStyleAttribute(MOZ_BORDER_TOP_COLORS, null); - } - - /** - * Sets the "MozBorderTopColors" style attribute. - * @param mozBorderTopColors the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBorderTopColors") - public void setMozBorderTopColors(final String mozBorderTopColors) { - setStyleAttribute(MOZ_BORDER_TOP_COLORS, mozBorderTopColors); - } - - /** - * Gets the "MozBoxAlign" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxAlign") - public String getMozBoxAlign() { - return getStyleAttribute(MOZ_BOX_ALIGN, null); - } - - /** - * Sets the "MozBoxAlign" style attribute. - * @param mozBoxAlign the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxAlign") - public void setMozBoxAlign(final String mozBoxAlign) { - setStyleAttribute(MOZ_BOX_ALIGN, mozBoxAlign); - } - - /** - * Gets the "MozBoxDirection" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxDirection") - public String getMozBoxDirection() { - return getStyleAttribute(MOZ_BOX_DIRECTION, null); - } - - /** - * Sets the "MozBoxDirection" style attribute. - * @param mozBoxDirection the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxDirection") - public void setMozBoxDirection(final String mozBoxDirection) { - setStyleAttribute(MOZ_BOX_DIRECTION, mozBoxDirection); - } - - /** - * Gets the "MozBoxFlex" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxFlex") - public String getMozBoxFlex() { - return getStyleAttribute(MOZ_BOX_FLEX, null); - } - - /** - * Sets the "MozBoxFlex" style attribute. - * @param mozBoxFlex the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxFlex") - public void setMozBoxFlex(final String mozBoxFlex) { - setStyleAttribute(MOZ_BOX_FLEX, mozBoxFlex); - } - - /** - * Gets the "MozBoxOrdinalGroup" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxOrdinalGroup") - public String getMozBoxOrdinalGroup() { - return getStyleAttribute(MOZ_BOX_ORDINAL_GROUP, null); - } - - /** - * Sets the "MozBoxOrdinalGroup" style attribute. - * @param mozBoxOrdinalGroup the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxOrdinalGroup") - public void setMozBoxOrdinalGroup(final String mozBoxOrdinalGroup) { - setStyleAttribute(MOZ_BOX_ORDINAL_GROUP, mozBoxOrdinalGroup); - } - - /** - * Gets the "MozBoxOrient" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxOrient") - public String getMozBoxOrient() { - return getStyleAttribute(MOZ_BOX_ORIENT, null); - } - - /** - * Sets the "MozBoxOrient" style attribute. - * @param mozBoxOrient the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxOrient") - public void setMozBoxOrient(final String mozBoxOrient) { - setStyleAttribute(MOZ_BOX_ORIENT, mozBoxOrient); - } - - /** - * Gets the "MozBoxPack" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxPack") - public String getMozBoxPack() { - return getStyleAttribute(MOZ_BOX_PACK, null); - } - - /** - * Sets the "MozBoxPack" style attribute. - * @param mozBoxPack the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxPack") - public void setMozBoxPack(final String mozBoxPack) { - setStyleAttribute(MOZ_BOX_PACK, mozBoxPack); - } - - /** - * Gets the "MozBoxShadow" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxShadow") - public String getMozBoxShadow() { - return getStyleAttribute(MOZ_BOX_SHADOW, null); - } - - /** - * Sets the "MozBoxShadow" style attribute. - * @param mozBoxShadow the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxShadow") - public void setMozBoxShadow(final String mozBoxShadow) { - setStyleAttribute(MOZ_BOX_SHADOW, mozBoxShadow); - } - - /** - * Gets the "MozBoxSizing" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozBoxSizing") - public String getMozBoxSizing() { - return getStyleAttribute(MOZ_BOX_SIZING, null); - } - - /** - * Sets the "MozBoxSizing" style attribute. - * @param mozBoxSizing the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozBoxSizing") - public void setMozBoxSizing(final String mozBoxSizing) { - setStyleAttribute(MOZ_BOX_SIZING, mozBoxSizing); - } - - /** - * Gets the "MozColumnCount" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnCount") - public String getMozColumnCount() { - return getStyleAttribute(MOZ_COLUMN_COUNT, null); - } - - /** - * Sets the "MozColumnCount" style attribute. - * @param mozColumnCount the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnCount") - public void setMozColumnCount(final String mozColumnCount) { - setStyleAttribute(MOZ_COLUMN_COUNT, mozColumnCount); - } - - /** - * Gets the "MozColumnGap" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnGap") - public String getMozColumnGap() { - return getStyleAttribute(MOZ_COLUMN_GAP, null); - } - - /** - * Sets the "MozColumnGap" style attribute. - * @param mozColumnGap the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnGap") - public void setMozColumnGap(final String mozColumnGap) { - setStyleAttribute(MOZ_COLUMN_GAP, mozColumnGap); - } - - /** - * Gets the "MozColumnRule" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnRule") - public String getMozColumnRule() { - return getStyleAttribute(MOZ_COLUMN_RULE, null); - } - - /** - * Sets the "MozColumnRule" style attribute. - * @param mozColumnRule the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnRule") - public void setMozColumnRule(final String mozColumnRule) { - setStyleAttribute(MOZ_COLUMN_RULE, mozColumnRule); - } - - /** - * Gets the "MozColumnRuleColor" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleColor") - public String getMozColumnRuleColor() { - return getStyleAttribute(MOZ_COLUMN_RULE_COLOR, null); - } - - /** - * Sets the "MozColumnRuleColor" style attribute. - * @param mozColumnRuleColor the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleColor") - public void setMozColumnRuleColor(final String mozColumnRuleColor) { - setStyleAttribute(MOZ_COLUMN_RULE_COLOR, mozColumnRuleColor); - } - - /** - * Gets the "MozColumnRuleStyle" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleStyle") - public String getMozColumnRuleStyle() { - return getStyleAttribute(MOZ_COLUMN_RULE_STYLE, null); - } - - /** - * Sets the "MozColumnRuleStyle" style attribute. - * @param mozColumnRuleStyle the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleStyle") - public void setMozColumnRuleStyle(final String mozColumnRuleStyle) { - setStyleAttribute(MOZ_COLUMN_RULE_STYLE, mozColumnRuleStyle); - } - - /** - * Gets the "MozColumnRuleWidth" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleWidth") - public String getMozColumnRuleWidth() { - return getStyleAttribute(MOZ_COLUMN_RULE_WIDTH, null); - } - - /** - * Sets the "MozColumnRuleWidth" style attribute. - * @param mozColumnRuleWidth the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnRuleWidth") - public void setMozColumnRuleWidth(final String mozColumnRuleWidth) { - setStyleAttribute(MOZ_COLUMN_RULE_WIDTH, mozColumnRuleWidth); - } - - /** - * Gets the "MozColumnWidth" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozColumnWidth") - public String getMozColumnWidth() { - return getStyleAttribute(MOZ_COLUMN_WIDTH, null); - } - - /** - * Sets the "MozColumnWidth" style attribute. - * @param mozColumnWidth the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozColumnWidth") - public void setMozColumnWidth(final String mozColumnWidth) { - setStyleAttribute(MOZ_COLUMN_WIDTH, mozColumnWidth); - } - - /** - * Gets the "MozFloatEdge" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozFloatEdge") - public String getMozFloatEdge() { - return getStyleAttribute(MOZ_FLOAT_EDGE, null); - } - - /** - * Sets the "MozFloatEdge" style attribute. - * @param mozFloatEdge the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozFloatEdge") - public void setMozFloatEdge(final String mozFloatEdge) { - setStyleAttribute(MOZ_FLOAT_EDGE, mozFloatEdge); - } - - /** - * Gets the "MozForceBrokenImageIcon" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozForceBrokenImageIcon") - public String getMozForceBrokenImageIcon() { - return getStyleAttribute(MOZ_FORCE_BROKEN_IMAGE_ICON, null); - } - - /** - * Sets the "MozForceBrokenImageIcon" style attribute. - * @param mozForceBrokenImageIcon the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozForceBrokenImageIcon") - public void setMozForceBrokenImageIcon(final String mozForceBrokenImageIcon) { - setStyleAttribute(MOZ_FORCE_BROKEN_IMAGE_ICON, mozForceBrokenImageIcon); - } - - /** - * Gets the "MozImageRegion" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozImageRegion") - public String getMozImageRegion() { - return getStyleAttribute(MOZ_IMAGE_REGION, null); - } - - /** - * Sets the "MozImageRegion" style attribute. - * @param mozImageRegion the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozImageRegion") - public void setMozImageRegion(final String mozImageRegion) { - setStyleAttribute(MOZ_IMAGE_REGION, mozImageRegion); - } - - /** - * Gets the "MozMarginEnd" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozMarginEnd") - public String getMozMarginEnd() { - return getStyleAttribute(MOZ_MARGIN_END, null); - } - - /** - * Sets the "MozMarginEnd" style attribute. - * @param mozMarginEnd the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozMarginEnd") - public void setMozMarginEnd(final String mozMarginEnd) { - setStyleAttribute(MOZ_MARGIN_END, mozMarginEnd); - } - - /** - * Gets the "MozMarginStart" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozMarginStart") - public String getMozMarginStart() { - return getStyleAttribute(MOZ_MARGIN_START, null); - } - - /** - * Sets the "MozMarginStart" style attribute. - * @param mozMarginStart the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozMarginStart") - public void setMozMarginStart(final String mozMarginStart) { - setStyleAttribute(MOZ_MARGIN_START, mozMarginStart); - } - - /** - * Gets the "MozOpacity" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOpacity") - public String getMozOpacity() { - return getStyleAttribute(MOZ_OPACITY, null); - } - - /** - * Sets the "MozOpacity" style attribute. - * @param mozOpacity the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOpacity") - public void setMozOpacity(final String mozOpacity) { - setStyleAttribute(MOZ_OPACITY, mozOpacity); - } - - /** - * Gets the "MozOutline" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutline") - public String getMozOutline() { - return getStyleAttribute(MOZ_OUTLINE, null); - } - - /** - * Sets the "MozOutline" style attribute. - * @param mozOutline the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutline") - public void setMozOutline(final String mozOutline) { - setStyleAttribute(MOZ_OUTLINE, mozOutline); - } - - /** - * Gets the "MozOutlineColor" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineColor") - public String getMozOutlineColor() { - return getStyleAttribute(MOZ_OUTLINE_COLOR, null); - } - - /** - * Sets the "MozOutlineColor" style attribute. - * @param mozOutlineColor the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineColor") - public void setMozOutlineColor(final String mozOutlineColor) { - setStyleAttribute(MOZ_OUTLINE_COLOR, mozOutlineColor); - } - - /** - * Gets the "MozOutlineOffset" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineOffset") - public String getMozOutlineOffset() { - return getStyleAttribute(MOZ_OUTLINE_OFFSET, null); - } - - /** - * Sets the "MozOutlineOffset" style attribute. - * @param mozOutlineOffset the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineOffset") - public void setMozOutlineOffset(final String mozOutlineOffset) { - setStyleAttribute(MOZ_OUTLINE_OFFSET, mozOutlineOffset); - } - - /** - * Gets the "MozOutlineRadius" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadius") - public String getMozOutlineRadius() { - return getStyleAttribute(MOZ_OUTLINE_RADIUS, null); - } - - /** - * Sets the "MozOutlineRadius" style attribute. - * @param mozOutlineRadius the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadius") - public void setMozOutlineRadius(final String mozOutlineRadius) { - setStyleAttribute(MOZ_OUTLINE_RADIUS, mozOutlineRadius); - } - - /** - * Gets the "MozOutlineRadiusBottomleft" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusBottomleft") - public String getMozOutlineRadiusBottomleft() { - return getStyleAttribute(MOZ_OUTLINE_RADIUS_BOTTOMLEFT, null); - } - - /** - * Sets the "MozOutlineRadiusBottomleft" style attribute. - * @param mozOutlineRadiusBottomleft the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusBottomleft") - public void setMozOutlineRadiusBottomleft(final String mozOutlineRadiusBottomleft) { - setStyleAttribute(MOZ_OUTLINE_RADIUS_BOTTOMLEFT, mozOutlineRadiusBottomleft); - } - - /** - * Gets the "MozOutlineRadiusBottomright" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusBottomright") - public String getMozOutlineRadiusBottomright() { - return getStyleAttribute(MOZ_OUTLINE_RADIUS_BOTTOMRIGHT, null); - } - - /** - * Sets the "MozOutlineRadiusBottomright" style attribute. - * @param mozOutlineRadiusBottomright the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusBottomright") - public void setMozOutlineRadiusBottomright(final String mozOutlineRadiusBottomright) { - setStyleAttribute(MOZ_OUTLINE_RADIUS_BOTTOMRIGHT, mozOutlineRadiusBottomright); - } - - /** - * Gets the "MozOutlineRadiusTopleft" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusTopleft") - public String getMozOutlineRadiusTopleft() { - return getStyleAttribute(MOZ_OUTLINE_RADIUS_TOPLEFT, null); - } - - /** - * Sets the "MozOutlineRadiusTopleft" style attribute. - * @param mozOutlineRadiusTopleft the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusTopleft") - public void setMozOutlineRadiusTopleft(final String mozOutlineRadiusTopleft) { - setStyleAttribute(MOZ_OUTLINE_RADIUS_TOPLEFT, mozOutlineRadiusTopleft); - } - - /** - * Gets the "MozOutlineRadiusTopright" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusTopright") - public String getMozOutlineRadiusTopright() { - return getStyleAttribute(MOZ_OUTLINE_RADIUS_TOPRIGHT, null); - } - - /** - * Sets the "MozOutlineRadiusTopright" style attribute. - * @param mozOutlineRadiusTopright the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineRadiusTopright") - public void setMozOutlineRadiusTopright(final String mozOutlineRadiusTopright) { - setStyleAttribute(MOZ_OUTLINE_RADIUS_TOPRIGHT, mozOutlineRadiusTopright); - } - - /** - * Gets the "MozOutlineStyle" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineStyle") - public String getMozOutlineStyle() { - return getStyleAttribute(MOZ_OUTLINE_STYLE, null); - } - - /** - * Sets the "MozOutlineStyle" style attribute. - * @param mozOutlineStyle the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineStyle") - public void setMozOutlineStyle(final String mozOutlineStyle) { - setStyleAttribute(MOZ_OUTLINE_STYLE, mozOutlineStyle); - } - - /** - * Gets the "MozOutlineWidth" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozOutlineWidth") - public String getMozOutlineWidth() { - return getStyleAttribute(MOZ_OUTLINE_WIDTH, null); - } - - /** - * Sets the "MozOutlineWidth" style attribute. - * @param mozOutlineWidth the new attribute - */ - @JsxSetter(value = @WebBrowser(FF), propertyName = "MozOutlineWidth") - public void setMozOutlineWidth(final String mozOutlineWidth) { - setStyleAttribute(MOZ_OUTLINE_WIDTH, mozOutlineWidth); - } - - /** - * Gets the "MozPaddingEnd" style attribute. - * @return the style attribute - */ - @JsxGetter(value = @WebBrowser(FF), propertyName = "MozPaddingEnd") - public String getMozPaddingEnd() { - return getStyleAtt... [truncated message content] |