Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8267554: Support loading stylesheets from data-URIs #536

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -520,7 +520,7 @@ public static String getUserAgentStylesheet() {
* does not have a [scheme:] component, the URL is considered to be the [path] component only.
* Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to
* the root of the application's classpath.
* </p>
* <p>
* The RFC 2397 "data" scheme for URLs is supported in addition to the protocol handlers that
* are registered for the application.
* If a URL uses the "data" scheme and the MIME type is either empty, "text/plain", or "text/css",
@@ -529,8 +529,6 @@ public static String getUserAgentStylesheet() {
* CSS file (see {@link Stylesheet#convertToBinary(File, File)}).
* <p>
* NOTE: This method must be called on the JavaFX Application Thread.
* </p>
*
*
* @param url The URL to the stylesheet as a String.
* @since JavaFX 8.0
6 changes: 3 additions & 3 deletions modules/javafx.graphics/src/main/java/javafx/scene/Scene.java
Original file line number Diff line number Diff line change
@@ -1622,7 +1622,7 @@ protected void onChanged(Change<String> c) {
* does not have a [scheme:] component, the URL is considered to be the [path] component only.
* Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to
* the root of the application's classpath.
* </p>
* <p>
* The RFC 2397 "data" scheme for URLs is supported in addition to the protocol handlers that
* are registered for the application.
* If a URL uses the "data" scheme and the MIME type is either empty, "text/plain", or "text/css",
@@ -1703,7 +1703,7 @@ public final String getUserAgentStylesheet() {
* does not have a [scheme:] component, the URL is considered to be the [path] component only.
* Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to
* the root of the application's classpath.
* </p>
* <p>
* The RFC 2397 "data" scheme for URLs is supported in addition to the protocol handlers that
* are registered for the application.
* If a URL uses the "data" scheme and the MIME type is either empty, "text/plain", or "text/css",
@@ -1713,7 +1713,7 @@ public final String getUserAgentStylesheet() {
* <p>
* For additional information about using CSS with the scene graph,
* see the <a href="doc-files/cssref.html">CSS Reference Guide</a>.
* </p>
*
* @param url the URL of the user-agent stylesheet
* @since JavaFX 8u20
*/
Original file line number Diff line number Diff line change
@@ -687,7 +687,7 @@ public final String getUserAgentStylesheet() {
* does not have a [scheme:] component, the URL is considered to be the [path] component only.
* Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to
* the root of the application's classpath.
* </p>
* <p>
* The RFC 2397 "data" scheme for URLs is supported in addition to the protocol handlers that
* are registered for the application.
* If a URL uses the "data" scheme and the MIME type is either empty, "text/plain", or "text/css",
@@ -697,7 +697,7 @@ public final String getUserAgentStylesheet() {
* <p>
* For additional information about using CSS with the scene graph,
* see the <a href="doc-files/cssref.html">CSS Reference Guide</a>.
* </p>
*
* @param url the URL of the user-agent stylesheet
* @since JavaFX 8u20
*/