[HtmlUnit] SVN: [14449] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14449] trunk/htmlunit/src

asashour-2
Revision: 14449
          http://sourceforge.net/p/htmlunit/code/14449
Author:   asashour
Date:     2017-05-13 19:08:43 +0000 (Sat, 13 May 2017)
Log Message:
-----------
Fix build

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGElement.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGElement.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGeometryElement.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGElement.java 2017-05-13 15:29:44 UTC (rev 14448)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGElement.java 2017-05-13 19:08:43 UTC (rev 14449)
@@ -47,6 +47,17 @@
     }
 
     /**
+     * Returns the bounding box, in current user space, of the geometry of all contained graphics elements.
+     * @return the bounding box
+     */
+    protected SVGRect getBBox() {
+        final SVGRect rect = new SVGRect();
+        rect.setParentScope(getParentScope());
+        rect.setPrototype(getPrototype(rect.getClass()));
+        return rect;
+    }
+
+    /**
      * {@inheritDoc}
      */
     @Override

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGElement.java 2017-05-13 15:29:44 UTC (rev 14448)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGElement.java 2017-05-13 19:08:43 UTC (rev 14449)
@@ -20,6 +20,7 @@
 
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
+import com.gargoylesoftware.htmlunit.javascript.configuration.JsxFunction;
 import com.gargoylesoftware.htmlunit.svg.SvgGroup;
 
 /**
@@ -36,4 +37,13 @@
     @JsxConstructor({CHROME, FF, EDGE})
     public SVGGElement() {
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    @JsxFunction
+    protected SVGRect getBBox() {
+        return super.getBBox();
+    }
 }

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGeometryElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGeometryElement.java 2017-05-13 15:29:44 UTC (rev 14448)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/svg/SVGGeometryElement.java 2017-05-13 19:08:43 UTC (rev 14449)
@@ -21,6 +21,7 @@
 
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
 import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
+import com.gargoylesoftware.htmlunit.javascript.configuration.JsxFunction;
 
 /**
  * A JavaScript object for {@code SVGGeometryElement}.
@@ -37,4 +38,13 @@
     @JsxConstructor
     public SVGGeometryElement() {
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    @JsxFunction
+    protected SVGRect getBBox() {
+        return super.getBBox();
+    }
 }

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-05-13 15:29:44 UTC (rev 14448)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementPropertiesTest.java 2017-05-13 19:08:43 UTC (rev 14449)
@@ -2463,6 +2463,7 @@
             IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch,"
                 + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign,"
                 + "width")
+    @NotYetImplemented(IE)
     public void td() throws Exception {
         test("td");
     }
@@ -2478,6 +2479,7 @@
             IE = "abbr,align,axis,background,bgColor,borderColor,borderColorDark,borderColorLight,cellIndex,ch,"
                 + "chOff,colSpan,headers,height,noWrap,rowSpan,scope,vAlign,"
                 + "width")
+    @NotYetImplemented(IE)
     public void th() throws Exception {
         test("th");
     }


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...