Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Issue 813493003: Only the main document should have a StyleEngine. (Closed)

Created:
6 years ago by esprehn
Modified:
6 years ago
Reviewers:
eseidel, ojan
CC:
abarth-chromium, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Only the main document should have a StyleEngine. In Sky <style> elements in import documents don't apply to the main document, so we don't need the StyleEngine to be aware of the import tree. This change makes us only create the StyleEngine for active documents. R=eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/df15a8863a78b6c61a76c08c8a993b96eb5839b9

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -74 lines) Patch
M sky/engine/core/dom/Document.cpp View 4 chunks +6 lines, -5 lines 0 comments Download
M sky/engine/core/dom/StyleEngine.h View 6 chunks +0 lines, -11 lines 0 comments Download
M sky/engine/core/dom/StyleEngine.cpp View 12 chunks +9 lines, -50 lines 0 comments Download
M sky/engine/core/dom/StyleSheetCollection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M sky/engine/core/html/HTMLStyleElement.cpp View 4 chunks +9 lines, -6 lines 0 comments Download
M sky/engine/core/page/Page.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
esprehn
6 years ago (2014-12-16 21:12:22 UTC) #2
eseidel
lgtm
6 years ago (2014-12-16 21:13:52 UTC) #3
esprehn
6 years ago (2014-12-16 21:15:02 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
df15a8863a78b6c61a76c08c8a993b96eb5839b9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698