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

Side by Side Diff: Source/core/html/HTMLLinkElement.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 715 }
716 716
717 if (!m_owner->shouldLoadLink()) 717 if (!m_owner->shouldLoadLink())
718 return; 718 return;
719 719
720 m_loading = true; 720 m_loading = true;
721 721
722 bool mediaQueryMatches = true; 722 bool mediaQueryMatches = true;
723 LocalFrame* frame = loadingFrame(); 723 LocalFrame* frame = loadingFrame();
724 if (!m_owner->media().isEmpty() && frame && frame->document()) { 724 if (!m_owner->media().isEmpty() && frame && frame->document()) {
725 RefPtr<LayoutStyle> documentStyle = StyleResolver::styleForDocument( *frame->document()); 725 RefPtr<ComputedStyle> documentStyle = StyleResolver::styleForDocumen t(*frame->document());
726 RefPtrWillBeRawPtr<MediaQuerySet> media = MediaQuerySet::create(m_ow ner->media()); 726 RefPtrWillBeRawPtr<MediaQuerySet> media = MediaQuerySet::create(m_ow ner->media());
727 MediaQueryEvaluator evaluator(frame); 727 MediaQueryEvaluator evaluator(frame);
728 mediaQueryMatches = evaluator.eval(media.get()); 728 mediaQueryMatches = evaluator.eval(media.get());
729 } 729 }
730 730
731 // Don't hold up render tree construction and script execution on styles heets 731 // Don't hold up render tree construction and script execution on styles heets
732 // that are not needed for the rendering at the moment. 732 // that are not needed for the rendering at the moment.
733 bool blocking = mediaQueryMatches && !m_owner->isAlternate(); 733 bool blocking = mediaQueryMatches && !m_owner->isAlternate();
734 addPendingSheet(blocking ? Blocking : NonBlocking); 734 addPendingSheet(blocking ? Blocking : NonBlocking);
735 735
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 removePendingSheet(); 771 removePendingSheet();
772 } 772 }
773 773
774 DEFINE_TRACE(LinkStyle) 774 DEFINE_TRACE(LinkStyle)
775 { 775 {
776 visitor->trace(m_sheet); 776 visitor->trace(m_sheet);
777 LinkResource::trace(visitor); 777 LinkResource::trace(visitor);
778 } 778 }
779 779
780 } // namespace blink 780 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698