Skip to content

Commit 6192089

Browse files
author
jossonsmith
committed
Split swt-default.css into small *.css
1 parent 824e25d commit 6192089

47 files changed

Lines changed: 2145 additions & 2124 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.browser-default {
2+
width:100%;
3+
height:100%;
4+
background-color:white;
5+
}
6+
7+
* html .browser-default {
8+
border:2px solid menu;
9+
}

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/browser/Browser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
* </p>
3232
*
3333
* @since 3.0
34+
*
35+
* @j2sPrefix
36+
* Clazz.registerCSS ("$wt.browser.Browser");
3437
*/
3538
public class Browser extends Composite {
3639
/*

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/custom/CLabel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ private static int checkStyle (int style) {
145145
* NO_BACKGROUND style. The NO_BACKGROUND style is not required on platforms
146146
* that use double buffering which is true in both of these cases.
147147
*/
148+
/* Ignore platform problem here in Java2Script SWT
148149
String platform = SWT.getPlatform();
149150
if ("carbon".equals(platform) || "gtk".equals(platform)) return style; //$NON-NLS-1$ //$NON-NLS-2$
151+
*/
150152
return style | SWT.NO_BACKGROUND;
151153
}
152154

0 commit comments

Comments
 (0)