Git Product home page Git Product logo

escudo's People

Contributors

constellation avatar shikiokasaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

escudo's Issues

[OSX] Font discovery code

Missing fonts, building Escort in OSX is available but executing is not.

I suggest discoverying fonts by code.
For example,
https://gist.github.com/Constellation/4946675
works and lists available font pathes on OSX.

But since this code touches CoreText framework directly, code becomes a little complicated.
So I also suggest adding backend-specific code directory such as src/font/mac and enabling Objective-C++ building support to Makefile.am.

[HTML] Fix the timing to call HTMLElementImp::eval()

HTMLElementImp::eval() has been used to perform additional operations for each element inserted into the DOM tree. Most of them can be processed by mutation callbacks and fixed in issue #12.

Note even though the spec says,
"DOM mutation events must not fire for changes caused by the UA parsing the document. This includes the parsing of any content inserted using document.write() and document.writeln() calls." - http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#tree-construction
we still need to fire DOM mutation events from the parser for DEFAULT_PHASE (not for other phases). As we'll switching over to Mutation observers, this might be changed as well.

The remaining elements that still use eval() are the link and object elements.

As for the link element, resources can be obtained later rather than just after the element is parsed:
"User agents may opt to only try to obtain such resources when they are needed, instead of pro-actively fetching all the external resources that are not applied." - http://www.w3.org/TR/html5/document-metadata.html#concept-link-obtain

As for the object element, the conditions to execute steps similar to eval() are listed in the paragraph starting with "Whenever one of the following conditions occur:" in,
http://www.w3.org/TR/html5/embedded-content-0.html#the-object-element

glDeleteTextures on different thread from generating texture thread raises crash in OSX

Currently, in OSX, escort crashes when page load happens.

Crash is caused at BoxGL.cpp void deleteImage(uint8_t* image)'s glDeleteTextures.

Investigating it, I've found that gs register based mov code in glDeleteTextures returns unexpected value ($0). I remember that gs is the register related to thread local value.

I think that the crash is caused since glDeleteTextures is called from the different thread from generating texture thread.

[HTML] Fix the timing to trigger mutation events from the HTML parser.

Since 739eaac, a DOMCharacterDataModified event is triggered for each character which is just parsed and inserted to a DOM node. It should be just one event at the end of a sequence of characters within a node.

In practice, what we'd need is a single DOMNodeInserted event for a Text node instead of a DOMNodeInserted event followed by a sequence of DOMCharacterDataModified events.

[Acid2] acid2 fails

Acid2 fails since 04cd719.

acid2 130407 540391c63c

The following style seems to be not applied:

<link rel="appendix stylesheet" href="data:text/css,.picture%20%7B%20background%3A%20none%3B%20%7D"> <!-- this stylesheet should be applied by default -->

[CSS] Support CSS Color Module Level 3

cf. http://www.w3.org/TR/css3-color/

  • the ‘opacity’ property
  • RGBA color values; ee15227, 2d833d7
  • HSL and HSLA color values; 0046a42
  • ‘currentColor’ color keyword ➡️ #58

s.3.2.a should read:
Since an element with opacity less than 1 is composited from a single offscreen image, content outside of it cannot be layered in z-order between pieces of content inside of it. For the same reason, implementations must create a new stacking context for any element with opacity less than 1. If an element with opacity less than 1 is not positioned, then it is painted on the same layer, within its parent stacking context, as positioned elements with stack level 0. If an element with opacity less than 1 is positioned, the ‘z-index’ property applies as described in [CSS21], except that if the used value is ‘auto’ then the element behaves exactly as if it were ‘0’.
cf. http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html

cf. CSS3 Color Conformance Test Suite
http://test.csswg.org/suites/css3-color/

[CSS] Remove unused stacking contexts from ViewCSS

After deleting an absolutely positioned element, the corresponding, unused stacking context is not removed in testdata/partial-reflow-remove-003.html.

Note when an element is removed, the following functions are called in this order:

  1. ViewCSSImp::handleMutation
  2. ViewCSSImp::removeComputedStyle
  3. CSSStyleDeclarationImp::revert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.