aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/devtools.rs
diff options
context:
space:
mode:
authorBastien Orivel <eijebong@bananium.fr>2017-10-09 17:03:40 +0200
committerBastien Orivel <eijebong@bananium.fr>2017-10-19 15:01:17 +0200
commite8e2d0a4b24475b018dbc7e59ea46fdceaf20815 (patch)
treebd56b4a2fc203150ee5c3b5e163937fb3b4e1989 /components/script/devtools.rs
parent4cf2ce66fc4f970a47ab1fb4b9aa1a55282640f7 (diff)
downloadservo-e8e2d0a4b24475b018dbc7e59ea46fdceaf20815.tar.gz
servo-e8e2d0a4b24475b018dbc7e59ea46fdceaf20815.zip
Update bitflags to 1.0 in every servo crate
It still needs dependencies update to remove all the other bitflags versions.
Diffstat (limited to 'components/script/devtools.rs')
-rw-r--r--components/script/devtools.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/devtools.rs b/components/script/devtools.rs
index 9bcd2376167..585ecd47a15 100644
--- a/components/script/devtools.rs
+++ b/components/script/devtools.rs
@@ -2,9 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use devtools_traits::{AutoMargins, CONSOLE_API, CachedConsoleMessage, CachedConsoleMessageTypes};
+use devtools_traits::{AutoMargins, CachedConsoleMessage, CachedConsoleMessageTypes};
use devtools_traits::{ComputedNodeLayout, ConsoleAPI, PageError};
-use devtools_traits::{EvaluateJSReply, Modification, NodeInfo, PAGE_ERROR, TimelineMarker};
+use devtools_traits::{EvaluateJSReply, Modification, NodeInfo, TimelineMarker};
use devtools_traits::TimelineMarkerType;
use dom::bindings::codegen::Bindings::CSSStyleDeclarationBinding::CSSStyleDeclarationMethods;
use dom::bindings::codegen::Bindings::DOMRectBinding::DOMRectMethods;
@@ -168,7 +168,7 @@ pub fn handle_get_cached_messages(_pipeline_id: PipelineId,
reply: IpcSender<Vec<CachedConsoleMessage>>) {
// TODO: check the messageTypes against a global Cache for console messages and page exceptions
let mut messages = Vec::new();
- if message_types.contains(PAGE_ERROR) {
+ if message_types.contains(CachedConsoleMessageTypes::PAGE_ERROR) {
// TODO: make script error reporter pass all reported errors
// to devtools and cache them for returning here.
let msg = PageError {
@@ -188,7 +188,7 @@ pub fn handle_get_cached_messages(_pipeline_id: PipelineId,
};
messages.push(CachedConsoleMessage::PageError(msg));
}
- if message_types.contains(CONSOLE_API) {
+ if message_types.contains(CachedConsoleMessageTypes::CONSOLE_API) {
// TODO: do for real
let msg = ConsoleAPI {
type_: "ConsoleAPI".to_owned(),