aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Marble <arthur@info9.net>2016-09-17 20:24:33 -0500
committerArthur Marble <arthur@info9.net>2016-09-17 20:31:46 -0500
commit55ff161ed5e57322dcd4ed984c13f3ae3512a01a (patch)
tree544c688f47baa126a374c8d2f18bab43d354c172
parentdd4907c985a3f38d5e8e5808cbbbef60cbb47620 (diff)
downloadservo-55ff161ed5e57322dcd4ed984c13f3ae3512a01a.tar.gz
servo-55ff161ed5e57322dcd4ed984c13f3ae3512a01a.zip
Refactored a couple of files from codeStyle to code_style.
-rw-r--r--components/script/dom/blob.rs4
-rw-r--r--components/script/dom/bluetoothadvertisingdata.rs8
-rw-r--r--components/script/dom/bluetoothcharacteristicproperties.rs8
3 files changed, 10 insertions, 10 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index d9a45d35665..aef31efd687 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -373,10 +373,10 @@ impl BlobMethods for Blob {
fn Slice(&self,
start: Option<i64>,
end: Option<i64>,
- contentType: Option<DOMString>)
+ content_type: Option<DOMString>)
-> Root<Blob> {
let rel_pos = RelativePos::from_opts(start, end);
- Blob::new_sliced(self, rel_pos, contentType.unwrap_or(DOMString::from("")))
+ Blob::new_sliced(self, rel_pos, content_type.unwrap_or(DOMString::from("")))
}
// https://w3c.github.io/FileAPI/#dfn-isClosed
diff --git a/components/script/dom/bluetoothadvertisingdata.rs b/components/script/dom/bluetoothadvertisingdata.rs
index f6a7805acbf..6cd77385a26 100644
--- a/components/script/dom/bluetoothadvertisingdata.rs
+++ b/components/script/dom/bluetoothadvertisingdata.rs
@@ -13,19 +13,19 @@ use dom::bindings::reflector::{Reflector, reflect_dom_object};
pub struct BluetoothAdvertisingData {
reflector_: Reflector,
appearance: Option<u16>,
- txPower: Option<i8>,
+ tx_power: Option<i8>,
rssi: Option<i8>,
}
impl BluetoothAdvertisingData {
pub fn new_inherited(appearance: Option<u16>,
- txPower: Option<i8>,
+ tx_power: Option<i8>,
rssi: Option<i8>)
-> BluetoothAdvertisingData {
BluetoothAdvertisingData {
reflector_: Reflector::new(),
appearance: appearance,
- txPower: txPower,
+ tx_power: tx_power,
rssi: rssi,
}
}
@@ -51,7 +51,7 @@ impl BluetoothAdvertisingDataMethods for BluetoothAdvertisingData {
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-txpower
fn GetTxPower(&self) -> Option<i8> {
- self.txPower
+ self.tx_power
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-rssi
diff --git a/components/script/dom/bluetoothcharacteristicproperties.rs b/components/script/dom/bluetoothcharacteristicproperties.rs
index 9abb5e5cd5b..6a0fb26c0b3 100644
--- a/components/script/dom/bluetoothcharacteristicproperties.rs
+++ b/components/script/dom/bluetoothcharacteristicproperties.rs
@@ -15,7 +15,7 @@ pub struct BluetoothCharacteristicProperties {
reflector_: Reflector,
broadcast: bool,
read: bool,
- writeWithoutResponse: bool,
+ write_without_response: bool,
write: bool,
notify: bool,
indicate: bool,
@@ -27,7 +27,7 @@ pub struct BluetoothCharacteristicProperties {
impl BluetoothCharacteristicProperties {
pub fn new_inherited(broadcast: bool,
read: bool,
- writeWithoutResponse: bool,
+ write_without_response: bool,
write: bool,
notify: bool,
indicate: bool,
@@ -39,7 +39,7 @@ impl BluetoothCharacteristicProperties {
reflector_: Reflector::new(),
broadcast: broadcast,
read: read,
- writeWithoutResponse: writeWithoutResponse,
+ write_without_response: write_without_response,
write: write,
notify: notify,
indicate: indicate,
@@ -87,7 +87,7 @@ impl BluetoothCharacteristicPropertiesMethods for BluetoothCharacteristicPropert
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-writewithoutresponse
fn WriteWithoutResponse(&self) -> bool {
- self.writeWithoutResponse
+ self.write_without_response
}
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothcharacteristicproperties-write