Merge pull request #1284 from atom/subpixel-font
Bring back the "subpixel-font-scaling" option
This commit is contained in:
commit
2f5345e10d
6 changed files with 7 additions and 1 deletions
|
@ -77,6 +77,7 @@ namespace {
|
||||||
const char* kWebRuntimeFeatures[] = {
|
const char* kWebRuntimeFeatures[] = {
|
||||||
switches::kExperimentalFeatures,
|
switches::kExperimentalFeatures,
|
||||||
switches::kExperimentalCanvasFeatures,
|
switches::kExperimentalCanvasFeatures,
|
||||||
|
switches::kSubpixelFontScaling,
|
||||||
switches::kOverlayScrollbars,
|
switches::kOverlayScrollbars,
|
||||||
switches::kOverlayFullscreenVideo,
|
switches::kOverlayFullscreenVideo,
|
||||||
switches::kSharedWorker,
|
switches::kSharedWorker,
|
||||||
|
|
|
@ -78,6 +78,7 @@ const char kType[] = "type";
|
||||||
// Web runtime features.
|
// Web runtime features.
|
||||||
const char kExperimentalFeatures[] = "experimental-features";
|
const char kExperimentalFeatures[] = "experimental-features";
|
||||||
const char kExperimentalCanvasFeatures[] = "experimental-canvas-features";
|
const char kExperimentalCanvasFeatures[] = "experimental-canvas-features";
|
||||||
|
const char kSubpixelFontScaling[] = "subpixel-font-scaling";
|
||||||
const char kOverlayScrollbars[] = "overlay-scrollbars";
|
const char kOverlayScrollbars[] = "overlay-scrollbars";
|
||||||
const char kOverlayFullscreenVideo[] = "overlay-fullscreen-video";
|
const char kOverlayFullscreenVideo[] = "overlay-fullscreen-video";
|
||||||
const char kSharedWorker[] = "shared-worker";
|
const char kSharedWorker[] = "shared-worker";
|
||||||
|
|
|
@ -44,6 +44,7 @@ extern const char kType[];
|
||||||
|
|
||||||
extern const char kExperimentalFeatures[];
|
extern const char kExperimentalFeatures[];
|
||||||
extern const char kExperimentalCanvasFeatures[];
|
extern const char kExperimentalCanvasFeatures[];
|
||||||
|
extern const char kSubpixelFontScaling[];
|
||||||
extern const char kOverlayScrollbars[];
|
extern const char kOverlayScrollbars[];
|
||||||
extern const char kOverlayFullscreenVideo[];
|
extern const char kOverlayFullscreenVideo[];
|
||||||
extern const char kSharedWorker[];
|
extern const char kSharedWorker[];
|
||||||
|
|
|
@ -168,6 +168,8 @@ void AtomRendererClient::EnableWebRuntimeFeatures() {
|
||||||
blink::WebRuntimeFeatures::enableExperimentalFeatures(b);
|
blink::WebRuntimeFeatures::enableExperimentalFeatures(b);
|
||||||
if (IsSwitchEnabled(command_line, switches::kExperimentalCanvasFeatures, &b))
|
if (IsSwitchEnabled(command_line, switches::kExperimentalCanvasFeatures, &b))
|
||||||
blink::WebRuntimeFeatures::enableExperimentalCanvasFeatures(b);
|
blink::WebRuntimeFeatures::enableExperimentalCanvasFeatures(b);
|
||||||
|
if (IsSwitchEnabled(command_line, switches::kSubpixelFontScaling, &b))
|
||||||
|
blink::WebRuntimeFeatures::enableSubpixelFontScaling(b);
|
||||||
if (IsSwitchEnabled(command_line, switches::kOverlayScrollbars, &b))
|
if (IsSwitchEnabled(command_line, switches::kOverlayScrollbars, &b))
|
||||||
blink::WebRuntimeFeatures::enableOverlayScrollbars(b);
|
blink::WebRuntimeFeatures::enableOverlayScrollbars(b);
|
||||||
if (IsSwitchEnabled(command_line, switches::kOverlayFullscreenVideo, &b))
|
if (IsSwitchEnabled(command_line, switches::kOverlayFullscreenVideo, &b))
|
||||||
|
|
|
@ -88,6 +88,7 @@ You can also create a window without chrome by using
|
||||||
under current working directory.
|
under current working directory.
|
||||||
* `experimental-features` Boolean
|
* `experimental-features` Boolean
|
||||||
* `experimental-canvas-features` Boolean
|
* `experimental-canvas-features` Boolean
|
||||||
|
* `subpixel-font-scaling` Boolean
|
||||||
* `overlay-scrollbars` Boolean
|
* `overlay-scrollbars` Boolean
|
||||||
* `overlay-fullscreen-video` Boolean
|
* `overlay-fullscreen-video` Boolean
|
||||||
* `shared-worker` Boolean
|
* `shared-worker` Boolean
|
||||||
|
|
|
@ -4,7 +4,7 @@ import platform
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
||||||
LIBCHROMIUMCONTENT_COMMIT = '78ddaee2158886da53d0801db572be38230fd814'
|
LIBCHROMIUMCONTENT_COMMIT = '26dd65a62e35aa98b25c10cbfc00f1a621fd4c4b'
|
||||||
|
|
||||||
ARCH = {
|
ARCH = {
|
||||||
'cygwin': '32bit',
|
'cygwin': '32bit',
|
||||||
|
|
Loading…
Reference in a new issue