Commit b839d277 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Refactor: unsigned short -> uint16_t in third_party/blink/renderer/core/testing

- unsigned short -> uint16_t.
- No logic changes.
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 929986
Change-Id: I7ae64b98d2f4d76d9eaafde8c8c90effefbf9398
Reviewed-on: https://chromium-review.googlesource.com/c/1485695Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635083}
parent efd2569a
...@@ -533,7 +533,7 @@ Node* Internals::parentTreeScope(Node* node) { ...@@ -533,7 +533,7 @@ Node* Internals::parentTreeScope(Node* node) {
return parent_tree_scope ? &parent_tree_scope->RootNode() : nullptr; return parent_tree_scope ? &parent_tree_scope->RootNode() : nullptr;
} }
unsigned short Internals::compareTreeScopePosition( uint16_t Internals::compareTreeScopePosition(
const Node* node1, const Node* node1,
const Node* node2, const Node* node2,
ExceptionState& exception_state) const { ExceptionState& exception_state) const {
......
...@@ -142,9 +142,9 @@ class Internals final : public ScriptWrappable { ...@@ -142,9 +142,9 @@ class Internals final : public ScriptWrappable {
bool isValidContentSelect(Element* insertion_point, ExceptionState&); bool isValidContentSelect(Element* insertion_point, ExceptionState&);
Node* treeScopeRootNode(Node*); Node* treeScopeRootNode(Node*);
Node* parentTreeScope(Node*); Node* parentTreeScope(Node*);
unsigned short compareTreeScopePosition(const Node*, uint16_t compareTreeScopePosition(const Node*,
const Node*, const Node*,
ExceptionState&) const; ExceptionState&) const;
Node* nextSiblingInFlatTree(Node*, ExceptionState&); Node* nextSiblingInFlatTree(Node*, ExceptionState&);
Node* firstChildInFlatTree(Node*, ExceptionState&); Node* firstChildInFlatTree(Node*, ExceptionState&);
......
...@@ -33,7 +33,7 @@ class OriginTrialsTest : public ScriptWrappable { ...@@ -33,7 +33,7 @@ class OriginTrialsTest : public ScriptWrappable {
static bool staticAttribute() { return true; } static bool staticAttribute() { return true; }
bool normalMethod() { return true; } bool normalMethod() { return true; }
static bool staticMethod() { return true; } static bool staticMethod() { return true; }
static const unsigned short kConstant = 1; static const uint16_t kConstant = 1;
bool throwingAttribute(ScriptState*, ExceptionState&); bool throwingAttribute(ScriptState*, ExceptionState&);
OriginTrialsTestDictionary* getDictionaryMethod() { OriginTrialsTestDictionary* getDictionaryMethod() {
...@@ -46,7 +46,7 @@ class OriginTrialsTest : public ScriptWrappable { ...@@ -46,7 +46,7 @@ class OriginTrialsTest : public ScriptWrappable {
bool unconditionalMethod() { return true; } bool unconditionalMethod() { return true; }
void unconditionalDictionaryMethod(const OriginTrialsTestDictionary* dict) {} void unconditionalDictionaryMethod(const OriginTrialsTestDictionary* dict) {}
static bool staticUnconditionalMethod() { return true; } static bool staticUnconditionalMethod() { return true; }
static const unsigned short kUnconditionalConstant = 99; static const uint16_t kUnconditionalConstant = 99;
bool secureUnconditionalAttribute() { return true; } bool secureUnconditionalAttribute() { return true; }
static bool secureStaticUnconditionalAttribute() { return true; } static bool secureStaticUnconditionalAttribute() { return true; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment