aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-27 18:14:25 -0500
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-27 18:14:25 -0500
commit3ec20d9cf517c67f4d280e8958cc58c4c2b4fbb2 (patch)
tree19f434faead436e4b30da8a52c349d436d1fbe5d /components/script/script_thread.rs
parent2d4941660bd3a4a91f82145a3a468fbf165eaf94 (diff)
parent3cb8af20c24ea0972220fa3fa7cbfcbd99c0848e (diff)
downloadservo-3ec20d9cf517c67f4d280e8958cc58c4c2b4fbb2.tar.gz
servo-3ec20d9cf517c67f4d280e8958cc58c4c2b4fbb2.zip
Auto merge of #11472 - jdm:wip, r=mbrubeck
Report blank lines that follow an open brace This automates something that I find myself frequently commenting on in PRs. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11472) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 5f83a467076..9ee604ba2e7 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -834,7 +834,6 @@ impl ScriptThread {
fn profile_event<F, R>(&self, category: ScriptThreadEventCategory, f: F) -> R
where F: FnOnce() -> R {
-
if opts::get().profile_script_events {
let profiler_cat = match category {
ScriptThreadEventCategory::AttachLayout => ProfilerCategory::ScriptAttachLayout,
@@ -1692,7 +1691,6 @@ impl ScriptThread {
///
/// TODO: Actually perform DOM event dispatch.
fn handle_event(&self, pipeline_id: PipelineId, event: CompositorEvent) {
-
// DOM events can only be handled if there's a root browsing context.
if !self.root_browsing_context_exists() {
return;