-
nox
emilio: Lol I forgot about transition events.
-
emilio
nox: yeah, the web rocks :)
-
nox
emilio: But doesn’t that happen after layout?
-
emilio
nox: sure, but before returning to the script caller
-
nox
To run the JS you need to be back on the script thread so why would layout still be keeping a reference?
-
emilio
nox: layout would not keep a reference. the thing I want to assert against is { let _ = self.member.borrow(); update_layout(); } ...
-
emilio
nox: maybe layout is not the place for that assertion
-
emilio
nox: but generally keeping _any_ borrow before running arbitrary script is a panic waiting to happen
-
nox
Yeah I don’t think that’s the right place, I could imagine somewhere some code borrowing stuff and then making a query to layout, and that’s a panic so that fine.
-
emilio
nox: yeah, though borrow_state allows you to assert against that (maybe not during layout), while try_borrow_unguarded doesn't
-
nox
I don’t completely exclude that we will need a different abstraction later but I understand the sentiment of upstream not wanting general hard-to-explain-the-use methods.
-
nox
emilio: I’m not sure where you would call borrow_state, and what would that accomplish compared to panicking after layout.
-
nox
It would just panic where you called borrow_state instead right?
-
emilio
nox: that's fair, I just think that it'd be a useful thing to be able to assert against. I don't think that use-case is too far-fetched, asserting that `borrow_state()` is `Unborrowed` (or whatever the name is) before calling arbitrary code
-
emilio
nox: yeah, but it'll catch the bug earlier (any time you make the mistake), vs. only with some very crafted user inputs
-
nox
Ah but we can’t do that, remember that the ref cells are all over the place.
-
emilio
nox: yeah, it was an example :)
-
nox
Gotcha
-
emilio
nox: but anyhow try_borrow_unguarded does the job and is much better than the status quo (and has a stronger justification, "preventing UB" vs. "catching bugs earlier")
-
nox
Yeah I’m thrilled about it, it’s like some unsafe “beyond Sync” API.
-
nox
I wanted to see where all the layout traits from script are called in layout_thread today, so I marked them all as deprecated and it worked like a charm hah.
-
emilio
oh, cool
-
emilio
life hack
-
raph
pcwalton/font-kit #37 <- my current plans to deal with locale stuff
-
crowbot
Issue #37: Script-aware fallback -
pcwalton/font-kit #37
-
raph
Open to other ideas, and this is one of those areas where I wish there was someone smarter than me who would tell me what to do, but am ok trying to be that person
-
raph
Also text people please re-review
linebender/skribo #2 , I added more stuff
-
crowbot
PR #2: Add draft of requirements doc -
linebender/skribo #2
-
cybai
Manishearth: around? 👀
-
bzm3r
has anyone built the pathfinder 3 demo on windows successfully?
-
bzm3r
"error LNK2019: unresolved external symbol __imp_SHCreateItemFromParsingName referenced in function..."
-
Manishearth
cybai: now yes
-
cybai
Manishearth: want to ask a question about #23015
-
crowbot
Issue #23015: Issue while building the code in mac os mojave -
servo/servo #23015
-
cybai
Not sure why I'm also on macOS 10.14.3 with gstreamer 1.14.4, would you think it's related to this line
github.com/servo/servo/blob/34fda66…2/python/servo/bootstrap.py#L48-L50 ?
-
cybai
Not familiar with Python subprocess.call, but I try to ran that small script and I get "0"
-
cybai
but if I ran command with `pkg-config "gstreamer-1.0 >= 1.12"`, it won't work 🤔
-
BitBot
[Github] (servo/servo) [PR] bors-servo merged #23058 into master: Update webdriver crate -
git.io/fjfLy
-
raph
pcwalton: I'm trying to help bzm3r get started, and I'm having much more basic errors, a ton of "incorrect close delimiters" in simd/src/scalar.rs. The code looks obviously wrong. I'm in the pf3 branch of pcwalton/pathfinder, what am I missing?
-
raph
-
raph
I'm guessing there are two problems, this code is wrong, but I should also be compiling this to not use the fallback code.
-
bzm3r
raph ah yeah, i fixed those errors by using the editor's replace functionality; you'll also have to disable jemalloc
-
bzm3r
i can put up the changes i made on github, give me a moment
-
raph
I've worked around both problems myself :)
-
bzm3r
raph sweet, were you also able to set up SDL2?
-
raph
No, still stuck on that. The instructions seem pretty rough. It works fine on mac though.
-
raph
Ok yes it works for me.
-
raph
I copied SDL2.dll (from SDL2-devel-2.0.9-VC) into demo/native/
-
raph
I don't think I needed to do anything with the .lib files, the .dll seems enough
-
raph
it's not hidpi though; on mac it is
-
bzm3r
raph let me try skipping the *.lib files too
-
bzm3r
raph yeah, it seems i definitely need the lib files: `LINK : fatal error LNK1181: cannot open input file 'SDL2.lib'`
-
bzm3r
are you sure you don't already have them under `multirust/toolchain/stable.../lib/rustlib/x86_64.../lib`?
-
raph
yeah, definitely not there
-
bzm3r
that's so weird
-
bzm3r
(that you aren't getting the *.lib error)
-
raph
it may have found it because I was setting the LIB environment variable, but I'm confused what actually happened with that
-
raph
worked fine on debian as soon as i did `apt-get install libsdl2-dev`
-
raph
although there were artifacts on the first paint. probably should report that
-
raph
(all the solid color tiles rendered as black; this resolves itself after the first paint)
-
crowbot
servo-mac7 is overdue! (build started 2 hours ago)
-
arunkumar413
Hi All, does a debian build of servo work on ubuntu touch mobile?
-
arunkumar413
I got this error when trying to bootstrap for android
paste.ubuntu.com/p/XSkY5P2jQM
-
arunkumar413
rust compiler using 100% of 4 cpu while trying to build and it's heating up the system a lot. Is it possible to reduce the cpu usage
-
BitBot
[Github] (servo/servo) [issue] CYBAI opened #23062: ::after pseudo-element is not shown -
git.io/fjfWC
-
BitBot
[Github] (servo/servo) [issue] arunkumar413 opened #23063: rror trying to boostrap servo for android -
git.io/fjfls
-
BitBot
[Github] (servo/webrender) [PR] moz-gfx requested #3597 merge into master: Sync changes from mozilla-central -
git.io/fjf81
-
BitBot
[Github] (servo/html5ever) [issue] kornelski opened #369: Creating attribute not recognized by local_name!() -
git.io/fjf4v
-
jdm
standups: finally unbroke WPT manifest checking code.
-
crowbot
Status submitted successfully.
-
BitBot
[Github] (servo/webrender) [PR] bors-servo merged #3597 into master: Sync changes from mozilla-central -
git.io/fjf81
-
nox
jdm: Nice.
-
nox
standups: Started contributing to Victor a bit and began writing my talk abstract for RustLab.
-
crowbot
Status submitted successfully.
-
cybai
jdm: Yeah! Cheers!
-
jdm
weird
-
jdm
our android build machines are ~30 seconds ahead of the aws machines
-
cybai
the /css/CSS2/text/white-space-003.xht also failed at 15-03-2019 wpt sync 👀
-
nox
cybai: My brain reached a point where if it sees "👀" it assumes it's you writing the message.
-
nox
The heuristic has yet to be proven wrong so far.
-
cybai
nox: haha, you might notice the emoji more on GitHub after they shipped it for comments 😂
-
nox
Nice!
-
nox
cybai: I started using it too because of you. :D
github.com/nox/inert/blob/master/CHANGELOG.md#020
-
cybai
nox: XDDD Cool! I love this changelog so much!!!
-
BitBot
[Github] (servo/servo) [PR] CYBAI closed #23046 without merging: Sync WPT with upstream (15-03-2019) -
git.io/fjvJX
-
nox
cybai: Thanks! I'm hyped about landing it one day in Servo.
-
» cybai wants to grab some time to study how Inert works 👀
-
cybai
nox: the first sentence in "How is this sound?" is so interesting XD
-
nox
cybai: I am so bad at documenting that I forgot to s/Neutralize/NeutralizeUnsafe/ in the README.
-
cybai
nox: I'm good at sending typo PR 😂 Let me create a cybai-patch-1 for inert!
-
nox
Aw thanks. :D
-
nox
cybai: On
github.com/servo/servo/compare/inert I made use of inert to reimplement all the *LayoutHelpers traits that are defined in script, if you want to see how I plan to use that. I didn't write any code that actually make use of my reimplementations yet, and I'm focusing on Victor this week so I'm not going to go back to it soon.
-
nox
The thing I'm the happiest about is how Inert<T> can exist even if T isn't NeutralizeUnsafe, and how Inert::get_ref lets you access the T safely if it's Sync. Let me use inert only in script, and still be able to access types that are defined in other crates that don't implement any inert trait.
-
cybai
nox: here it is :D
nox/inert #19
-
crowbot
PR #19: Fix typo in README -
nox/inert #19
-
nox
cybai++
-
cybai
nox: cool! thanks for pointing me to that branch! I will try to check the branch this weekend!
-
cybai
> Let me use inert only in script, and still be able to access types that are defined in other crates that don't implement any inert trait.
-
cybai
this sounds mind-blown to me 🤯
-
cybai
will see how you achieve that!
-
nox
cybai: The most unsafe part of the inert crate is that Inert<T> is always Sync, even if T isn't, and then it derefs to <T as NeutralizeUnsafe>::Output, where NeutralizeUnsafe obviously needs to be carefully implemented to not expose the !Sync parts of T,
-
nox
cybai: but if T is Sync, there was nothing unsafe about exposing it in the first place, so you can just access it through Inert::get_ref.
-
nox
It's verbose, but safe, which is better than the short unsafe code we have currently. :)
-
cybai
nox: ahh, I think you explain very clearly! thanks! it sounds great to use it for getting safer code :D
-
nox
Aw, thank you!
-
» cybai wonders to read the nomicon book
-
nox
cybai: You may be interested by the discussions in
rust-lang/rust #59211 too
-
crowbot
PR #59211: Introduce RefCell::try_borrow_unguarded -
rust-lang/rust #59211
-
cybai
nox: Will read it!
-
cybai
thanks!
-
arunkumar413
how do I set this up for an android build PATH=$PATH:$ANDROID_SDK/platform-tools
-
arunkumar413
I have sdk and ndk like this ANDROID_SDK="/home/arun/Android/Sdk"
-
arunkumar413
ANDROID_NDK="/home/arun/Android/Sdk/ndk-bundle"
-
arunkumar413
where should I exactly add the above paths in the bash.rc file?
-
jdm
arunkumar413: anywhere in .bashrc will work
-
» jdm -> office
-
mbrubeck
Proposing a plan for smallvec 1.0
servo/rust-smallvec #73
-
crowbot
Issue #73: [meta] Wishlist for 1.0 -
servo/rust-smallvec #73
-
mbrubeck
-
crowbot
Issue #73: [meta] Wishlist for 1.0 -
servo/rust-smallvec #73
-
arunkumar413
Is it mandatory that I use android ndk 12 version.
-
raph
pcwalton: do you mind if I take over font-kit for a while? there's a bunch of stuff that needs to happen there, of which fallback font is the big one
-
pcwalton
raph: sure. let me give you access
-
pcwalton
raph: I added you as a collaborator
-
raph
thanks! expect chaos
-
nox
SimonSapin: I wonder if we should use Vector<T> in Victor.
-
nox
That being said Vector<T> doesn't implement ParallelExtend,
-
SimonSapin
nox: which kind?
-
nox
SimonSapin: The Sync ones,
-
nox
I mention that because Vector<T> internally uses chunks,
-
nox
and parallel extend works on chunks.
-
SimonSapin
nox: from what crate ?
-
nox
SimonSapin: Oh, bodil's, from im-rs.
-
pcwalton
raph: I'm excited actually -- haven't had enough time to give font-kit the attention it deserves and glad to have you helping out
-
raph
i'm also optimistic, it feels like this could be a really vital part of the infra for gaming, gui, and other stuff
-
raph
another thing that has me positive is snl's own mikey day reviewing the design and showing interest
-
raph
kinda star-struck, not every day such celebrities take interest in my work
-
raph
i added something about small caps to
linebender/skribo #2 btw - it's in scope but complex enough not to make the first cut at implementation
-
crowbot
PR #2: Add draft of requirements doc -
linebender/skribo #2
-
raph
will merge that, likely today, if i don't get any more feedback
-
SimonSapin
raph: oh that reminds me, I had some questions that boil down to "can shaping results be reused for different layouts of the same text/style with different line breaks"
-
SimonSapin
I’ll file an issue with details
-
raph
yes, issue is good. this is a question i've thought about a lot, as it's very relevant on android
-
SimonSapin
(in particular, CSS needs to compute min and max "intrinsic sizes" based on taking all or none of the break oportunities)
-
raph
(what android does is very cache-intensive, to try to keep things less stateful. this kinda works but it's very likely possible to do better)
-
Manishearth
standups: start going through the chromium impl
-
crowbot
Status submitted successfully.
-
Manishearth
everyone being at gdc is the best time to have questions about the xr spec
-
jdm
arunkumar413: yes
-
SimonSapin
-
crowbot
Issue #4: Can shaping be reused for different line breaks? -
linebender/skribo #4
-
raph
Thanks for filing. I'll think on it a bit and answer
-
BitBot
[Github] (servo/servo) [issue] jdm opened #23064: Intermittent pass in /workers/WorkerGlobalScope-close.html -
git.io/fjfzL
-
raph
Ok, wrote my answer, hope that is reasonably clear
-
raph
how to make cache lookup cheap is another question - I have ideas for that
-
jdm
standups: fielding GSoC questions
-
crowbot
Status submitted successfully.
-
ajeffrey
standups: Refactored pathfinder to allow the device to set the viewport/size for each eye.
-
crowbot
Status submitted successfully.
-
ajeffrey
That was a head-scratcher, the pf3 demo really really wanted to be in charge of VR viewports.
-
ajeffrey
which is fine on devices where the eyes are drawn next to each other, but not for devices where the eyes are drawn to different textures.
-
ajeffrey
I thiiiink that's most of the work needed to get ML1 to work with pf3 demo/common.
-
ejmg
jdm do you know if anyone else is looking at the webdriver issue as of now for gsoc?
-
jdm
ejmg: I have had one person send me a draft proposal, and two other people have asked to work on starter issues in preparation
-
ejmg
oh shoot, dang
-
BitBot
[Github] (servo/servo) [issue] bors-servo closed #23025: styleSheet.insertRule() doesn't treat the index argument as optional -
git.io/fje3q
-
BitBot
[Github] (servo/servo) [PR] bors-servo merged #23029 into master: Update StyleSheet.insertRule WebIDL to make index optional. -
git.io/fje3P
-
ejmg
well that better meets my original expectations. i took the silence in here as kinda weird/expected more interest in mozilla x rust projets.
-
ejmg
Anywho, so I have another question regarding the options parsion. As of now `from_cmdline_args()` eventually takes everything parsed out of opts and initializes a Opt struct out of them before doing some other important stuff like `set_options(opts)` and `prefs::add_user_prefs()`. How should I go about delaying this so that I can properly extract t
-
ejmg
he embedder specific opts stuff from the global engine opts? jdm
-
jdm
ejmg: why do those need to be delayed?
-
ejmg
Okay! So! That's something I presumed, lol.
-
ejmg
My bad. I was thinking the final configuration of all opts had to be put together before doing the rest of the stuff that was occurring in from `from_cmdline_args()`, so my bad.
-
jdm
I was imagining that from_cmdline_args can eagerly return any failed parsing, and otherwise extract all of the options it knows about from the result, set the global opts, set the preferences, then return the result
-
ejmg
jdm to check my understanding of both the code and issue, what `from_cmdline_args()` is doing really is mostly global engine stuff, so not having those embedded specific things figured out yet is okay and can be handled in the (correctly parsed) result value we are refactoring it to
-
jdm
yep!
-
jdm
the point is to remove the embedding-specific things from the global stuff entirely
-
jdm
there may be a couple uses of opts::get().headless in components/ that we need to remove
-
jdm
I think
servo/servo #23057 would get rid of one
-
crowbot
Issue #23057: Remove use of tinyfiledialogs from script code -
servo/servo #23057
-
BitBot
[Github] (servo/servo) [issue] jdm opened #23065: Remove headless check from bluetooth code -
git.io/fjf2O
-
jdm
that would get rid of the other
-
ejmg
Okay okay okay, so that definitely clarifies the concern I was voicing. I'll jot this down and hopefully get some more changes pushed up on that branch later for feedback.
-
ejmg
Servo remains this leviathan beast that I poke with a stuck to learn from
-
jdm
heh heh
-
jdm
we all feel like that
-
jdm
there are still parts of it that I barely understand
-
ejmg
wrt the 2 issues you linked above, should I add those changes as a part of my PR for #23061?
-
crowbot
PR #23061: WIP initial reshuffling of opts parsing API for #23009 -
servo/servo #23061
-
ejmg
(don't see how i would otherwise without breaking things but want to check lol)
-
ajeffrey
pcwalton: You are about to get PRs for pathfinder from me.
-
ajeffrey
pcwalton: Any chance you could either merge
pcwalton/pathfinder #109 or push your local commits?
-
crowbot
PR #109: Get pf-no-simd to compile on aarch64 -
pcwalton/pathfinder #109
-
jdm
ejmg: yes, either that or don't extract headless as part of your PR.
-
ejmg
K
-
jdm
might make sense to leave headless for the time being
-
jdm
rather than blocking all of the work on fixing those
-
ejmg
OH. Okay, I'll uh... unassign? Not sure I can do that, actually
-
ejmg
Otherwise... I would leave headless in there for now, finish this, then jump in with another PR to fix headless usage.
-
arunkumar413_
building servo puts 100% stress on all the cores of the processor. Is it possible to reduce this
-
BitBot
[Github] (servo/servo) [issue] jdm opened #23066: /bluetooth/requestDevice/canonicalizeFilter/ tests can intermittently yield an error -
git.io/fjf2z
-
jdm
arunkumar413_: you can use `-j1` to only build with one core
-
ejmg
Should pivot to real world concerns, I'll be back in later today or tomorrow. Thanks for the clarification on my question and pls unassign me from those issues I just took re: headless if that's for best for not blocking jdm. Bye ya'll 👋
-
jdm
will do!
-
arunkumar413_
stuck at this Building [=====================================================> ] 590/595: script
-
jdm
yeah, it takes a lot of time and memory to build script
-
arunkumar413_
it's taking long time. If I run on only one core will it take more time
-
jdm
that's generally expected
-
jdm
it should take the same amount of time to build script using -j1 or not
-
arunkumar413_
It will be pain if this has to done for every small change in code
-
arunkumar413_
can we share this burden just like we do torrent download?
-
jdm
arunkumar413_: sorry, it's caused by the way our code is organized. the script crate is very large, and any changes to that code need to recompile all of it.
-
arunkumar413_
build failed and got this error
paste.ubuntu.com/p/xpyMRPkny8
-
Manishearth
help my computer is accumulating clones of browser engines
-
Manishearth
.... even a --depth 1 clone of chromium takes a while to download on office wifi
-
Manishearth
(i gave up on non-depth-1 clones a long time ago)
-
jdm
arunkumar413_: what did you run that produced that error?
-
sbansal
jdm:
servo/servo #23028 I was solving this issue and when I tried exposing a getter I got a borrow error for the owner.
-
crowbot
Issue #23028: styleSheet.insertRule('@import url("<url>");', 0) crashes servo -
servo/servo #23028
-
arunkumar413_
crowbot: ./mach build --release --android
-
jdm
arunkumar413_: weird :(
-
jdm
sbansal: what was the error and what was the code?
-
jdm
sbansal: you probably want to make the getter return &Element, and do that with &*self.owner
-
arunkumar413_
jdm: tried again, this time it's just null pointer exception
paste.ubuntu.com/p/wNM7tN3W2T
-
jdm
yikes
-
jdm
arunkumar413_: try changing the invoking of gradlew in package_commands.py to add --stacktrace and --debug
-
arunkumar413_
now running ./mach build --release --android --debug
-
jdm
arunkumar413_: that's not what I mean
-
jdm
arunkumar413_: there is code in python/servo/package_commands.py that runs gradlew
-
jdm
arunkumar413_: you should add --stacktrace and --debug to the arguments that are passed to gradlew in that file
-
arunkumar413_
jdm: I'll try again tomorrow. It's late night here. I got exhausted trying to build this
-
jdm
sorry it's causing you trouble!
-
arunkumar413_
Is it safe to quit the building process and start again tomorrow
-
jdm
yes
-
arunkumar413_
do I need to do any cleanup?
-
jdm
nope
-
arunkumar413_
cool
-
fabrice
jdm: there was some progress made on speeding up the script build no?
-
sbansal
jdm: thanks I will try that
-
jdm
fabrice: there was the project from last year which didn't finish merging
-
crowbot
Warning! All builders are idle, but there are 4 PRs in the queue.
-
jdm
oh joy
-
jdm
hmm, the taskcluster check isn't working correctly
-
BitBot
[Github] (servo/servo) [issue] bors-servo closed #8539: Replace preferences backend with static data structures instead of hashmap -
git.io/v4nwT
-
BitBot
[Github] (servo/servo) [PR] bors-servo merged #22923 into master: #8539 Config preferences backend restructure -
git.io/fhFaJ
-
nox
-
SimonSapin
nox: usual thing about implementing a trait from a crate for a type from another crate and they don’t depend on each other
-
nox
SimonSapin: im already depends on rayon. :)
-
SimonSapin
oh ok
-
SimonSapin
but Vector does not implement ParallelExtend?
-
SimonSapin
nox: Vector requires Clone for items
-
nox
SimonSapin: Yeah, because it wants you to use refcounting or small values for the things inside.
-
nox
But IIRC many operations don't use the Clone impl.
-
SimonSapin
that sounds incompatible with pointer identity being meaningful… oh ok maybe not if the items are Arc
-
BitBot
[Github] (servo/servo) [issue] jdm opened #23067: Magic Leap package is not recreated when libmlservo.a is updated -
git.io/fjfV3
-
nox
SimonSapin: Damn I forgot to change StrTendril to the Sync one.
-
pcwalton
ajeffrey: pushed up the lens distortion stuff
-
pcwalton
I should make it optional
-
jdm
woo, I have servo profiling output appearing in the ml log now
-
pcwalton
for your use case
-
jdm
time to see if anything interesting appears
-
SimonSapin
nox: feel free to make that String
-
ajeffrey
pcwalton: OK, hopefully I'm not too conflicted :)
-
KiChjang
jdm: man, programming in python is so much different than programming in rust
-
SimonSapin
nox: I might change this anyway, to do (naive) shaping at box construction time, and store glyphs rather than text
-
jdm
KiChjang: trufax
-
KiChjang
i wouldn't have known where to look for the SSL stuff if you didn't point it out heh
-
nox
SimonSapin: I did a type alias named Text.
-
nox
SimonSapin: Ugh never mind I forgot h5e wants StrTendril everywhere, I'll make it String.
-
» SimonSapin nods
-
nox
SimonSapin: Should I use rayon::prelude::*?
-
SimonSapin
your call
-
sbansal
jdm: for the issue #23028, I jave to use the new getter to change the argument at this line?
github.com/servo/servo/blob/master/…ents/script/dom/cssrulelist.rs#L111
-
crowbot
Issue #23028: styleSheet.insertRule('@import url("<url>");', 0) crashes servo -
servo/servo #23028
-
jdm
sbansal: yep
-
sbansal
Thanks again
-
jdm
-
jdm
-
sbansal
jdm: ok so I just have to basically send the stylesheet's owner in this argument ?
-
ajeffrey
standups: Submitted PRs for pathfinder, laying the groundwork for the magicleap demo PR.
-
crowbot
Status submitted successfully.
-
ajeffrey
pcwalton: now to sort out the merge conflicts...
-
jdm
sbansal: oh, I missed a step in the explanation - you can use StylesheetLoader::for_element and pass the owner element
-
» jdm -> train
-
ajeffrey
pcwalton: rebased the PRs.
-
pcwalton
ajeffrey: cool, thanks
-
ajeffrey
That barrel distortion is pretty extreme!
-
BitBot
[Github] (servo/servo) [issue] bors-servo closed #22412: Implement missing DOMException constructor -
git.io/fpQCT
-
BitBot
[Github] (servo/servo) [PR] bors-servo merged #22480 into master: Implement dom exception constructor -
git.io/fpAgY
-
sbansal
jdm: I am facing the following error "no method named `get_owner` found for type `&dom::window::Window` in the current scope
-
sbansal
--> components/script/dom/cssrulelist.rs:104:59
-
sbansal
|
-
sbansal
104 | let loader = StylesheetLoader::for_element(window.get_owner());
-
sbansal
| ^^^^^^^^^
-
sbansal
error[E0308]: mismatched types
-
sbansal
--> components/script/dom/cssrulelist.rs:113:17
-
sbansal
|
-
sbansal
113 | loader,
-
sbansal
| ^^^^^^ expected enum `std::option::Option`, found struct `stylesheet_loader::StylesheetLoader`
-
sbansal
|
-
sbansal
= note: expected type `std::option::Option<&dyn style::stylesheets::StylesheetLoader>`
-
sbansal
found type `stylesheet_loader::StylesheetLoader<'_>`
-
sbansal
error: aborting due to 2 previous errors "
-
jdm
sbansal: look at the members of CSSRuleList
-
jdm
you added the method to Element, not Window
-
sbansal
jdm: And what about the second issue?
-
jdm
-
ajeffrey
standups: ICFP industrial chair work.
-
crowbot
Status submitted successfully.
-
pcwalton
standups: Fixing subpixel AA in Pathfinder 3 and porting to PenTile displays.
-
crowbot
Status submitted successfully.
-
sbansal
jdm: for the method added to elements, should I do something like "self.parent_stylesheet.get_owner()"
-
jdm
sbansal: yes
-
sbansal
This again gives me a new error that htmlElement expected, found Element in this line
-
jdm
hmm
-
jdm
sbansal: oh, I see a more effective way. call Element::as_stylesheet_owner instead of StylesheetLoader::for_element
-
jdm
that returns Option<&dyn StylesheetOwner> which is exactly what you need
-
jdm
standups: poking at ANGLE, spidermonkey, and learning more about EGL
-
crowbot
Status submitted successfully.
-
sbansal
jdm: mismatched types
-
sbansal
--> components/script/dom/cssrulelist.rs:113:17
-
sbansal
|
-
sbansal
113 | loader,
-
sbansal
| ^^^^^^ expected trait `style::stylesheets::StylesheetLoader`, found trait `stylesheet_loader::StylesheetOwner`
-
sbansal
|
-
sbansal
= note: expected type `std::option::Option<&dyn style::stylesheets::StylesheetLoader>`
-
sbansal
found type `std::option::Option<&dyn stylesheet_loader::StylesheetOwner>`
-
jdm
oh, boo
-
jdm
you're right
-
sbansal
What should I do then?
-
jdm
sbansal: ok, you can go back to StylesheetLoader::for_element and use owner.downcast::<HTMLElement>().unwrap()
-
jdm
what are you asking about?
-
sbansal
Yes I was askung about this error only.
-
sbansal
Asking *
-
BitBot
[Github] (servo/servo) [issue] jdm opened #23068: PR merged despite several taskcluster failures -
git.io/fjfrQ
-
jdm
sbansal: I suggested a solution
-
sbansal
jdm: no method named `downcast` found for type `&dom::element::Element` in the current scope
-
sbansal
--> components/script/dom/cssrulelist.rs:105:56
-
sbansal
|
-
sbansal
105 | let owner = self.parent_stylesheet.get_owner().downcast::<HTMLElement>().unwrap();
-
sbansal
| ^^^^^^^^
-
sbansal
|
-
sbansal
= help: items from traits can only be used if the trait is in scope
-
sbansal
= note: the following trait is implemented but not in scope, perhaps add a `use` for it:
-
sbansal
`use crate::dom::bindings::inheritance::Castable;`
-
jdm
sbansal: luckily, that message tells you what the solution is
-
millertime
jdm: hi, re: #23068 sorry I'm new here :P I see the homu failure (not sure where to go to investigate exactly what failed) but I don't see a merge. Where does that show up?
-
crowbot
Issue #23068: PR merged despite several taskcluster failures -
servo/servo #23068
-
jdm
millertime: oh, weird. I totally lied.
-
BitBot
[Github] (servo/servo) [issue] jdm closed #23068: PR merged despite several taskcluster failures -
git.io/fjfrQ
-
jdm
millertime: so you can click the taskcluster link from #23045 to see the various jobs that failed
-
crowbot
PR #23045: create uuid before sending PromoteMemory message -
servo/servo #23045
-
jdm
millertime: and clicking each of those will take you to a screen where you can click Task Run 0 (latest)
-
jdm
er, Run Logs
-
jdm
millertime: however, I've looked at the failures and they're all spurious
-
jdm
so I will retry it
-
millertime
ah okay thanks!
-
» jdm disembarks
-
sbansal
jdm: I am still facing this error. Are youbsure wh have to use StyleSheetLoader::for_element ? "expected enum `std::option::Option`, found struct `stylesheet_loader::StylesheetLoader`
-
sbansal
|
-
sbansal
= note: expected type `std::option::Option<&dyn style::stylesheets::StylesheetLoader>`
-
sbansal
found type `stylesheet_loader::StylesheetLoader<'_>` "
-
pcwalton
ajeffrey: partially SIMD-ified your quaternion code and pushed it
-
pcwalton
sorry for being difficult
-
ajeffrey
pcwalton: ta