| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
| 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 10 * | 10 * |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "core/css/StyleRule.h" | 70 #include "core/css/StyleRule.h" |
| 71 #include "core/css/StyleRuleImport.h" | 71 #include "core/css/StyleRuleImport.h" |
| 72 #include "core/css/StyleSheetContents.h" | 72 #include "core/css/StyleSheetContents.h" |
| 73 #include "core/css/parser/CSSParserIdioms.h" | 73 #include "core/css/parser/CSSParserIdioms.h" |
| 74 #include "core/dom/Document.h" | 74 #include "core/dom/Document.h" |
| 75 #include "core/frame/FrameConsole.h" | 75 #include "core/frame/FrameConsole.h" |
| 76 #include "core/frame/FrameHost.h" | 76 #include "core/frame/FrameHost.h" |
| 77 #include "core/frame/Settings.h" | 77 #include "core/frame/Settings.h" |
| 78 #include "core/frame/UseCounter.h" | 78 #include "core/frame/UseCounter.h" |
| 79 #include "core/html/parser/HTMLParserIdioms.h" | 79 #include "core/html/parser/HTMLParserIdioms.h" |
| 80 #include "core/inspector/ConsoleMessage.h" |
| 80 #include "core/inspector/InspectorInstrumentation.h" | 81 #include "core/inspector/InspectorInstrumentation.h" |
| 81 #include "core/rendering/RenderTheme.h" | 82 #include "core/rendering/RenderTheme.h" |
| 82 #include "platform/FloatConversion.h" | 83 #include "platform/FloatConversion.h" |
| 83 #include "platform/RuntimeEnabledFeatures.h" | 84 #include "platform/RuntimeEnabledFeatures.h" |
| 84 #include "wtf/BitArray.h" | 85 #include "wtf/BitArray.h" |
| 85 #include "wtf/HexNumber.h" | 86 #include "wtf/HexNumber.h" |
| 86 #include "wtf/text/StringBuffer.h" | 87 #include "wtf/text/StringBuffer.h" |
| 87 #include "wtf/text/StringBuilder.h" | 88 #include "wtf/text/StringBuilder.h" |
| 88 #include "wtf/text/StringImpl.h" | 89 #include "wtf/text/StringImpl.h" |
| 89 #include "wtf/text/TextEncoding.h" | 90 #include "wtf/text/TextEncoding.h" |
| (...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 unsigned columnNumber = 0; | 1731 unsigned columnNumber = 0; |
| 1731 if (InspectorInstrumentation::hasFrontends()) { | 1732 if (InspectorInstrumentation::hasFrontends()) { |
| 1732 ensureLineEndings(); | 1733 ensureLineEndings(); |
| 1733 TextPosition tokenPosition = TextPosition::fromOffsetAndLineEndings(loca
tion.offset, *m_lineEndings); | 1734 TextPosition tokenPosition = TextPosition::fromOffsetAndLineEndings(loca
tion.offset, *m_lineEndings); |
| 1734 lineNumberInStyleSheet = tokenPosition.m_line.zeroBasedInt(); | 1735 lineNumberInStyleSheet = tokenPosition.m_line.zeroBasedInt(); |
| 1735 columnNumber = (lineNumberInStyleSheet ? 0 : m_startPosition.m_column.ze
roBasedInt()) + tokenPosition.m_column.zeroBasedInt(); | 1736 columnNumber = (lineNumberInStyleSheet ? 0 : m_startPosition.m_column.ze
roBasedInt()) + tokenPosition.m_column.zeroBasedInt(); |
| 1736 } else { | 1737 } else { |
| 1737 lineNumberInStyleSheet = location.lineNumber; | 1738 lineNumberInStyleSheet = location.lineNumber; |
| 1738 } | 1739 } |
| 1739 FrameConsole& console = m_styleSheet->singleOwnerDocument()->frame()->consol
e(); | 1740 FrameConsole& console = m_styleSheet->singleOwnerDocument()->frame()->consol
e(); |
| 1740 console.addMessage(CSSMessageSource, WarningMessageLevel, message, m_styleSh
eet->baseURL().string(), lineNumberInStyleSheet + m_startPosition.m_line.zeroBas
edInt() + 1, columnNumber + 1); | 1741 console.addMessage(ConsoleMessage::create(CSSMessageSource, WarningMessageLe
vel, message, m_styleSheet->baseURL().string(), lineNumberInStyleSheet + m_start
Position.m_line.zeroBasedInt() + 1, columnNumber + 1)); |
| 1741 } | 1742 } |
| 1742 | 1743 |
| 1743 StyleRuleKeyframes* BisonCSSParser::createKeyframesRule(const String& name, Pass
OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleKeyframe> > > popKey
frames, bool isPrefixed) | 1744 StyleRuleKeyframes* BisonCSSParser::createKeyframesRule(const String& name, Pass
OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleKeyframe> > > popKey
frames, bool isPrefixed) |
| 1744 { | 1745 { |
| 1745 OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleKeyframe> > > ke
yframes = popKeyframes; | 1746 OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<StyleKeyframe> > > ke
yframes = popKeyframes; |
| 1746 m_allowImportRules = m_allowNamespaceDeclarations = false; | 1747 m_allowImportRules = m_allowNamespaceDeclarations = false; |
| 1747 RefPtrWillBeRawPtr<StyleRuleKeyframes> rule = StyleRuleKeyframes::create(); | 1748 RefPtrWillBeRawPtr<StyleRuleKeyframes> rule = StyleRuleKeyframes::create(); |
| 1748 for (size_t i = 0; i < keyframes->size(); ++i) | 1749 for (size_t i = 0; i < keyframes->size(); ++i) |
| 1749 rule->parserAppendKeyframe(keyframes->at(i)); | 1750 rule->parserAppendKeyframe(keyframes->at(i)); |
| 1750 rule->setName(name); | 1751 rule->setName(name); |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 rule->setProperties(createStylePropertySet()); | 2109 rule->setProperties(createStylePropertySet()); |
| 2109 clearProperties(); | 2110 clearProperties(); |
| 2110 | 2111 |
| 2111 StyleRuleViewport* result = rule.get(); | 2112 StyleRuleViewport* result = rule.get(); |
| 2112 m_parsedRules.append(rule.release()); | 2113 m_parsedRules.append(rule.release()); |
| 2113 | 2114 |
| 2114 return result; | 2115 return result; |
| 2115 } | 2116 } |
| 2116 | 2117 |
| 2117 } | 2118 } |
| OLD | NEW |