/** * Gets the document's viewport element. This is the element that should be * used to for scrolling and client-area measurement. In quirks-mode it is the * <body> element, while in standards-mode it is the <html> * element. * * This is package-protected because the viewport is * * @return the document's viewport element */ final Element getViewportElement() { return isCSS1Compat() ? getDocumentElement() : getBody(); } }
/** * Gets the document's viewport element. This is the element that should be * used to for scrolling and client-area measurement. In quirks-mode it is the * <body> element, while in standards-mode it is the <html> * element. * * This is package-protected because the viewport is * * @return the document's viewport element */ final Element getViewportElement() { return isCSS1Compat() ? getDocumentElement() : getBody(); } }
private Element getViewportElement() { return GQuery.document.isCSS1Compat() ? GQuery.document .getDocumentElement() : GQuery.document.getBody(); }
/** * Gets the document's viewport element. This is the element that should be * used to for scrolling and client-area measurement. In quirks-mode it is the * <body> element, while in standards-mode it is the <html> * element. * * This is package-protected because the viewport is * * @return the document's viewport element */ final Element getViewportElement() { return isCSS1Compat() ? getDocumentElement() : getBody(); } }
isStrict = Document.get().isCSS1Compat();
restoreShadow = getShadow(); if (container == null) { String bodyOverflow = com.google.gwt.dom.client.Document.get().isCSS1Compat() ? com.google.gwt.dom.client.Document.get().getDocumentElement().getStyle().getProperty("overflow") : com.google.gwt.dom.client.Document.get().getBody().getStyle().getProperty("overflow");