Home
last modified time | relevance | path

Searched refs:anchorBox (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DSuggestBox.js102 setPosition: function(anchorBox) argument
104 this._updateBoxPosition(anchorBox);
110 _updateBoxPosition: function(anchorBox) argument
112 this._anchorBox = anchorBox;
113 anchorBox = anchorBox || this._anchorElement.boxInWindow(window);
128 var maxWidth = document.body.offsetWidth - anchorBox.x - spacer;
131 var boxX = anchorBox.x;
140 var aboveHeight = anchorBox.y;
141 var underHeight = document.body.offsetHeight - anchorBox.y - anchorBox.height;
147 boxY = anchorBox.y + anchorBox.height;
[all …]
DPopover.js159 …var anchorBox = anchorElement instanceof AnchorBox ? anchorElement : anchorElement.boxInWindow(win…
163 var roomAbove = anchorBox.y;
164 var roomBelow = totalHeight - anchorBox.y - anchorBox.height;
168 …if ((anchorBox.y > newElementPosition.height + arrowHeight + borderRadius) || (arrowDirection === …
169 newElementPosition.y = anchorBox.y - newElementPosition.height - arrowHeight;
172 newElementPosition.height = anchorBox.y - borderRadius * 2 - arrowHeight;
181 newElementPosition.y = anchorBox.y + anchorBox.height + arrowHeight;
183 …newElementPosition.height = totalHeight - anchorBox.y - anchorBox.height - borderRadius * 2 - arro…
194 if (anchorBox.x + newElementPosition.width < totalWidth) {
195 newElementPosition.x = Math.max(borderRadius, anchorBox.x - borderRadius - arrowOffset);
[all …]
DJavaScriptSourceFrame.js283 …var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - leftCorner.x, leftCorner…
284 anchorBox.highlight = {
289 anchorBox.forSelection = true;
290 return anchorBox;
304 …var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - leftCorner.x, leftCorner…
306 anchorBox.highlight = {
312 return anchorBox;
315 _resolveObjectForPopover: function(anchorBox, showCallback, objectGroupName) argument
328 this._popoverAnchorBox = anchorBox;
341 var lineNumber = anchorBox.highlight.lineNumber;
[all …]
DDOMExtension.js400 var anchorBox = this.offsetRelativeToWindow(window);
401 anchorBox.width = Math.min(this.offsetWidth, window.innerWidth - anchorBox.x);
402 anchorBox.height = Math.min(this.offsetHeight, window.innerHeight - anchorBox.y);
404 return anchorBox;
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DEllipsisBox.cpp111 InlineBox* anchorBox = lastLine->lastChild(); in markupBox() local
112 if (!anchorBox || !anchorBox->renderer()->style()->isLink()) in markupBox()
115 return anchorBox; in markupBox()
DRenderDeprecatedFlexibleBox.cpp949 InlineBox* anchorBox = lastLine->lastChild(); in applyLineClamp() local
950 if (anchorBox && anchorBox->renderer()->style()->isLink()) in applyLineClamp()
951 …totalWidth = anchorBox->logicalWidth() + font.width(RenderBlockFlow::constructTextRun(this, font, … in applyLineClamp()
953 anchorBox = 0; in applyLineClamp()
976 …Line->placeEllipsis(anchorBox ? ellipsisAndSpaceStr : ellipsisStr, leftToRight, blockLeftEdge, blo… in applyLineClamp()