Make stylesheet owner node a reference instead of pointer.
The CSSStyleSheet owner node is always non-null when passed in on
sheet creation. Make it a reference in various APIs.
The real change here that triggered this was the realization that
StyleEngine::createSheet is always called with an owner node which
belongs to the very same Document/StyleEngine. So we can turn:
e->document().styleEngine().addPendingSheet(context);
into:
addPendingSheet(context);
Also made parseSheet non-static as it needed the StyleEngine pointer
anyway.
R=sashab@chromium.org
BUG=567021
Review-Url: https://codereview.chromium.org/2354773003
Cr-Commit-Position: refs/heads/master@{#420018}
17 files changed