/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderMarquee.cpp | 121 LayoutUnit clientWidth = this->clientWidth(); 131 return max<LayoutUnit>(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 133 return ltr ? contentWidth : clientWidth; 137 return min<LayoutUnit>(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 139 return ltr ? -clientWidth : -contentWidth; 301 int clientSize = (isHorizontal() ? clientWidth() : clientHeight());
|
RenderBox.h | 168 LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft() + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - computedCSSPaddingTop() - computedCSSPaddingBottom()); } 213 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - paddingRight(); } 229 // More IE extensions. clientWidth and clientHeight represent the interior of an object 233 LayoutUnit clientWidth() const; 235 LayoutUnit clientLogicalWidth() const { return style()->isHorizontalWritingMode() ? clientWidth() : clientHeight(); } 236 LayoutUnit clientLogicalHeight() const { return style()->isHorizontalWritingMode() ? clientHeight() : clientWidth(); } 238 LayoutRect clientBoxRect() const { return LayoutRect(clientLeft(), clientTop(), clientWidth(), clientHeight()); } 243 // scrollWidth/scrollHeight will be the same as clientWidth/clientHeight unless the 470 bool hasScrollableOverflowX() const { return scrollsOverflowX() && scrollWidth() != clientWidth(); } [all...] |
RenderLayerScrollableArea.cpp | 599 int clientWidth = m_box->pixelSnappedClientWidth(); 600 horizontalScrollbar->setProportion(clientWidth, overflowRect().width()); [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
OverviewGrid.js | 53 clientWidth: function() 55 return this.element.clientWidth; 280 window.end = Math.min(this._parentElement.clientWidth, middle + WebInspector.OverviewGrid.MinSelectableSize / 2); 282 if (this._parentElement.clientWidth - window.end > WebInspector.OverviewGrid.MinSelectableSize) 308 var delta = (event.pageX - this._dragStartPoint) / this._parentElement.clientWidth; 337 if (end > this._parentElement.clientWidth - 10) 338 end = this._parentElement.clientWidth; 346 this._setWindowPosition(0, this._parentElement.clientWidth); 360 var widthInPixels = width * this._parentElement.clientWidth; 387 var clientWidth = this._parentElement.clientWidth [all...] |
TimelineOverviewPane.js | 105 this._overviewCalculator.setDisplayWindow(0, this._overviewGrid.clientWidth()); 263 * @param {number} clientWidth 265 setDisplayWindow: function(paddingLeft, clientWidth) 267 this._workingArea = clientWidth - paddingLeft; 357 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
|
PaintProfilerView.js | 66 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
|
FlameChart.js | 421 this._resetCanvas(this._overviewContainer.clientWidth, this._overviewContainer.clientHeight - 20); 427 this._overviewContainer.clientWidth, 872 this._pixelWindowWidth = this._chartContainer.clientWidth - this._paddingLeft; 900 this.draw(this._chartContainer.clientWidth, this._chartContainer.clientHeight); 902 this._timelineGrid.element.style.width = this.element.clientWidth;
|
TimelineGrid.js | 91 var dividersElementClientWidth = this._dividersElement.clientWidth;
|
Spectrum.js | 183 maxWidth = element.clientWidth;
|
TabbedPane.js | 966 var intersects = tabElement.offsetLeft + tabElement.clientWidth > this._tabElement.offsetLeft && 967 this._tabElement.offsetLeft + this._tabElement.clientWidth > tabElement.offsetLeft; 971 if (Math.abs(event.pageX - this._dragStartX) < tabElement.clientWidth / 2 + 5)
|
/external/chromium_org/tools/telemetry/telemetry/page/actions/ |
scroll.js | 67 var clientWidth; 68 // clientWidth is "special" for the body element. 70 clientWidth = window.innerWidth; 72 clientWidth = this.element_.clientWidth; 74 return this.element_.scrollWidth - this.element_.scrollLeft - clientWidth;
|
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/ui/ |
breadcrumbs_controller.js | 162 // Assume style.width == clientWidth (items have no margins or paddings). 169 var containerWidth = this.bc_.clientWidth; 177 currentWidth = item.clientWidth; 180 currentWidth += item.clientWidth; 190 var lastCrumbSeparatorWidth = lastSeparator.clientWidth; 199 if (parentCrumb && pathWidth - maxPathWidth > parentCrumb.clientWidth) { 204 collapsedWidth = Math.min(maxPathWidth, parentCrumb.clientWidth); 206 if (parentCrumb.clientWidth != collapsedWidth) 212 collapsedWidth += lastSeparator.clientWidth; 213 maxPathWidth = Math.max(0, maxPathWidth - lastSeparator.clientWidth); [all...] |
search_box.js | 142 this.element.clientWidth < 100);
|
/external/chromium_org/third_party/angle/src/libEGL/ |
Surface.cpp | 310 int clientWidth = client.right - client.left; 312 bool sizeDirty = clientWidth != getWidth() || clientHeight != getHeight(); 323 resetSwapChain(clientWidth, clientHeight); 327 resizeSwapChain(clientWidth, clientHeight);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
LayoutCanvas.java | 377 int clientWidth = clientArea.width; 391 if (clientWidth == 0) { 392 clientWidth = imageWidth; 397 clientWidth = size.x * 70 / 100; 407 clientWidth = size.y * 80 / 100; 412 mHScale.setSize(imageWidth, fullWidth, clientWidth); [all...] |
/external/chromium_org/remoting/webapp/ |
toolbar.js | 81 var toolbarX = (window.innerWidth - this.toolbar_.clientWidth) / 2;
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
scene.js | 151 var rcW = rendererContainer.clientWidth; 228 var w = rendererContainer.clientWidth;
|
/external/chromium_org/chrome/browser/resources/ntp4/ |
new_tab.js | 353 var pxWidth = Math.max(measuringDiv.clientWidth * 1.15 + 4, 80); 369 if (menu.clientWidth > logo.clientWidth) 370 logo.style.WebkitFlex = '0 1 ' + menu.clientWidth + 'px'; 372 menu.style.WebkitFlex = '0 1 ' + logo.clientWidth + 'px';
|
/external/chromium/chrome/common/extensions/docs/examples/extensions/app_launcher/ |
popup.js | 96 var correction = window.innerWidth - document.documentElement.clientWidth;
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/app_launcher/ |
popup.js | 96 var correction = window.innerWidth - document.documentElement.clientWidth;
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
Element.idl | 69 [PerWorldBindings] readonly attribute long clientWidth;
|
/external/chromium_org/third_party/flot/ |
excanvas.min.js | 1 if(!document.createElement("canvas").getContext){(function(){var ab=Math;var n=ab.round;var l=ab.sin;var A=ab.cos;var H=ab.abs;var N=ab.sqrt;var d=10;var f=d/2;var z=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function y(){return this.context_||(this.context_=new D(this))}var t=Array.prototype.slice;function g(j,m,p){var i=t.call(arguments,2);return function(){return j.apply(m,i.concat(t.call(arguments)))}}function af(i){return String(i).replace(/&/g,"&").replace(/"/g,""")}function Y(m,j,i){if(!m.namespaces[j]){m.namespaces.add(j,i,"#default#VML")}}function R(j){Y(j,"g_vml_","urn:schemas-microsoft-com:vml");Y(j,"g_o_","urn:schemas-microsoft-com:office:office");if(!j.styleSheets.ex_canvas_){var i=j.createStyleSheet();i.owningElement.id="ex_canvas_";i.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}R(document);var e={init:function(i){var j=i||document;j.createElement("canvas");j.attachEvent("onreadystatechange",g(this.init_,this,j))},init_:function(p){var m=p.getElementsByTagName("canvas");for(var j=0;j<m.length;j++){this.initElement(m[j])}},initElement:function(j){if(!j.getContext){j.getContext=y;R(j.ownerDocument);j.innerHTML="";j.attachEvent("onpropertychange",x);j.attachEvent("onresize",W);var i=j.attributes;if(i.width&&i.width.specified){j.style.width=i.width.nodeValue+"px"}else{j.width=j.clientWidth}if(i.height&&i.height.specified){j.style.height=i.height.nodeValue+"px"}else{j.height=j.clientHeight}}return j}};function x(j){var i=j.srcElement;switch(j.propertyName){case"width":i.getContext().clearRect();i.style.width=i.attributes.width.nodeValue+"px";i.firstChild.style.width=i.clientWidth+"px";break;case"height":i.getContext().clearRect();i.style.height=i.attributes.height.nodeValue+"px";i.firstChild.style.height=i.clientHeight+"px";break}}function W(j){var i=j.srcElement;if(i.firstChild){i.firstChild.style.width=i.clientWidth+"px";i.firstChild.style.height=i.clientHeight+"px"}}e.init();var k=[];for(var ae=0;ae<16;ae++){for(var ad=0;ad<16;ad++){k[ae*16+ad]=ae.toString(16)+ad.toString(16)}}function B(){return[[1,0,0],[0,1,0],[0,0,1]]}function J(p,m){var j=B();for(var i=0;i<3;i++){for(var ah=0;ah<3;ah++){var Z=0;for(var ag=0;ag<3;ag++){Z+=p[i][ag]*m[ag][ah]}j[i][ah]=Z}}return j}function v(j,i){i.fillStyle=j.fillStyle;i.lineCap=j.lineCap;i.lineJoin=j.lineJoin;i.lineWidth=j.lineWidth;i.miterLimit=j.miterLimit;i.shadowBlur=j.shadowBlur;i.shadowColor=j.shadowColor;i.shadowOffsetX=j.shadowOffsetX;i.shadowOffsetY=j.shadowOffsetY;i.strokeStyle=j.strokeStyle;i.globalAlpha=j.globalAlpha;i.font=j.font;i.textAlign=j.textAlign;i.textBaseline=j.textBaseline;i.arcScaleX_=j.arcScaleX_;i.arcScaleY_=j.arcScaleY_;i.lineScale_=j.lineScale_}var b={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function M(j){var p=j.indexOf("(",3);var i=j.indexOf(")",p+1);var m=j.substring(p+1,i).split(",");if(m.length!=4||j.charAt(3)!="a"){m[3]=1}return m}function c(i){return parseFloat(i)/100}function r(j,m,i){return Math.min(i,Math.max(m,j))}function I(ag){var i,ai,aj,ah,ak,Z;ah=parseFloat(ag[0])/360%360;if(ah<0){ah++}ak=r(c(ag[1]),0,1);Z=r(c(ag[2]),0,1);if(ak==0){i=ai=aj=Z}else{var j=Z<0.5?Z*(1+ak):Z+ak-Z*ak;var m=2*Z-j;i=a(m,j,ah+1/3);ai=a(m,j,ah);aj=a(m,j,ah-1/3)}return"#"+k[Math.floor(i*255)]+k[Math.floor(ai*255)]+k[Math.floor(aj*255)]}function a(j,i,m){if(m<0){m++}if(m>1){m--}if(6*m<1){return j+(i-j)*6*m}else{if(2*m<1){return i}else{if(3*m<2){return j+(i-j)*(2/3-m)*6}else{return j}}}}var C={};function F(j){if(j in C){return C[j]}var ag,Z=1;j=String(j);if(j.charAt(0)=="#"){ag=j}else{if(/^rgb/.test(j)){var p=M(j);var ag="#",ah;for(var m=0;m<3;m++){if(p[m].indexOf("%")!=-1){ah=Math.floor(c(p[m])*255)}else{ah=+p[m]}ag+=k[r(ah,0,255)]}Z=+p[3]}else{if(/^hsl/.test(j)){var p=M(j);ag=I(p);Z=p[3]}else{ag=b[j]||j}}}return C[j]={color:ag,alpha:Z}}var o={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var L={};function E(i){if(L[i]){return L[i]}var p=document.createElement("div");var m=p.style;try{m.font=i}catch(j){}return L[i]={style:m.fontStyle||o.style,variant:m.fontVariant||o.variant,weight:m.fontWeight||o.weight,size:m.fontSize||o.size,family:m.fontFamily||o.family}}function u(m,j){var i={};for(var ah in m){i[ah]=m[ah]}var ag=parseFloat(j.currentStyle.fontSize),Z=parseFloat(m.size);if(typeof m.size=="number"){i.size=m.size}else{if(m.size.indexOf("px")!=-1){i.size=Z}else{if(m.size.indexOf("em")!=-1){i.size=ag*Z}else{if(m.size.indexOf("%")!=-1){i.size=(ag/100)*Z}else{if(m.size.indexOf("pt")!=-1){i.size=Z/0.75}else{i.size=ag}}}}}i.size*=0.981;return i}function ac(i){return i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family}var s={butt:"flat",round:"round"};function S(i){return s[i]||"square"}function D(i){this.m_=B();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=d*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var m="width:"+i.clientWidth+"px;height:"+i.clientHeight+"px;overflow:hidden;position:absolute";var j=i.ownerDocument.createEle (…)
|
/external/chromium_org/webkit/data/test_shell/sort/ |
sort.js | 261 var width = Math.max(1,Math.floor((graph.clientWidth-10) / len)); 267 var left_offset = Math.round((graph.clientWidth - (width*len))/2);
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
SpatialNavigation.cpp | 383 ASSERT(container->renderBox()->scrollWidth() > (container->renderBox()->scrollLeft() + container->renderBox()->clientWidth())); 384 dx = std::min<LayoutUnit>(ScrollableArea::pixelsPerLineStep(), container->renderBox()->scrollWidth() - (container->renderBox()->scrollLeft() + container->renderBox()->clientWidth())); 462 return (container->renderer()->style()->overflowX() != OHIDDEN && container->renderBox()->scrollLeft() + container->renderBox()->clientWidth() < container->renderBox()->scrollWidth());
|
/external/chromium_org/third_party/WebKit/Source/platform/scroll/ |
ScrollView.cpp | 445 int clientWidth = visibleWidth(); 457 m_horizontalScrollbar->setEnabled(contentsWidth() > clientWidth); 458 m_horizontalScrollbar->setProportion(clientWidth, contentsWidth()); [all...] |