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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMRectReadOnly.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/dom/DOMRectReadOnly.h" 5 #include "core/dom/DOMRectReadOnly.h"
6 6
7 #include "bindings/core/v8/ScriptValue.h" 7 #include "bindings/core/v8/ScriptValue.h"
8 #include "bindings/core/v8/V8ObjectBuilder.h" 8 #include "bindings/core/v8/V8ObjectBuilder.h"
9 #include "core/dom/DOMRectInit.h" 9 #include "core/dom/DOMRectInit.h"
10 10
(...skipping 13 matching lines...) Expand all
24 result.addNumber("width", width()); 24 result.addNumber("width", width());
25 result.addNumber("height", height()); 25 result.addNumber("height", height());
26 result.addNumber("top", top()); 26 result.addNumber("top", top());
27 result.addNumber("right", right()); 27 result.addNumber("right", right());
28 result.addNumber("bottom", bottom()); 28 result.addNumber("bottom", bottom());
29 result.addNumber("left", left()); 29 result.addNumber("left", left());
30 return result.scriptValue(); 30 return result.scriptValue();
31 } 31 }
32 32
33 DOMRectReadOnly* DOMRectReadOnly::fromRect(const DOMRectInit& other) { 33 DOMRectReadOnly* DOMRectReadOnly::fromRect(const DOMRectInit& other) {
34 return new DOMRectReadOnly(other.x(), other.y(), other.width(), other.height() ); 34 return new DOMRectReadOnly(other.x(), other.y(), other.width(),
35 other.height());
35 } 36 }
36 37
37 DOMRectReadOnly::DOMRectReadOnly(double x, 38 DOMRectReadOnly::DOMRectReadOnly(double x,
38 double y, 39 double y,
39 double width, 40 double width,
40 double height) 41 double height)
41 : m_x(x), m_y(y), m_width(width), m_height(height) {} 42 : m_x(x), m_y(y), m_width(width), m_height(height) {}
42 43
43 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMPointReadOnly.cpp ('k') | third_party/WebKit/Source/core/dom/DOMTypedArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698