| Index: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
|
| index be0c55d4a09d0890ca779f9b926b760cd42c5eb6..5e18aa86a754608bb26541e15fca0b56bedfc295 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
|
| @@ -15,6 +15,7 @@ import org.chromium.content_public.browser.NavigationController;
|
| import org.chromium.content_public.browser.NavigationTransitionDelegate;
|
| import org.chromium.content_public.browser.WebContents;
|
| import org.chromium.content_public.browser.WebContentsObserver;
|
| +import org.chromium.ui.accessibility.AXTextStyle;
|
|
|
| /**
|
| * The WebContentsImpl Java wrapper to allow communicating with the native WebContentsImpl
|
| @@ -356,9 +357,14 @@ import org.chromium.content_public.browser.WebContentsObserver;
|
| @CalledByNative
|
| private static AccessibilitySnapshotNode createAccessibilitySnapshotNode(int x,
|
| int y, int scrollX, int scrollY, int width, int height, String text,
|
| - String className) {
|
| + int color, int bgcolor, float size, int textStyle, String className) {
|
| +
|
| + boolean bold = (textStyle & AXTextStyle.text_style_bold) > 0;
|
| + boolean italic = (textStyle & AXTextStyle.text_style_italic) > 0;
|
| + boolean underline = (textStyle & AXTextStyle.text_style_underline) > 0;
|
| + boolean lineThrough = (textStyle & AXTextStyle.text_style_line_through) > 0;
|
| return new AccessibilitySnapshotNode(x, y, scrollX, scrollY, width, height, text,
|
| - className);
|
| + color, bgcolor, size, bold, italic, underline, lineThrough, className);
|
| }
|
|
|
| @Override
|
|
|