Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: updated README.chromium Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/inspector/InspectorHighlight.h" 5 #include "core/inspector/InspectorHighlight.h"
6 6
7 #include "core/dom/ClientRect.h" 7 #include "core/dom/ClientRect.h"
8 #include "core/dom/PseudoElement.h" 8 #include "core/dom/PseudoElement.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/layout/LayoutBox.h" 10 #include "core/layout/LayoutBox.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 .build(); 405 .build();
406 406
407 Shape::DisplayPaths paths; 407 Shape::DisplayPaths paths;
408 FloatQuad boundsQuad; 408 FloatQuad boundsQuad;
409 protocol::ErrorSupport errors; 409 protocol::ErrorSupport errors;
410 if (const ShapeOutsideInfo* shapeOutsideInfo = 410 if (const ShapeOutsideInfo* shapeOutsideInfo =
411 shapeOutsideInfoForNode(node, &paths, &boundsQuad)) { 411 shapeOutsideInfoForNode(node, &paths, &boundsQuad)) {
412 (*model)->setShapeOutside( 412 (*model)->setShapeOutside(
413 protocol::DOM::ShapeOutsideInfo::create() 413 protocol::DOM::ShapeOutsideInfo::create()
414 .setBounds(buildArrayForQuad(boundsQuad)) 414 .setBounds(buildArrayForQuad(boundsQuad))
415 .setShape(protocol::Array<protocol::Value>::parse( 415 .setShape(protocol::Array<protocol::Value>::fromValue(
416 ShapePathBuilder::buildPath(*view, *layoutObject, 416 ShapePathBuilder::buildPath(*view, *layoutObject,
417 *shapeOutsideInfo, paths.shape, 1.f) 417 *shapeOutsideInfo, paths.shape, 1.f)
418 .get(), 418 .get(),
419 &errors)) 419 &errors))
420 .setMarginShape(protocol::Array<protocol::Value>::parse( 420 .setMarginShape(protocol::Array<protocol::Value>::fromValue(
421 ShapePathBuilder::buildPath(*view, *layoutObject, 421 ShapePathBuilder::buildPath(*view, *layoutObject,
422 *shapeOutsideInfo, 422 *shapeOutsideInfo,
423 paths.marginShape, 1.f) 423 paths.marginShape, 1.f)
424 .get(), 424 .get(),
425 &errors)) 425 &errors))
426 .build()); 426 .build());
427 } 427 }
428 428
429 return true; 429 return true;
430 } 430 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 config.shape = Color(0, 0, 0, 0); 521 config.shape = Color(0, 0, 0, 0);
522 config.shapeMargin = Color(128, 128, 128, 0); 522 config.shapeMargin = Color(128, 128, 128, 0);
523 config.showInfo = true; 523 config.showInfo = true;
524 config.showRulers = true; 524 config.showRulers = true;
525 config.showExtensionLines = true; 525 config.showExtensionLines = true;
526 config.displayAsMaterial = false; 526 config.displayAsMaterial = false;
527 return config; 527 return config;
528 } 528 }
529 529
530 } // namespace blink 530 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698