diff options
author | Steve Block <steveblock@google.com> | 2011-01-05 12:15:11 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-01-06 14:14:00 +0000 |
commit | d06194330da2bb8da887d2e1adeacb3a5c1504b2 (patch) | |
tree | e0af8413af65a8e30630563441af7bdb8478e513 /WebCore/css | |
parent | 419a5cf2f8db6ca014df624865197ffb82caad37 (diff) | |
download | external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.zip external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.gz external_webkit-d06194330da2bb8da887d2e1adeacb3a5c1504b2.tar.bz2 |
Merge WebKit at r72805: Initial merge by Git
Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.
Change-Id: I5d2bb4e8cee9d39ae8485abf48bdb55ecf8b3790
Diffstat (limited to 'WebCore/css')
-rw-r--r-- | WebCore/css/CSSImportRule.cpp | 2 | ||||
-rw-r--r-- | WebCore/css/CSSRule.idl | 1 | ||||
-rw-r--r-- | WebCore/css/CSSStyleSelector.cpp | 10 | ||||
-rw-r--r-- | WebCore/css/MediaQueryEvaluator.cpp | 2 | ||||
-rw-r--r-- | WebCore/css/StyleSheet.cpp | 8 | ||||
-rw-r--r-- | WebCore/css/themeChromiumSkia.css | 37 |
6 files changed, 6 insertions, 54 deletions
diff --git a/WebCore/css/CSSImportRule.cpp b/WebCore/css/CSSImportRule.cpp index 3065478..09e313e 100644 --- a/WebCore/css/CSSImportRule.cpp +++ b/WebCore/css/CSSImportRule.cpp @@ -142,7 +142,7 @@ void CSSImportRule::insertedIntoParent() // if the import rule is issued dynamically, the sheet may be // removed from the pending sheet count, so let the doc know // the sheet being imported is pending. - if (parentSheet && parentSheet->loadCompleted() && parentSheet->document()) + if (parentSheet && parentSheet->loadCompleted() && root == parentSheet) parentSheet->document()->addPendingSheet(); m_loading = true; m_cachedSheet->addClient(this); diff --git a/WebCore/css/CSSRule.idl b/WebCore/css/CSSRule.idl index 170a801..82a1dee 100644 --- a/WebCore/css/CSSRule.idl +++ b/WebCore/css/CSSRule.idl @@ -22,7 +22,6 @@ module css { // Introduced in DOM Level 2: interface [ - CustomMarkFunction, CustomToJS, Polymorphic ] CSSRule { diff --git a/WebCore/css/CSSStyleSelector.cpp b/WebCore/css/CSSStyleSelector.cpp index 0e49314..f8e0067 100644 --- a/WebCore/css/CSSStyleSelector.cpp +++ b/WebCore/css/CSSStyleSelector.cpp @@ -7019,12 +7019,10 @@ void CSSStyleSelector::loadPendingImages() } case CSSPropertyWebkitBoxReflect: { - if (StyleReflection* reflection = m_style->boxReflect()) { - const NinePieceImage& maskImage = reflection->mask(); - if (maskImage.image() && maskImage.image()->isPendingImage()) { - CSSImageValue* imageValue = static_cast<StylePendingImage*>(maskImage.image())->cssImageValue(); - reflection->setMask(NinePieceImage(imageValue->cachedImage(cachedResourceLoader), maskImage.slices(), maskImage.horizontalRule(), maskImage.verticalRule())); - } + const NinePieceImage& maskImage = m_style->boxReflect()->mask(); + if (maskImage.image() && maskImage.image()->isPendingImage()) { + CSSImageValue* imageValue = static_cast<StylePendingImage*>(maskImage.image())->cssImageValue(); + m_style->boxReflect()->setMask(NinePieceImage(imageValue->cachedImage(cachedResourceLoader), maskImage.slices(), maskImage.horizontalRule(), maskImage.verticalRule())); } break; } diff --git a/WebCore/css/MediaQueryEvaluator.cpp b/WebCore/css/MediaQueryEvaluator.cpp index fa2e099..c757d51 100644 --- a/WebCore/css/MediaQueryEvaluator.cpp +++ b/WebCore/css/MediaQueryEvaluator.cpp @@ -480,7 +480,7 @@ static bool transform_3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* f bool threeDEnabled = false; #if USE(ACCELERATED_COMPOSITING) if (RenderView* view = frame->contentRenderer()) - threeDEnabled = view->compositor()->canRender3DTransforms(); + threeDEnabled = view->compositor()->hasAcceleratedCompositing(); #endif returnValueIfNoParameter = threeDEnabled; diff --git a/WebCore/css/StyleSheet.cpp b/WebCore/css/StyleSheet.cpp index 68a0772..0a719d1 100644 --- a/WebCore/css/StyleSheet.cpp +++ b/WebCore/css/StyleSheet.cpp @@ -56,14 +56,6 @@ StyleSheet::~StyleSheet() { if (m_media) m_media->setParent(0); - - // For style rules outside the document, .parentStyleSheet can become null even if the style rule - // is still observable from JavaScript. This matches the behavior of .parentNode for nodes, but - // it's not ideal because it makes the CSSOM's behavior depend on the timing of garbage collection. - for (unsigned i = 0; i < length(); ++i) { - ASSERT(item(i)->parent() == this); - item(i)->setParent(0); - } } StyleSheet* StyleSheet::parentStyleSheet() const diff --git a/WebCore/css/themeChromiumSkia.css b/WebCore/css/themeChromiumSkia.css deleted file mode 100644 index bcd05f0..0000000 --- a/WebCore/css/themeChromiumSkia.css +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2009 Google Inc. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc. nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/* These styles override other user-agent styles for Chromium using Skia. */ - -/* Option elements inherit their font (see themeWin.css). However, their - * font weight should always be normal, to distinguish from optgroup labels. */ -option { - font-weight: normal !important; -} |